Difference between revisions of "Paramano"

From ArchWiki
Jump to: navigation, search
Line 3: Line 3:
 
[[Category:Daemons and system services (English)]]
 
[[Category:Daemons and system services (English)]]
 
[[Category:HOWTOs (English)]]
 
[[Category:HOWTOs (English)]]
 
== Latest Version ==
 
0.1.5.1
 
  
 
== Introduction ==
 
== 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 on GTK+ and anything that can show tray icons.
+
Trayfreq (pronounced trayfreek) is a GTK+ application released under GPL that lets you select your CPU's governor or frequency from a tray icon and displays information for your battery.  Trayfreq is designed to be desktop-environment-independent so it depends only on GTK+ and a system tray to show its icons. Trayfreq is the perfect addition to Xfce, LXDE, and Window Managers (Openbox, Fluxbox, etc.).
 +
 
 +
== Features ==
 +
* Displays a icon that shows you the relative current CPU frequency
 +
* When the CPU icon is right-clicked, it provides a menu of available frequencies and governors to choose.
 +
* When the CPU icon is left-clicked, it runs a command (set in config file, default nothing)
 +
* Displays a icon that shows you the status of your Battery (Charging, Discharging, Charged) and its relative current charge
 +
* Lightweight, Desktop-Environment Independent
 +
 
 +
== Latest Version ==
 +
0.1.6
  
 
== Installing ==
 
== Installing ==
Line 28: Line 35:
  
 
== CPU Governors Setup ==  
 
== CPU Governors Setup ==  
Some CPU governors may not be built into your kernel, and you can add them to {{Filename|/etc/rc.conf}} to have them automatically load at start up. Again, edit {{Filename|/etc/rc.conf}} to load the governors' drivers.  
+
Some CPU governors may not be built into your kernel, but you can add them to {{Filename|/etc/rc.conf}} to have them automatically load at start up. Again, edit {{Filename|/etc/rc.conf}} to load the governors' drivers.  
 
  # MODULES=( ... cpufreq-powersave cpufreq-userspace cpufreq-ondemand ... )
 
  # MODULES=( ... cpufreq-powersave cpufreq-userspace cpufreq-ondemand ... )
  
Line 34: Line 41:
  
 
Now, let's edit the configuration file for trayfreq.
 
Now, let's edit the configuration file for trayfreq.
  # nano /usr/share/trayfreq/trayfreq.config
+
  $ cp /usr/share/trayfreq/trayfreq.config ~/.trayfreq.config
 +
$ nano ~/.trayfreq.config
 
Everything will be commented out; uncomment what you want to use. Let's go through the options
 
Everything will be commented out; uncomment what you want to use. Let's go through the options
 
*{{Codeline|[events]}} – the group events
 
*{{Codeline|[events]}} – the group events

Revision as of 06:53, 18 June 2009


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 and displays information for your battery. Trayfreq is designed to be desktop-environment-independent so it depends only on GTK+ and a system tray to show its icons. Trayfreq is the perfect addition to Xfce, LXDE, and Window Managers (Openbox, Fluxbox, etc.).

Features

  • Displays a icon that shows you the relative current CPU frequency
  • When the CPU icon is right-clicked, it provides a menu of available frequencies and governors to choose.
  • When the CPU icon is left-clicked, it runs a command (set in config file, default nothing)
  • Displays a icon that shows you the status of your Battery (Charging, Discharging, Charged) and its relative current charge
  • Lightweight, Desktop-Environment Independent

Latest Version

0.1.6

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 it:

# modprobe acpi-cpufreq

To load the driver automatically at start up, add the module to Template:Filename:

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

CPU Governors Setup

Some CPU governors may not be built into your kernel, but you can add them to Template:Filename to have them automatically load at start up. Again, edit Template:Filename to load the governors' drivers.

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

Trayfreq Setup

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

$ cp /usr/share/trayfreq/trayfreq.config ~/.trayfreq.config
$ nano ~/.trayfreq.config

Everything will be commented out; uncomment what you want to use. Let's go through the options

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

Sample File:

[events]
activate=/usr/bin/showbatt
[governor]
default=ondemand
#[frequency]
#default=800000


If you want, you can have a configuration file in your home folder, but it can now set the program to run when the tray icon is activated too. The file should be Template:Filename; if it exists, trayfreq will not look at Template:Filename.

Remarks

A desktop file is installed into /etc/xdg/autostart/. It will automatically start once installed. If you do not want it to start automatically, open the start up manager that comes with your desktop enviroment and uncheck trayfreq.

External Links