[PATCH 0/3] WOL: Add Wake On LAN support

Holger Macht hmacht at suse.de
Tue Aug 14 06:21:47 PDT 2007


The following patch series adds support for Wake On LAN (WOL) to HAL. In
this context, adding Wake On LAN support means adding support for ethtool,
which is supported by various drivers.

I was surprised to see for how many systems this actually works. The
common problem is just that it's not configured correctly on most distros,
and that there is no easy way to enable/disable it from the desktop if
supported.

The patches add the following new interface to any network device with the
capability 'net.80203':

 org.freedesktop.Hal.Device.WakeOnLan

The interface provides the following methods:

 GetSupported(void)
 GetEnabled(void)
 SetEnabled(bool)

Ideally those methods would only pop up on a specific device if WOL is
supported at all on this device. But I currently see no way of getting rid
of the 'GetSupported' method. Adding a callout doesn't work on HAL startup
if the device is already there, but only if HAL is already running and a
new device gets added. So unfortunately, the above mentioned methods have
to be added to all wired network devices. If there is a better solution I
don't see, please let me know.

I already created a prototype of a gnome-control-center module to make use
of this new feature. I'm trying to get this (or something similar) into
GNOME and KDE4 as soon as the backend is done. Some screenshots are here:

 http://www.homac.de/images/wol_capplet_1.jpg
 http://www.homac.de/images/wol_capplet_2.jpg

Waking systems up is ideally a job for e.g. nautilus or konqueror. But
that's something I will think about in more detail later on.

Comments, please.

Regards,
	Holger


More information about the hal mailing list