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'm trying to put my old laptop into suspend mode through the terminal.
Typing rtcwake -m disk -s 10 works in newer versions but in 8.04 I get:

error /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory"
rtcwake: /dev/rtc0 not enabled for wakeup events.

I have tried googling this but all I get is people asking this very question with no answers.

How can I suspend the computer for a pre-determined amount of time from the terminal, in older Ubuntu versions?

share|improve this question
Offbeat question.. is any specific reason for using Ubuntu 8.04? – abhishek Mar 5 '12 at 15:33
my computer is 12 years old and crashes when i try to install newer versions. – Hermann Ingjaldsson Mar 5 '12 at 15:45
8.04 is no longer supported on desktops. You need to upgrade. – psusi Mar 6 '12 at 3:39

Sleep: pmi action suspend

Hibernate: pmi action hibernate

Sleep after 40 minutes: echo 'pmi action suspend' | at now + 40 minutes

You can also use the gnome commands:

gnome-power-cmd suspend
gnome-power-cmd hibernate
share|improve this answer
how do i, for instance, make it suspend for ten minutes and then wake up? – Hermann Ingjaldsson Mar 5 '12 at 15:49
I can't find any manual page for pmi. Could you do a man pmi and see if 8.04 has a man page and if so if it has options? – Rinzwind Mar 5 '12 at 15:55
'man pmi' gives me nothing but 'info man' gives me a description, but in it I see nothing in the options letting me determine the amount of time. – Hermann Ingjaldsson Mar 5 '12 at 16:04
@Rinzwind - welcome to the 20K+ club! – fossfreedom Mar 5 '12 at 17:23
thanks fossfreedom ! and @hermann then you can forget about it on 8.04 ... sorry :( – Rinzwind Mar 5 '12 at 19:14

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.