summaryrefslogtreecommitdiff
path: root/doc/C/xfce4-power-manager.html
blob: 616c8f94aaead7c72892967972d8d0a7eb2cb66e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Xfce 4 Power Manager</title><link rel="stylesheet" href="../xfce.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="#xfce4-power-manager" title="Xfce 4 Power Manager"><link rel="next" href="#xfpm-intro" title="Introduction"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="xfce4-power-manager"></a>Xfce 4 Power Manager</h2></div><div><div class="authorgroup"><div class="author"><h3 class="author"><span class="firstname">Ali</span> <span class="surname">Abdallah</span></h3><div class="affiliation"><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:aliov@xfce.org">aliov@xfce.org</a>&gt;</code></p></div></div></div></div></div><div><span xmlns="http://www.w3.org/TR/xhtml1/transitional" class="releaseinfo">This manual describes <strong xmlns="" class="application"><code>xfce4-power-manager</code></strong> version 0.8.0r07351
<br></br></span></div><div><p class="copyright">Copyright © 2008 Ali Abdallah</p></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#xfpm-intro">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="#xfpm-started">Getting Started</a></span></dt></dl></dd><dt><span class="sect1"><a href="#xfpm-configuration">Power Manager Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="#xfpm-general">General Settings</a></span></dt><dt><span class="sect2"><a href="#xfpm-cpu">CPU Settings</a></span></dt><dt><span class="sect2"><a href="#xfpm-battery">Battery settings</a></span></dt><dt><span class="sect2"><a href="#xfpm-button">Keyboard shortcuts</a></span></dt><dt><span class="sect2"><a href="#xfpm-monitor">Monitor settings</a></span></dt></dl></dd><dt><span class="sect1"><a href="#xfpm-systray-notify">System Tray Icon and Notification</a></span></dt><dt><span class="sect1"><a href="#xfpm-faq">FAQ</a></span></dt><dt><span class="sect1"><a href="#xfpm-about">About <strong class="application"><code>xfce4-power-manager</code></strong></a></span></dt></dl></div><p> </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xfpm-intro"></a>Introduction</h2></div></div></div>
  The Xfce4 power manager is a part of the Xfce goodies project and features cpu frequency control,
  battery monitoring, monitor DPMS control, LCD brightness control, lid sleep and power buttons controls.
  All those features can be controlled from the user interface settings dialog.
  <div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xfpm-started"></a>Getting Started</h3></div></div></div><p>To launch the Power Manager you need to run the following command <strong class="application"><code>xfce4-power-manager</code></strong> -r which you can do from the xfce run
  command by pressing on ALT-F2, or by going to the Xfce settings manager and clicking on the Power Manager item -
  a popup will be displayed to run the power manger if it is not already running. 
  Once the power manager is launched for the first time, it will place an autostart desktop file in your .config/autostart
  in order to be able to be launched automatically each time you log into your Xfce desktop.
  </p></div></div><p> </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xfpm-configuration"></a>Power Manager Configuration</h2></div></div></div><div class="figure"><a name="id2551345"></a><p class="title"><b>Figure 1. Power Manager settings</b></p><div class="figure-contents"><div class="screenshot"><div class="mediaobject"><img src="images/settings.png" alt="Power Manager settings"></div></div></div></div><p><br class="figure-break"></p><p>
  Almost all the <strong class="application"><code>xfce4-power-manager</code></strong> items are configurable from the configuration window, laptop users can set up 
  a power profile for two different modes &#8220;on battery power&#8221; and &#8220;on ac power&#8221;, desktop users still can change 
  DPMS settings and CPU frequency.
  </p><p>
  The settings dialog differs from one system to another depending on the computer (PC,laptop,...) and on
  the available manageabale interfaces.  
  </p><p>
  In this section we will describe the possible configuration for the power manager.
  </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xfpm-general"></a>General Settings</h3></div></div></div><div class="figure"><a name="id2512626"></a><p class="title"><b>Figure 2. General settings</b></p><div class="figure-contents"><div class="screenshot"><div class="mediaobject"><img src="images/general-settings.png" alt="General settings"></div></div></div></div><p><br class="figure-break"></p><p>
	Here you can select the configuration of the system tray icon, enable/disable cpu frequency and DPMS controls. 
	For example, you would need to disable DPMS control when watching a movie.	
	</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xfpm-cpu"></a>CPU Settings</h3></div></div></div><div class="figure"><a name="id2512671"></a><p class="title"><b>Figure 3. CPU Linux governors</b></p><div class="figure-contents"><div class="screenshot"><div class="mediaobject"><img src="images/cpu-settings.png" alt="CPU Linux governors"></div></div></div></div><p><br class="figure-break"></p><p>
	The linux governors found in the system are listed as radio buttons.
	If the acpi_cpufreq module is not loaded in the kernel or the cpu itself does not support frequency
	changes these options might not show.
	</p><p>Here is a brief descritption on linux cpu governors</p><div class="variablelist"><dl><dt><span class="term">Best performance:</span></dt><dd><p> Set CPU to its maximum frequency: consume more power, 
	and it is not ideal when running on battery.
	</p></dd><dt><span class="term">Best power savings:</span></dt><dd><p> 
	Set the CPU to its minimum frequency: ideal when running on battery power.	
	</p></dd><dt><span class="term">Ondemand performance:</span></dt><dd><p> What you want is what you get: set the CPU depending on the
	current usage.
	</p></dd><dt><span class="term">Good power savings:</span></dt><dd><p> 
	 Same as Ondemand but differs in behaviour in that it gracefully increases and decreases 
	 the CPU speed rather than jumping to max speed the moment there is any load on the CPU.
	</p></dd></dl></div><p>
NOTE:In <strong class="application"><code>xfce4-power-manager</code></strong> version 0.8.0r07351 only Linux is supported for changing the CPU frequency.
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xfpm-battery"></a>Battery settings</h3></div></div></div><div class="figure"><a name="id2517651"></a><p class="title"><b>Figure 4. Battery settings</b></p><div class="figure-contents"><div class="screenshot"><div class="mediaobject"><img src="images/battery-settings.png" alt="Battery settings"></div></div></div></div><p><br class="figure-break"></p><p>
	The user can select the his critical battery percentage, usually this is for a laptop or
	UPS battery, this option is important for a broken battery for example, which lasts only 5 minutes when it
	is 10% charged.    
   </p><p>
   The user can define an action to be taken by the power manager in case the battery that is giving the main power
   for the computer reaches a critical charge level.
   </p> 
   The battery notification is a way to notify the user when the battery state changes ( ex: battery charge is full )
   <p>
   
   </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xfpm-button"></a>Keyboard shortcuts</h3></div></div></div><div class="figure"><a name="id2517708"></a><p class="title"><b>Figure 5. button control</b></p><div class="figure-contents"><div class="screenshot"><div class="mediaobject"><img src="images/button-settings.png" alt="button control"></div></div></div></div><p><br class="figure-break"></p>
   For those buttons you can define an action to be taken by the power manager when pressing to one of them 
   - for example when you close the laptop screen. 
    
  </div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xfpm-monitor"></a>Monitor settings</h3></div></div></div><div class="figure"><a name="id2517749"></a><p class="title"><b>Figure 6. Monitor DPMS and LCD brightness</b></p><div class="figure-contents"><div class="screenshot"><div class="mediaobject"><img src="images/monitor-settings.png" alt="Monitor DPMS and LCD brightness"></div></div></div></div><p><br class="figure-break"></p><p>
	DPMS is an old X extension that allows standby/suspend/turn off options of the monitor, usually the timeouts 
	have to be consecutive, so standby timeout is less than suspend timeout and so on, but any option can always
	be disabled.
	</p><p>
	For laptop users, clicking on the checkbox allows the power manager to reduce the screen luminosity when
	it detects that system in running on battery power and increase it again when the system is running
	on AC power.
	</p></div></div><p> </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xfpm-systray-notify"></a>System Tray Icon and Notification</h2></div></div></div><p>
</p><div class="figure"><a name="id2512977"></a><p class="title"><b>Figure 7. Battery icon in the system tray</b></p><div class="figure-contents"><div class="screenshot"><div class="mediaobject"><img src="images/battery.png" alt="Battery icon in the system tray"></div></div></div></div><p><br class="figure-break"></p><p>

The "system tray" is an application running on a given X screen that can display small icons 
provided by running applications. In Xfce, it is a panel plugin that catches the icon and resizes it
to the size of the panel, if you don't have this plugin added to the panel you will not see any 
tray icon, for example pidgin places an icon in the system tray as well as many other applications.
</p><p>
<strong class="application"><code>xfce4-power-manager</code></strong> uses GtkStatusIcon to display the different kinds of batteries found in the system.
</p><p>
</p><div class="figure"><a name="id2513026"></a><p class="title"><b>Figure 8. Battery Notification</b></p><div class="figure-contents"><div class="screenshot"><div class="mediaobject"><img src="images/battery-discharging.png" alt="Battery Notification"></div></div></div></div><p><br class="figure-break"></p><p>

To notify the user about the status of the battery, serious errors occured, the notification daemon is used
to display such messages.
</p></div><p> </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xfpm-faq"></a>FAQ</h2></div></div></div><div class="variablelist"><dl><dt><span class="term">Q: Why the icons look very similar to the icon of gnome power manager?</span></dt><dd><p>A: No, they are not similar, they are the same, just there is no point of re-drawing icons,
	gnome power manager icons are good enough. Not all of them are used.  
	</p></dd><dt><span class="term">Q: What is the difference between suspend and hibernate?</span></dt><dd><p>A: Suspend is a power save feature. When suspending, the computer is still using power,
	since the running applications are kept in the memory, but it is the lowest power level that the computer
	can use. While Hibernate saves the system state on the hard drive and turns off the power, when you start up your 
	computer	again those data will be loaded and the system back up. 
	</p></dd><dt><span class="term">Q: Why the options of suspend/hibernate are not there or I can not select them?</span></dt><dd><p>A: Many possible reasons, for example your kernel is not compiled with suspend/hibernate options.
	Another possible reason is the fact that you are not allowed to use them.
	</p></dd><dt><span class="term">Q: How the power manager actually suspend or hibernate my system?</span></dt><dd><p>A: The power manager checks if the user is allowed to use power management service, then send a D-Bus message 
	to HAL asking to suspend/hibernate, usually the methods to suspend or hibernate used by HAL are scripts located in 
	/usr/lib/hal/scripts/YourOs.
	</p></dd><dt><span class="term">Q: If the power manager puts the computer in hibernate because my battery charge is critical what will happen
	if I turn it on again without plugging my adapter?</span></dt><dd><p>A: Nothing actually, the power manager had taken the action defined by the user already.
	In the best cases, it will display a warning popup with different options.
	</p></dd><dt><span class="term">Q: I select the option of the LCD brightness control but I do not see the brightness changing when I switch 
	from AC adapter to battery power?</span></dt><dd><p>A: Your kernel does not have the right driver, or the driver is not loaded.
	</p></dd></dl></div></div><p> </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xfpm-about"></a>About <strong class="application"><code>xfce4-power-manager</code></strong></h2></div></div></div><p>
	This power manager was written following the philosophy of Xfce, having light weight application that does
	what the user is expecting from it.
	</p><p>To report a bug or make a suggestion regarding this application or
    this manual, use the bug tracking system at <a class="ulink" href="http://bugzilla.xfce.org/" target="_top">http://bugzilla.xfce.org/</a>. 
  </p><p>If you have questions about the use or installation of this package,
    please ask on the <a class="ulink" href="http://lunar-linux.org/mailman/listinfo/xfce" target="_top">xfce</a> mailing list. Development discussion takes
    place on the <a class="ulink" href="http://lunar-linux.org/mailman/listinfo/xfce4-dev" target="_top">xfce4-dev</a> mailing list
    or on  <a class="ulink" href="http://lunar-linux.org/mailman/listinfo/xfce4-goodies-dev" target="_top">xfce4-goodies-dev</a> mailing list.
  </p></div><p> </p><p> This program is distributed under the terms of the
    GNU General Public License as published by the Free Software Foundation; 
    either version 2 of the License, or (at your option) any later version.
  </p><p>You should have received a copy of the GNU General Public License 
    along with this program; if not, write to the Free Software 
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
  </p></div></body></html>