Difference between revisions of "Powersaved"

From ArchWiki
Jump to: navigation, search
(Step 3: Suspend to disk (suspend2disk): basics)
(18 intermediate revisions by 13 users not shown)
Line 1: Line 1:
==Goals==
+
[[Category:Power management]]
The goal of this article is to get cpu speedstepping. Also suspend to ram and possibly to disk too, both possible for standard (non-root) users. This should all be provided by the powersaved daemon.
+
[[Category:CPU]]
 +
[[ru:Powersaved]]
 +
{{Lowercase title}}
  
===Required packages===
+
The '''{{ic|powersaved}}''' package has been replaced by [[pm-utils]] (hibernate/suspend) and [[CPU Frequency Scaling]]. Please see those wiki articles for up-to-date information.
*extra/powersave
+
*extra/gnome-power-manager (or kde equivalent)(optional)
+
 
+
Install by doing:
+
<pre>
+
pacman -Sy powersave gnome-power-manager
+
</pre>
+
 
+
===Post-installation steps===
+
#Add your user to the <code>power</code> group (e.g. by editing <code>/etc/group</code>).
+
#Put <code>powersaved</code> into the deamons array in <code>/etc/rc.conf</code>, or manually start the deamon (<code>/etc/rc.d/powersaved start</code> with root privileges).
+
#Run <code>gnome-power-manager</code> (if applicable). <code>gnome-power-preferences</code> can be used if you cannot see the program icon in the system tray by default.
+
 
+
==Step 1: CPU Stepping==
+
 
+
==Step 2: Suspend to ram (suspend2ram)==
+
If using gnome-power-manager, you can click <code>Suspend</code> on the system tray icon. From console, run:
+
 
+
powersave -u
+
 
+
Problems can be diagnosed in <code>/var/log/suspend2ram.log</code>
+
 
+
==Step 3: Suspend to disk (suspend2disk)==
+
In order to get suspend2disk to work (this is labeled as '''hibernate''' by Gnome convention), you will need to edit your GRUB <code>menu.lst</code> file (e.g. <code>/boot/grub/menu.lst</code>).
+
 
+
Add <code>resume=/dev/swap</code> as the kernel argument to <code>menu.lst</code>, where ''swap'' is your swap device.
+
 
+
E.g.
+
+
# (0) Arch Linux
+
title  Arch Linux  [/boot/vmlinuz]
+
  root  (hd0,2)
+
kernel /boot/vmlinuz26 root=/dev/hda3 resume=/dev/hda4 ro
+
initrd /boot/kernel26.img
+
 
+
Reboot before you attempt to use the feature.
+
 
+
You can suspend to disk by clicking on <code>Hibernate</code> in gnome-power-manager menu or in console by:
+
 
+
powersave -U
+
 
+
Problems can be diagnosed in /var/log/suspend2disk.log file.
+
 
+
==Known issues==
+

Revision as of 10:26, 13 June 2012

The powersaved package has been replaced by pm-utils (hibernate/suspend) and CPU Frequency Scaling. Please see those wiki articles for up-to-date information.