LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-14-2017, 05:25 AM   #1
teslaa
LQ Newbie
 
Registered: Jul 2014
Posts: 4

Rep: Reputation: Disabled
Reset USB only working on some ports


(Running RHEL) So I have a USB device plugged into a USB port and I'm attempting to reset it since sometimes on boot it does not start properly. The issue is that I can only reset it on some ports.

If I plug it in a port and it shows up as having a dot number for example 1-9.3 (confirmed by using dmesg) then I can reset it and have it start working by unbinding and binding the parent device number but it does not work if I specify that specific device. For example

Doing this resets the device and it starts working fine...

Code:
echo "1-9" > /sys/bus/usb/drivers/usb/unbind
echo "1-9" > /sys/bus/usb/drivers/usb/bind

However if I try the lines below instead it does not start working...


Code:
echo "1-9.3" > /sys/bus/usb/drivers/usb/unbind
echo "1-9.3" > /sys/bus/usb/drivers/usb/bind
Any ideas why?

The top solution is not an adequate solution as if I plug my device in a different port and it shows up as device 2-1 and doesn't have a dot number then doing the below does not work.


Code:
echo "2-1" > /sys/bus/usb/drivers/usb/unbind
echo "2-1" > /sys/bus/usb/drivers/usb/bind
 
Old 05-16-2017, 08:10 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I don't know the answer to your question, but the behaviour might depend on the hub (XHCI, EHCI controller) concerned perhaps.

An alternative method that I've seen used might be to do this instead....
Code:
sudo sh -c "echo 0 > /sys/bus/usb/devices/2-1/authorized"
sudo sh -c "echo 1 > /sys/bus/usb/devices/2-1/authorized"
You can run between the above commands and at the end to observe the effect
Code:
lsusb -t

Last edited by ferrari; 05-16-2017 at 08:11 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
One of my three usb ports is not working Alok Rai Linux - Newbie 4 08-18-2015 09:27 AM
usb ports not working valemon Linux - Laptop and Netbook 1 04-18-2012 07:35 AM
Usb ports not working yb99 Linux - Hardware 5 03-16-2010 01:35 PM
USB ports not working matrim Fedora 1 03-17-2007 05:46 AM
USB ports reset error -110 Shuttle XPC sb61g2v3 d5wstat Linux - Hardware 1 09-06-2006 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:41 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