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

What shutdown timers with/without GUI are there available?

  • any type of action possible? shutdown hibernate etc but also custom command?
  • how to set time? time to go or at specific timestamp?
  • integration with desktop environment - progress bar to specified time
  • warning before action - possibility to prolong/adjust/cancel?
  • keep default setting, eg 1 hour
share|improve this question
up vote 8 down vote accepted

There are a couple of shutdown timers available on Launchpad that look interesting.

Easyshutdown - simply shuts down your PC

enter image description here

ComplexShutdown - it has much more options such as hibernate/suspend etc.

enter image description here

share|improve this answer
thanks, own/smaller screenshots would have sufficed :) unity2d integration doesnt seem to be that close yet – type Jun 10 '11 at 13:17

The simplest one would be at, and it can be used to schedule any command.

share|improve this answer

Shutdown GTimer

Shutdown GTimer

share|improve this answer

as BigStack said, using crontab is a very easy/non install way to do it.

As a tutorial here suggests:

If you open terminal you can type

sudo gedit /etc/crontab

this will open your systems crontab file in gedit.

you can then add this line to it:

00  22   *    *   *   root   poweroff

where 00 is the minutes, 22 is the hours, and the *s mean every day (you can see more info on this in the link). root says which user is to execute the command, and poweroff is the command to run.

I've done this and it works perfectly in Ubuntu 13.04

share|improve this answer
type sudo shutdown -h <MINS> into console... e.g. for one hour: sudo shutdown -h 60 – planty182 Aug 22 '13 at 9:41

Crontab: Its's easy to setup a cron job for poweroff

share|improve this answer
Can you explain how, including an example crontab line? – Eliah Kagan Sep 8 '12 at 6:49

I know on a Mac you can use a crontab. Here are the steps. I did get it to work, but on my new system I have had some problems, you can try it. You need to do this in the terminal.


sudo crontab -e

You'll need to enter your login password and then press Enter.

You'll now be in a text editor (vim). Carefully input the following keystrokes.

Press i once (this will allow you to enter text) Let's say you want the machine to shutdown at 2am every day, we'd now enter:

* 2 * * * /sbin/shutdown -h now

If you wanted the machine to shutdown at 2:30am every day, you'd enter:

30 2 * * * /sbin/shutdown -h now

When you've typed this in, press esc Then press shift+z shift+z (that's uppercase "z" twice, to write the changes and quit the editor).

You should now be dropped back to the command line where you started.

You're done!

share|improve this answer

SGTimer has a variety of options and is actively maintained on Launchpad.

enter image description here

Figure 1: Main interface on Ubuntu 15.10

share|improve this answer

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.