Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #379: We've picked COBOL as the language of choice.


comp / comp.os.linux.misc / Resetting USB Controllers After Error

SubjectAuthor
o Resetting USB Controllers After ErrorLawrence D'Oliveiro

1
Subject: Resetting USB Controllers After Error
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 16 Oct 2024 07:36 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Resetting USB Controllers After Error
Date: Wed, 16 Oct 2024 07:36:09 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <venqd8$24ls0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Oct 2024 09:36:09 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8e07f34fd508234a93a0d7f7570ee3ce";
logging-data="2250624"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+074lxHiX8XKVsRtNWBrnl"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:Sm0cX01cgcdFGkuzaGQpzJuAdJA=
View all headers

I was doing my semi-regular backup of some core essential files onto
USB sticks today, and hit an error writing to one of the sticks (I
replaced it with a spare).

However, the error left the USB on my main machine in a strange state:
it still thought the bad USB stick was present on the bus, even though
it had been removed. And also my USB audio interface stopped working
(though thankfully not my mouse or keyboard).

I found the “usbreset” utility program. Trying to reset the nonexistent
device of course returned an error that it did not exist. It listed
three USB hubs, and I thought if I reset the one that the stick had
been connected to, that might work. I was able to reset two of the
hubs, but it hung on the third one (very likely the source of the
problem). And the problem remained unfixed.

I thought I was going to have to reboot my machine.

Then, after hunting around online, I found this little shell script
<https://unix.stackexchange.com/questions/704341/how-to-reset-usb-controllers>,
which finds all your USB controller interfaces and tells them to
“unbind”, and then “rebind”, all devices attached to each.

And that worked! I have my 5.1 USB audio working again!

Of course, I can’t guarantee it’ll work for you, if you hit a similar
problem, but I figure, how could it hurt to try? ;)

1

rocksolid light 0.9.8
clearnet tor