USB devices not detected when hotplugged

Bug #564459 reported by Ric Flomag
90
This bug affects 19 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Lucid by Ric Flomag

Bug Description

Steps to reproduce:
* boot with usb device unplugged (mouse, usb stick, external hd)
* plug the usb device

Observed: device not detected (usb stick or hd not mounted, mouse doesn't work).
Expected: device ready to use.

NOTE: vanilla kernel linux-image-2.6.32-02063211-generic_2.6.32-02063211_amd64 does behave normally: hotplugged devices work as expected.
NOTE: usb devices work as expected if plugged before booting.
NOTE: this bug affects karmic kernels too. I'm not sure if it is an update regression.
NOTE: I can confirm this bug on two different acer laptops (the Aspire 1520 used to report it, and an Aspire 4520)
NOTE: This bug supersedes bug #425755: the original report is the same as bug #435352 (fixed), but most of the comments seem to confirm this present report.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-21-generic 2.6.32-21.31
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-21.31-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic x86_64
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: comace 1199 F.... pulseaudio
CRDA: Error: [Errno 2] Aucun fichier ou dossier de ce type
Card0.Amixer.info:
 Card hw:0 'V8235'/'VIA 8235 with VIA1612A at 0x1400, irq 22'
   Mixer name : 'VIA Technologies VIA1612A'
   Components : 'AC97a:56494161'
   Controls : 38
   Simple ctrls : 23
Card1.Amixer.info:
 Card hw:1 'modem'/'VIA 82XX modem at 0x1800, irq 22'
   Mixer name : 'Silicon Laboratory Si3036,8 rev 7'
   Components : 'AC97m:53494c27'
   Controls : 3
   Simple ctrls : 3
Card1.Codecs.codec97.0.mc97.1.1:
 1-1/0: Silicon Laboratory Si3036,8 rev 7

 Extended modem ID: codec=1 LIN1
 Modem status : GPIO MREF ADC1 DAC1 PRE(ADC2) PRF(DAC2) PRG(HADC) PRH(HDAC)
 Line1 rate : 8000Hz
Date: Fri Apr 16 08:45:48 2010
GvfsMonitorLog: Monitoring events. Press Ctrl+C to quit.
HibernationDevice: RESUME=UUID=7b535c24-0d8a-4e4e-8bd2-957c27edb5d6
HotplugNewDevices:

HotplugNewMounts:

InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100308)
MachineType: Acer Aspire 1520
PccardctlIdent:
 Socket 0:
   no product info available
 Socket 1:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
 Socket 1:
   no card
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-21-generic root=UUID=0cc1e3aa-8232-4e62-99dc-a251a7d0494d ro quiet splash
ProcEnviron:
 LANG=fr_FR.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.34
RfKill:

SourcePackage: linux
Symptom: storage
UdisksMonitorLog: Monitoring activity from the disks daemon. Press Ctrl+C to cancel.
dmi.bios.date: 10/26/2004
dmi.bios.vendor: Phoenix
dmi.bios.version: V1.09
dmi.board.name: Aspire 1520
dmi.board.vendor: Acer
dmi.board.version: Rev.A
dmi.chassis.type: 1
dmi.chassis.vendor: N/A
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenix:bvrV1.09:bd10/26/2004:svnAcer:pnAspire1520:pvr-1:rvnAcer:rnAspire1520:rvrRev.A:cvnN/A:ct1:cvrN/A:
dmi.product.name: Aspire 1520
dmi.product.version: -1
dmi.sys.vendor: Acer

Revision history for this message
Ric Flomag (ricflomag) wrote :
Revision history for this message
frenchy82 (cartes) wrote :

I think i have the same problem with a fresh install from Beta 2
It was working with beta 2 and after some updates it stops to work

All my keys are reconize and concerned by this issue

lsusb

Bus 002 Device 007: ID 0cde:0008 Z-Com Sitecom Wireless Network Adapter 100G+ WL-125
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 054c:008b Sony Corp. Micro Vault 64M Mass Storage
Bus 001 Device 006: ID 054c:0105 Sony Corp. Micro Vault Hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

dmesg

[11299.000275] usb 1-1: new full speed USB device using uhci_hcd and address 6
[11299.176771] usb 1-1: configuration #1 chosen from 1 choice
[11299.178517] hub 1-1:1.0: USB hub found
[11299.180368] hub 1-1:1.0: 1 port detected
[11299.454212] usb 1-1.1: new full speed USB device using uhci_hcd and address 7
[11299.591591] usb 1-1.1: configuration #1 chosen from 1 choice

It only works when they are plugged before booting

Ric Flomag (ricflomag)
tags: removed: needs-upstream-testing
Revision history for this message
frenchy82 (cartes) wrote :

@Ric : do you still have this issue?

The only workaround for me is that once the usb key is plugged is to write the command

sudo modprobe usb-storage

And then all the keys are mounted with no problem during all the session
(sorry for my english)

Revision history for this message
Ric Flomag (ricflomag) wrote :

Reloading usb-storage is a workaround indeed, though only for my usb hard drives and sticks, not for my usb mouse.

Revision history for this message
DannyBiker (dannybiker) wrote :

Same problem.

Ric Flomag (ricflomag)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
frenchy82 (cartes) wrote :

adding usb-storage at the end of the file /etc/modules for me solve the problem of the hotplugged usb key

I kwnow that this not the best/good solution but maybe it could hep

Revision history for this message
Paul Kerrigan (k-launchpad-infosectech-com) wrote :

Problem also occurs with Huawei USB 3G dongle (e169, reported by lsusb as E620)

Worked normally in Jaunty, Karmic and beta 2 of Lucid Lynx (upgraded from Karmic) until some point after lucid lynx beta 3, can't pinpoint exact date of break.

Workaround is to boot with dongle in place.

Small variation from overall bug:
1. other USB devices (storage, mouse) work when hotplugged
2. Huawei's 'pseudo CD-Rom' aspect of the dongle works too when hotplugged - it's only the modem part that requires presence at startup.

If I can test anything that might fix or assist in troubleshooting, would be happy to do so.

all the best

Revision history for this message
Thespian (jesse-mundis) wrote :

I just did a network direct upgrade from 8.04 (Heron) to 10.04 (Lynx). Everything else seems to work so far, but I seem to have been bitten by this bug, or something very close to it. Plugging in my Western Digital USB 1TB MyBook drive (formatted with two ext3 partiitons and one NTFS partition) nothing happens. In hardy 8.04 these would auto-mount as /media/disk /media/disk-1 and /media/<label of NTFS volume>. Now, nothing. Nothing shows up in lsusb when I hot plug the MyBook in.

The drive powers on, and spins up, and /var/log/messages shows:

May 13 21:15:35 laptop kernel: [17320.732043] usb 5-1: new full speed USB device using uhci_hcd and address 3
May 13 21:15:36 laptop kernel: [17321.300038] usb 5-1: new full speed USB device using uhci_hcd and address 4
May 13 21:15:36 laptop kernel: [17321.865314] usb 5-1: new full speed USB device using uhci_hcd and address 5

but nothing else seems to be aware of the drive. It doesn't show up in Nautalis

Searching the forums, there were other similar symptoms people reported going away by disabling any floppy drive controller in the BIOS. I'm going to try that next, as the above suggestion of trying:

sudo modprobe usb-storage

didn't work for me.

This is on an HP laptop, model "Compaq 8710p"

Revision history for this message
Thespian (jesse-mundis) wrote :

Adding one more note. The other fixes mentioned in other threads also didn't work for me. Including them here in case this symptom has multiple causes, and they may be of use to others watching this bug.

One was to disable floppy controller in bios (done, no effect) and the other was to have only "hal" and "pmount" packages installed, and _not_ "usbmount" (supposedly 'usbmount' was causing some sort of conflict). I had only "hal" installed, so tried adding "pmount" and still no luck.

I'm not even seeing the device show up under /dev when I plug the book in, so can't see an easy way to mount it at all. Going to try one more reboot, this time with the USB device plugged in before booting (cold boot) which some other reports seem to say still works. If that does, at least I'll have a way to get to my data.

Revision history for this message
Mike (shopform) wrote :

Just wanted to add a "me, too" for thumb drives (multiple brands / sizes), but also to add that I have the same behaviour on a logitech usb microphone, as well as a logitech usb webcam.
Both will show up if I do "lsusb" after hot-plugging.
The straight-up microphone will only work if I have it plugged in at power-up.
If I hot-plug the webcam, "cheese" will be able to find / use it, but "camorama" (as well as any flash apps) won't recognize it unless I have it plugged in at power-up.

FWIW:
Ubuntu 10.04 (Lucid)
Gnome 2.30.0 (Ubuntu 2010-03-31)
Kernel 2.6.32-22-generic
Dell Inspiron B120
Celron-M 1.40 GHz
2 GB RAM
USB Controller = Intel 82801FB/FBM/FR/FW/FRW (ICH6 Family)

Revision history for this message
Ric Flomag (ricflomag) wrote :

Workaround for usb mice: remove and reload the usbhid kernel module:

$ sudo rmmod usbhid
$ sudo modprobe usbhid

Revision history for this message
frenchy82 (cartes) wrote :

If you add usbhid in /etc/modules it should be ok

I had to add btusb in the same file for my bluetooth key

So my modules file is

************************************

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

lp
usb-storage
btusb
usbhid

Revision history for this message
DannyBiker (dannybiker) wrote :

Bug is fixed for me.

Changed in linux (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
tags: added: kernel-input kernel-needs-review
Revision history for this message
Chase Douglas (chasedouglas) wrote :

It would be helpful if someone could try the latest mainline kernel available at:

http://kernel.ubuntu.com/~kernel-ppa/mainline/

Thanks!

tags: added: kernel-candidate kernel-reviewed
removed: kernel-needs-review
tags: removed: kernel-candidate
Revision history for this message
Ric Flomag (ricflomag) wrote :

Hi Chase,

As you suggest is comment #14, I've just tried v2.6.35-rc1-lucid and the daily/current kernel (2.6.35-999.201006151505).

Both work as expected, usb devices are ready to use when hotplugged, just as the 2.6.32-02063211 that I tested when reporting this bug.

Hopefully this can be fixed in a lucid update.

Revision history for this message
frenchy82 (cartes) wrote :

hi,

with linux 2.6.32-0206321505, it's working for me too

(i tried with the 2.6.32-23.37 version in the proposed, and it(s not working)

Revision history for this message
Atul (atulkakrana) wrote :

Hello,

I have same problem but mu USB devices mount after I LOGOUT and LOGIN . Strange! Can anybody suggest me a fix?

Revision history for this message
Pablo Saavedra (pablo-a-saavedra) wrote :

Adding usbhid to /etc/modules fixes the issue for me in Karmic.

Thanks.

Revision history for this message
Matt Haynie (ibemad) wrote :

This also happens on 10.10 beta as of 9/29/10. USB drives work fine, peripherals like mice, keyboards, scanners etc don't work unless I boot with them.

Revision history for this message
Tomasz Konefal (twkonefal) wrote :

I had this issue also. In my case, there was a glitch at some point during a fresh installation. Even though the root drive on my laptop /dev/sdaX was where / and swap were set up, the fstab file listed the / partition as mounted on /dev/sdb1. i have no idea how the system managed to boot with this incorrect configuration. the fix for me was to use "sudo blkid" to get the UUID of the / partition and then used that to correct the fstab file to mount the correct partition (/dev/sda1) to /.

i discovered this when trying to mount a flash drive (which was detected) using gnome's Disk Utility from the System|Administration menu. I had an error when trying to mount the flash drive partition from there that said there was a helper failure claiming /dev/sda1 was already mounted at /.

Revision history for this message
nanoktom (thomas-pfister) wrote :

I have the same problems as explained above. No USB device works unless it is plugged in before the computer boots. Devices tested are, memory sticks (Kingston, JetFlash) DVB-T stick Pinnacle, USB harddrives (Western Digital), Mouse.

I am running a clean install of maverick on an Acer Aspire 1520 laptop with the latest BIOS (1.15) and all Ubuntu updates installed.

There is a Windows XP installation on the same laptop which doesn't show this behaviour.

I have tried some of the workarounds mentioned above and some of them work well enough, but I think a real fix would be a lot more helpful.

Revision history for this message
phil smart (phil-jjct) wrote :

I also have this problem on 10.10 amd 64 Usb drives are not seen when plugged in. if I run Dolphin as a user not Root or sudo the Usb drive is seen. If I mount it from Dolphin and then exit dolphin I can see it on the desktop and Nautilus also sees it. Nautilus will un-mount it but can not see it if replugged.

This problem has arisen in the last month.
Also related when I click on "places" " home" I get Dolphin but if I click "places" then " computer" I get Nautilus

Phil

Revision history for this message
Con Dean (con-dean) wrote :

Just a newbie here guys. But I was having this problems and went into System - Administration - Disk Utility and turned the power off to the drive and then remounted. it worked. don't ask me why!!! :-) Hope this helps someone. Love Linux and happy to be away from the soul numbing having to be an automaton Windows systems.

tags: removed: regression-potential
Revision history for this message
Prx (info-productivix) wrote :

On Oneiric 11.10 , Gnome 3.2.1 SINCE kernel 3.0.0.26: regression. USB key mounted and readable but with root rights, so unable to umount or suppress any file.
Solution : uninstall "usbmount" package.

Revision history for this message
penalvch (penalvch) wrote :

Ric Flomag, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the daily kernel folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.11.1

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

Changed in linux (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Ric Flomag (ricflomag) wrote :

As far as I remember, this bug must have been fixed some time ago, as the problem did not persist on the acer 1520 before I gave it away...

Marking as fixed. Please update otherwise if needed.

Changed in linux (Ubuntu):
status: Incomplete → Fix Released
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.