Can't use keyboard or mouse after installing sys-usb

Was trying to use USB microphone, but sys-usb is disabled by default so I went through the documentation and installed it.
sudo qubesctl state.sls qvm.sys-usb
The USB was still working after said command. It was only until I powered off the machine it no longer was detecting my mouse or password. I can not enter password to decrypt. What should I do? Please and thank you Qubes Community

add qubes.skip_autostart to kernel option when you in grub menu, so your kernel paramenter have something like ............rhgb quiet qubes.skip_autostart then f10 to boot

to modify kernel parameters, press e when you in grub menu.

1 Like

Did you try the suggestion? Did you make any progress on this problem? I don’t know if I am having the same problem or not, but my usb mouse and KB work fine after install, until after my first reboot, then they won’t work at all.

What does that accomplish, @51lieal (because my problem seems a little similar but I am unsure what skipping autostart would do and a little afraid to modify kernel parameters)?

what happen before you do first reboot? create sys-usb ? if yes, what command.

it’s just telling to not start vm that automatically start, it’s safe and it’s not permanent (only for that boot), because we don’t write it, in grub config.

Thank you.

I installed Qubes 4.1, it boots, I plug in my mouse and click OK and the mouse works. I edit the Input.Keyboard file and plug in my keyboard and it works. Both through sys-usb but working in every Qube automatically without attaching (which seems like a security risk?).

However, then if I boot again, mouse and KB won’t work in dom0 or anywhere. It will say device name available when they are plugged in, but they won’t attach. It says QubesException device attached failed: but then it doesn’t provide a more specific error for why it won’t attach.

that mean you create sys-usb at initial setup ? what’s the policy inside input.keyboard and mouse? did you enable no-strict-reset ?

1 Like

sys-usb was automatically created for me and it was already running also.

Input.Keyboard has:
sys-usb dom0 allow
$anyvm $anyvm deny

Input.Mouse I didn’t edit from the default, it has:
sys-usb dom0 ask,user=root,default_target=dom0
$anyvm $anyvm deny

Of course I am not using Qubes as a root user.

I didn’t enable no-strict-reset, I have tried to read all threads and documents. I have not heard of this before.

if you hadn’t do any changes, then :
boot qubes with kernel parameters i mention above (if keyboard and mouse not working)

  • remove all line in input.keyboard and mouse except $anyvm $anyvm deny
  • run sudo qubesctl state.sls qvm.usb-keyboard

then reboot, you should be able to use keyboard, and after login screen there’s a notification to confirm if mouse is allowed or not.

for futher documentation, read this. USB qubes | Qubes OS
read it 2 - 3 times, to fully understand about sys-usb.

1 Like

Thanks, I have done these steps and the mouse and keyboard work.

However, I was not prompted after plugging in the mouse or keyboard (or later I tried my usb hub). It seems insecure?

I have read the documentation about usb many times, but I think I am not understanding part of it.

I planned to type my password(s) on the built-in laptop keyboard (never usb keyboard) for security.

However the methods in the documentation didn’t work as you know, I could not get the keyboard or mouse to work at all.

Most of the modern laptop internal keyboard using usb connection, just add this kernel parameters in grub rd.qubes.hide_all_usb see if you can enter luks password or not. if it doesn’t work, that mean your pc is using usb.