Difference between revisions of "Powersaved"

From ArchWiki
Jump to: navigation, search
m (Bot: Removing from Category:HOWTOs (English))
(remove obsolete information leaving the only useful bit which directs the reader to other articles.)
Line 3: Line 3:
 
{{i18n|Powersaved}}
 
{{i18n|Powersaved}}
  
= IMPORTANT =
 
 
The '''<tt>powersaved</tt>''' package has been replaced by '''[[Pm-utils]]''' (hibernate/suspend) and '''[[Cpufrequtils]]''' (CPU frequency scaling).  Please see those wikis for up-to-date information.
 
The '''<tt>powersaved</tt>''' package has been replaced by '''[[Pm-utils]]''' (hibernate/suspend) and '''[[Cpufrequtils]]''' (CPU frequency scaling).  Please see those wikis for up-to-date information.
 
==Goals==
 
The goal of this article is to get cpu speedstep enabled. 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.
 
 
===Required packages===
 
*extra/powersave
 
*extra/gnome-power-manager (or kde equivalent)(optional)
 
 
Install by doing:
 
<pre>
 
pacman -S 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 daemons array in <code>/etc/rc.conf</code>, or manually start the daemon (<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.
 
 
==CPU Stepping==
 
When you started for the first time, the powersave daemon will give you a warning like this:
 
<pre>
 
enter 'powernow_k8' into CPUFREQD_MODULE in /etc/powersave/cpufreq.
 
this will speed up starting powersaved and avoid unnecessary warnings in syslog.
 
</pre>
 
Sometimes auto detection of the right module fails. So if you are sure you need a module different from the one provided you should use that instead.
 
 
You should edit the /etc/powersave/cpufreq file as root and adjust the following parameters:
 
*CPUFREQD_MODULE
 
*CPUFREQ_CONTROL
 
<pre>
 
$editor /etc/powersave/cpufreq
 
</pre>
 
Set CPUFREQD_MODULE to the module the auto detection found, or the one you think you need.
 
I'd like to set CPUFREQ_CONTROL to ondemand.
 
 
Now, when you restart the powersave daemon, it should start without warnings.
 
 
To test if you actually now have speedstep enabled, I use a gnome tool that you can add to your panel. It's called '''CPU Frequency Scaling Monitor'''.
 
 
==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>
 
 
==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==
 
* Sometimes auto detection of cpufreq modules doesn't detect the proper module. Users are advised to check if the correct CPU module has been loaded after installation
 
* ATI video card owners may need to disable the framebuffer in order for suspend-to-ram to work properly.  Add '''''vga=0''''' to the kernel options in ''/boot/grub/menu.lst
 

Revision as of 23:06, 25 July 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

The powersaved package has been replaced by Pm-utils (hibernate/suspend) and Cpufrequtils (CPU frequency scaling). Please see those wikis for up-to-date information.