[ltp] USB not detecting a device on Thinkpad

Bill Moseley linux-thinkpad@linux-thinkpad.org
Sun, 1 Jun 2008 21:53:51 -0700


I have a T60p and a desktop machine both running Hardy.

I have a USB camera and when I plug it into my desktop machine it's
mounted as a normal "mass storage" device automatically.  I see in
syslog the lines listed at the end of this email[1].

That works great.

Yet, on my Thinkpad I only see a single line when the device
is connected:

    Jun  1 19:05:08 tiger kernel: [   34.020818] usb 5-5: new high
    speed USB device using ehci_hcd and address 14

and nothing else happens.  The device is not mounted.

I was curious if the device showed up with "lsusb" -- so I ran that
and *then* the device is loaded and mounted.  Seems simply running
lsusb somehow makes the system detect the device and finish setting
up the device.

Anyone know of what would be causing this behavior?

BTW -- I can plug in a SD USB memory card and it does get mounted
automatically so it's not all devices that have this issue.


What would be helpful is if I understanding how these USB devices are
normally detected and setup -- the steps that are involved.  Seems
usb works slightly differently than I knew in the past.

Is "hotplug" no longer used?  Does the kernel use udev to setup the
devices now?

Can anyone point me to docs that explain USB so that I might be able
to debug this?  I'm looking for a "kernel runs foo, and that runs bar
with this environment, etc." kind of explanation.

Thanks,


[1] Installing the camera on the desktop where it works:

May 31 11:01:16 bumby2 kernel: [9363451.287763] usb 2-3.4: new high speed USB device using ehci_hcd and address 25
May 31 11:01:18 bumby2 kernel: [9363453.482982] usb 2-3.4: new high speed USB device using ehci_hcd and address 26
May 31 11:01:18 bumby2 kernel: [9363453.575723] usb 2-3.4: configuration #1 chosen from 1 choice
May 31 11:01:18 bumby2 kernel: [9363453.575966] scsi18 : SCSI emulation for USB Mass Storage devices
May 31 11:01:18 bumby2 kernel: [9363453.576001] usb-storage: device found at 26
May 31 11:01:18 bumby2 kernel: [9363453.576003] usb-storage: waiting for device to settle before scanning
May 31 11:01:18 bumby2 NetworkManager: <debug> [1212256878.600696] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_167b_2002_PS5000010'). 
May 31 11:01:18 bumby2 NetworkManager: <debug> [1212256878.762649] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_167b_2002_PS5000010_if0'). 
May 31 11:01:18 bumby2 NetworkManager: <debug> [1212256878.787675] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_167b_2002_PS5000010_usbraw'). 
May 31 11:01:23 bumby2 kernel: [9363458.564044] usb-storage: device scan complete
May 31 11:01:23 bumby2 kernel: [9363458.568289] scsi 18:0:0:0: Direct-Access     PDT      Camcorder             PQ: 0 ANSI: 0 CCS
May 31 11:01:23 bumby2 kernel: [9363458.569646] sd 18:0:0:0: [sdc] 1019136 512-byte hardware sectors (522 MB)
May 31 11:01:23 bumby2 kernel: [9363458.570392] sd 18:0:0:0: [sdc] Write Protect is off
May 31 11:01:23 bumby2 kernel: [9363458.570394] sd 18:0:0:0: [sdc] Mode Sense: 00 06 00 00
May 31 11:01:23 bumby2 kernel: [9363458.570396] sd 18:0:0:0: [sdc] Assuming drive cache: write through
May 31 11:01:23 bumby2 kernel: [9363458.571638] sd 18:0:0:0: [sdc] 1019136 512-byte hardware sectors (522 MB)
May 31 11:01:23 bumby2 kernel: [9363458.572384] sd 18:0:0:0: [sdc] Write Protect is off
May 31 11:01:23 bumby2 kernel: [9363458.572387] sd 18:0:0:0: [sdc] Mode Sense: 00 06 00 00
May 31 11:01:23 bumby2 kernel: [9363458.572389] sd 18:0:0:0: [sdc] Assuming drive cache: write through
May 31 11:01:23 bumby2 kernel: [9363458.572391]  sdc: sdc1
May 31 11:01:23 bumby2 kernel: [9363458.575052] sd 18:0:0:0: [sdc] Attached SCSI disk
May 31 11:01:23 bumby2 kernel: [9363458.575085] sd 18:0:0:0: Attached scsi generic sg3 type 0
May 31 11:01:23 bumby2 NetworkManager: <debug> [1212256883.666278] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_167b_2002_PS5000010_if0_scsi_host'). 
May 31 11:01:23 bumby2 NetworkManager: <debug> [1212256883.668467] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_167b_2002_PS5000010_if0_scsi_host_scsi_device_lun0'). 
May 31 11:01:23 bumby2 NetworkManager: <debug> [1212256883.672529] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_167b_2002_PS5000010_if0_scsi_host_scsi_device_lun0_scsi_generic'). 
May 31 11:01:23 bumby2 NetworkManager: <debug> [1212256883.791034] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/storage_serial_Pure_Digital_Inc__Pure_Digital_Camcorder_PS5000010'). 
May 31 11:01:23 bumby2 NetworkManager: <debug> [1212256883.879098] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/volume_label_POINT_SHOOT'). 
May 31 11:01:23 bumby2 hald: mounted /dev/sdc1 on behalf of uid 1000




-- 
Bill Moseley
moseley@hank.org