Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82729 - sys-apps/hotplug-20040923-r2 - bug in usb.rc prevents coldplug from working correctly
Summary: sys-apps/hotplug-20040923-r2 - bug in usb.rc prevents coldplug from working c...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Highest normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
: 71180 (view as bug list)
Depends on: 145809
Blocks:
  Show dependency tree
 
Reported: 2005-02-20 13:42 UTC by Silvio Boehme
Modified: 2007-09-04 00:04 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for usb.rc (usbrc.patch,753 bytes, patch)
2005-02-20 14:09 UTC, Silvio Boehme
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Silvio Boehme 2005-02-20 13:42:41 UTC
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.
Comment 1 Silvio Boehme 2005-02-20 14:09:09 UTC
Created attachment 51718 [details, diff]
patch for usb.rc
Comment 2 Daniel Bausch 2005-03-27 01:29:21 UTC
I've got this but to. The proposed fix helps on my x86 system too.
Comment 3 antoine marmignon 2005-06-03 14:47:57 UTC
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.
Comment 4 Stian Skjelstad 2005-07-03 03:29:08 UTC
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.
Comment 5 Stian Skjelstad 2005-07-27 10:48:02 UTC
Is this going to be scheduled into portage?

People with usb-scanners often needs this patch
Comment 6 Brett I. Holcomb 2005-09-04 20:18:32 UTC
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.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-01-15 11:53:37 UTC
*** Bug 71180 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-09-04 00:04:06 UTC
sys-apps/hotplug is useless with any recent udev version, and 2.4 kernels are no longer supported. Unmerge it and move on.

WONTFIX.