USB Hubs + sys-usb

18 views
Skip to first unread message

Mathew Evans

unread,
May 14, 2017, 11:34:52 AM5/14/17
to qubes-users
Ive been using qubes for quite a while. Recently i wanted to pass my USB-Sound device to a appVM, which is located within a Powered Hub. I noticed that qvm-usb didn't display it at all. But a USB Storage device was accessable via the qubes-manager to attach to a appVM.

---------------------------------------
Location of issue:
/usr/lib64/python2.7/site-packages/qubes/qubesutils.py

lines: 472 , 473

usb_device_re = re.compile(r"^[0-9]+-[0-9]+(_[0-9]+)?$")
usb_port_re = re.compile(r"^$|^[0-9]+-[0-9]+(\.[0-9]+)?$")

As a temporary fix I replaced the above lines with:

usb_device_re = re.compile(r"^[0-9]+-[0-9]+(_[0-9]+)+$")
usb_port_re = re.compile(r"^$|^[0-9]+-[0-9]+(\.[0-9]+)+$")

---------------------------------------

Now devices in a powered USB-Hub show up for me as.
2-1.1.1.1 -> 2-1.1.1.6 (first hub)
3-1.1.1.1 -> 3-1.1.1.4 (2nd hub)

Hopefully this is of help to someone else and Devs can look after a more permanent fix for this issue. Additionally some Microsoft USB devices include the registered symbol in the USB Desc text, this causes qvm-usb to fail to display at all.

Issue is in same file as before but on line 474, temp fix for anyone with such issues replace [ -~] with [ -~(\x20-\xE0)] kinda defeats the purposes of the usb_desc_re regex but atleast they display with qvm-usb now.

Reply all
Reply to author
Forward
0 new messages