On Mon, 2013-03-25 at 13:10 +0100, Michael Stapelberg wrote:
> Package: qcontrol
> Version: 0.4.2+svn-r40-3
> Severity: wishlist
> 
> Attached you can find a patch which allows the user to control the qnap
> Wake on LAN functionality. Please add it to your next upload of
> qcontrol.

Thanks for this. I'm travelling at the moment but I'll looking into this
properly when I return (which is mid April).

> Note that in order to use it, you also need a fairly recent kernel
> including these two commits (likely to be included in Linux 3.10):
> 
> https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/?id=42e836eb4527fb635cb799a701fe4c9fe741c03a
> https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/?id=3871c3876f8084a2f40ba3c3fc20a6bb5754d88d
> 
> (you need to enable CONFIG_MARVELL_PHY in your .config and possibly
>  patches in order to get poweroff to work¹)

CONFIG_MARVELL_PHY doesn't appear to be set in the Wheezy kernel (which
doesn't have the necessary patches in any case). I'll make a note to
check the Sid kernel config as I apply this.

BTW since Wheezy is now pretty deeply frozen and has 3.2 kernel I'm not
going to even bother trying to get any of this stuff into Wheezy I'm
afraid.

> Afterwards, run these commands to power off the qnap (tested with the
> TS-119P II only, but qnap has a list of models²) in a way that you can
> wake it up via the WOL magic packet afterwards:
> 
>   ethtool -s eth0 wol g
>   qcontrol wakeonlan on
>   poweroff

A few questions:

What is the eup stuff, i.e. what does it actually do and would a user
ever want to frob it directly rather than implicitly via the wol
command?

Do you know if there is some way to integrate the last two commands into
a standard "shutdown for WoL path" of some sort? Or can one run the
first two by and and then type halt(8) or poweroff(8) in the usual way
and have it just work?

Do you have a pointer to some docs on how to send a suitable WoL packet?

I'd probably s/wakeonlan/wol/ in the interface, because wol is a well
known acronym and I'm a lazy typist ;-)

Thanks,
Ian.

> 
> ① http://thread.gmane.org/gmane.linux.debian.ports.arm/11933/focus=12060
> ② http://wiki.qnap.com/wiki/FAQs#Q.EF.BC.9AWake_on_LAN_support_models


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to