how to use app-shutdown-idle

157 views
Skip to first unread message

lik...@gmx.de

unread,
Apr 29, 2019, 4:36:38 AM4/29/19
to qubes...@googlegroups.com
Hi!

According to https://github.com/QubesOS/updates-status/issues/782 the script "app-shutdown-idle" is included in the latest stable templates.
How to enable/use it? Unfortunately, I couldn't find any documentation in https://github.com/QubesOS/qubes-app-shutdown-idle to use it.

Best, Pete

Thierry Laurion

unread,
Apr 30, 2019, 11:39:00 PM4/30/19
to lik...@gmx.de, qubes...@googlegroups.com
"The mechanism is opt-in - enable shutdown-idle service in qube settings to use it."
Which litterally means what it says.

Best, Pete

--
You received this message because you are subscribed to the Google Groups "qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users...@googlegroups.com.
To post to this group, send email to qubes...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/fae7f7e6-7983-6b87-065f-fa79e149cfec%40gmx.de.
For more options, visit https://groups.google.com/d/optout.

lik...@gmx.de

unread,
May 1, 2019, 5:20:01 AM5/1/19
to qubes...@googlegroups.com
On 5/1/19 4:38 AM, Thierry Laurion wrote:
> On Mon, Apr 29, 2019, 04:36 , <liked2-Mm...@public.gmane.org <mailto:lik...@gmx.de>> wrote:
>
> Hi!
>
> According to https://github.com/QubesOS/updates-status/issues/782 the script "app-shutdown-idle" is included in the latest stable templates.
> How to enable/use it? Unfortunately, I couldn't find any documentation in https://github.com/QubesOS/qubes-app-shutdown-idle to use it.
>
> "The mechanism is opt-in - enable |shutdown-idle| service in qube settings to use it."
> Which litterally means what it says.

[dom0]$ qvm-service --enable AppVmName shutdown-idle
did not the trick. The vms stay running even if all windows are closed. Additionally, I couldn't find anywhere the setting 'qubesidle.idleness_monitor' mentioned in the second link to adjust the timeout.

Any help how to do and where to enable it is appreciated.

>
>
> Best, Pete
>
> --
> You received this message because you are subscribed to the Google Groups "qubes-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscribe-/JYPxA39Uh5...@public.gmane.org <mailto:qubes-users%2Bunsubscribe-/JYPxA39Uh5...@public.gmane.org>.
> To post to this group, send email to qubes-users-/JYPxA39Uh5...@public.gmane.org <mailto:qubes...@googlegroups.com>.
> --
> You received this message because you are subscribed to the Google Groups "qubes-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscribe-/JYPxA39Uh5...@public.gmane.org <mailto:qubes-users+unsubscribe-/JYPxA39Uh5...@public.gmane.org>.
> To post to this group, send email to qubes-users-/JYPxA39Uh5...@public.gmane.org <mailto:qubes...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/CAAzJznzQd7NL5Ew-OQNW67X-fxCQkEMZDAjZP7VUNuPG5N%2BGgQ%40mail.gmail.com <https://groups.google.com/d/msgid/qubes-users/CAAzJznzQd7NL5Ew-OQNW67X-fxCQkEMZDAjZP7VUNuPG5N%2BGgQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

qubeslover

unread,
May 2, 2019, 5:55:27 AM5/2/19
to qubes...@googlegroups.com





‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, May 1, 2019 11:19 AM, <lik...@gmx.de> wrote:

> On 5/1/19 4:38 AM, Thierry Laurion wrote:
>
> > On Mon, Apr 29, 2019, 04:36 , <liked2-Mm...@public.gmane.org mailto:lik...@gmx.de> wrote:
> >
> > Hi!
> >
> > According to https://github.com/QubesOS/updates-status/issues/782 the script "app-shutdown-idle" is included in the latest stable templates.
> > How to enable/use it? Unfortunately, I couldn't find any documentation in https://github.com/QubesOS/qubes-app-shutdown-idle to use it.
> >
> >
> > "The mechanism is opt-in - enable |shutdown-idle| service in qube settings to use it."
> > Which litterally means what it says.
>
> [dom0]$ qvm-service --enable AppVmName shutdown-idle
> did not the trick. The vms stay running even if all windows are closed. Additionally, I couldn't find anywhere the setting 'qubesidle.idleness_monitor' mentioned in the second link to adjust the timeout.
>
> Any help how to do and where to enable it is appreciated.
>

Hi,
(more or less) same problem here. On my laptop shutdown-idle only works with Fedora-based VMs. It has never worked with Debian/Whonix-based VMs.

If somebody could help that would be great.


> > Best, Pete
> >
> > --
> > You received this message because you are subscribed to the Google Groups "qubes-users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscribe-/JYPxA39Uh5...@public.gmane.org <mailto:qubes-users%2Bunsubscribe-/JYPxA39Uh5...@public.gmane.org>.
> > To post to this group, send email to qubes-users-/JYPxA39Uh5...@public.gmane.org <mailto:qubes...@googlegroups.com>.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/fae7f7e6-7983-6b87-065f-fa79e149cfec%40gmx.de.
> > For more options, visit https://groups.google.com/d/optout.
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups "qubes-users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscribe-/JYPxA39Uh5...@public.gmane.org mailto:qubes-users+unsubscribe-/JYPxA39Uh5...@public.gmane.org.
> > To post to this group, send email to qubes-users-/JYPxA39Uh5...@public.gmane.org mailto:qubes...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
>
> You received this message because you are subscribed to the Google Groups "qubes-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users...@googlegroups.com.
> To post to this group, send email to qubes...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/6d0fbf83-ea3f-6257-480b-363c4b86752f%40gmx.de.

unman

unread,
May 2, 2019, 9:00:10 PM5/2/19
to qubes...@googlegroups.com
On Thu, May 02, 2019 at 09:55:17AM +0000, 'qubeslover' via qubes-users wrote:
>
>
>
>
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Wednesday, May 1, 2019 11:19 AM, <lik...@gmx.de> wrote:
>
> > On 5/1/19 4:38 AM, Thierry Laurion wrote:
> >
> > > On Mon, Apr 29, 2019, 04:36 , <liked2-Mm...@public.gmane.org mailto:lik...@gmx.de> wrote:
> > >
> > > Hi!
> > >
> > > According to https://github.com/QubesOS/updates-status/issues/782 the script "app-shutdown-idle" is included in the latest stable templates.
> > > How to enable/use it? Unfortunately, I couldn't find any documentation in https://github.com/QubesOS/qubes-app-shutdown-idle to use it.
> > >
> > >
> > > "The mechanism is opt-in - enable |shutdown-idle| service in qube settings to use it."
> > > Which litterally means what it says.
> >
> > [dom0]$ qvm-service --enable AppVmName shutdown-idle
> > did not the trick. The vms stay running even if all windows are closed. Additionally, I couldn't find anywhere the setting 'qubesidle.idleness_monitor' mentioned in the second link to adjust the timeout.
> >
> > Any help how to do and where to enable it is appreciated.
> >
>
> Hi,
> (more or less) same problem here. On my laptop shutdown-idle only works with Fedora-based VMs. It has never worked with Debian/Whonix-based VMs.
>
> If somebody could help that would be great.
>
>

It was a known bug in Debian templates, and the package was built in
testing. Try updating to testing packages.

qubeslover

unread,
May 3, 2019, 8:01:50 AM5/3/19
to qubes...@googlegroups.com



Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Hello unman and thanks for your reply.

I am not sure I understand what you mean (sorry). Should I update my Debian template to buster in order to get shutdown-idle working? Or what else?

Thanks

lik...@gmx.de

unread,
May 3, 2019, 2:27:40 PM5/3/19
to qubes...@googlegroups.com
On 5/2/19 10:55 AM, 'qubeslover' via qubes-users wrote:
>
>
>
>
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Wednesday, May 1, 2019 11:19 AM, <liked2-Mm...@public.gmane.org> wrote:
>
>> On 5/1/19 4:38 AM, Thierry Laurion wrote:
>>
>>> On Mon, Apr 29, 2019, 04:36 , <liked2-Mmb7MZpHnFY-X...@public.gmane.org mailto:liked2-Mm...@public.gmane.org> wrote:
>>>
>>> Hi!
>>>
>>> According to https://github.com/QubesOS/updates-status/issues/782 the script "app-shutdown-idle" is included in the latest stable templates.
>>> How to enable/use it? Unfortunately, I couldn't find any documentation in https://github.com/QubesOS/qubes-app-shutdown-idle to use it.
>>>
>>>
>>> "The mechanism is opt-in - enable |shutdown-idle| service in qube settings to use it."
>>> Which litterally means what it says.
>>
>> [dom0]$ qvm-service --enable AppVmName shutdown-idle
>> did not the trick. The vms stay running even if all windows are closed. Additionally, I couldn't find anywhere the setting 'qubesidle.idleness_monitor' mentioned in the second link to adjust the timeout.
>>
>> Any help how to do and where to enable it is appreciated.
>>
>
> Hi,
> (more or less) same problem here. On my laptop shutdown-idle only works with Fedora-based VMs. It has never worked with Debian/Whonix-based VMs.

Could you describe please in a bit more detail how you enable this service. For me the commandline above does not work even for Fedora templates. The questions are as following:
1. which commandline do you use to enable it?
2. Does the service setting apply to a running AppVm or do I have to restart it to be enabled?
3. where can I find the timeout property 'qubesidle.idleness_monitor'?
4. Is the service setting a persistent setting or do I need an autostart script in dom0 for that?

qubeslover

unread,
May 4, 2019, 7:13:19 AM5/4/19
to qubes...@googlegroups.com



Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Hi,
1. In a fedora-29 template type "sudo dnf install qubes-idle"

2. Create a fedora-29 based VM (let's call it "shutdown", it is just a test)

3. Shutdown's "Qubes Setting" -> Services -> Type shutdown-idle in the bar and click on +

4. Open a terminal in the Qube we called 'shutdown' and close it.

4b. If you want to check that qubes-idle-watcher is running type in the terminal ps aux | grep qubes-idle-watcher : you should see something like this running:

user 764 0.3 1.6 243856 25340 ? S 13:07 0:00 /usr/bin/python3 /usr/bin/qubes-idle-watcher

5. Close the terminal in the qubes.

6. After 15 minutes (without any windows open) the qubes 'shutdown' should automatically shutdown :-)

This works just perfectly in fedora-based VMs but it is not working in Debian/Whomix-based VMs.

Cheers

lik...@gmx.de

unread,
May 5, 2019, 8:17:19 AM5/5/19
to qubes...@googlegroups.com
On 5/4/19 12:13 PM, 'qubeslover' via qubes-users wrote:
>
>
>
> Sent with ProtonMail Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Friday, May 3, 2019 8:27 PM, <liked2-Mm...@public.gmane.org> wrote:
>
>> On 5/2/19 10:55 AM, 'qubeslover' via qubes-users wrote:
>>
>>> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Qubeslover, thank you very much for the detailled explanation. I managed it to enable! Now, I'm a qubeslover-lover. :)

Btw. I looked again through the docs and cannot find any places from which I could collect the knowledge you provided here. Only URLs regarding this topic I could find are:
https://www.qubes-os.org/doc/qubes-service/
https://github.com/QubesOS/updates-status/issues/782
https://github.com/QubesOS/qubes-app-shutdown-idle

Am I missing an important source for docs or is this (simply) "advanced qubes experience"?

@Andrew: I could create a manual for this. Where to put it best?

qubeslover

unread,
May 10, 2019, 6:30:14 AM5/10/19
to qubes...@googlegroups.com



Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Glad it has been helpful. I have a question. Have you managed to run shutdown-idle in a Fedora-based VM? Or in a Debian-based one? In this latter, if I type 'ps aux | grep qubes' I notice the the process 'qubes-idle-watcher' is not running (and even if I launch it manually it does not work).

Cheers

lik...@gmx.de

unread,
May 10, 2019, 11:23:50 AM5/10/19
to qubes...@googlegroups.com
On 5/10/19 11:30 AM, 'qubeslover' via qubes-users wrote:
>
>
>
> Sent with ProtonMail Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Sunday, May 5, 2019 2:17 PM, <liked2-Mm...@public.gmane.org> wrote:
>
>> On 5/4/19 12:13 PM, 'qubeslover' via qubes-users wrote:
>>
>>> Sent with ProtonMail Secure Email.
>>> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>>> On Friday, May 3, 2019 8:27 PM, liked2-Mmb7MZpHnFY-X...@public.gmane.org wrote:
>>>
>>>> On 5/2/19 10:55 AM, 'qubeslover' via qubes-users wrote:
>>>>
>>>>> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
It runs for Fedora-based VMs like a charm. In Debian I encounter the same like described by you: this process is not running.
I haven't tried the testing packages as proposed by unman.
Reply all
Reply to author
Forward
0 new messages