Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

6 Answers

up vote 6 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
add comment

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

share|improve this answer
add comment

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
1  
type sudo shutdown -h <MINS> into console... e.g. for one hour: sudo shutdown -h 60 –  planty182 Aug 22 '13 at 9:41
add comment

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

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

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.

Type

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 writes 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
add comment

Your Answer

 
discard

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.