Forum › Forums › General › Tips and Tricks › Reset USB
Tagged: reset usb, reset usb ports, usb, usb keyboard, usb keyboard problem, usb mice, usb mouse, usb not recognized, usb ports, usb problems
- This topic has 5 replies, 4 voices, and was last updated Jun 3-12:34 pm by DaveW.
-
AuthorPosts
-
May 29, 2019 at 11:23 am #22275
Anonymous
[REQUEST for a new function added to Control Centre/Maintenance]
Maybe I’m not the only one who knows this problem:
I start typing some text on my keyboard and the space button does not make spaces between the letters.
Or, one’s trying to type 0 – 9 and gets: 0 1 2 3 4 5 9 … numbers 6, 7 & 8 are missing.
Or, some USB device suddenly strikes and plug out/plug in doesn’t help.
Recently I found one tiny script that might be a lifesaver.
Addendum:
Additional scrips added.#!/bin/bash if [[ $EUID != 0 ]] ; then echo This must be run as root! exit 1 fi for xhci in /sys/bus/pci/drivers/?hci_hcd ; do if ! cd $xhci ; then echo Weird error. Failed to change directory to $xhci exit 1 fi echo Resetting devices from $xhci... for i in ????:??:??.? ; do echo -n "$i" > unbind echo -n "$i" > bind done doneIf it gets included, it’ll need some icon (see attachment).
Link to the author’s website:
http://billauer.co.il/blog/2013/02/usb-reset-ehci-uhci-linux/May 29, 2019 at 7:40 pm #22291Anonymous
::Thanks for finding and posting this fix. I’ll check if it fixes my usb card reader
(kodak A251) from random lockups on my sdhc camera chips. It only happens
on certain machines of mine and I always had to reboot to remedy. BTW your tags
says “usp” instead of “usb”May 30, 2019 at 5:42 am #22323MemberPPC
::When I read this I thought I never had this problem, until I noticed than sometimes, I plug in a USB pendrive and my desktop can only “see” it after a shutdown (I mean it- if it’s a pendrive that I want to boot to, It only shows up in the boot menu options after the computer is shutdown, a simple reboot won’t help). Next time this happens, I’ll try this script. Thanks!
P.
May 30, 2019 at 8:51 pm #22330MemberDaveW
::A day or two ago, I started to have a problem with a CF_Card in a USB card adapter. It previously had been working properly.
I tried the USB Reset script, but it didn’t fix the problem. But I expected that, since I have several USB memory sticks that always work without a hitch (some FAT32, some ext4). Here is what is happening…It is an 8 GB CF Card, formatted FAT32. Upon plugging the adapter into the USB slot, ROX-file manager shows content of card. In a terminal with Midnight Commander, the CF_Card is present in /Media. But, when I attempt to open the CF_Card directory, MC locks up. Usually, the card remains accessible in the ROX-file manager, but sometimes ROX also gets stuck.
However, if I open GParted and wait for it to complete a scan of devices, suddenly, MC wakes up and allows access to the CF_Card. Sometimes, the GParted scan takes quite awhile to complete, with the CF_Card plugged in. The same card and USB adapter runs flawlessly in Windows XP (using Total Commander, on the same computer, which can boot into either XP or Antix 17). I suppose the card could be corrupted in some way, but once GParted recognizes it, everything works, until next reboot into Linux.
My problem probably doesn’t belong in this thread (my apologies), but it is loosely related to the USB Reset topic.
Thanks!
May 30, 2019 at 10:20 pm #22332Anonymous
::I added 3 other scripts if you wanna give them a try.
Causes for a ‘mad USB’ are many different.
Resetting controller might help.
Or, it’s some HW issue.
Or, …June 3, 2019 at 12:34 pm #22514MemberDaveW
::noClue,
Thanks for the additional scripts. I tried them all.
But they don’t fix my problem, where MC does not recognize my CF card in a USB adapter.However, I discovered that if a guy waits long enough, MC does recognize the CF card. (There is no need to run GParted, as I previously thought.)
So, I really don’t have a problem. It all works.Strangely, the ROX file manager recognizes the CF card almost instantaneously, but Midnight Commander takes ten minutes or more. While MC is thinking things over (which does not noticeably increase CPU load), the ROX file manager gets very sluggish. But once MC is happy, ROX is happy again.
I guess I’ll leave well enough alone. But thank you for the scripts!
-
AuthorPosts
- You must be logged in to reply to this topic.