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.

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
1  
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

1 Answer 1

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

 
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.