Hi,
my USB connected printer goes into deep space from time to time probably due to a HW problem on the MoBo.
Is there a way how to reset the USB subsystem the same way one can restart networking or X without the necessity to reboot?
Thanks Frank
from a non-expert (me):
possibly figure out what happens when the device is plugged/unplugged and doing that by hand. if you can find the udev file(s) that manage the port(s) that get hung you may be able to figure out what those steps would be.
or you could try, when hung, plugging it into a different USB port... some motherboards have multiple USB controllers, so even if one gets wedged tight, the other one(s) shouldn't be.
Good Luck!
Fred
On Thu, Jan 14, 2021 at 11:22 AM Frank Bures listfrank1@gmail.com wrote:
Hi,
my USB connected printer goes into deep space from time to time probably due to a HW problem on the MoBo.
Is there a way how to reset the USB subsystem the same way one can restart networking or X without the necessity to reboot?
Thanks Frank
--
listfrank1@gmail.com _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On Thu, 14 Jan 2021 at 12:19, Fred fred.fredex@gmail.com wrote:
from a non-expert (me):
possibly figure out what happens when the device is plugged/unplugged and doing that by hand. if you can find the udev file(s) that manage the port(s) that get hung you may be able to figure out what those steps would be.
or you could try, when hung, plugging it into a different USB port... some motherboards have multiple USB controllers, so even if one gets wedged tight, the other one(s) shouldn't be.
So what can happen is that the USB device is seeing a lot of noise from the interface and shutdown the interface for a period of time. If you are extremely lucky, it will even send some sort of message to the computer bus it is doing this. In most other cases, the only fix is to reboot or temporarily unplug the devices connected to that particular USB controller (a computer may have multiple USB controllers since USB is a hubbed network and collisions and conflicts are expected for short periods.). [It used to be that you could cause a USB reset by removing the modules from the kernel and add them but that was a long time ago when a PS/2 keyboard was a real device and not an emulated PS/2 connected to the USB hub. ]
Good Luck!
Fred
On Thu, Jan 14, 2021 at 11:22 AM Frank Bures listfrank1@gmail.com wrote:
Hi,
my USB connected printer goes into deep space from time to time probably due to a HW problem on the MoBo.
Is there a way how to reset the USB subsystem the same way one can
restart
networking or X without the necessity to reboot?
Thanks Frank
--
listfrank1@gmail.com _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On 01/14/2021 12:58 PM, Stephen John Smoogen wrote:
On Thu, 14 Jan 2021 at 12:19, Fred fred.fredex@gmail.com wrote:
from a non-expert (me):
possibly figure out what happens when the device is plugged/unplugged and doing that by hand. if you can find the udev file(s) that manage the port(s) that get hung you may be able to figure out what those steps would be.
or you could try, when hung, plugging it into a different USB port... some motherboards have multiple USB controllers, so even if one gets wedged tight, the other one(s) shouldn't be.
So what can happen is that the USB device is seeing a lot of noise from the interface and shutdown the interface for a period of time. If you are extremely lucky, it will even send some sort of message to the computer bus it is doing this. In most other cases, the only fix is to reboot or temporarily unplug the devices connected to that particular USB controller (a computer may have multiple USB controllers since USB is a hubbed network and collisions and conflicts are expected for short periods.). [It used to be that you could cause a USB reset by removing the modules from the kernel and add them but that was a long time ago when a PS/2 keyboard was a real device and not an emulated PS/2 connected to the USB hub. ]
Good Luck!
Fred
On Thu, Jan 14, 2021 at 11:22 AM Frank Bures listfrank1@gmail.com wrote:
Hi,
my USB connected printer goes into deep space from time to time probably due to a HW problem on the MoBo.
Is there a way how to reset the USB subsystem the same way one can
restart
networking or X without the necessity to reboot?
Thanks Frank
--
listfrank1@gmail.com _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
A few months ago I reported that I could not get a Logitech C922 ProStream video camera working on my Lenovo Thinkstation running CentOS 7. The BIOS was updated and the motherboard was replaced to no avail.
I could then confirm that the camera worked fine if I booted Ubuntu Live, hence no hardware issue with the computer, nor the camera which by the way worked fine on a laptop also running CentOS 7.
Since the USB subsystem did not recognize the camera when plugged in I reported this as a kernel/USB subsystem bug to RedHat. For some reason they made the bug private and I have not heard any more about it being worked on...
Howewer, two or so weeks ago I stumbled across https://zedt.eu/tech/linux/restarting-usb-subsystem-centos/ and used this procedure to reset the USB subsystem. This gets the camera working - most of the time...
The OP may want to try the same thing.
On 1/14/21 8:01 PM, H wrote: 22 ProStream video camera working on my Lenovo Thinkstation running CentOS 7. The BIOS was updated and the motherboard was replaced to no avail.
I could then confirm that the camera worked fine if I booted Ubuntu Live, hence no hardware issue with the computer, nor the camera which by the way worked fine on a laptop also running CentOS 7.
Since the USB subsystem did not recognize the camera when plugged in I reported this as a kernel/USB subsystem bug to RedHat. For some reason they made the bug private and I have not heard any more about it being worked on...
Howewer, two or so weeks ago I stumbled across https://zedt.eu/tech/linux/restarting-usb-subsystem-centos/ and used this procedure to reset the USB subsystem. This gets the camera working - most of the time...
The OP may want to try the same thing.
Thanks a bunch. I'll try this when the printer USB port goes dead again.
Cheers Frank
On Thu, Jan 14, 2021 at 12:18:10PM -0500, Fred wrote:
from a non-expert (me):
possibly figure out what happens when the device is plugged/unplugged and doing that by hand. if you can find the udev file(s) that manage the port(s) that get hung you may be able to figure out what those steps would be.
or you could try, when hung, plugging it into a different USB port... some motherboards have multiple USB controllers, so even if one gets wedged tight, the other one(s) shouldn't be.
Good Luck!
Fred
On Thu, Jan 14, 2021 at 11:22 AM Frank Bures listfrank1@gmail.com wrote:
Hi,
my USB connected printer goes into deep space from time to time probably due to a HW problem on the MoBo.
Is there a way how to reset the USB subsystem the same way one can restart networking or X without the necessity to reboot?
Couple of cable ideas that may be of interest. I got all of these from Amazon.
In my new car there is only one usb port to connect data deviced to.
When I used my micro thumb drive to play music the car often "lost" the drive and it had to be pulled and reinserted. Not easy with the micro drives.
A second problem was using the one port for music source or plugging in my phone for Android Auto. The cars usb system would not deal with a hub of any sort. Thus the nice credit card sized 4 port hub with individual on/off buttons for each port did not work.
The lost thumb drive was solved with a cable having an on/off switch. Think of it as a 15 inch usb extension cable (M -> F) with a switch in the middle.
Both problems were solved with a USB printer A/B switch. This is not a hub, but a switch intended to let you print to either of 2 different printers from a computer having a single USB port. In my case the music thumb drive and the phone are the "printers".
Jon
On Thu, Jan 14, 2021 at 5:22 PM Frank Bures listfrank1@gmail.com wrote:
Is there a way how to reset the USB subsystem the same way one can restart networking or X without the necessity to reboot?
I am using Debian but the usbutils package has the usbreset application which works great for me. I had issues with my DVB-C USB receiver and usbreset did the task quite well.
This one, there is RPM as well:
http://ftp.rpmfind.net/linux/rpm2html/search.php?query=usbutils
BR, Zsolt
On 01/14/2021 03:00 PM, Zsolt SZ wrote:
On Thu, Jan 14, 2021 at 5:22 PM Frank Bures listfrank1@gmail.com wrote:
Is there a way how to reset the USB subsystem the same way one can restart networking or X without the necessity to reboot?
I am using Debian but the usbutils package has the usbreset application which works great for me. I had issues with my DVB-C USB receiver and usbreset did the task quite well.
This one, there is RPM as well:
http://ftp.rpmfind.net/linux/rpm2html/search.php?query=usbutils
BR, Zsolt _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
I have usbutils for CentOS 7 installed but it does not seem to include usbreset??
On 01/14/2021 03:00 PM, Zsolt SZ wrote:
On Thu, Jan 14, 2021 at 5:22 PM Frank Bures listfrank1@gmail.com wrote:
Is there a way how to reset the USB subsystem the same way one can restart networking or X without the necessity to reboot?
I am using Debian but the usbutils package has the usbreset application which works great for me. I had issues with my DVB-C USB receiver and usbreset did the task quite well.
This one, there is RPM as well:
http://ftp.rpmfind.net/linux/rpm2html/search.php?query=usbutils
BR, Zsolt _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
I have usbutils for CentOS 7 installed but it does not seem to include usbreset??
The packages in RHEL/CentOS 7/8 are too old.
Simon
On Fri, 15 Jan 2021 08:34:13 +0100 "Simon Matter" simon.matter@invoca.ch wrote:
On 01/14/2021 03:00 PM, Zsolt SZ wrote:
On Thu, Jan 14, 2021 at 5:22 PM Frank Bures listfrank1@gmail.com wrote:
Is there a way how to reset the USB subsystem the same way one can restart networking or X without the necessity to reboot?
I am using Debian but the usbutils package has the usbreset application which works great for me. I had issues with my DVB-C USB receiver and usbreset did the task quite well.
This one, there is RPM as well:
http://ftp.rpmfind.net/linux/rpm2html/search.php?query=usbutils
BR, Zsolt _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
I have usbutils for CentOS 7 installed but it does not seem to include usbreset??
The packages in RHEL/CentOS 7/8 are too old.
Simon
Fedora 33, usbutils-012-5.fc33.x86_64. [~]$ usbreset bash: usbreset: command not found
BR, Bob
On Fri, 15 Jan 2021 08:34:13 +0100 "Simon Matter" simon.matter@invoca.ch wrote:
On 01/14/2021 03:00 PM, Zsolt SZ wrote:
On Thu, Jan 14, 2021 at 5:22 PM Frank Bures listfrank1@gmail.com wrote:
Is there a way how to reset the USB subsystem the same way one can restart networking or X without the necessity to reboot?
I am using Debian but the usbutils package has the usbreset application which works great for me. I had issues with my DVB-C USB receiver and usbreset did the task quite well.
This one, there is RPM as well:
http://ftp.rpmfind.net/linux/rpm2html/search.php?query=usbutils
BR, Zsolt _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
I have usbutils for CentOS 7 installed but it does not seem to include usbreset??
The packages in RHEL/CentOS 7/8 are too old.
Simon
Fedora 33, usbutils-012-5.fc33.x86_64. [~]$ usbreset bash: usbreset: command not found
BR, Bob
Okay, here we go:
$ wget https://github.com/gregkh/usbutils/raw/master/usbreset.c --2021-01-15 11:33:30-- https://github.com/gregkh/usbutils/raw/master/usbreset.c Resolving proxy (proxy)... 192.168.1.10 Connecting to proxy (proxy)|192.168.1.10|:8080... connected. Proxy request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/gregkh/usbutils/master/usbreset.c [following] --2021-01-15 11:33:30-- https://raw.githubusercontent.com/gregkh/usbutils/master/usbreset.c Connecting to proxy (proxy)|192.168.1.10|:8080... connected. Proxy request sent, awaiting response... 200 OK Length: 4084 (4.0K) [text/plain] Saving to: ‘usbreset.c’
100%[======================================>] 4,084 --.-K/s in 0s
2021-01-15 11:33:30 (51.0 MB/s) - ‘usbreset.c’ saved [4084/4084]
$ gcc -o usbreset usbreset.c $ ./usbreset Usage: usbreset PPPP:VVVV - reset by product and vendor id usbreset BBB/DDD - reset by bus and device number usbreset "Product" - reset by product name
Devices: Number 001/002 ID 04d9:1400 Number 006/002 ID 090c:1000 Flash Drive FIT
On Fri, 15 Jan 2021 11:36:00 +0100 "Simon Matter" simon.matter@invoca.ch wrote:
Fedora 33, usbutils-012-5.fc33.x86_64. [~]$ usbreset bash: usbreset: command not found
BR, Bob
Okay, here we go:
$ wget https://github.com/gregkh/usbutils/raw/master/usbreset.c --2021-01-15 11:33:30-- https://github.com/gregkh/usbutils/raw/master/usbreset.c Resolving proxy (proxy)... 192.168.1.10 Connecting to proxy (proxy)|192.168.1.10|:8080... connected. Proxy request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/gregkh/usbutils/master/usbreset.c [following] --2021-01-15 11:33:30-- https://raw.githubusercontent.com/gregkh/usbutils/master/usbreset.c Connecting to proxy (proxy)|192.168.1.10|:8080... connected. Proxy request sent, awaiting response... 200 OK Length: 4084 (4.0K) [text/plain] Saving to: ‘usbreset.c’
100%[======================================>] 4,084 --.-K/s in 0s
2021-01-15 11:33:30 (51.0 MB/s) - ‘usbreset.c’ saved [4084/4084]
$ gcc -o usbreset usbreset.c $ ./usbreset Usage: usbreset PPPP:VVVV - reset by product and vendor id usbreset BBB/DDD - reset by bus and device number usbreset "Product" - reset by product name
Devices: Number 001/002 ID 04d9:1400 Number 006/002 ID 090c:1000 Flash Drive FIT
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Great, it works. Still i wonder why this is not included in RH. BR, Bob
On 1/15/21 5:53 AM, Bob Marcan wrote:
Okay, here we go:
$ wget https://github.com/gregkh/usbutils/raw/master/usbreset.c --2021-01-15 11:33:30-- https://github.com/gregkh/usbutils/raw/master/usbreset.c Resolving proxy (proxy)... 192.168.1.10 Connecting to proxy (proxy)|192.168.1.10|:8080... connected. Proxy request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/gregkh/usbutils/master/usbreset.c [following] --2021-01-15 11:33:30-- https://raw.githubusercontent.com/gregkh/usbutils/master/usbreset.c Connecting to proxy (proxy)|192.168.1.10|:8080... connected. Proxy request sent, awaiting response... 200 OK Length: 4084 (4.0K) [text/plain] Saving to: ‘usbreset.c’
100%[======================================>] 4,084 --.-K/s in 0s
2021-01-15 11:33:30 (51.0 MB/s) - ‘usbreset.c’ saved [4084/4084]
$ gcc -o usbreset usbreset.c $ ./usbreset Usage: usbreset PPPP:VVVV - reset by product and vendor id usbreset BBB/DDD - reset by bus and device number usbreset "Product" - reset by product name
Devices: Number 001/002 ID 04d9:1400 Number 006/002 ID 090c:1000 Flash Drive FIT
Fantastic! Thanks
Cheers Frank
On 1/14/21 3:00 PM, Zsolt SZ wrote:
On Thu, Jan 14, 2021 at 5:22 PM Frank Bures listfrank1@gmail.com wrote:
Is there a way how to reset the USB subsystem the same way one can restart networking or X without the necessity to reboot?
I am using Debian but the usbutils package has the usbreset application which works great for me. I had issues with my DVB-C USB receiver and usbreset did the task quite well.
This one, there is RPM as well:
http://ftp.rpmfind.net/linux/rpm2html/search.php?query=usbutils
Unfortunately, the RPM package for CentOS 7 does not contain usbreset.
Cheers Frank
On Fri, Jan 15, 2021 at 6:01 PM Frank Bures listfrank1@gmail.com wrote:
On 1/14/21 3:00 PM, Zsolt SZ wrote:
On Thu, Jan 14, 2021 at 5:22 PM Frank Bures listfrank1@gmail.com wrote:
Is there a way how to reset the USB subsystem the same way one can restart networking or X without the necessity to reboot?
I am using Debian but the usbutils package has the usbreset application which works great for me. I had issues with my DVB-C USB receiver and usbreset did the task quite well.
This one, there is RPM as well:
http://ftp.rpmfind.net/linux/rpm2html/search.php?query=usbutils
Unfortunately, the RPM package for CentOS 7 does not contain usbreset.
:-( Sorry for misleading you, I had to check it before. But I think it is included as https://github.com/gregkh/usbutils site was mentioned which is the home of usbreset.
I see Bob Marcan give you the real solution, great.
Cheers, Zsolt
:-( Sorry for misleading you, I had to check it before. But I think it is included as https://github.com/gregkh/usbutils site was mentioned which is the home of usbreset.
I see Bob Marcan give you the real solution, great.
Cheers, Zsolt
I'm not author of this solution. BR, Bob