Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Slow udev USB attachment on Linux

Featured Replies

Hello guys! First time user, love the ease of use of the software and ability to do direct qeum configuration. Let me explain my setup first, then I'll get to the problem I'm seeing.

 

Setup: Unraid 6.1, VM enabled, 2 Virtual machines. Direct PCI passthrough of a USB *controller* and an Nvidia graphics card to each VM.

VM 1: Windows 10.

VM 2: Fedora 23

Both VMs have their graphics card and USB 3.0 controller plugged into a 2 port Display Port/USB KVM switch. Usb devices like keyboard and mouse attached directly to KVM switch.

 

Ok, simple. I push a button and I my monitor and peripherals detach from one VM and attach to the other. This actually works with no observable latency with windows 10. However, on Fedora, everytime I switch into that system, my keyboard and mouse don't do anything for about 5 seconds. Now I'm decently adept with Linux since I use it daily for work (DevOps), but playing with the IO systems is something I've never really done. I googled around and found out that systemd, dbus and udev are involved, and I thought I'd go as low as I could to see whats happening. Here is udev log

 

### Push KVM button switching from Fedora into Windows ###
KERNEL[6285.481699] remove   /devices/pci0000:00/0000:00:1e.0/0000:02:01.0/0000:03:06.0/usb3/3-2/3-2.1/3-2.1:1.0/0003:04D9:FA51.004A/input/input81/mouse1 (input)
[...]
UDEV  [6285.840849] remove   /devices/pci0000:00/0000:00:1e.0/0000:02:01.0/0000:03:06.0/usb3/3-2 (usb)
### Push KVM button switching from Windows into Fedora ###
KERNEL[6288.320954] add      /devices/pci0000:00/0000:00:1e.0/0000:02:01.0/0000:03:06.0/usb3/3-2 (usb)
[...]
KERNEL[6288.809874] add      /devices/pci0000:00/0000:00:1e.0/0000:02:01.0/0000:03:06.0/usb3/3-2/3-2.1/3-2.1:1.2/0003:04D9:FA51.0053 (hid)
### at this point the screen is back to Fedora but no USB devices work until the next line ###
KERNEL[6295.814359] add      /devices/pci0000:00/0000:00:1e.0/0000:02:01.0/0000:03:06.0/usb3/3-2/3-2.1/3-2.1:1.2/0003:04D9:FA51.0053/input/input90 (input)
[... more output but is now usable and no real time elapse till end]

 

See full log here: http://dpaste.com/0TPYN6X

 

My question here is what is happening in that 7 seconds between my monitor switching over and my USB devices working. Is there some kernel setting I can tweak to make this faster? A systemd or udev setting? Basically I'm just looking for any additional hints or leads to eliminate this latency.

 

Thanks and this is some pretty awesome software and community, cheers!

  • Author

Is there any additional information I can provide to help figure this issue out? Or perhaps a more linux specific forum you guys recommend?

 

Thanks!

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.