This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

Auto shutdown Zorin when idle

zorinben

Sat Aug 30, 2014 9:19:44 am

Hi All,

I am gonna deploy Zorin 9 on a self service internet kiosk. I am looking for ways, to automatically shutdown Zorin (without user intervention) when no mouse and keyboard activity is detected for 5 minutes.

Any help is greatly appreciated. Thanks in advance.

Swarfendor437

Sat Aug 30, 2014 2:51:07 pm

I don't know about shut down but you could try tmout:

http://www.cyberciti.biz/faq/linux-tmou ... -variable/

Anonymous

Sat Aug 30, 2014 8:34:54 pm

This is the easiest way for normal shutdown.

Open Terminal : ctrl + alt + T

Enter Below :
: sudo shutdown -h 120

Note : 120 = example...whatever minutes desired
If 120 is entered.....
It will say...system will shutdown in 120 minutes.
Afterward yo will need to exit out of the terminal. [ X ]
Now you can be sure it will shutdown without problems.

Swarfendor437

Sun Aug 31, 2014 10:13:05 am

Hi Gizmuntu, is there no way of creating an 'if inactive for 5 Minutes, commence shutdown script'? User is wanting automation, does not want to shut down after so long, with I suspect, wake on keyboard or wake on mouse. That's the way I read it and could only find 'tmout' for logout. ;)

SteveD

Sun Aug 31, 2014 7:10:28 pm

How about System Settings >> Power >> Suspend when inactive for .....

Any use?

Swarfendor437

Sun Aug 31, 2014 9:33:56 pm

Hi, don't know about desktops but notebooks have issues with suspend if memory serves me correctly - not tried it though! ;)

zorinben

Mon Sep 01, 2014 10:13:57 pm

I foud a way in ubuntu forum. http://ubuntuforums.org/showthread.php?t=1894251

I just change the suspend to shutdown option.


:D :D :D

Swarfendor437

Mon Sep 01, 2014 10:16:03 pm

Interesting! I did suspect dconf-editor somewhere along the line but did not want to spend ages searching! ;)

120 blue jewels to you sir - 60 for solving your own issue, and 60 for sharing the information! :D