Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] USB ports reset/restart

133 views
Skip to first unread message

the...@sys-concept.com

unread,
Mar 5, 2018, 8:50:04 PM3/5/18
to
Is there a way to reinitialize USB ports without restarting the computer?

Two of my USB 3 ports stop working.

lsusb -t
/: Bus 11.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
/: Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/: Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
/: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
|__ Port 3: Dev 13, If 0, Class=Human Interface Device,
Driver=usbhid, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
|__ Port 4: Dev 2, If 0, Class=Human Interface Device,
Driver=usbhid, 12M
|__ Port 4: Dev 2, If 1, Class=Human Interface Device,
Driver=usbhid, 12M
|__ Port 4: Dev 2, If 2, Class=Human Interface Device,
Driver=usbhid, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M


--
Thelma

R0b0t1

unread,
Mar 5, 2018, 9:40:03 PM3/5/18
to
How do you know they've stopped working? Are there notices in dmesg?
Some devices do not work well on USB3 ports.

Cheers,
R0b0t1

the...@sys-concept.com

unread,
Mar 5, 2018, 10:50:03 PM3/5/18
to
dmesg is not showing anything.
I have an usb extension cord pluged-in to the back of the computer "blue
usb port" (I think the color blue designates USB-3), there are two of
them.
My usb stick was working OK on one, but it stopped. I pluged the USB
extension cord to the other port; so it was working for a while. Now
the second one stop working as well.

When I connect my USB stick to the extension cable the "dmesg" is not
showing any output.

--
Thelma

Ian Zimmerman

unread,
Mar 5, 2018, 11:40:03 PM3/5/18
to
On 2018-03-05 20:41, the...@sys-concept.com wrote:

> I have an usb extension cord pluged-in to the back of the computer "blue
> usb port" (I think the color blue designates USB-3), there are two of
> them.

> My usb stick was working OK on one, but it stopped. I pluged the USB
> extension cord to the other port; so it was working for a while. Now
> the second one stop working as well.

What if you plug the device directly into the port, without the
extension cable?

--
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.

R0b0t1

unread,
Mar 5, 2018, 11:40:03 PM3/5/18
to
I've had this happen, but it wasn't reproducible. Is the drive
(sd[a-z]) still left on your filesystem?

the...@sys-concept.com

unread,
Mar 5, 2018, 11:50:02 PM3/5/18
to
On 03/05/2018 09:39 PM, Ian Zimmerman wrote:
> On 2018-03-05 20:41, the...@sys-concept.com wrote:
>
>> I have an usb extension cord pluged-in to the back of the computer "blue
>> usb port" (I think the color blue designates USB-3), there are two of
>> them.
>
>> My usb stick was working OK on one, but it stopped. I pluged the USB
>> extension cord to the other port; so it was working for a while. Now
>> the second one stop working as well.
>
> What if you plug the device directly into the port, without the
> extension cable?

When I plug the usb-stick to the blue usb port directly nothing happens,
usb stick is not recognized.

When I plug it to USB-2 port, it is recognized without any problems.

--
Thelma

the...@sys-concept.com

unread,
Mar 5, 2018, 11:50:02 PM3/5/18
to
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 74G 17G 54G 24% /
tmpfs 1.6G 1.4M 1.6G 1% /run
dev 10M 0 10M 0% /dev
shm 7.9G 36M 7.8G 1% /dev/shm
cgroup_root 10M 0 10M 0% /sys/fs/cgroup
/dev/sda4 925G 409G 469G 47% /home
/dev/sda5 828G 620G 166G 79% /home2
/dev/sda1 30M 23M 6.0M 79% /boot
none 7.9G 0 7.9G 0% /run/user/1000

--
Thelma

R0b0t1

unread,
Mar 6, 2018, 12:00:03 AM3/6/18
to
Sorry, I meant under /dev - is the last drive you plugged in still
there despite having been removed?

Neil Bothwick

unread,
Mar 6, 2018, 5:20:03 AM3/6/18
to
On Mon, 5 Mar 2018 18:40:08 -0700, the...@sys-concept.com wrote:

> Is there a way to reinitialize USB ports without restarting the
> computer?
>
> Two of my USB 3 ports stop working.

Can you rmmod xhci_pci and xhci_hcd then modprobe xhci_pci?

If that helps, it's a software issue, otherwise it may be a hardware
fault that needs a reset. I too have found USB3 to be less than reliable.


--
Neil Bothwick

It's no use crying over spilt milk -- it only makes it salty for the cat.

the...@sys-concept.com

unread,
Mar 6, 2018, 3:30:04 PM3/6/18
to
On 03/06/2018 03:11 AM, Neil Bothwick wrote:
> On Mon, 5 Mar 2018 18:40:08 -0700, the...@sys-concept.com wrote:
>
>> Is there a way to reinitialize USB ports without restarting the
>> computer?
>>
>> Two of my USB 3 ports stop working.
>
> Can you rmmod xhci_pci and xhci_hcd then modprobe xhci_pci?
>
> If that helps, it's a software issue, otherwise it may be a hardware
> fault that needs a reset. I too have found USB3 to be less than reliable.

I don't think I could do it; xhci_pci and xhci_hcd are compiled into the
kernel (not as module).

I know that if I restart the box the USB-3 will start working.
The box has an uptime 130 days and is my main server.

--
Thelma

Grant Edwards

unread,
Mar 6, 2018, 3:40:04 PM3/6/18
to
On 2018-03-06, the...@sys-concept.com <the...@sys-concept.com> wrote:

> Is there a way to reinitialize USB ports without restarting the computer?


Did none of these approaches work?

https://www.google.com/search?q=linux+restart+USB

--
Grant Edwards grant.b.edwards Yow! hubub, hubub, HUBUB,
at hubub, hubub, hubub, HUBUB,
gmail.com hubub, hubub, hubub.

Tai...@gmx.com

unread,
Mar 6, 2018, 8:30:03 PM3/6/18
to
On 03/05/2018 08:40 PM, the...@sys-concept.com wrote:

> Is there a way to reinitialize USB ports without restarting the computer?
You can issue an FLR/function level reset if the hardware supports it.

I am not sure how to do this but I know it is done when one assigns a
device to a VM.

the...@sys-concept.com

unread,
Mar 7, 2018, 3:40:04 PM3/7/18
to
On 03/06/2018 01:35 PM, Grant Edwards wrote:
> On 2018-03-06, the...@sys-concept.com <the...@sys-concept.com> wrote:
>
>> Is there a way to reinitialize USB ports without restarting the computer?
>
>
> Did none of these approaches work?
>
> https://www.google.com/search?q=linux+restart+USB
>
ll /sys/bus/pci/drivers/ehci-pci/
total 0
lrwxrwxrwx 1 root root 0 Mar 6 16:35 0000:00:12.2 -> ../../../../devices/pci0000:00/0000:00:12.2
lrwxrwxrwx 1 root root 0 Mar 6 16:35 0000:00:13.2 -> ../../../../devices/pci0000:00/0000:00:13.2
lrwxrwxrwx 1 root root 0 Mar 6 16:35 0000:00:16.2 -> ../../../../devices/pci0000:00/0000:00:16.2

How to unbind these "entries" 0000:00:12.2, 0000:00:13.2, 0000:00:16.2

echo -n "0000:00:12.2" | tee /sys/bus/pci/drivers/xhci_hcd/unbind
0000:00:12.2tee: /sys/bus/pci/drivers/xhci_hcd/unbind: No such device

The above does not work.

--
Thelma

J. Roeleveld

unread,
Mar 13, 2018, 6:00:03 AM3/13/18
to
On Tuesday, March 6, 2018 9:20:36 PM CET the...@sys-concept.com wrote:
> On 03/06/2018 03:11 AM, Neil Bothwick wrote:
> > On Mon, 5 Mar 2018 18:40:08 -0700, the...@sys-concept.com wrote:
> >> Is there a way to reinitialize USB ports without restarting the
> >> computer?
> >>
> >> Two of my USB 3 ports stop working.
> >
> > Can you rmmod xhci_pci and xhci_hcd then modprobe xhci_pci?
> >
> > If that helps, it's a software issue, otherwise it may be a hardware
> > fault that needs a reset. I too have found USB3 to be less than reliable.
>
> I don't think I could do it; xhci_pci and xhci_hcd are compiled into the
> kernel (not as module).

Change the options and see if that works?

> I know that if I restart the box the USB-3 will start working.
> The box has an uptime 130 days and is my main server.

IOW, you haven't patched your main server against any threads in the past 6+
months.

--
Joost
0 new messages