Paramano

From ArchWiki
Revision as of 01:52, 5 June 2009 by Pandagoat (Talk | contribs)

Jump to: navigation, search

Introduction

Trayfreq (pronounced trayfreek) is a GTK+ application released under GPL that lets you select your CPU's governor or frequency from a tray icon; therefore, trayfreq only depends GTK+ and something that shows tray icons.

Installing

Install trayfreq from the AUR. I suggest using one of the AUR Helpers.

System Setup

CPU scaling requires you to have a kernel with the ability already built in or have an appropriate driver module loaded. If the former case represents you, then you do not have to worry. If the latter case represents you, follow the following steps:

Most modern computers use the module acpi-cpufreq. Other options include the p4-clockmod, powernow-k6, powernow-k7, powernow-k8, and speedstep-centrino drivers.

To load the driver:

# modprobe acpi-cpufreq

To load the driver automatically at startup add the module to /etc/rc.conf

# MODULES=( ... acpi-cpufreq ... )

While you are in /etc/rc.conf, some CPU governors may not be built into your kernel, and you can add them to /etc/rc.conf to have them automatically load at startup.

# MODULES=( ... cpufreq-conservative cpufreq-powersave cpufreq-userspace cpufreq-ondemand cpufreq-performance ... )

== Trayfreq Setup

Now, let's edit the configuration file for trayfreq.

# nano /usr/share/trayfreq/trayfreq.config

Everything will be commented out. Let's go through the options

  • [events] -- the group events
  • activate=/usr/bin/xterm -- this sets the program to launch when the tray icon is activated (left clicked usually)
  • [governor] -- the group governor
  • default=ondemand -- this sets the default governor to be set when trayfreq starts
  • [frequency] -- the group frequency
  • default=800000 -- this sets the default frequency to be set when trayfreq starts

Note that, if a default frequency is set, it will overide the governor.

If you want, you can have a configuration file in your home folder, but it cannot set the program to run when the tray icon is activated for security reasons. The file should be ~/.trayfreq.config.