View previous topic :: View next topic |
Author |
Message |
EasterParade l33t
Joined: 26 Jul 2003 Posts: 938
|
Posted: Fri Aug 08, 2003 2:16 pm Post subject: hotplug at work??? (solution found - finally) |
|
|
Hi all,
This is a phenomenon I cannot explain. Most probably I borked somewhere but I don't know what exactly I have done. So I hope that someone here could give me a hint.
Usb is managed by hotplug and it's doing a good job. Webcam and scanner are at my service whenever I want to use them.
I have a digicam too ( Canon Powershot Pro 90 IS ) which only root could use until recently. I've rectified the permission-issue by following the steps described in the gphoto2 documentation:
Code: | # /usr/lib/libgphoto2/print-usb-usermap >> /etc/hotplug/usb.usermap |
Then I copied the usbcam.group-file from /usr/share/doc/libgphoto2/linux-hotplug into /etc/hotplug/usb, renamed it usbcam and edited it so that group=camera has access to the digicam.
Then I made the file executable:
Code: | chmod +x /etc/hotplug/usb/usbcam |
I've switched on the camera and the permission-issue was no more:
Code: | $ ls -lR /proc/bus/usb/
/proc/bus/usb/:
total 0
dr-xr-xr-x 1 root root 0 Aug 8 11:59 001
dr-xr-xr-x 1 root root 0 Aug 8 11:59 002
dr-xr-xr-x 1 root root 0 Aug 8 11:59 003
-r--r--r-- 1 root root 0 Aug 8 15:26 devices
-r--r--r-- 1 root root 0 Aug 8 15:26 drivers
/proc/bus/usb/001:
total 0
-rw-r--r-- 1 root root 18 Aug 8 11:59 001
/proc/bus/usb/002:
total 0
-rw-r--r-- 1 root root 18 Aug 8 11:59 001
/proc/bus/usb/003:
total 0
-rw-r--r-- 1 root root 18 Aug 8 12:00 001
-rw-r--r-- 1 root root 18 Aug 8 12:00 002
-rw-rw---- 1 root camera 18 Aug 8 15:26 010
|
Gentoo still boots fine since then but when hotplug is being started I can watch it work with some scripts. I cannot see what it is - it is running too fast; something concerning drivers.
This happens for roughly half a minute. After finish the booting continues normally and I can log in, startx etc... the system's still working reliably and stable - no harm done.
Does anyone have an idea?
TIA
transsib
solution
Dear Gentooers,
Is it remotely possible that what I can see on boot is what I should see ? That the only mistake is that I think it is a mistake ?
As a newbie I really should browse Duplicate Threads more than the other forums :
https://forums.gentoo.org/viewtopic.php?t=65642
Dracula describes the same happening on boot, only that s.th. isn't working right and dmesg doesn't tell what.
Last edited by EasterParade on Thu Aug 14, 2003 4:58 pm; edited 1 time in total |
|
Back to top |
|
|
AlterEgo Veteran
Joined: 25 Apr 2002 Posts: 1619
|
Posted: Fri Aug 08, 2003 5:47 pm Post subject: |
|
|
Doesn't dmesg show the usb ports being probed? |
|
Back to top |
|
|
EasterParade l33t
Joined: 26 Jul 2003 Posts: 938
|
Posted: Fri Aug 08, 2003 6:00 pm Post subject: |
|
|
Dmesg is long and seems to probe all ports - it is too long for posting but I don't see any error messages.
gphoto2 --list-ports , gphoto2 --auto-detect , gphoto2 --summary give me the information that is to be expected when everything is right.
transsib |
|
Back to top |
|
|
EasterParade l33t
Joined: 26 Jul 2003 Posts: 938
|
Posted: Sat Aug 09, 2003 9:51 am Post subject: |
|
|
I have removed the script "usbcam" from /etc/hotplug/usb and hoped that this would normalize booting: no luck.
I tried to recognize what scripts are racing down the screen when hotplug starts and I could see snippets of "checkroot", "local" and "/etc/runlevel/boot" but I still don't have the slightest what is going on here.
Is it possible that the command chmod +x /etc/hotplug/usb/usbcam is wrong?
Isn't it better to cd into /etc/hotplug/usb and chmod +x usbcam?
There is a file "hotplug" in /etc/init.d. Could this be connected?
Since removing the pertinent file doesn't change the look and feel of the boot-process I'll leave the file where it is and keep looking and searching until I know what`s going on.
I'm still of the opinion that it is my fault.
transsib
Code: | $ dmesg
fault language ID 0x409
Manufacturer: Canon Inc.
Product: PowerShot Pro90 IS
usb.c: unhandled interfaces on device
usb.c: USB device 4 (vend/prod 0x4a9/0x3049) is not claimed by any active driver.
Length = 18
DescriptorType = 01
USB version = 1.00
Vendor:Product = 04a9:3049
MaxPacketSize0 = 32
NumConfigurations = 1
Device version = 0.01
Device Class:SubClass:Protocol = ff:ff:ff
Vendor class
Configuration:
bLength = 9
bDescriptorType = 02
wTotalLength = 0027
bNumInterfaces = 01
bConfigurationValue = 01
iConfiguration = 00
bmAttributes = 40
MaxPower = 100mA
Interface: 0
Alternate Setting: 0
bLength = 9
bDescriptorType = 04
bInterfaceNumber = 00
bAlternateSetting = 00
bNumEndpoints = 03
bInterface Class:SubClass:Protocol = ff:ff:ff
iInterface = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 81 (in)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 02 (out)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 83 (in)
bmAttributes = 03 (Interrupt)
wMaxPacketSize = 0040
bInterval = 60
usb.c: kusbd: /sbin/hotplug add 4
hub.c: port 3, portstatus 100, change 0, 12 Mb/s
usb.c: usbdevfs driver claimed interface d469fb40
usb.c: ignoring set_interface for dev 4, iface 0, alt 0
hub.c: port 1, portstatus 100, change 0, 12 Mb/s
hub.c: port 2, portstatus 100, change 0, 12 Mb/s
ehci-hub.c: GetStatus port 3 status 0x3802 OWNER POWER speed=2 CSC
hub.c: port 3, portstatus 0, change 1, 12 Mb/s
hub.c: port 3 connection change
hub.c: port 3, portstatus 0, change 1, 12 Mb/s
ehci-hub.c: GetStatus port 4 status 0x1002 POWER speed=0 CSC
hub.c: port 4, portstatus 100, change 1, 12 Mb/s
hub.c: port 4 connection change
hub.c: port 4, portstatus 100, change 1, 12 Mb/s
hub.c: port 5, portstatus 100, change 0, 12 Mb/s
hub.c: port 6, portstatus 100, change 0, 12 Mb/s
hub.c: port 1, portstatus 103, change 0, 12 Mb/s
hub.c: port 2, portstatus 100, change 3, 12 Mb/s
hub.c: port 2 connection change
hub.c: port 2, portstatus 100, change 3, 12 Mb/s
usb.c: USB disconnect on device 00:02.1-2 address 4
usb.c: kusbd: /sbin/hotplug remove 4
hub.c: port 3, portstatus 100, change 0, 12 Mb/s
hub.c: port 1, portstatus 103, change 0, 12 Mb/s
hub.c: port 2, portstatus 100, change 2, 12 Mb/s
hub.c: port 2 enable change, status 100
hub.c: port 3, portstatus 100, change 0, 12 Mb/s
hub.c: port 1, portstatus 100, change 0, 12 Mb/s
hub.c: port 2, portstatus 100, change 0, 12 Mb/s
ehci-hub.c: GetStatus port 3 status 0x3802 OWNER POWER speed=2 CSC
hub.c: port 3, portstatus 0, change 1, 12 Mb/s
hub.c: port 3 connection change
hub.c: port 3, portstatus 0, change 1, 12 Mb/s
ehci-hub.c: GetStatus port 4 status 0x1803 POWER speed=2 CSC CONNECT
hub.c: port 4, portstatus 501, change 1, 480 Mb/s
hub.c: port 4 connection change
hub.c: port 4, portstatus 501, change 1, 480 Mb/s
hub.c: port 4, portstatus 501, change 0, 480 Mb/s
hub.c: port 4, portstatus 501, change 0, 480 Mb/s
hub.c: port 4, portstatus 501, change 0, 480 Mb/s
hub.c: port 4, portstatus 501, change 0, 480 Mb/s
hub.c: port 4, portstatus 511, change 0, 480 Mb/s
hub.c: port 4 of hub 1 not reset yet, waiting 10ms
hub.c: port 4, portstatus 511, change 0, 480 Mb/s
hub.c: port 4 of hub 1 not reset yet, waiting 10ms
hub.c: port 4, portstatus 511, change 0, 480 Mb/s
hub.c: port 4 of hub 1 not reset yet, waiting 200ms
ehci-hub.c: 00:02.2 port 4 full speed, give to companion, 0x1001
ehci-hub.c: GetStatus port 4 status 0x3001 OWNER POWER speed=0 CONNECT
hub.c: port 4, portstatus 0, change 10, 12 Mb/s
ehci-hcd.c: 00:02.2: free_config devnum 0
hub.c: port 5, portstatus 100, change 0, 12 Mb/s
hub.c: port 6, portstatus 100, change 0, 12 Mb/s
hub.c: port 1, portstatus 103, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 1, 12 Mb/s
hub.c: port 2 connection change
hub.c: port 2, portstatus 101, change 1, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 103, change 10, 12 Mb/s
hub.c: new USB device 00:02.1-2, assigned address 5
usb.c: kmalloc IF cf10be80, numif 1
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=0
usb.c: USB device number 5 default language ID 0x409
Manufacturer: Canon Inc.
Product: PowerShot Pro90 IS
usb.c: unhandled interfaces on device
usb.c: USB device 5 (vend/prod 0x4a9/0x3049) is not claimed by any active driver.
Length = 18
DescriptorType = 01
USB version = 1.00
Vendor:Product = 04a9:3049
MaxPacketSize0 = 32
NumConfigurations = 1
Device version = 0.01
Device Class:SubClass:Protocol = ff:ff:ff
Vendor class
Configuration:
bLength = 9
bDescriptorType = 02
wTotalLength = 0027
bNumInterfaces = 01
bConfigurationValue = 01
iConfiguration = 00
bmAttributes = 40
MaxPower = 100mA
Interface: 0
Alternate Setting: 0
bLength = 9
bDescriptorType = 04
bInterfaceNumber = 00
bAlternateSetting = 00
bNumEndpoints = 03
bInterface Class:SubClass:Protocol = ff:ff:ff
iInterface = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 81 (in)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 02 (out)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 83 (in)
bmAttributes = 03 (Interrupt)
wMaxPacketSize = 0040
bInterval = 60
usb.c: kusbd: /sbin/hotplug add 5
hub.c: port 3, portstatus 100, change 0, 12 Mb/s
usb.c: usbdevfs driver claimed interface cf10be80
usb.c: ignoring set_interface for dev 5, iface 0, alt 0
hub.c: port 1, portstatus 103, change 0, 12 Mb/s
hub.c: port 2, portstatus 100, change 3, 12 Mb/s
hub.c: port 2 connection change
hub.c: port 2, portstatus 100, change 3, 12 Mb/s
usb.c: USB disconnect on device 00:02.1-2 address 5
usb.c: kusbd: /sbin/hotplug remove 5
hub.c: port 3, portstatus 100, change 0, 12 Mb/s
hub.c: port 1, portstatus 100, change 0, 12 Mb/s
hub.c: port 2, portstatus 100, change 0, 12 Mb/s
ehci-hub.c: GetStatus port 3 status 0x3802 OWNER POWER speed=2 CSC
hub.c: port 3, portstatus 0, change 1, 12 Mb/s
hub.c: port 3 connection change
hub.c: port 3, portstatus 0, change 1, 12 Mb/s
ehci-hub.c: GetStatus port 4 status 0x1002 POWER speed=0 CSC
hub.c: port 4, portstatus 100, change 1, 12 Mb/s
hub.c: port 4 connection change
hub.c: port 4, portstatus 100, change 1, 12 Mb/s
hub.c: port 5, portstatus 100, change 0, 12 Mb/s
hub.c: port 6, portstatus 100, change 0, 12 Mb/s
hub.c: port 1, portstatus 103, change 0, 12 Mb/s
hub.c: port 2, portstatus 100, change 2, 12 Mb/s
hub.c: port 2 enable change, status 100
hub.c: port 3, portstatus 100, change 0, 12 Mb/s
hub.c: port 1, portstatus 100, change 0, 12 Mb/s
hub.c: port 2, portstatus 100, change 0, 12 Mb/s
ehci-hub.c: GetStatus port 3 status 0x3802 OWNER POWER speed=2 CSC
hub.c: port 3, portstatus 0, change 1, 12 Mb/s
hub.c: port 3 connection change
hub.c: port 3, portstatus 0, change 1, 12 Mb/s
ehci-hub.c: GetStatus port 4 status 0x1803 POWER speed=2 CSC CONNECT
hub.c: port 4, portstatus 501, change 1, 480 Mb/s
hub.c: port 4 connection change
hub.c: port 4, portstatus 501, change 1, 480 Mb/s
hub.c: port 4, portstatus 501, change 0, 480 Mb/s
hub.c: port 4, portstatus 501, change 0, 480 Mb/s
hub.c: port 4, portstatus 501, change 0, 480 Mb/s
hub.c: port 4, portstatus 501, change 0, 480 Mb/s
hub.c: port 4, portstatus 511, change 0, 480 Mb/s
hub.c: port 4 of hub 1 not reset yet, waiting 10ms
hub.c: port 4, portstatus 511, change 0, 480 Mb/s
hub.c: port 4 of hub 1 not reset yet, waiting 10ms
hub.c: port 4, portstatus 511, change 0, 480 Mb/s
hub.c: port 4 of hub 1 not reset yet, waiting 200ms
ehci-hub.c: 00:02.2 port 4 full speed, give to companion, 0x1001
ehci-hub.c: GetStatus port 4 status 0x3001 OWNER POWER speed=0 CONNECT
hub.c: port 4, portstatus 0, change 10, 12 Mb/s
ehci-hcd.c: 00:02.2: free_config devnum 0
hub.c: port 5, portstatus 100, change 0, 12 Mb/s
hub.c: port 6, portstatus 100, change 0, 12 Mb/s
hub.c: port 1, portstatus 103, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 1, 12 Mb/s
hub.c: port 2 connection change
hub.c: port 2, portstatus 101, change 1, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 103, change 10, 12 Mb/s
hub.c: new USB device 00:02.1-2, assigned address 6
usb.c: kmalloc IF cf3eddc0, numif 1
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=0
usb.c: USB device number 6 default language ID 0x409
Manufacturer: Canon Inc.
Product: PowerShot Pro90 IS
usb.c: unhandled interfaces on device
usb.c: USB device 6 (vend/prod 0x4a9/0x3049) is not claimed by any active driver.
Length = 18
DescriptorType = 01
USB version = 1.00
Vendor:Product = 04a9:3049
MaxPacketSize0 = 32
NumConfigurations = 1
Device version = 0.01
Device Class:SubClass:Protocol = ff:ff:ff
Vendor class
Configuration:
bLength = 9
bDescriptorType = 02
wTotalLength = 0027
bNumInterfaces = 01
bConfigurationValue = 01
iConfiguration = 00
bmAttributes = 40
MaxPower = 100mA
Interface: 0
Alternate Setting: 0
bLength = 9
bDescriptorType = 04
bInterfaceNumber = 00
bAlternateSetting = 00
bNumEndpoints = 03
bInterface Class:SubClass:Protocol = ff:ff:ff
iInterface = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 81 (in)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 02 (out)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 83 (in)
bmAttributes = 03 (Interrupt)
wMaxPacketSize = 0040
bInterval = 60
usb.c: kusbd: /sbin/hotplug add 6
hub.c: port 3, portstatus 100, change 0, 12 Mb/s
hub.c: port 1, portstatus 100, change 0, 12 Mb/s
ehci-hub.c: GetStatus port 2 status 0x1803 POWER speed=2 CSC CONNECT
hub.c: port 2, portstatus 501, change 1, 480 Mb/s
hub.c: port 2 connection change
hub.c: port 2, portstatus 501, change 1, 480 Mb/s
hub.c: port 2, portstatus 501, change 0, 480 Mb/s
hub.c: port 2, portstatus 501, change 0, 480 Mb/s
hub.c: port 2, portstatus 501, change 0, 480 Mb/s
hub.c: port 2, portstatus 501, change 0, 480 Mb/s
hub.c: port 2, portstatus 511, change 0, 480 Mb/s
hub.c: port 2 of hub 1 not reset yet, waiting 10ms
hub.c: port 2, portstatus 511, change 0, 480 Mb/s
hub.c: port 2 of hub 1 not reset yet, waiting 10ms
hub.c: port 2, portstatus 511, change 0, 480 Mb/s
hub.c: port 2 of hub 1 not reset yet, waiting 200ms
ehci-hub.c: 00:02.2 port 2 full speed, give to companion, 0x1001
ehci-hub.c: GetStatus port 2 status 0x3001 OWNER POWER speed=0 CONNECT
hub.c: port 2, portstatus 0, change 10, 12 Mb/s
ehci-hcd.c: 00:02.2: free_config devnum 0
ehci-hub.c: GetStatus port 3 status 0x3802 OWNER POWER speed=2 CSC
hub.c: port 3, portstatus 0, change 1, 12 Mb/s
hub.c: port 3 connection change
hub.c: port 3, portstatus 0, change 1, 12 Mb/s
ehci-hub.c: GetStatus port 4 status 0x3802 OWNER POWER speed=2 CSC
hub.c: port 4, portstatus 0, change 1, 12 Mb/s
hub.c: port 4 connection change
hub.c: port 4, portstatus 0, change 1, 12 Mb/s
hub.c: port 5, portstatus 100, change 0, 12 Mb/s
hub.c: port 6, portstatus 100, change 0, 12 Mb/s
hub.c: port 1, portstatus 100, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 1, 12 Mb/s
hub.c: port 2 connection change
hub.c: port 2, portstatus 101, change 1, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 103, change 10, 12 Mb/s
hub.c: new USB device 00:02.0-2, assigned address 2
usb.c: kmalloc IF cf10bf00, numif 1
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=0
usb.c: USB device number 2 default language ID 0x409
Manufacturer: EPSON
Product: Perfection1200
usb.c: unhandled interfaces on device
usb.c: USB device 2 (vend/prod 0x4b8/0x104) is not claimed by any active driver.
Length = 18
DescriptorType = 01
USB version = 1.00
Vendor:Product = 04b8:0104
MaxPacketSize0 = 64
NumConfigurations = 1
Device version = 1.03
Device Class:SubClass:Protocol = ff:ff:ff
Vendor class
Configuration:
bLength = 9
bDescriptorType = 02
wTotalLength = 0020
bNumInterfaces = 01
bConfigurationValue = 01
iConfiguration = 00
bmAttributes = 40
MaxPower = 2mA
Interface: 0
Alternate Setting: 0
bLength = 9
bDescriptorType = 04
bInterfaceNumber = 00
bAlternateSetting = 00
bNumEndpoints = 02
bInterface Class:SubClass:Protocol = ff:ff:ff
iInterface = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 81 (in)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 02 (out)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
usb.c: kusbd: /sbin/hotplug add 2
hub.c: port 3, portstatus 100, change 0, 12 Mb/s
usb.c: registered new driver usbscanner
scanner.c: USB scanner device (0x04b8/0x0104) now attached to scanner0
usb.c: usbscanner driver claimed interface cf10bf00
scanner.c: 0.4.12:USB Scanner Driver
|
|
|
Back to top |
|
|
EasterParade l33t
Joined: 26 Jul 2003 Posts: 938
|
Posted: Tue Aug 12, 2003 6:32 pm Post subject: |
|
|
While looking for answers to why hotplug initiates such a lava-stream of scripts on booting I've found fixes for the remaining issues and annoyances still left on my system.
I've even made the built-in mic of the Philips ToUcam usable. The audio quality is not too high yet it is working.
But I still haven't got the slightest what's going on with hotplug and whether this will lock me out of my system one of these nice days
Any specialist of hotplug or rookie-mistakes out there
transsib |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|