General :: How To Hibernate/suspend Using The Command Line ?
May 18, 2011
Put 'nix box to sleep from command line?
I found that the solution was to do: pmi action hibernate
But when I typed in that, it showed: Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files
Using the most recent -current/13.37, I'm curious if there is a New Right Way to suspend as a regular user from the command line, now that we've got PolicyKit/ConsoleKit running the show. I've seen some things (e.g., on the Archlinux wiki) that seem to come close, but require UPower. For some reason I can't wrap my head around the PolicyKit documentation well enough to figure this out.
My old solution was to add a line to /etc/sudoers giving anyone in the power group access to pm-suspend, pm-hibernate, and shutdown, and this is probably what I'll end up doing with 13.37.
Just got Ubuntu 9.10 and I'm liking it a lot, but my computer refuses to go into hibernate or suspend. I have a Dell M1530 but I don't really think it's a dell hardware issue because it's not just when I close the screen, it's also when I click suspend or hibernate from the menu.
I've configured my debian lenny to load first the command line, then if i want I load the X server, but doing this to that way I don't have the suspend/hibernate functions from the gnome menu, so, my question is:
what is the command to suspend / hibernate my system at any moment I decide?
Is there a program I can install and run from the Command Line that will hibernate the computer (pausing all running programs (like my Minecraft server)), cutting power usage TO A BARE MINIMUM, and the un-hibernate after a set time? The laptop this will be used on is SliTaz linux with the GUI disabled (unless i run startx)
I just installed new Fedora (F15) and I could not figure out how to suspend or hibernate from command line as user. The method I used in previous versions does not seem to work:
Code:
What is new method of command line suspending and hibernating as user?
I have fedora 13. What is the difference between suspend and resume? If I suspend, how do I turn on the pc? If I hibernate, how do I get out of hibernation?
First of all let me introduce myself. My name is Rasheed and i am from UAE, after not having any reply from a week in Fedora's official forum i came across the linuxquestions through google and hoping to help others and resolve my issues as well with the help of experts here. So here is my problem what i am currently having. I am going through a serious issue right now. My laptop crashes when SUSPEND/HIBERNATE or unplugging the laptop's charger.
Currently running Slackware 13.37 64-bit on a notebook and finally have suspend/hibernate after realizing that USB devices, especially USB HDDs, need to be disconnected before suspend/hibernate can work. Problem is I have 2 USB HDDs that are connected to my notebook whenever the notebook is stationary for the extra storage so I'd like to create a script that would get invoked that would stop the suspend/hibernate process if certain partitions are mounted. I know what I would like to accomplish, but I have basic scripting knowledge so I was hoping to get some assistance.
1. script would basically store a user specified string containing devices that are non-USB, ie: NONUSB="/dev/sda /dev/sdb"
2. possibly use /etc/mtab to get a list of what is currently mounted and then remove lines containing whatever is specified in $NONUSB and store those values in $USB
3. run a for loop that executes 'umount' on each token in $USB 3a. stop suspend/hibernate process if 'umount' fails at any point 3b. if 'umount' passes then suspend/hibernate
I recently installed Ubuntu 10.04 Lucid Lynx. When I partitioned my HDD, I ran out of available partitions and so couldn't make a Swap Partition.I pushed on anyway, because I read here that you can create a Swap File instead of a partition that does the same thing. I've made the Swap File and it's activated (I know because during shutdown there's a message that flashes very quickly that says "Deactivating Swap [OK]".
But here's the real problem. My Ubuntu refuses to Suspend or Hibernate. The screen just goes black and the backlight stays on. Since one of the main functions of the swap file is to facilitate Suspend and Hibernate,I upgraded from 9.10 Karmic Koala, which suspended and hibernated normally.
There should be the suspend and hibernate buttons in th System Menu, but there is only two options, Shut down and Log off.Also, in the Power Manager Preferences window, it has no option for suspend and hibernate.
I have a web server running on my laptop(in fact , it's a netbook). But I found it always hibernate automatically in a certain time .(In fact , I don't know what's the differences between hibernate or suspend. So I call this hibernate instead.) I am sure I have disabled the hibernate function in Power-Management from the System menu. But it still hibernates as usual.So could someone tell me how to disable it ( suspend,hibernate whatever )?
jeff@jeff-lappy:~$ sudo hibernate hibernate:Warning: Tuxonice binary signature file not found. Some modules failed to unload: nvidia hibernate: Aborting suspend due to errors in ModulesUnloadBlacklist (use --force to override).
I even installed this tuxonice thing but to no avail...
I can Suspend or Hibernate my Gateway notebook but I have no idea how to wake it up.The power button is set to suspend or hibernate....I not sure which it does, but I can't wake the computer up.
which ubuntu log file records when a suspend happened?I was ssh'ing into my ubuntu box periodically yesterday, when I discovered that it was no longer reachable. On getting home last night I discovered that it was still switched on, but I think in suspend mode as moving the mouse brought it back to life. The clock however, still showed 12:15pm, which is roughly when I stopped being able to ssh to it. I'd like to see the logs to confirm this.
My Ubuntu 10.10 on my laptop Lenovo T400 is not able to suspend or hibernate. Whenever I click Suspend or Hibernate in Startup options of the OS: * the moon LED on the bottom of the lid flashes a few seconds, the screen quickly shows something like "some devices fail to suspend, error 5", * and then the moon LED goes off and the display still has ambient light illumination. I suppose in suspend or hibernation state, the display should have no illumination, just like when the laptop is turned off, right? * If I press any key, the unlock screen dialogue will pop out. I have installed 'acpi-support' and 'hibernate 1.99-1.1'. But I don't know how to use these methods to suspend or hibernate my OS. Are they by commands in terminate, or can they be called by clicking Suspend or Hibernate in Startup options of the OS? For example, I type the hibernation command and it shows something is missing although I have installed "tuxonice-userui" ( I don't know if it will provide Tuxonice binary signature file):
Hibernate and Suspend in ubuntu 10.04 lts is not working.when i click Suspend the screen goes black and the cpu takes 100% load continue-sly... Same for hibernate too. what should i do?
I am having some pain with my new Squeeze installation, I am not sure if I am asking to much of it or it is an easy fix.
Firstly my system is laptop which I regularly plug a second monitor into. The video adaptor is an ATI HD4550 mobile.
My problem is that when ever suspend or hibernate my system, and even sometime when I boot up the screen(s) are just blank, although sometime they don't, it always happens if I suspend by closing the lid of my laptop, and only sometime happend with through Gnome is go ->System->Shutdown->Suspend. This is really annoying.
Another issue which I think is connected is that as I said I have a second monitor (most of the time) and when I boot up then it works until I log in, then a message pops up say the configuration can not be applied and it revert to Mirror mode or it does this thing where it places the second screen inside (virtually) the built in Laptop panel, it will not let me fix this through the monitors dialog just displaying the same message. I can fix this by doing
invoke-rc.d gmd3 restart
This gets as far as killing Gnome them it prints an error the to console, at which point Imopen a new terminal by ctrl+alt+f2 and invoke-rc.d gmd3 stop invoke-rc.d gmd3 start
then it works fine and even remember that I set the secondary screen to be the primary monitor through xrandr.
I tried install fgrlx drivers instead but it didn't really fix the issue, so I removed them.
I installed the debian 6 on the tninkpad T42, use the Suspend,it can entry the suspend state,I type the key let it come back, it can exit the suspend state, But the screen always display "black",can't come back the X window.
Installed Debian 8.2 a while back, and I've been having issues with getting the machine to suspend correctly. If I try to put it to sleep when logged in to my regular user account the screen just goes black and then the computer hangs. However if I put it to sleep as root everything works fine. I do this by running this command (as root):
Code: Select allsystemctl suspend
What can I do about this? Worked fine on Debian wheezy..
Btw, just found this in the dmesg log. Connected perhaps..?
Code: Select all[ 6.863018] ACPI Warning: SystemIO range 0x00000000000018e0-0x00000000000018ff conflicts with OpRegion 0x00000000000018e0-0x00000000000018ef (\_SB_.PCI0.SBUS.SMBI) (20140424/utaddress-258) [ 6.863028] ACPI:
If an ACPI driver is available for this device, you should use it instead of the native driver
I've been running 6.0.2 amd64 stable since release day and recently have noticed my suspend and hibernate do not work. Normally I have transmission running and have set it to not enter sleep mode while torrents are active. However today I have not had transmission and was wanting to see if the sleep mode options would kick in. So I have set my display to "sleep when inactive for" 5 mins (this works perfect) I have set "put computer to sleep when inactive for" 10 mins (this does not work at all)
When I try to manually test suspend my display flashes black for a few seconds but remains backlit, then asks me to log back in When I manually go into hibernate mode my display turns off, pops back on for a second and in a terminal says something about a usb device (something failed but it happens so fast I cannot read it)
I think it might have to do with an app I installed called Jupiter (http://sourceforge.net/projects/jupiter/) that missed with my power configs, I removed it but I still can't hibernate or suspend. Whenever I try to do either, my screen fades to black and nothing happens. If I move the mouse or touch the keyboard, it comes back.
I just got a Dell Inspiron 1764 and am dual booting it with Win7 and Ubuntu 9.10.Whenever I hibernate or suspend, it goes through everything fine, but then when I resume it just boots to a black screen and I have to do a hard shutdown. Is there a fix for this? I know it's a fairly common issue.