[Karmic] USB Hotplugging Doesn't Work

Bug #445129 reported by Jonathan Reeve
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

Karmic never recognizes any USB device I plug in after boot. That means, if I have my USB mouse plugged in at boot, it will work, but if I unplug it and plug it back in, it won't work. Same with flash drives and my USB printer. Dmesg doesn't show anything, and there's no system log (that I know of) that registers anything about this.

I don't have this problem with the live CD for some reason.

I've tried reinstalling Karmic a few different times, using slightly different configurations each time, but nothing seems to work.

I tried unplugging and re-plugging my mouse a few times during boot to see what happens, and I discovered that hotplugging stops working about halfway through the boot process, before the login screen. So I don't think it has anything to do with permissions, because this all happens before I log in.

ProblemType: Bug
Architecture: i386
Date: Tue Oct 6 23:57:52 2009
DistroRelease: Ubuntu 9.10
MachineType: MICRO-STAR INTERNATIONAL CO., LTD U-100
Package: udev 147~-5
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-11-generic root=UUID=b307c1ad-de1e-4022-8c11-93ac487303ec ro quiet splash
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: udev
Uname: Linux 2.6.31-11-generic i686
dmi.bios.date: 10/06/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.3
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: U-100
dmi.board.vendor: MICRO-STAR INTERNATIONAL CO., LTD
dmi.board.version: Ver.001
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: MICRO-STAR INTERNATIONAL CO., LTD
dmi.chassis.version: Ver.001
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.3:bd10/06/2008:svnMICRO-STARINTERNATIONALCO.,LTD:pnU-100:pvrVer.001:rvnMICRO-STARINTERNATIONALCO.,LTD:rnU-100:rvrVer.001:cvnMICRO-STARINTERNATIONALCO.,LTD:ct3:cvrVer.001:
dmi.product.name: U-100
dmi.product.version: Ver.001
dmi.sys.vendor: MICRO-STAR INTERNATIONAL CO., LTD

Revision history for this message
Jonathan Reeve (jon-reeve) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:

apport-collect 445129

This will help us to find and resolve the problem. Bear in mind that you may need to install the python-launchpadlib package from the universe repository. Thanks in advance!

affects: ubuntu → linux (Ubuntu)
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jonathan Reeve (jon-reeve) wrote :

I tried running apport-collect 445129 but I think I gave it the wrong permissions, and now I'm getting this error:

:~$ apport-collect 445129
Logging into Launchpad... You have to allow "Change anything" privileges.
Downloading bug information...
Traceback (most recent call last):
  File "/usr/bin/apport-collect", line 106, in <module>
    bug = crashdb.launchpad.bugs[int(bug_number)]
  File "/usr/lib/python2.6/dist-packages/apport/crashdb_impl/launchpad.py", line 101, in launchpad
    self.__lpcache)
  File "/usr/lib/python2.6/dist-packages/launchpadlib/launchpad.py", line 95, in __init__
    credentials, service_root, cache, timeout, proxy_info)
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/resource.py", line 379, in __init__
    self._wadl = self._browser.get_wadl_application(self._root_uri)
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/_browser.py", line 222, in get_wadl_application
    url, media_type='application/vd.sun.wadl+xml')
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/_browser.py", line 204, in _request
    raise HTTPError(response, content)
lazr.restfulclient.errors.HTTPError: HTTP Error 401: Unauthorized
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 100, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL), 'w')
OSError: [Errno 13] Permission denied: '/var/crash/_usr_bin_apport-collect.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/apport-collect", line 106, in <module>
    bug = crashdb.launchpad.bugs[int(bug_number)]
  File "/usr/lib/python2.6/dist-packages/apport/crashdb_impl/launchpad.py", line 101, in launchpad
    self.__lpcache)
  File "/usr/lib/python2.6/dist-packages/launchpadlib/launchpad.py", line 95, in __init__
    credentials, service_root, cache, timeout, proxy_info)
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/resource.py", line 379, in __init__
    self._wadl = self._browser.get_wadl_application(self._root_uri)
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/_browser.py", line 222, in get_wadl_application
    url, media_type='application/vd.sun.wadl+xml')
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/_browser.py", line 204, in _request
    raise HTTPError(response, content)
lazr.restfulclient.errors.HTTPError: HTTP Error 401: Unauthorized

Revision history for this message
Beni Cherniavsky (cben) wrote : apport-collect data

AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC1200 Analog [ALC1200 Analog]
   Subdevices: 0/1
   Subdevice #0: subdevice #0
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: beni 2115 F.... pulseaudio
 /dev/snd/pcmC0D0p: beni 2115 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xffe00000 irq 16'
   Mixer name : 'Realtek ALC1200'
   Components : 'HDA:10ec0888,14620110,00100101'
   Controls : 21
   Simple ctrls : 13
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=UUID=c74af273-da43-4bc9-89d8-483b331413ca
MachineType: MICRO-STAR INTERNATIONAL CO., LTD U-100
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-14-generic root=UUID=e504864a-886a-4364-9c22-df8ce1944e03 ro nomodeset quiet splash nomodeset
ProcEnviron:
 LC_NUMERIC=en_US.UTF-8
 LANGUAGE=en_US.UTF-8
 LANG=en_US.UTF-8
 SHELL=/usr/bin/fish
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
RelatedPackageVersions:
 linux-backports-modules-2.6.31-14-generic N/A
 linux-firmware 1.24
RfKill:

Tags: ubuntu-unr
Uname: Linux 2.6.31-14-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare sudo
WifiSyslog:

WpaSupplicantLog:

dmi.bios.date: 07/16/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.3
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: U-100
dmi.board.vendor: MICRO-STAR INTERNATIONAL CO., LTD
dmi.board.version: Ver.001
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: MICRO-STAR INTERNATIONAL CO., LTD
dmi.chassis.version: Ver.001
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.3:bd07/16/2008:svnMICRO-STARINTERNATIONALCO.,LTD:pnU-100:pvrVer.001:rvnMICRO-STARINTERNATIONALCO.,LTD:rnU-100:rvrVer.001:cvnMICRO-STARINTERNATIONALCO.,LTD:ct3:cvrVer.001:
dmi.product.name: U-100
dmi.product.version: Ver.001
dmi.sys.vendor: MICRO-STAR INTERNATIONAL CO., LTD

Revision history for this message
Beni Cherniavsky (cben) wrote : AlsaDevices.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : ArecordDevices.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : BootDmesg.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : Card0.Amixer.values.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : Card0.Codecs.codec.0.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : CurrentDmesg.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : IwConfig.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : Lspci.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : Lsusb.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : PciMultimedia.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : ProcCpuinfo.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : ProcInterrupts.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : ProcModules.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : UdevDb.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : UdevLog.txt
Revision history for this message
Beni Cherniavsky (cben) wrote : XsessionErrors.txt
Changed in linux (Ubuntu):
status: Incomplete → New
tags: added: apport-collected
Revision history for this message
Beni Cherniavsky (cben) wrote :

From karmic ~beta6, some USBs worked on plugging, some didn't.
Now (stable up-to-date karmic), nothing seems to work.
I tried now to (re)connect:
* Two disk-on-keys - didn't even appear in dmesg or lsusb.
* Disconnected and reconnected an external mouse (SIGMACH1P U+P) - nothing (or only disconnect?) in dmesg, didn't re-appear in lsusb.
* Disconnected and reconnected an external keyboard (KEYBOARD USB KB) - disconnect noted in dmesg and Xorg.0.log; nothing on connect, didn't re-appear in lsusb.
* Tried netbook's Fn shortcuts to toggle webcam off and on (it sits on internal USB) - nothing in dmesg (except unrecognized scancodes, but these messages also appeared when the shortcuts did work in intrepid), webcam stayed listed in lsusb the whole time.

Attaching lsusb -v, dmesg, Xord.0.log after the experiments.

Revision history for this message
Beni Cherniavsky (cben) wrote :

intresting:

> sudo lsusb -v > sudo_lsusb_-v.txt
can't get device qualifier: Cannot send after transport endpoint shutdown
can't get debug descriptor: Cannot send after transport endpoint shutdown
cannot read device status, Cannot send after transport endpoint shutdown (108)
can't get hub descriptor: Cannot send after transport endpoint shutdown
can't get device qualifier: Cannot send after transport endpoint shutdown
can't get debug descriptor: Cannot send after transport endpoint shutdown
cannot read device status, Cannot send after transport endpoint shutdown (108)

there is also stuff in dmesg now (next attachment) about the failures of lsusb.

Revision history for this message
Beni Cherniavsky (cben) wrote :
Revision history for this message
Beni Cherniavsky (cben) wrote :
Revision history for this message
X-Stranger (xstranger) wrote :

The same to me. HP Mini 2140 with Karmic installed doesn't attach USB mouse after boot.

Revision history for this message
Jesse Hallett (hallettj) wrote :

This may be a duplicate of #455408.

Revision history for this message
Beni Cherniavsky (cben) wrote :

Thanks Jesse!
The behaviour I see is exactly as described in bug #435352 (of which #455408 is a duplicate).
The fix described there of blacklisting uvcvideo worked!
No webcam (which didn't work anyway in karmic) but USB hotplugging works (mouse, kbd, disk-on-key)!

Jonathan, I see you also have MSI U100 - the fix very probably will work for you too.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.