After Natty Resume, both USB Keyboard and Mouse stop working

Bug #800110 reported by Cefn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xserver-xorg-input-evdev (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-input-evdev

This is a new bug since a clean install of Ubuntu Natty. It is a regression since I didn't encounter this behaviour with any previous version of Ubuntu.

On first boot, plugging in a USB keyboard and mouse directly to the USB ports means they function well. However, after suspending and resuming, the mouse and keyboard no longer send events to X. That continues even after unplugging and replugging them into the same ports or different ports or the hub. The only solution seems to be to reboot the system to get back the use of external input devices.

WORKAROUNDS

Is there any way to force the reloading of device drivers or the USB subsystem manually to get my devices back and prove that there is a proper resume process which Natty is failing to trigger.

OTHER INFORMATION

I note two problems which apply even on the first boot but they are relatively minor. Periodically the mouse pointer stops moving for a second - this may be a resource starvation issue somewhere else in the system. Also I seem to be unable to use a USB hub to connect the keyboard and mouse which I have used successfully across about four major versions of Ubuntu. However, this could also be a failure of the hub so I'm leaving that for now. On the most recent occasion I encountered this, there was a Kindle plugged in to charge over USB, but removing it or replacing it after resume seems to have no effect on the functioning of the keyboard and mouse, so I guess this is unrelated.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: xserver-xorg-input-evdev 1:2.6.0-1ubuntu12
ProcVersionSignature: Ubuntu 2.6.39-0.5~20110427-generic-pae 2.6.39-rc5
Uname: Linux 2.6.39-0-generic-pae i686
NonfreeKernelModules: wl
Architecture: i386
CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,imgpng,gnomecompat,wall,ezoom,workarounds,staticswitcher,resize,fade,unitymtgrabhandles,scale,session,unityshell]
CompositorRunning: compiz
DRM.card0.HDMI.A.1:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
DRM.card0.LVDS.1:
 status: connected
 enabled: enabled
 dpms: On
 modes: 1280x800
 edid-base64: AP///////wBMo1gzAAAAAAASAQOAIRV4Cof1lFdPjCcnUFQAAAABAQEBAQEBAQEBAQEBAQEB1hsAkFAgIjAQMBMAS88QAAAZAAAADwAAAAAAAAAAACOHAmQAAAAA/gBYMTcyRwAxNTRYMwogAAAA/gAmNkBHao/G/wEBCiAgAJE=
DRM.card0.VGA.1:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
Date: Tue Jun 21 10:26:58 2011
DistUpgraded: Fresh install
DistroCodename: natty
DistroVariant: ubuntu
DkmsStatus:
 bcmwl, 5.100.82.38+bdcom, 2.6.39-0-generic-pae, i686: installed
 bcmwl, 5.100.82.38+bdcom, 2.6.38-8-generic-pae, i686: installed
EcryptfsInUse: Yes
GraphicsCard:
 Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) [8086:2a02] (rev 0c) (prog-if 00 [VGA controller])
   Subsystem: Dell Device [1028:022f]
   Subsystem: Dell Device [1028:022f]
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
MachineType: Dell Inc. Inspiron 1525
ProcEnviron:
 LANGUAGE=en_GB:en
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.39-0-generic-pae root=UUID=d6a39cfc-0e2b-4381-8f61-efce497d309d ro quiet splash vt.handoff=7
Renderer: Unknown
SourcePackage: xserver-xorg-input-evdev
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/27/2009
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A17
dmi.board.name: 0U990C
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA17:bd10/27/2009:svnDellInc.:pnInspiron1525:pvr:rvnDellInc.:rn0U990C:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: Inspiron 1525
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:0.9.4+bzr20110606-0ubuntu1~natty1
version.libdrm2: libdrm2 2.4.23-1ubuntu6
version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.2-0ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.2-0ubuntu2
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu4
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu7.1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu7

Revision history for this message
Cefn (6-launchpad-net-cefn-com) wrote :
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Most likely what's happening here is that your session is just hung and not accepting any input. Or do you see the unlock screen and a blinking cursor on the password prompt?

You seem to have an unofficial kernel installed and in use, is it the same with the natty kernel (2.6.38-8)?

affects: xserver-xorg-input-evdev (Ubuntu) → xorg (Ubuntu)
Changed in xorg (Ubuntu):
status: New → Incomplete
Revision history for this message
Cefn (6-launchpad-net-cefn-com) wrote :

Thanks for your feedback Timo.

Yes, I run a newer kernel (from LP-PPA-kernel-ppa/natty) as I thought it helps with testing to find these bugs before kernels are marked for stable release.

It's not a session hang (on this occasion) as the laptop's own keyboard and mouse still function, but the external input devices stop sending events until a reboot.

bugbot (bugbot)
affects: xorg (Ubuntu) → xserver-xorg-input-evdev (Ubuntu)
Revision history for this message
Cefn (6-launchpad-net-cefn-com) wrote :

Things seem to be getting worse. Now after a clean reboot, my external USB keyboard and mouse send events to X only after I've called lsusb from the console, and only then for a short while.

After about 10 seconds, my mouse disappears once again, and lsusb needs to be called again in order to redetect it, after which it works again for about 10 seconds before dying again and so on.

As long as the mouse continues sending events (I roll the trackball around) it stays connected. The moment it is idle again, it's permanently disconnected until another lsusb. This is also now under the generic natty kernel.

My builtin keyboard and mouse work throughout.

I'll see if I can eliminate some kind of physical issue with the mouse when I get hold of another one. As for physical issues with the laptop, I don't know what I can check to ensure that the USB subsystem isn't actually disappearing and then reappearing on the bus because of some wiring issue, but the fact it stays connected while sending events, suggests to me that it's software.

Is there anything I can do to force the reconfiguration of the usb subsystem or kernel modules, beyond reverting to the natty 2.6.38-8 kernel, which I've already done. Something in my build needs a good kick.

Revision history for this message
Cefn (6-launchpad-net-cefn-com) wrote :

OK, I have to assume this is all the same problem, (the issue experienced when clean booting AND when resuming), but I've now had success with the boot option acpi=off, in that the mouse and keyboard stay responsive now, and none of the other options seemed to help. Could be a race condition or something more random and it's just working this time round, but so far so good.

I tried...

acpi=ht
pci=noacpi
pnpacpi=off
noapic
nolapic

...and only acpi=off seems to help.

Revision history for this message
Cefn (6-launchpad-net-cefn-com) wrote :

Just added natty-proposed to get a newer stable kernel.

Now running against 2.6.38-10-generic without any special boot option (ACPI is loaded as I have indicator-cpufreq running fine) and the problem of disappearing external USB devices seems to have gone, at least on clean boot.

If I encounter the problem on resume again using the newer 'proposed' kernel then I'll post back on this thread.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xserver-xorg-input-evdev (Ubuntu) because there has been no activity for 60 days.]

Changed in xserver-xorg-input-evdev (Ubuntu):
status: Incomplete → Expired
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.