Yet another USB keyboard thread

New Qubes OS user, installed latest 4.3 on new build, then installed fedora-42 template, switched all qubes to it and uninstalled original fedora-xfce template.
All is running nicely.

Next I did the following:

  1. Updated dom0 and created sys-usb with sudo qubesctl state.sls qvm.usb-keyboard
  2. Ensured that “usbcore.authorized_default=0” is in /etc/default/grub
  3. Ensured that “rd.qubes.hide_all_usb” is not in /etc/default/grub

On reboot I have my USB keyboard at LUKS screen but once I get to user password screen keyboard is dead. (presumably once sys-usb starts)

E key at boot screen, added “qubes.skip_autostart”, can now boot into system with keyboard and mouse functioning properly.

All 4 of my USB controllers are attached to sys-usb. (Qube Manager, sys-usb, settings, devices)

lsusb in dom0 shows my keyboard, mouse and everything else.

What do i need to do to make this work?

1 Like

Make sure your Qubes Global Config USB Devices settings look like this:

Mine does not look like yours.


When I attempted to start the sys-usb qube I got a popup:
[Dom0] Error starting Qube!
Cannot connect to qrexec agent for 60 seconds, see /var/log/xen/console/guest-sys-usb.log for details

I looked into this log, the last latest line reads:
[ 0.479089] Kernel panic - not syncing: fatal exception

And then I lost keyboard again.

Can you post a little more of /var/log/xen/console/guest-sys-usb.log?

But also, global config not finding USB qube suggests something is wrong with device assignments to sys-usb.

And finally, which kernel sys-usb uses?

Not sure if related or not, but I had an adjacent issue after a fresh 4.3 install with USB devices:

guest-sys-usb.log (108 KB)
I am using kernel 6.17.9-1.fc41

I originally installed with 6.12.59.1.fc41 fedora-xcfe using sys-usb from installer and had no issues with sys-usb and booting but audio did not work. Audio now works with my current setup but sys-usb issue of course.

Please see pic I posted of that screen, I could not change anything there.

guest-sys-usb.log (108 KB)
I originally installed with 6.12.59.1.fc41 fedora-xcfe using sys-usb from installer and had no issues with sys-usb and booting but audio did not work. Audio now works with my current setup but sys-usb issue of course.

Do you use audio via sys-usb? If not, it seems the audio is related to dom0 kernel version, which can be different than sys-usb one. You can change sys-usb kernel version in its settings (advanced tab).

As for the crash, can you share more details about the hardware? Specifically:

  • CPU model
  • sudo lspci -vnn output - at least the entries about USB controllers connected to sys-usb

If you get sys-usb to boot with the older kernel, output of sudo lspci -vxxxnn from inside sys-usb would be useful too.

I didn’t use audio via sys-usb specifically and didn’t know I had to; do I? (remember, I’m new!)

I just tried now and audio now not working again, system doesn’t see my earbuds when I plug them in there is and no sound even though Audio mixer shows stream activity. This definitely worked before I attempted to install sys-usb after fedora-42 template install. (detected earbuds when plugging in then too)

CPU is AMD 9700X.
lspci.log (13.4 KB)
Note: I renamed attached lspci.txt to lspci.log as I was unable to attach txt file.

Is there another way I can attempt to set up sys-usb or should I consider reinstalling OS again form scratch?

OK, two steps forward, one step back.

  1. Deleted sys-usb
  2. Changed default kernel back to 6.12.59.1.fc.41
  3. Ran sudo qubesctl state.sls qvm.usb-keyboard
  4. sys-usb now starting with keyboard enabled for luks and user login

I then followed advice from posts in this thread to set keyboard and mouse to ‘always ask’ in Qubes Global Config USB Devices settings.

Now after luks and login I do get sys-usb popups asking me to allow keyboard adn mouse but have no way no 'OK" them as both keyboard and mouse don’t work until these are OK’d.

Is there a terminal command to set Qubes Global Config USB Devices settings for keyboard and mouse to ‘enable’?

Any other way to solve this?

Thank you.

You can set it to just allow instead of ask

  1. /etc/qubes-rpc/policy/qubes.InputKeyboard
  2. sys-usb dom0 allow

All good now thank you!

1 Like
  1. Deleted sys-usb
  2. Changed default kernel back to 6.12.59.1.fc.41
  3. Ran sudo qubesctl state.sls qvm.usb-keyboard
  4. sys-usb now starting with keyboard enabled for luks and user login

Since you got sys-usb working, can you share sudo lspci -vxxxnn output from within sys-usb (don’t forget about sudo this time)? It would help debugging what happened on the newer kernel.

sys-usb-lspci.log (13.6 KB)

Upstream report + proposed patch: Making sure you're not a bot!

1 Like