/sbin/hotplug and hal.dev timeouts

Kay Sievers kay.sievers at vrfy.org
Fri Aug 27 19:08:51 PDT 2004


I've discovered some strange behavior with HAL and a lot of USB devices
connected. My printer wasn't properly recognized, cause udev needed 25
seconds  to send the dev.d/ event to HAL. This is caused by the lot of
sleep calls to wait for sysfs files and device nodes in the /etc/hotplug
scripts. These sleeps take longer than the 10 second timeout of udevd
and udevd will delay for another 10 seconds.

It can be fixed (as far as /sbin/hotplug if fixable at all :)) by
reordering the execution of the holplug helpers. I've added the 10- and
20- and it's working now.

[root at pim hal]# tree /etc/hotplug.d
/etc/hotplug.d
`-- default
    |-- 10-udev.hotplug -> /sbin/udevsend
    |-- 20-hal.hotplug -> /usr/libexec/hal.hotplug
    `-- default.hotplug

Did anybody discovered something similar?

Thanks,
Kay

_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list