Usage
Go into your terminal and type in: powersave -u. That's it!! It is also technically supposed to be able to put your computer in hibernate by typing in powersave -U, but it simply doesn't work on my computer for some reason.
Installation
If you are having similar problems as I am and want to install this program, either go to Synaptic Package Manager and look for and install powersaved, or go to your terminal and type in sudo apt-get install powersaved. You can make it even easier on yourself by creating a shell script containing the powersave command with the suspend argument. Simply navigate in Nautilus to the directory where you want to create your shell script, right click on the background of that directory's window, click on Create Document > Empty File, and then add the following into the empty document:
#! /bin/bash
powersave -u
When you're done, save it with a filename such as suspend.sh, and then create a launcher that activates your script. I right-clicked on my upper Gnome-Panel and clicked on Add To Panel... > Custom Application Launcher, entered in "Suspend" in the name field, sh /home/inkhorn/Scripts/suspend.sh in the command field, and chose a custom icon to represent the launcher on my panel.
Now all I have to do is click on my newly created launcher button on my Gnome-Panel and my computer goes into Suspend mode like it should! You of course don't need to go through the trouble to make a button for this on your Gnome-Panel like I have, but it certainly saves typing in the long run.
thanks for this... this is exactly what I've been looking for since suspend and hibernate work like s*** on most laptop... I tried both, suspend works just fine, hibernate works as well but it looks scary (first it looks like the computer has frozen and then when you restart it it takes 10 second for everything to work up to speed). But overall good.
ReplyDeletepeace,
marcin
I had a hard time installing Powersaved. I have upgraded to Lucid Lynx and it appears not to be in the repositories. Anyway, I downloaded and compiled it, after several dependency problems.
ReplyDeleteNow that it's installed, when I do "powersave -u" I get:
liblazy (liblazy_dbus_send_method_call:97): Received error reply: HAL is not built with PolicyKit support
User is not allowed for org.freedesktop.hal.power-management.suspend according to PolicyKit.
Any ideas anyone?
I found an alternative to powersaved that works for me in Ubuntu 10.04 LTS (Lucid Lynx).
ReplyDeleteI wrote about it; check out the following link:
http://nixliving.blogspot.com/2010/05/acpitool-as-alternative-suspend-method.html
hi
ReplyDeleteThanks for the information, in this mode your computer are not supposed of doing anything like downloading files or executing a file right???
ReplyDeleteHi Inkhorn, all is pretty good. But best way would be to overwrite suspend button. Any idea how to do it?
ReplyDeleteCheers Ondrej
Hi all, it's just to quote https://help.ubuntu.com/community/SwapFaq :
ReplyDelete"The hibernation feature (suspend-to-disk) writes out the contents of RAM to the swap partition before turning off the machine. Therefore, your swap partition should be at least as big as your RAM size. The hibernation implementation currently used in Ubuntu, swsusp, needs a swap or suspend partition. It cannot use a swap file on an active file system."