[PATCH] fix hald-addon-dell-backlight AC detection

Danny Kukawka danny.kukawka at web.de
Tue Mar 4 05:41:04 PST 2008


On Dienstag, 4. März 2008, Martin Pitt wrote:
> Hi Danny,
>
> Danny Kukawka [2008-03-04  1:47 +0100]:
> > Hi,
> >
> > this fixes fd.o bug #13669 and hald-addon-dell-backlight which uses a
> > hardcoded udi to get AC adapter information. With the switch to sysfs
> > power_supply devices for AC adapter the path is no longer valid. I
> > changed the code to check all devices with ac_adapter capability and
> > check then all AC adapter until a device has ac_adapter.present and then
> > get the info about the adapter state from there.
> >
> > See attached patch (untested atm, test it tomorrow/later today).
>
> Great, thank you! I verified it on my Latitude D430, works perfectly.

Okay, I've commited it.

Danny



More information about the hal mailing list