Sunday, April 28, 2024
35
rated 0 times [  35] [ 0]  / answers: 1 / hits: 134315  / 1 Year ago, fri, november 25, 2022, 9:53:15

Possible Duplicate:

How can I suspend/hibernate from command line?






I have an Acre Aspire One and this netbook does not have a sleep function on the key board and with the removal of the hibernate option I have been required to resort to shutting my comp down every time. So I know that under 'system settings'>'keyboard'>'shortcuts' I can create a custom key combo but I do not know that the command is of the sleep setting. So, please help.



Thank you


More From » power-management

 Answers
1

All of the following commands require root permissions. The most common way to do this is prefix the command with sudo.



The command for Suspend (Sleep) is pm-suspend (sudo pm-suspend etc.)



The command for Hibernate is pm-hibernate (Note that Hibernation mode is not compatible with all hardware, please test this before using it.)



The command for the hibrid of them both is pm-suspend-hybrid



The hybrid command saves the session to the Hard Disk (safer storage place), but the system will stay running, allowing for faster resume. This does not mean you can turn off your computer and have your session saved. You will need to use the regular hibernate command for that.



These commands are provided by the package pm-utils, installed by default in Ubuntu 12.04LTS



Source: http://manpages.ubuntu.com/manpages/precise/man8/pm-action.8.html






If you have problems with those commands, please see the source. It states that




On some hardware putting the video card in the suspend state and
recovering from it needs some special quirk handling. With the
--quirk-* options of the pm-suspend and pm-suspend-hybrid commands you
can select which quirks should be used.




A list of these quirks, and what they mean can be found here


[#35895] Saturday, November 26, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
smelrop

Total Points: 263
Total Questions: 122
Total Answers: 108

Location: Saudi Arabia
Member since Thu, Jan 28, 2021
3 Years ago
smelrop questions
Mon, Mar 13, 23, 07:22, 1 Year ago
Sun, Feb 5, 23, 13:02, 1 Year ago
Tue, Aug 31, 21, 00:50, 3 Years ago
Sat, Dec 18, 21, 15:18, 2 Years ago
;