Auto shutdown for -dvm qubes after closing of the last open program?

Is there a way to set auto shutdown for -dvm qubes after closing of the last open program, like it is with dispXXXX qubes ?

look at those scripts :wink:

1 Like

And take a look at:

1 Like

Auto Shutdown VM when app is closed

  • take a look at:

Allow idle timeout to be user configurable by unman · Pull Request #22 · QubesOS/qubes-app-shutdown-idle · GitHub

shutdown-idle is the way.
I reconfigure it for a faster shutdown - the default is 15 mins, but
this is too long. You can change this by editing TIMEOUT_SECONDS in
/usr/lib/python3/dist-packages/qubesidle/idleness_monitor.py

2 Likes

Thanks guys, this helped a lot!

1 Like

Haha, learned the disp behavior the hard way (not waiting for last progam to shutdown). Dropped 0.15BTC key on the floor. Was not funny at that moment at all. (Offtopic: I did a wide recovery sweep of thin pool afterwards, and guess what? All “ephemeral” keys created within “normal” VMs were there, which is definitely not good. We need to wipe before deallocating. But this one, no)

1 Like