I made a small edit as I was trying to identify a USB port without anything plugged in…
Isn’t the end misleading?
Doesn’t it prevent the qube to start if there is nothing plugged on the port like qvm-device
?
I believe that Qubes 4.3 will provide a lot of new features like that (with the new devices API), and that it will be easier to automate this kind of thing.