Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Ubuntu in Kiosk mode in a library and I want it to re-start between users. Users always forget to shut down computer. Is it possible to have the computer shut down or reboot automatically, instead of sleeping or hibernating? Thanks.

share|improve this question

You can use sleepd command to and -s option to modify the action upon inactivity.

Install it using:

sudo apt-get install sleepd 
sleepd [-s command] -u300 

Visit sleepd manpage for more info.

share|improve this answer
Nice! Thanks! PC sleep's well!!! Can I use that program for shut down PC? – Doroff Dec 17 '12 at 11:22
I found this:… - I try to do it, but it's not work - may be I make mistake somewhere. They has good idea to make autoshutdown. Can you look they script, and try it, if it possible? Thanks – Doroff Dec 18 '12 at 2:04

Standby/Suspend is a Hardware level state. If you need to implement auto shutdown during standby, you will need to do it in hardware/BIOS level.

share|improve this answer
sorry for my english and thanks for comment - I mean users go out but PC works and works. I need a script or program that can shut down PC after 5 or 10 minuts nouse. – Doroff Dec 17 '12 at 10:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.