[PATCH] Fix dock station status detection

Danny Kukawka danny.kukawka at web.de
Thu Mar 13 11:25:14 PDT 2008


On Donnerstag, 13. März 2008, Holger Macht wrote:
> When the user triggers an undock operation, the kernel assumes that the
> undock cannot fail (which is pretty true) and sends out the 'UNDOCK' udev
> event before actually doing it. So when HAL comes down to
> platform_refresh() and reads the 'docked' sysfs file, it still contains
> 'docked' (at odd times, it's a race).

Sound to me like a kernel bug. Should the kernel get fixed to send the UNDOCK 
first if the sysfs attribute is changed?

Danny


More information about the hal mailing list