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.
- extra/gnome-power-manager (or kde equivalent)(optional)
Install by doing:
pacman -Sy powersave gnome-power-manager
- Add your user to the
powergroup (e.g. by editing
powersavedinto the daemons array in
/etc/rc.conf, or manually start the daemon (
/etc/rc.d/powersaved startwith root privileges).
gnome-power-preferencescan be used if you cannot see the program icon in the system tray by default.
When you started for the first time, the powersave daemon will give you a warning like this:
enter 'powernow_k8' into CPUFREQD_MODULE in /etc/powersave/cpufreq. this will speed up starting powersaved and avoid unnecessary warnings in syslog.
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:
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
Suspend on the system tray icon. From console, run:
Problems can be diagnosed in
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
menu.lst file (e.g.
resume=/dev/swap as the kernel argument to
menu.lst, where swap is your swap device.
# (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
Hibernate in gnome-power-manager menu or in console by:
Problems can be diagnosed in /var/log/suspend2disk.log file.
- 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