udev rules files

Richard Hughes hughsient at gmail.com
Mon Apr 27 00:43:56 PDT 2009

On Sun, 2009-04-26 at 16:22 +0200, Kay Sievers wrote:
> DeviceKit-power will use libudev, and take over the all the
> power/battery/UPS handling from HAL. At this point, the part of HAL
> will be disabled.

Sure agree. Good email. One question:

Switches (killswitch, lid, tablet, headphone) are not exposed in Xorg,
and not exposed in DeviceKit either. At the moment the only thing
gnome-power-manager uses HAL for in git master is the find out the lid
status. I really want to remove the HAL dep completely.

Is it insane to add a property lid-is-closed to DeviceKit-power? I can't
think of a better place for the lid status information, and don't really
want to add low level /dev/input type stuff to g-p-m.

If I'm adding lid-is-closed, would SW_TABLET_MODE, SW_HEADPHONE_INSERT
and SW_RADIO also needed to be handled?

I can't help thinking this is feature bloat, and should probably be
exposed in Xorg or something. Ideas welcome.


More information about the devkit-devel mailing list