[patch] poll the NVRAM area to pick up Thinkpad button presses

Richard Hughes hughsient at gmail.com
Tue May 15 08:56:44 PDT 2007


Attached is a patch for initial review that adds nvram polling to a
hal addon, much like we already do for Toshiba. The nvram area is
usually read by tpd, but this does not integrate well with modern
session stuff such as GNOME and gnome-power-manager.

Testing was done on a X60 ThinkPad, and this patch gets the volume up,
volume down and mute buttons emitted as 'Condition' DBUS events. The
thinkpad button is also expressed, and a few more.

Now, because gnome-settings-daemon does not listen for DBUS
ButtonPressed condition this patch is basically for review - the real
idea is for these addons to either:

* Be patched into the kernel and use INPUT (_if_ possible, and
probably a long term thing)
* Modified to use UINPUT so we can "inject" input keycodes to X, so we
can map them in gnome-settings-daemon (and the equivalent KDE thing)

I'm not yet sure how we can do this kernel side (i.e. using the smbios
for toshiba and nvram for thinkpads) without breaking userspace.

Please review carefully.

Richard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-add-nvram.patch
Type: text/x-patch
Size: 11956 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070515/d2d46cb4/attachment.bin 


More information about the hal mailing list