Difference between revisions of "Paramano"

From ArchWiki
Jump to: navigation, search
(Remarks)
m
Line 24: Line 24:
 
  # modprobe acpi-cpufreq
 
  # modprobe acpi-cpufreq
  
To load the driver automatically at start up, add the module to /etc/rc.conf:
+
To load the driver automatically at start up, add the module to {{Filename|/etc/[[rc.conf]]}}:
 
  # MODULES=( ... acpi-cpufreq ... )
 
  # MODULES=( ... acpi-cpufreq ... )
  
 
== CPU Governors Setup ==  
 
== CPU Governors Setup ==  
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 start up. Again, edit /etc/rc.conf to load the governors' drivers.  
+
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.  
 
  # MODULES=( ... cpufreq-conservative cpufreq-powersave cpufreq-userspace cpufreq-ondemand cpufreq-performance ... )
 
  # MODULES=( ... cpufreq-conservative cpufreq-powersave cpufreq-userspace cpufreq-ondemand cpufreq-performance ... )
  
Line 36: Line 36:
 
  # nano /usr/share/trayfreq/trayfreq.config
 
  # nano /usr/share/trayfreq/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
*[events] -- the group events
+
*{{Codeline|[events]}} – the group events
*activate=/usr/bin/xterm -- this sets the program to launch when the tray icon is activated (left clicked usually)
+
**{{Codeline|activate=/usr/bin/xterm}} – this sets the program to launch when the tray icon is activated (left clicked usually)
*[governor] -- the group governor
+
*{{Codeline|[governor]}} – the group governor
*default=ondemand -- this sets the default governor to be set when trayfreq starts
+
**{{Codeline|default=ondemand}} – this sets the default governor to be set when trayfreq starts
*[frequency] -- the group frequency
+
*{{Codeline|[frequency]}} – the group frequency
*default=800000 -- this sets the default frequency in hertz to be set when trayfreq starts
+
**{{Codeline|default=800000}} – this sets the default frequency in hertz to be set when trayfreq starts
 
Note that, if a default frequency is set, it will override the governor.   
 
Note that, if a default frequency is set, it will override the governor.   
  
Line 53: Line 53:
  
  
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; if it exists, trayfreq will still look at /usr/share/trayfreq/trayfreq.config for the program to run when the tray icon is activated, but the configuration file in the home folder will override everything else.
+
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 {{Filename|~/.trayfreq.config}}; if it exists, trayfreq will still look at {{Filename|/usr/share/trayfreq/trayfreq.config}} for the program to run when the tray icon is activated, but the configuration file in the home folder will override everything else.
  
 
== Remarks ==
 
== Remarks ==
A desktop file is installed into /etc/xdg/autostart/. NotShowIn=KDE;GNOME;XFCE;LXDE; is placed in the desktop file so that it will not automatically start but put the option in start up managers.  If you want it to start automatically, open the start up manager that comes with your desktop enviroment and check trayfreq.  KDE, GNOME, XFCE, LXDE all have start up managers.  If you don't use one of these, trayfreq will automatically start.
+
A desktop file is installed into /etc/xdg/autostart/. {{Codeline|NotShowIn=KDE;GNOME;XFCE;LXDE;}} is placed in the desktop file so that it will not automatically start but put the option in start up managers.  If you want it to start automatically, open the start up manager that comes with your desktop enviroment and check trayfreq.  KDE, GNOME, XFCE, LXDE all have start up managers.  If you don't use one of these, trayfreq will automatically start.
  
 
== External Links ==
 
== External Links ==
[http://u-lite.org/trayfreq trayfreq at u-lite's website]
+
*[http://u-lite.org/trayfreq trayfreq at u-lite's website]

Revision as of 02:37, 9 June 2009


Latest Version

0.1.4

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.

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, and 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-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; 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
[governer]
default=ondemand
#[frequency]
#default=800000


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 Template:Filename; if it exists, trayfreq will still look at Template:Filename for the program to run when the tray icon is activated, but the configuration file in the home folder will override everything else.

Remarks

A desktop file is installed into /etc/xdg/autostart/. Template:Codeline is placed in the desktop file so that it will not automatically start but put the option in start up managers. If you want it to start automatically, open the start up manager that comes with your desktop enviroment and check trayfreq. KDE, GNOME, XFCE, LXDE all have start up managers. If you don't use one of these, trayfreq will automatically start.

External Links