LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-23-2012, 06:36 PM   #1
ljones0
Member
 
Registered: Dec 2007
Posts: 100

Rep: Reputation: 17
USB devices randomly disconnect


Hello all, I'm having a severe problem with slackware current (and also 13.37, I've tried using both) with USB devices disconnecting randomly - namely USB memory sticks.

The motherboard is a Asus M5A88V EVO motherboard (64 bit), 16 GB Ram, PCIE video card (ATI Radeon HD 4850).

I've also tried compiling and installing a new kernel with the instructions here - http://standardcode.eu/blog/linux/co...slackware.html . I've tried compiling and installing kernel 3.1 and kernel 3.3 rc4, and I get exactly the same random USB disconnect problems.

Here's an example of what I get in dmesg;

Code:
[  438.760911] scsi 11:0:0:0: Direct-Access     hp       v165w            0.00 PQ: 0 ANSI: 4
[  438.762599] sd 11:0:0:0: Attached scsi generic sg8 type 0
[  438.764155] sd 11:0:0:0: [sdh] 31711232 512-byte logical blocks: (16.2 GB/15.1 GiB)
[  438.765064] sd 11:0:0:0: [sdh] Write Protect is off
[  438.765067] sd 11:0:0:0: [sdh] Mode Sense: 23 00 00 00
[  438.765900] sd 11:0:0:0: [sdh] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  438.772030]  sdh: sdh1
[  438.788522] sd 11:0:0:0: [sdh] Attached SCSI removable disk
[  454.024024] usb 3-1: reset high-speed USB device number 6 using ehci_hcd
[  464.138165] usb 3-1: device firmware changed
[  464.138183] usb 3-1: USB disconnect, device number 6
[  464.139571] scsi 11:0:0:0: [sdh] killing request
[  464.139574] scsi 11:0:0:0: killing request
[  464.139576] scsi 11:0:0:0: [sdh] killing request
[  464.140008] scsi 11:0:0:0: [sdh] Unhandled error code
[  464.140010] scsi 11:0:0:0: [sdh]  Result: hostbyte=0x01 driverbyte=0x00
[  464.140013] scsi 11:0:0:0: [sdh] CDB: cdb[0]=0x28: 28 00 00 2c 51 20 00 00 f0 00
[  464.140018] end_request: I/O error, dev sdh, sector 2904352
[  464.140020] quiet_error: 23 callbacks suppressed
[  464.140021] Buffer I/O error on device sdh, logical block 363044
[  464.140023] Buffer I/O error on device sdh, logical block 363045
[  464.140025] Buffer I/O error on device sdh, logical block 363046
[  464.140026] Buffer I/O error on device sdh, logical block 363047
[  464.140028] Buffer I/O error on device sdh, logical block 363048
[  464.140029] Buffer I/O error on device sdh, logical block 363049
[  464.140031] Buffer I/O error on device sdh, logical block 363050
[  464.140033] Buffer I/O error on device sdh, logical block 363051
[  464.140034] Buffer I/O error on device sdh, logical block 363052
[  464.140036] Buffer I/O error on device sdh, logical block 363053
[  464.140048] scsi 11:0:0:0: [sdh] Unhandled error code
[  464.140049] scsi 11:0:0:0: [sdh]  Result: hostbyte=0x01 driverbyte=0x00
[  464.140051] scsi 11:0:0:0: [sdh] CDB: cdb[0]=0x28: 28 00 00 2c 52 10 00 00 10 00

Another example

Code:
S
[  111.703078] sd 9:0:0:0: Attached scsi generic sg8 type 0
[  111.703712] sd 9:0:0:0: [sdh] 1970175 512-byte logical blocks: (1.00 GB/961 MiB)
[  111.704689] sd 9:0:0:0: [sdh] Write Protect is off
[  111.704692] sd 9:0:0:0: [sdh] Mode Sense: 45 00 00 08
[  111.705836] sd 9:0:0:0: [sdh] No Caching mode page present
[  111.705838] sd 9:0:0:0: [sdh] Assuming drive cache: write through
[  111.708837] sd 9:0:0:0: [sdh] No Caching mode page present
[  111.708839] sd 9:0:0:0: [sdh] Assuming drive cache: write through
[  111.710338]  sdh: sdh1
[  111.712958] sd 9:0:0:0: [sdh] No Caching mode page present
[  111.712960] sd 9:0:0:0: [sdh] Assuming drive cache: write through
[  111.712962] sd 9:0:0:0: [sdh] Attached SCSI removable disk
[  111.821087] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  112.052388] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  112.280975] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  112.504012] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  112.730012] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  112.956115] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  113.202128] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  113.438083] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  113.667011] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  113.894013] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  114.170014] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  114.411014] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  114.648014] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  114.871011] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  115.095015] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  115.324016] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  115.550016] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  115.786611] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  116.025022] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  116.259021] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  116.483016] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  116.720023] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  116.944021] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  117.175018] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  119.159016] usb 3-1: reset high-speed USB device number 2 using ehci_hcd
[  119.273958] sd 9:0:0:0: [sdh] Unhandled error code
I thought that there was a possibility that this might be being causes by USB 3 problems, however disabling the USB 3 (this motherboard has USB 3 on board) made no difference.

lspci output;
Code:
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS880 Host Bridge
00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
00:09.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 4)
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 5)
00:11.0 SATA controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] (rev 40)
00:12.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 42)
00:14.1 IDE interface: ATI Technologies Inc SB7x0/SB8x0/SB9x0 IDE Controller (rev 40)
00:14.3 ISA bridge: ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:15.0 PCI bridge: ATI Technologies Inc Device 43a0
00:15.1 PCI bridge: ATI Technologies Inc Device 43a1
00:16.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Device 1600
00:18.1 Host bridge: Advanced Micro Devices [AMD] Device 1601
00:18.2 Host bridge: Advanced Micro Devices [AMD] Device 1602
00:18.3 Host bridge: Advanced Micro Devices [AMD] Device 1603
00:18.4 Host bridge: Advanced Micro Devices [AMD] Device 1604
00:18.5 Host bridge: Advanced Micro Devices [AMD] Device 1605
01:00.0 VGA compatible controller: ATI Technologies Inc RV770 [Radeon HD 4850]
01:00.1 Audio device: ATI Technologies Inc HD48x0 audio
02:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller
02:00.1 IDE interface: VIA Technologies, Inc. VT6415 PATA IDE Host Controller (rev a0)
03:00.0 USB Controller: Device 1b21:1042
05:00.0 PCI bridge: PLX Technology, Inc. PEX8112 x1 Lane PCI Express-to-PCI Bridge (rev aa)
06:04.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 [Oxygen HD Audio]
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
Is this some sort of hardware failure, bad or broken driver? Older systems with linux installed don't seem to have this problem at all.

ljones
 
Old 02-24-2012, 11:30 PM   #2
blingham
LQ Newbie
 
Registered: Jul 2009
Location: Canada
Distribution: Mint, Fedora, Ubuntu Server
Posts: 28

Rep: Reputation: 3
Hi ljones,

Maybe I can ask a few questions that come to mind that may help others find you some answers.

1. Is this more than one USB device/disk, or the same one each time?
2. I'm going to assume you've tried different USB ports? Front and back ports (if applicable)?
3. Have you checked the bios for any USB power save options that may, or may not cause disconnections?
4. When you plug in the device(s), are you able to access them at all before they disconnect? If so, how long typically?
5. Are these devices powered (meaning do they have their own power cable), or are they getting power from the USB port? If they are getting power from the usb port, what type of devices are they, and what wattage of power supply do you have? Could it be that you're running out of power, and the USB is essentially turning itself off? (this was a personal issue of mind a while ago).

Ok, lets start there and see where that takes us

Jay
 
Old 02-28-2012, 02:04 PM   #3
ljones0
Member
 
Registered: Dec 2007
Posts: 100

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by blingham View Post
Hi ljones,

Maybe I can ask a few questions that come to mind that may help others find you some answers.

1. Is this more than one USB device/disk, or the same one each time?

There is more than one USB device plugged in, a USB wifi RTL8187 device and a usb mouse. Those are the only things though.

2. I'm going to assume you've tried different USB ports? Front and back ports (if applicable)

I've tried the two front ports (connected through a device called a Pluscom 5.25 Media dashboard, basically it has holes for usb, sata, sd, etc), just a front port adapter. Not tried the back ones though.

**EDIT** I have now tried the rear USB ports and these worked better than the front ports (through the pluscom device).

3. Have you checked the bios for any USB power save options that may, or may not cause disconnections?

I've tried disabling all power management (most noticably ACPI) but it seemed to make no difference.

4. When you plug in the device(s), are you able to access them at all before they disconnect? If so, how long typically?

It almost feels random. Sometimes I can use it for a while maybe (at a rough guess, as I didn't time it exactly) maybe 10 or 20 mins within qemu. At other times it can be mere seconds, just enough time for KDE to load up icons.

5. Are these devices powered (meaning do they have their own power cable), or are they getting power from the USB port? If they are getting power from the usb port, what type of devices are they, and what wattage of power supply do you have? Could it be that you're running out of power, and the USB is essentially turning itself off? (this was a personal issue of mind a while ago).

Nope, all the devices I'm using are powered right off the USB ports.

Ok, lets start there and see where that takes us

Jay
Thanks for that Some more information --

I've now bought a new power supply -- the old power supply is a "noname" brand but is rated at 800W. The power supply I bought this time is a little smaller (750W) but is branded as an OCZ Technlogies ZT series power supply.

After plugging in the new power supply it appears to be at first doing the same as the old one - random USB disconnects.

btw, this is the device (the pluscom media dashboard or as close as I can get to a picture of it) - http://www.ebay.co.uk/itm/3-5-25-USB...item35b1ad5dc9

Prehaps I'm looking at a duff pluscom media dashboard or (worse) faulty USB headers on the motherboard? I'm not sure why the pluscom device and the motherboard would be incompatible.

ljones

Last edited by ljones0; 02-28-2012 at 02:40 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB devices randomly don't appear after boot OpenSUSE 10.3 madsci1016 Linux - Hardware 4 08-12-2011 03:42 PM
Solais 10 ssh session disconnect randomly LinuxLover Solaris / OpenSolaris 3 02-25-2010 05:05 PM
USB keyboard disconnect with ps2/usb converter/splitter eaberry Linux - Hardware 3 01-04-2009 09:52 AM
USB Serial devices assigned randomly? fang0654 Ubuntu 3 08-29-2008 01:52 PM
devices just randomly showing up????? caleb star Linux - Software 2 04-03-2005 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration