I want one or two qubes to shut down when they are not active. How can I achieve this?
Install package qubes-app-shutdown-idle in the template. That will add the option “Shut down when idle” in the AppVM settings. If you enable it, the qube will shutdown after 15’ of inactivity.
I had actually already done that. The Qube also shuts down, but it takes longer than 15 minutes. Is there any way to adjust it so that it works better? And can the 15-minute duration be shortened?"
There were some unofficial user scripts here on the forum that allowed changing the time. I don’t have a link though. Perhaps you can find by searching.
Some ideas here: Allow idle timeout to be user configurable by unman · Pull Request #22 · QubesOS/qubes-app-shutdown-idle · GitHub
And the docs, just for future readers: How to enable a qube service — Qubes OS development documentation