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 have an embedded battery powered device running Ubuntu and want to reduce power consumption. The idea is that if a user does not use a device for ca. 30 min. then the device will automatically shutdown or hibernate.

Is it possible to automatically shut down or hibernate Ubuntu after spending x minutes in suspend?

share|improve this question
    
What do you mean by "stand-by", no user input ? –  João Pinto Feb 4 '11 at 15:56
    
I think he means suspend. –  Umang Feb 4 '11 at 15:59

3 Answers 3

Suspend is an hardware managed state, such function if available would need to be implemented at the BIOS level, or at least would require BIOS support.

Unless your BIOS provides such programmable function, no, it is not possible.

share|improve this answer
    
My BIOS supports this functionality. –  tommyk Feb 7 '11 at 7:35

You can try gshutdown Install gshutdown from the Software Center.

If the default options are not working, try changing from Edit>Preferences>Actions the "autodetect" option to "custom command", press "Turn of the computer" and fill it with the shutdown -h now command.

share|improve this answer
    
I am not looking for shutdown-timer-like tool. Is gshutdown able to recognize that system is in a suspend mode? –  tommyk Feb 5 '11 at 7:10
    
@tommyk I don't know if this program is able to recognize the computers state. –  koukourikos Feb 5 '11 at 12:03

The installation here : http://gshutdown.tuxfamily.org/en/download.php works well (gshutdown_0.2-1_i386.deb)

share|improve this answer

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.