Shutdown after idle time?

Asked by Gaga Signor

I'm using Linux Mint 11 and want to shut down my computer automatically after a defined idle time (in the case I leave my desk and forget to shut down manually).
Standy and hibernation work with the power manager but I can't find any shut down option - how can I solve this? I need the shut down option instead of hibernation for securing that my encrypted data stays safe.

Question information

English Edit question
Ubuntu gnome-power-manager Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :

Mint with Gnome-shell?
Section: Shut down or restart

Or Gnome 2.32?

There're also several GUIs to shutdown at a certain time (at least for Ubuntu)

Otherwise refer to Mint community, wiki, tutorials.

Or via terminal:
# shutdown in 60 minutes
sudo shutdown -h +60
# shutdown 8:30 pm
sudo shutdown -h 20:30
# manpage
man shutdown

Revision history for this message
Sam_ (and-sam) said :

In case of Xfce-session refer to their tutorials.[]=xfce4&s[]=session#session_manager

Revision history for this message
Gaga Signor (gaga-signor) said :

Thank you for your immediate reaction. Unfortunately I can't find a solution to my problem in your answer.

I know how to shut down my computer; and I know that I can plan this manually via terminal or via one of the mentioned small GUI programms.

What I need is an automatically startet service, running in the background, which shuts down my computer after a defined idle time, eg. 30 minutes of inactivity. Gnome Power Manager does this job almost perfectly, but lacks an option to shut down the computer instead of using suspend or hibernation. Or maybe I can't find this option?

If there is no such option in the gnome power manager, do you know any other program or script that can do the required task for me?


Revision history for this message
Best Sam_ (and-sam) said :
Revision history for this message
Gaga Signor (gaga-signor) said :

Thank you for this. I will try and hope that it works.
I admit that I hoped for something more newbie friendly as an automatic shutdown seems to be a standard feature elsewhere.
Nevertheless, thank you.