I have a PS/2 mouse, a PS/2 to USB adapter, and a USB port on my Dell Inspiron 1100 laptop. The adapter has trouble initializing, whether I have it plugged in at boot time or I plug it in later. Sometimes it initializes okay, but usually it doesn't. That means that I have to keep unplugging it and plugging it back in until it initializes. Sometimes it just works; sometimes it works after a few plugs, but sometimes after plugging it in a few dozen times I give up. Once it is initialized, it works fine until I shut down. Also, once it works, I can unplug it and plug it back in, and it will initialize properly each time from then on.
/var/log/syslog contains the following each time I boot or plug it in and it does not initialize:
Code:
Aug 3 10:26:05 corkscrew kernel: [ 212.188063] usb 1-1: new low speed USB device using uhci_hcd and address 10
Aug 3 10:26:05 corkscrew kernel: [ 212.312046] usb 1-1: device descriptor read/64, error -71
Aug 3 10:26:06 corkscrew kernel: [ 212.540052] usb 1-1: device descriptor read/64, error -71
Aug 3 10:26:06 corkscrew kernel: [ 212.756052] usb 1-1: new low speed USB device using uhci_hcd and address 11
Aug 3 10:26:06 corkscrew kernel: [ 212.876045] usb 1-1: device descriptor read/64, error -71
Aug 3 10:26:06 corkscrew kernel: [ 213.100044] usb 1-1: device descriptor read/64, error -71
Aug 3 10:26:06 corkscrew kernel: [ 213.316052] usb 1-1: new low speed USB device using uhci_hcd and address 12
Aug 3 10:26:07 corkscrew kernel: [ 213.724041] usb 1-1: device not accepting address 12, error -71
Aug 3 10:26:07 corkscrew kernel: [ 213.848951] usb 1-1: new low speed USB device using uhci_hcd and address 13
Aug 3 10:26:07 corkscrew kernel: [ 214.260044] usb 1-1: device not accepting address 13, error -71
Aug 3 10:26:07 corkscrew kernel: [ 214.260083] hub 1-0:1.0: unable to enumerate USB device on port 1
/var/log/syslog contains the following each time I plug it in and it DOES initialize and start working:
Code:
Aug 11 09:43:28 corkscrew kernel: [ 417.308059] usb 2-1: new low speed USB device using uhci_hcd and address 50
Aug 11 09:43:29 corkscrew kernel: [ 417.480136] usb 2-1: configuration #1 chosen from 1 choice
Aug 11 09:43:29 corkscrew kernel: [ 417.492702] usb 2-1: New USB device found, idVendor=13ba, idProduct=0017
Aug 11 09:43:29 corkscrew kernel: [ 417.492719] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Aug 11 09:43:29 corkscrew kernel: [ 417.492724] usb 2-1: Product: Generic USB K/B
Aug 11 09:43:29 corkscrew NetworkManager: <debug> [1281534209.182051] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial').
Aug 11 09:43:29 corkscrew kernel: [ 417.727035] usbcore: registered new interface driver hiddev
Aug 11 09:43:29 corkscrew kernel: [ 417.741920] input: Generic USB K/B as /class/input/input9
Aug 11 09:43:29 corkscrew kernel: [ 417.744157] input,hidraw0: USB HID v1.10 Keyboard [Generic USB K/B] on usb-0000:00:1d.1-1
Aug 11 09:43:29 corkscrew kernel: [ 417.761061] input: Generic USB K/B as /class/input/input10
Aug 11 09:43:29 corkscrew kernel: [ 417.762722] input,hidraw1: USB HID v1.10 Mouse [Generic USB K/B] on usb-0000:00:1d.1-1
Aug 11 09:43:29 corkscrew kernel: [ 417.762780] usbcore: registered new interface driver usbhid
Aug 11 09:43:29 corkscrew kernel: [ 417.762789] usbhid: v2.6:USB HID core driver
Aug 11 09:43:29 corkscrew NetworkManager: <debug> [1281534209.489390] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if0').
Aug 11 09:43:29 corkscrew NetworkManager: <debug> [1281534209.696054] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if1').
Aug 11 09:43:29 corkscrew NetworkManager: <debug> [1281534209.716573] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_usbraw').
Aug 11 09:43:29 corkscrew NetworkManager: <debug> [1281534209.827578] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if0_logicaldev_input').
Aug 11 09:43:29 corkscrew NetworkManager: <debug> [1281534209.835714] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if1_logicaldev_input').
Actually, most of the time when it does initialize, it does so in two stages. After the first stage, the mouse does not yet work. Then if I unplug it and plug it back in, it will fully initialize and the mouse will work. Here is /var/log/syslog for this scenario, in three parts:
Part 1:
Code:
Aug 3 10:26:26 corkscrew kernel: [ 232.745562] usb 1-1: new low speed USB device using uhci_hcd and address 18
Aug 3 10:26:26 corkscrew kernel: [ 232.868056] usb 1-1: device descriptor read/64, error -71
Aug 3 10:26:26 corkscrew kernel: [ 233.096046] usb 1-1: device descriptor read/64, error -71
Aug 3 10:26:26 corkscrew kernel: [ 233.312051] usb 1-1: new low speed USB device using uhci_hcd and address 19
Aug 3 10:26:27 corkscrew kernel: [ 233.432574] usb 1-1: device descriptor read/64, error -71
Aug 3 10:26:27 corkscrew kernel: [ 233.656045] usb 1-1: device descriptor read/64, error -71
Aug 3 10:26:27 corkscrew kernel: [ 233.872045] usb 1-1: new low speed USB device using uhci_hcd and address 20
Aug 3 10:26:27 corkscrew kernel: [ 234.124014] usb 1-1: configuration #1 chosen from 1 choice
Aug 3 10:26:27 corkscrew kernel: [ 234.141161] usb 1-1: New USB device found, idVendor=13ba, idProduct=0017
Aug 3 10:26:27 corkscrew kernel: [ 234.141179] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Aug 3 10:26:27 corkscrew kernel: [ 234.141184] usb 1-1: Product: Generic USB K/B
Aug 3 10:26:27 corkscrew NetworkManager: <debug> [1280845587.803305] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13b
a_17_noserial').
Aug 3 10:26:28 corkscrew kernel: [ 234.383563] usbcore: registered new interface driver hiddev
Aug 3 10:26:28 corkscrew kernel: [ 234.397670] input: Generic USB K/B as /class/input/input9
Aug 3 10:26:28 corkscrew kernel: [ 234.397671] input,hidraw0: USB HID v1.10 Keyboard [Generic USB K/B] on usb-0000:00:1d.0-1
Aug 3 10:26:28 corkscrew kernel: [ 234.417137] input: Generic USB K/B as /class/input/input10
Aug 3 10:26:28 corkscrew kernel: [ 234.418865] input,hidraw1: USB HID v1.10 Mouse [Generic USB K/B] on usb-0000:00:1d.0-1
Aug 3 10:26:28 corkscrew kernel: [ 234.418915] usbcore: registered new interface driver usbhid
Aug 3 10:26:28 corkscrew kernel: [ 234.418924] usbhid: v2.6:USB HID core driver
Aug 3 10:26:28 corkscrew NetworkManager: <debug> [1280845588.129587] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if0').
Aug 3 10:26:28 corkscrew NetworkManager: <debug> [1280845588.306108] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if1').
Aug 3 10:26:28 corkscrew NetworkManager: <debug> [1280845588.333950] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_usbraw').
Aug 3 10:26:28 corkscrew NetworkManager: <debug> [1280845588.502571] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if0_logicaldev_input').
Aug 3 10:26:28 corkscrew NetworkManager: <debug> [1280845588.510829] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if1_logicaldev_input').
Part 2: Then, because the mouse was not working yet, I unplugged it, yielding:
Code:
Aug 3 10:26:48 corkscrew kernel: [ 254.600079] usb 1-1: USB disconnect, address 20
Aug 3 10:26:48 corkscrew NetworkManager: <debug> [1280845608.246813] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if0_logicaldev_input').
Aug 3 10:26:48 corkscrew NetworkManager: <debug> [1280845608.260246] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if0').
Aug 3 10:26:48 corkscrew NetworkManager: <debug> [1280845608.277406] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if1_logicaldev_input').
Aug 3 10:26:48 corkscrew NetworkManager: <debug> [1280845608.290592] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if1').
Aug 3 10:26:48 corkscrew NetworkManager: <debug> [1280845608.300748] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_usbraw').
Aug 3 10:26:48 corkscrew NetworkManager: <debug> [1280845608.307873] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial').
Part 3: Then I plugged it in again:
Code:
Aug 3 10:26:55 corkscrew kernel: [ 261.904044] usb 2-1: new low speed USB device using uhci_hcd and address 14
Aug 3 10:26:55 corkscrew kernel: [ 262.076142] usb 2-1: configuration #1 chosen from 1 choice
Aug 3 10:26:55 corkscrew kernel: [ 262.101920] input: Generic USB K/B as /class/input/input11
Aug 3 10:26:55 corkscrew NetworkManager: <debug> [1280845615.741980] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial').
Aug 3 10:26:55 corkscrew kernel: [ 262.124213] input,hidraw0: USB HID v1.10 Keyboard [Generic USB K/B] on usb-0000:00:1d.1-1
Aug 3 10:26:55 corkscrew kernel: [ 262.141427] input: Generic USB K/B as /class/input/input12
Aug 3 10:26:55 corkscrew kernel: [ 262.180189] input,hidraw1: USB HID v1.10 Mouse [Generic USB K/B] on usb-0000:00:1d.1-1
Aug 3 10:26:55 corkscrew kernel: [ 262.180398] usb 2-1: New USB device found, idVendor=13ba, idProduct=0017
Aug 3 10:26:55 corkscrew kernel: [ 262.180403] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Aug 3 10:26:55 corkscrew kernel: [ 262.180408] usb 2-1: Product: Generic USB K/B
Aug 3 10:26:56 corkscrew NetworkManager: <debug> [1280845616.034678] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if0').
Aug 3 10:26:56 corkscrew NetworkManager: <debug> [1280845616.252022] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if1').
Aug 3 10:26:56 corkscrew NetworkManager: <debug> [1280845616.291162] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_usbraw').
Aug 3 10:26:56 corkscrew NetworkManager: <debug> [1280845616.298553] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if0_logicaldev_input').
Aug 3 10:26:56 corkscrew NetworkManager: <debug> [1280845616.318829] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13ba_17_noserial_if1_logicaldev_input').
(Note on the port numbering in part 3, above: I have two USB ports, and in the scenario logged here I plugged it into a different port than I unplugged it from, but experience has shown that that makes no difference. More to the point, the adapter already partially initialized, in part 1. Whenever that happens, it always fully initializes the next time I plug it in. The hard part is achieving ANY initialization in the first place.)
lsusb shows nothing when the adapter fails initialization:
Code:
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Running Debian Lenny with kernel 2.6.26-2-686
Is this squirrely behavior simply the nature of PS/2-to-USB adapters? What can I do to make it more reliable? Thanks for any help.