What would cause most of the USB devices to suddenly be disconnected?

Asked by Scott Cowles Jacobs

Since I installed Lubuntu 16.10 64-bit, I have had a problem with USB.

At first, it only happened when I attempted to print, and I assumed that cups somehow caused it:

A partial printout would occur; the printing would stop, and I would find that my mouse (USB connected
Logitech M510 with Unifying receiver) had stopped working.

lsusb would show only a small subset of connected devices:

scott@scott-ASUS-M2N68-AM-PLUS:~$ lsusb
Bus 001 Device 006: ID 7392:7622 Edimax Technology Co., Ltd
Bus 001 Device 005: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

instead of the regular:

scott@scott-ASUS-M2N68-AM-PLUS:~$ lsusb
Bus 001 Device 006: ID 7392:7622 Edimax Technology Co., Ltd
Bus 001 Device 005: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 0a12:1004 Cambridge Silicon Radio, Ltd
Bus 002 Device 003: ID 046d:c501 Logitech, Inc. Cordless Mouse Receiver
Bus 002 Device 008: ID 03f0:5511 Hewlett-Packard DeskJet F300 series
Bus 002 Device 007: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 006: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 005: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 002 Device 002: ID 0a05:7211 Unknown Manufacturer hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

In looking through the logs, for the time after the printer stopped, I found this:
Oct 26 16:58:30 scott-ASUS-M2N68-AM-PLUS kernel: [ 2976.394360] ohci-pci 0000:00:02.0: HcDoneHead not written back; disabled
Oct 26 16:58:30 scott-ASUS-M2N68-AM-PLUS kernel: [ 2976.394367] ohci-pci 0000:00:02.0: HC died; cleaning up
Oct 26 16:58:30 scott-ASUS-M2N68-AM-PLUS kernel: [ 2976.394433] usb 2-1: USB disconnect, device number 2
Oct 26 16:58:30 scott-ASUS-M2N68-AM-PLUS kernel: [ 2976.394435] usb 2-1.1: USB disconnect, device number 5
Oct 26 16:58:30 scott-ASUS-M2N68-AM-PLUS kernel: [ 2976.443511] usb 2-1.2: USB disconnect, device number 6
Oct 26 16:58:30 scott-ASUS-M2N68-AM-PLUS acpid: input device has been disconnected, fd 10
Oct 26 16:58:30 scott-ASUS-M2N68-AM-PLUS kernel: [ 2976.578625] usb 2-1.3: USB disconnect, device number 7
Oct 26 16:58:30 scott-ASUS-M2N68-AM-PLUS kernel: [ 2976.615770] usb 2-1.4: USB disconnect, device number 8
Oct 26 16:58:30 scott-ASUS-M2N68-AM-PLUS kernel: [ 2976.616167] usb 2-2: USB disconnect, device number 3
Oct 26 16:58:30 scott-ASUS-M2N68-AM-PLUS kernel: [ 2976.653429] usb 2-3: USB disconnect, device number 4

This happened several times, enough that I set up PointerKeys, so I could still get around the screen and do things.
(I have also found/changed and implemented a USB-reset script, that was today tested and found to work.)

Today, however, the mouse stopped working, and I had NOT been printing anything - had not even had it on.

It must be, therefore, that the printing stopped, because its USB device was disconnected.

Why would this happen?

For what package would I file a bug report?

------------------------------------------------
scott@scott-ASUS-M2N68-AM-PLUS:~$ uname -a
Linux scott-ASUS-M2N68-AM-PLUS 4.8.0-26-generic #28-Ubuntu SMP Tue Oct 18 14:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
scott@scott-ASUS-M2N68-AM-PLUS:~$ lsb_release -dsc
Ubuntu 16.10
yakkety
scott@scott-ASUS-M2N68-AM-PLUS:~$ echo $DESKTOP_SESSION
Lubuntu

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Is there any power saving setting in the BIOS to power off the ports to use less power? If so, turn it off.

Revision history for this message
Scott Cowles Jacobs (scott092707) said :
#2

I will check, the next time I shutdown.

I rather think not - why would there be ANY ports listed in lsusb if so - rather than merely quite a bit fewer?

Revision history for this message
Scott Cowles Jacobs (scott092707) said :
#3

I looked through the various pages in the BIOS setup, and see no power saving setting for USB.

Revision history for this message
Scott Cowles Jacobs (scott092707) said :
#4

I still have not been able to print a full page before the printer stops, and the USB mouse stops.

I can use PointerKeys to activate a terminal, and from there execute the USB-reset script, returning me
the use of the mouse, but that still does not get me a completed print job...

I had commented on my cups bug report that since the USB device disconnect has happened at a time
that there was no printing going on, that the problem must not be cups, but since I cannot print anything,
I guess that I should pursue the issue.

Comment #22 of the "Related Bug" says "changing the IO_WATCHDOG_DELAY in ohci-hcd.c from 250 msec to 275 msec."
fixed the problem, at least for the device he was using.

If that is the case, then cups must [nearly?] always cause a delay of more than 250 ms. at some point in a print job.

I'll see what they have to say about it...

Can you help with this problem?

Provide an answer of your own, or ask Scott Cowles Jacobs for more information if necessary.

To post a message you must log in.