HAL FDI matched Buttons
Richard Hughes
hughsient at gmail.com
Sun Nov 27 15:33:30 PST 2005
On Sun, 2005-11-27 at 21:48 +0000, Richard Hughes wrote:
> I figured an fdi file could do this in the existing HAL framework, but
> am really open to ideas.
Something like the attached is my thinking...
I don't see how we can have one device per button (as DavidZ was
suggesting) as we don't know the number of buttons until we parse the
fdi file.
Using the fdi on my system, pressing Fn-F4 triggers a KEY_BRIGHTNESSUP X
input which can be read by GNOME Keyboard Shortcuts, and it also send a
ButtonPressed condition that can be monitored by anything with a DBUS
interface.
This method would also work for laptop models that generate acpi events
rather than having to poll a certain file (like Toshibas do).
Is this crack or on the right lines?
Richard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 10-acpi-buttons-toshiba.fdi
Type: text/xml
Size: 1346 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20051127/772f0735/10-acpi-buttons-toshiba.xml
More information about the hal
mailing list