Qui-devices broken?

running qubes 4.3, this morning when I booted up my computer, I noticed that the usb devices widget was missing. restarting sys-usb and my computer had no effect. I also have solaar installed for my logitech devices, and it’s widget is not showing up when it was previously.

qvm-usb sees the usb devices, and I am able to access the from sys-usb. Some googling led me to qui-devices, when I run that from the dom0 terminal, I get this error:

Traceback (most recent call last):
  File "/usr/bin/qui-devices", line 33, in <module>
    sys.exit(load_entry_point('qui==0.1', 'gui_scripts', 'qui-devices')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/qui/devices/device_widget.py", line 777, in main
    app = DevicesTray("org.qubes.qui.tray.Devices", qapp, dispatcher)
  File "/usr/lib/python3.13/site-packages/qui/devices/device_widget.py", line 127, in __init__
    self.initialize_vm_data()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/qui/devices/device_widget.py", line 267, in initialize_vm_data
    if wrapped_vm.is_usbvm:
       ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/qui/devices/backend.py", line 102, in is_usbvm
    for interface in dev.device.interfaces:
                     ^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/qubesadmin/device_protocol.py", line 1370, in device
    raise ProtocolError("No devices matches to assignment")
qubesadmin.device_protocol.ProtocolError: No devices matches to assignment

Does anyone know how I could get the widget so come back?

Mhm. Please take my opinion with a grain of salt.

I guess you have an issue in the device assignment of a qube configuration.
I would try unassigning devices via gui.

If that also wouldn’t help I’d make a backup of /var/lib/qubes/qubes.xml and then stop the qubesd service. Then modify the qubes.xml and remove the assigned devices to that sys-usb qube.

1 Like

Thanks a lot! That was it.

I was testing my egpu last night, and I unplugged it, but forgot to detach it from the vm, so qubes was trying to attach a device that didn’t exist to a qube.