Hello!
I have some questions about how FC3 handles cold plugging of usb devices.
Basically I have a usb touch screen device that I want to enable hotplugging for. I have managed to get everything working as I want to when I boot my computer without the device attached. What I have done is the following:
* Copied the device driver to /lib/modules/2.6.10-1.770_FC3smp/kernel/drivers/usb/input/tkusb.ko
* Run depmod -a
* Added this hotplug script (/etc/hotplug/usb/tkusb);
Code:
#!/bin/bash
if [ "${ACTION}" = "add" ]; then
/usr/bin/tpaneld
touch $REMOVER
chmod 755 $REMOVER
cat > $REMOVER <<EOF
#!/bin/bash
killall tpaneld
EOF
fi
This makes the tpaneld daemon start and stop when I insert and remove my device.
However, if I boot the computer with the device attached things does not work as I would have hoped. What happens is that the tkusb.ko kernel module is loaded but tpaneld is not running. Because of this my guess is that the /etc/hotplug/usb/tkusb script is not being run.
Can anyone tell me how FC3 handles usb devices as boot. Somehow it has managed to load the correct kernel module, without running my hotplug script, and I guess that this is part of some cold plugging implementation. Is there some way that I can get my own hotplug script to run as part of this boot up handling? Maybe some knows something about FC3 cold plugging that can help me here?
Regards,
Mattias