LinuxQuestions.org
Help answer threads with 0 replies.
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 10-10-2014, 11:25 AM   #1
andy713
Member
 
Registered: Sep 2009
Location: Florida
Distribution: Slackware64
Posts: 46

Rep: Reputation: 0
Sometimes broken USB on MSI A88XM-E45 (MS-7721)


Does anyone else have this board? USB is flakey at best. The scanner only sometimes works. My external HDD sometimes works and sometimes isn't recognized. Same for flash drives. The scanner is plugged into the motherboard, the HDD is plugged into a USB 3 card reader, and flash drives plug into the case. So three different connections, same results. How can I diagnose to see if it is a USB modules compatibility problem or a hardware problem?

Andy
 
Old 10-10-2014, 02:44 PM   #2
moesasji
Member
 
Registered: May 2008
Distribution: Slackware Current / OpenBSD
Posts: 322

Rep: Reputation: 104Reputation: 104
I don't have this specific motherboard, but I have an MSI-board (Z77A-GD65) that has the tendency to lose some of the USB-ports without a real pattern or error-message. Pretty annoying as both my mouse and keyboard are USB-based.

My solution for when this happens is to plug in an external keyboard and run the script below:

Code:
#!/bin/sh

if [ "$(id -u)" != 0 ] ; then
    echo This must be run as root!
    exit 1
fi

#
# Look for the most common cases
#
for driver in xhci_hcd ehci_hcd uhci_hcd ehci-pci ; do

    #
    #  The directory to operate within
    #
    dir=/sys/bus/pci/drivers/${driver}

    #
    #  If it exists we have the appropriate USB-driver
    #
    if [ -d $dir ]; then

        echo "Reseting: ${driver}"

        cd ${dir}
        for dev_id in ????:??:??.? ; do
            printf "${dev_id}" > unbind
            printf "${dev_id}" > bind
        done
    else
        echo "Not present: ${driver}"
    fi
done
Not ideal, but at least I don't have to reboot when the USB-ports act up.

Last edited by moesasji; 10-10-2014 at 02:46 PM.
 
Old 10-10-2014, 05:35 PM   #3
andy713
Member
 
Registered: Sep 2009
Location: Florida
Distribution: Slackware64
Posts: 46

Original Poster
Rep: Reputation: 0
In that directory I have an ohci-pci as well. Is there a reason you didn't include it in your script (unless you don't have it at all)? I have a PS/2 mouse and keyboard so unloading USB modules isn't too traumatic for me.

Andy
 
Old 10-11-2014, 05:32 AM   #4
moesasji
Member
 
Registered: May 2008
Distribution: Slackware Current / OpenBSD
Posts: 322

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by andy713 View Post
In that directory I have an ohci-pci as well. Is there a reason you didn't include it in your script (unless you don't have it at all)?
Andy
This is a case of "solving" something by finding a work-around on the internet, so not something I have written myself or put much thought into.

In fact the only ones that get reset on this system are xhci_hcd and ehci-pci. I should probably check which one of these two drivers is the culprit next time this happens.
 
Old 10-11-2014, 08:07 AM   #5
andy713
Member
 
Registered: Sep 2009
Location: Florida
Distribution: Slackware64
Posts: 46

Original Poster
Rep: Reputation: 0
The way I have been "solving" it has been to unload and reload the xhci_hcd module, which is a rather brute force approach. Your method looks like it is using the hooks the way they were intended, which is something I didn't know about. I was asking because it looks more like the right tool than my BFH.

Andy
 
Old 10-11-2014, 09:33 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Did you try to disable xhci in BIOS (or in UEFI firmware, whatever) just to check if it works with only ohci
 
Old 10-11-2014, 10:31 AM   #7
moesasji
Member
 
Registered: May 2008
Distribution: Slackware Current / OpenBSD
Posts: 322

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by moesasji View Post
In fact the only ones that get reset on this system are xhci_hcd and ehci-pci. I should probably check which one of these two drivers is the culprit next time this happens.
This machine just had one of it's moments. Resetting ehci-pci is sufficient to bring the USB devices back on this machine.
 
  


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
MSI Bluetooth USB Dongle Connection Problems Eldarby Linux - Hardware 7 06-14-2011 01:24 AM
USB connect MSI K9V Neo (MS-7511) jdtiede Linux - Hardware 1 11-02-2009 06:46 PM
MSI K8M Neo-V USB 2.0 ports can only perform as USB1.1 ctdarksilver Linux - Hardware 1 04-07-2007 05:34 PM
MSI wireless usb no work? djkoe Linux - Hardware 2 04-10-2006 02:46 AM
msi kt3v with usb 2.0 maciek Linux - Hardware 0 09-25-2004 09:26 AM

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

All times are GMT -5. The time now is 06:16 PM.

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