How to stop hub_port_status failed messages flooding syslog?
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to stop hub_port_status failed messages flooding syslog?
I have this troublesome active 7-port USB-hub, which sometimes goes defunctioning when some usb-device is uncleanly detached.
When it does, I switch it off and connect again to an another port, it usually works and all the usb-devices work again.
But for example now currently, I then connected the hub to the different usb port (2), and the port it were (1) keeps outputting error messages although nothing is connected to that port anymore:
How to stop it whining without rebooting the machine?
So I guess, how to reset the whole usb-system on the machine without rebooting?
....would go forever if I do not reboot the machine.
Quote:
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 046d:08b2 Logitech, Inc. QuickCam Pro 4000
Bus 001 Device 072: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 005: ID 1a40:0101 TERMINUS TECHNOLOGY INC. USB-2.0 4-Port HUB
Bus 001 Device 006: ID 1a40:0101 TERMINUS TECHNOLOGY INC. USB-2.0 4-Port HUB
Bus 002 Device 003: ID 0b05:179c ASUSTek Computer, Inc.
Bus 001 Device 073: ID 0603:00f2 Novatek Microelectronics Corp.
Bus 001 Device 074: ID 046d:c05a Logitech, Inc. Optical Mouse M90
Bus 002 Device 006: ID 050d:0237 Belkin Components F5U237 USB 2.0 7-Port Hub
Bus 002 Device 007: ID 046d:c521 Logitech, Inc. Cordless Mouse Receiver
Bus 002 Device 008: ID 046d:08b2 Logitech, Inc. QuickCam Pro 4000
Bus 002 Device 009: ID 2040:5200 Hauppauge
Bus 002 Device 010: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 002 Device 004: ID 04fc:0c05 Sunplus Technology Co., Ltd
This happens also sometimes because some usb-device connected to that usb-hub fails (for example DVB-T dongle). If I disconnect the dongle and connect it again, I'd except it to work, but it hangs like that starting to flood system log.
Yes, I know I can filter it out not ending to /var/log/messages with rsyslog, but still I think there is something broken when dmesg sees those messages every 5 seconds until I reboot the machine.
Just wondering is there anything to be done to end that condition without rebooting.
How to safely remove USB device from the Linux system.
Well, they never stop if they start.
BTW, to be found with search engines:
How to safely remove USB device from the Linux system.
To prevent this happening with some devices, I need to manually detach the USB device in the terminal window like this:
Code:
# lsusb | grep GEMBIRD
Bus 002 Device 018: ID 1908:0222 GEMBIRD
# usb_modeswitch -v 0x1908 -p 0x0222
Looking for default devices ...
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 018 on bus 002 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found; name unknown, limitation of libusb1
OK, driver "unkown" detached
....
edit:
maybe --detach-only option will be needed if the device is something else.
Thanks for posting your solution. I never heard of 'usb_modeswitch': "USB Modeswitch brings up your datacard into operational mode. When plugged in they identify themselves as cdrom and present some non-Linux compatible installation files. This tool deactivates this cdrom-devices and enables the real communication device. It supports most devices built and sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.