My mouse and keyboard are wired devices controlled by the sys-usb qube do they need to be controlled by the sys-usb qube? I’m trying to switch my default-dvm from fedora-42-xfce to fedora-43-xfce but cannot do so without shutting down sys-usb and then I have no input.
I’m one click away if only I didn’t have to shutdown sys-usb what do I do?
This comes up repeatedly.
You can run a script like this in dom0:
#!/bin/sh
qvm-shutdown sys-usb
qvm-prefs sys-usb template fedora-43-xfce
qvm-start sys-usb
sleep 3m
qvm-shutdown sys-usb
qvm-prefs sys-usb template fedora-42-xfce
qvm-start sys-usb
That gives you 3 minutes in which to check that the sys-usb is working
properly under 43-xfce, after which the template will be reset. If you
are happy you can comment out lines 4-7 and run the script again.
I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.
qvm-shutdown: error:no such domain: ‘qvm-prefs’
I did not put that.
What I intended, though Lord knows what discourse has done with it,
was the script should have one command each line - shutdown, change
prefs, start, like this:
qvm-shutdown sys-usb
qvm-prefs sys-usb template fedora-43-xfce
qvm-start sys-usb
…
I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.
I see what @unman intended, but it is not sure to be the same everywhere.
In case it is not clear on your screen:
- it is an 8 line file.
- all lines end with <enter> or <return>. The key marked like this: ‘⏎’
- the first line begins with # character.
- the other lines begin with ‘qvm’ or ‘sleep’
I hope it is not too obvious, but it seems like qvm-prefs is on the same line as qvm-shutdown…
The first line shuts down my keyboard and mouse.
The first line kills my keyboard and mouse and I cannot continue with the rest of the script.
It sounds like by your text that you are not executing the script itself, but rather typing in each line of the script individually followed by the enter-key. Since it’s such a small script putting it all on a single command line works fine. To put multiple commands on a single command line in linux you can use a semi-colon.
Command 1 ; Command 2
this runs command 1 first and then command 2
Hope that helps…