There is a bug in /etc/hotplug/usb.rc, that prevents coldplug from working correcty. On my system, the coldplug devices (especial my scanner) have incorrect permissions, because the usb.agent is called with the wrong DEVICE set. I have traced this down, but there are to many changes on the whole hotplug system. The bug was introduced between version 1.22 and 1.28. The problem is this line: devbus=$( ( echo -n 000 ; cat $devlink/../../devnum ) | grep -o ...\$ ) The content of the file devnum at this position is allways 1, regardless of the controller. Please find attached a patch, that works flawless on my system.
Created attachment 51718 [details, diff] patch for usb.rc
I've got this but to. The proposed fix helps on my x86 system too.
This patch worked flawlessly on my system. The permissions were always set on the wrong device. Now there's no more need to unplug/plug in scanner to get it to work.
I can verify this bug. Seen it around users who use usb-scanners and printers. usb.rc in the current version chmod's invalid path-names during coldboot. A fix is very needed.
Is this going to be scheduled into portage? People with usb-scanners often needs this patch
I noticed that when I went from kernel 2.6.11-r11 gentoo-sources to 2.16.12-r6 or r9 or 2.6.13 that my system now hangs if I do a coldplug on boot. For now I removed coldplug but I'll try this patch and see what happens.
*** Bug 71180 has been marked as a duplicate of this bug. ***
sys-apps/hotplug is useless with any recent udev version, and 2.4 kernels are no longer supported. Unmerge it and move on. WONTFIX.