LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-31-2023, 07:20 AM   #1
Luk
LQ Newbie
 
Registered: Aug 2022
Posts: 26

Rep: Reputation: 0
A USB switch breaks USB sometimes.


I have a cheap mechanical USB switch connected like this:

laptop1 ->
PC1 -> mechanical switch -> powered usb hub --> a keyboard & a wireless mouse dongle
laptop2 ->

The PC is running Arch, laptop1 is running AlmaLinux 9, laptop2 is running Windows 10.

I use it a lot to switch between devices. I probably switch close to 20-40 times per day. The problem only happens on Linux devices, never on Windows. It happens maybe once every 2 days or so. Basically, when it happens the Linux PC or laptop stops seeing the USB devices connected. It can't see the keyboard and mouse nor the powered USB hub. These devices don't show up in lsusb. There are no dmesg messages generated when the switch is switched.

What I have tried:
- disconnecting everything and powering down the hub, then reconnecting to the same USB port. - no difference
- simply connecting to a different USB port without powering down etc - it works fine
- restarting the Linux PC or laptop (without touching the devices) - it works fine

Is anyone else experiencing something like this? If this was happening on all my devices I'd just dismiss it as a dodgy USB switch, but in 3 weeks I have been using this switch it has happened many times on each Linux device and never on the windows device. So there is some difference how the hardware is used.

If anyone has any ideas how to troubleshoot it in absence of any messages from the kernel I'd love to hear them.
 
Old 08-31-2023, 09:36 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
Are you issuing a umount command before removing a mountable USB device?

Last edited by jailbait; 08-31-2023 at 09:39 AM.
 
Old 09-01-2023, 12:33 AM   #3
Luk
LQ Newbie
 
Registered: Aug 2022
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jailbait View Post
Are you issuing a umount command before removing a mountable USB device?
Perhaps my "ASCII drawing" wasn't that readable. The USB devices are just a powered hub, a keyboard and a mouse.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Sometimes lxc-slackware breaks due to erroneously created ${DEV}/null file crts Slackware 2 01-02-2020 01:41 PM
Force breaks to avoid eye strain (typing breaks) upnort Slackware 12 09-19-2019 03:43 PM
I moved to Slackware -current, but it breaks, sometimes eyeinidas Slackware 8 12-02-2018 07:08 PM
Sometimes my usb phone works in SUSE 10.1, sometimes it doesn't! *Xenny* Linux - Hardware 1 08-12-2006 07:16 AM
Mouse - Sometimes work and sometimes does'nt danishmr Linux - Hardware 0 05-09-2002 04:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration