summaryrefslogtreecommitdiff
path: root/doc/C/xfce4-power-manager.xml
blob: 5db140a7cd7d12633f4167ac2b6b6434f1990f21 (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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
<?xml version='1.0'?> 
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
          "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
  <!ENTITY date "October 2008"> 
  <!ENTITY appversion "0.6.2"> 
  <!ENTITY app "<application>xfce4-power-manager</application>">
]>

<article id="xfce4-power-manager" lang="en">
<!-- Header --> 
<articleinfo>

  <title>Xfce 4 Power Manager</title>
 
  <copyright>
    <year>2008</year> <holder>Ali Abdallah</holder>
  </copyright>


<authorgroup>

    <author>
      <firstname>Ali</firstname> <surname>Abdallah</surname>
      <affiliation>
	<address><email>aliov@xfce.org</email></address>
      </affiliation>
    </author>
    
<!-- This is appropriate place for other contributors: translators,
maintainers, etc. Commented out by default.

    <othercredit role="translator">
      <firstname>Latin</firstname> <surname>Translator 1</surname>
      <affiliation>
	<orgname>Latin Translation Team</orgname>
	<address><email>translator@gnome.org</email> </address>
      </affiliation> <contrib>Latin translation</contrib>
    </othercredit>
-->

</authorgroup>

<releaseinfo>This manual describes &app; version &appversion;
</releaseinfo>

</articleinfo>

  <!-- extra space -->
  <para>&nbsp;</para>
    
<sect1 id="xfpm-intro">
  <title>Introduction</title>
  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.
  <sect2 id="xfpm-started">
  <title>Getting Started</title>
  <para>To launch the Power Manager you need to run the following command &app; -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.
  </para> 
  </sect2> 
</sect1>

 <!-- extra space -->
  <para>&nbsp;</para>
 
<sect1 id="xfpm-configuration">
  <title>Power Manager Configuration</title>
  <para><figure float="0">
	<title>Power Manager settings</title>
	<screenshot><mediaobject>
	<imageobject>
	<imagedata fileref="images/settings.png" format="PNG"/>
	</imageobject>
	<textobject>
	<phrase></phrase>
	</textobject>
	</mediaobject></screenshot>
</figure></para>
  <para>
  Almost all the &app; items are configurable from the configuration window, laptop users can set up 
  a power profile for two different modes “on battery power” and “on ac power”, desktop users still can change 
  DPMS settings and CPU frequency.
  </para>
  <para>
  The settings dialog differs from one system to another depending on the computer (PC,laptop,...) and on
  the available manageabale interfaces.  
  </para>
  <para>
  In this section we will describe the possible configuration for the power manager.
  </para>
  <sect2 id="xfpm-general">
  <title>General Settings</title>
  <para><figure float="0">
	<title>General settings</title>
	<screenshot><mediaobject>
	<imageobject>
	<imagedata fileref="images/general-settings.png" format="png"/>
	</imageobject>
	<textobject>
	<phrase></phrase>
	</textobject>
	</mediaobject></screenshot>
	</figure></para>
	<para>
	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.	
	</para>
  </sect2> 
	  
  
  <sect2 id="xfpm-cpu">
   <title>CPU Settings</title>
   <para><figure float="0">
	<title>CPU Linux governors</title>
	<screenshot><mediaobject>
	<imageobject>
	<imagedata fileref="images/cpu-settings.png" format="PNG"/>
	</imageobject>
	<textobject>
	<phrase></phrase>
	</textobject>
	</mediaobject></screenshot>
	</figure></para>
	<para>
	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.
	</para>
	<para>Here is a brief descritption on linux cpu governors</para>
		
<variablelist>

   <varlistentry>
	<term>Best performance:</term>
	<listitem>
	<para> Set CPU to its maximum frequency: consume more power, 
	and it is not ideal when running on battery.
	</para>
	</listitem>
	</varlistentry>
	
	<varlistentry>
	<term>Best power savings:</term>
	<listitem>
	<para> 
	Set the CPU to its minimum frequency: ideal when running on battery power.	
	</para>
	</listitem>
	</varlistentry>
	
	<varlistentry>
	<term>Ondemand performance:</term>
	<listitem>
	<para> What you want is what you get: set the CPU depending on the
	current usage.
	</para>
	</listitem>
	</varlistentry>	
	
	<varlistentry>
	<term>Good power savings:</term>
	<listitem>
	<para> 
	 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.
	</para>
	</listitem>
	</varlistentry>	
	
</variablelist>
<para>
NOTE:In &app; version &appversion; only Linux is supported for changing the CPU frequency.
</para>

</sect2>  
  
  <sect2 id="xfpm-battery">
    <title>Battery settings</title>
	<para><figure float="0">
	<title>Battery settings</title>
	<screenshot><mediaobject>
	<imageobject>
	<imagedata fileref="images/battery-settings.png" format="PNG"/>
	</imageobject>
	<textobject>
	<phrase></phrase>
	</textobject>
	</mediaobject></screenshot>
</figure></para>
	<para>
	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.    
   </para>
   <para>
   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.
   </para> 
   The battery notification is a way to notify the user when the battery state changes ( ex: battery charge is full )
   <para>
   
   </para>
  </sect2>  
  
  <sect2 id="xfpm-button">
    <title>Keyboard shortcuts</title>
	<para><figure float="0">
	<title>button control</title>
	<screenshot><mediaobject>
	<imageobject>
	<imagedata fileref="images/button-settings.png" format="PNG"/>
	</imageobject>
	<textobject>
	<phrase></phrase>
	</textobject>
	</mediaobject></screenshot>
</figure></para>
   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. 
    
  </sect2>  
  
  <sect2 id="xfpm-monitor">
   <title>Monitor settings</title>
   <para><figure float="0">
	<title>Monitor DPMS and LCD brightness</title>
	<screenshot><mediaobject>
	<imageobject>
	<imagedata fileref="images/monitor-settings.png" format="PNG"/>
	</imageobject>
	<textobject>
	<phrase></phrase>
	</textobject>
	</mediaobject></screenshot>
</figure></para>
	<para>
	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.
	</para>
	<para>
	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.
	</para>
	</sect2>  
</sect1>

<!-- extra space -->
  <para>&nbsp;</para>
  
<sect1 id="xfpm-systray-notify">
<title>System Tray Icon and Notification</title>
<para>
<para><figure float="0">
	<title>Battery icon in the system tray</title>
	<screenshot><mediaobject>
	<imageobject>
	<imagedata fileref="images/battery.png" format="PNG"/>
	</imageobject>
	<textobject>
	<phrase></phrase>
	</textobject>
	</mediaobject></screenshot>
</figure></para>

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.
</para>
<para>
&app; uses GtkStatusIcon to display the different kinds of batteries found in the system.
</para>
<para>
<para><figure float="0">
	<title>Battery Notification</title>
	<screenshot><mediaobject>
	<imageobject>
	<imagedata fileref="images/battery-discharging.png" format="PNG"/>
	</imageobject>
	<textobject>
	<phrase></phrase>
	</textobject>
	</mediaobject></screenshot>
</figure></para>

To notify the user about the status of the battery, serious errors occured, the notification daemon is used
to display such messages.
</para>
</sect1>

 <!-- extra space -->
  <para>&nbsp;</para>
  
<sect1 id="xfpm-faq">
  <title>FAQ</title>
  <variablelist>

   <varlistentry>
	<term>Q: Why the icons look very similar to the icon of gnome power manager?</term>
	<listitem>
	<para>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.  
	</para>
	</listitem>
	</varlistentry>

	 <varlistentry>
	<term>Q: What is the difference between suspend and hibernate?</term>
	<listitem>
	<para>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. 
	</para>
	</listitem>
	</varlistentry>
	
	 <varlistentry>
	<term>Q: Why the options of suspend/hibernate are not there or I can not select them?</term>
	<listitem>
	<para>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.
	</para>
	</listitem>
	</varlistentry>
	
	 <varlistentry>
	<term>Q: How the power manager actually suspend or hibernate my system?</term>
	<listitem>
	<para>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.
	</para>
	</listitem>
	</varlistentry>
	
	 <varlistentry>
	<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?</term>
	<listitem>
	<para>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.
	</para>
	</listitem>
	</varlistentry>
	
	 <varlistentry>
	<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?</term>
	<listitem>
	<para>A: Your kernel does not have the right driver, or the driver is not loaded.
	</para>
	</listitem>
	</varlistentry>
		
</variablelist>
</sect1>  

 <!-- extra space -->
  <para>&nbsp;</para>
<sect1 id="xfpm-about">
  <title>About &app;</title>
  <para>
	This power manager was written following the philosophy of Xfce, having light weight application that does
	what the user is expecting from it.
	</para>

  <para>To report a bug or make a suggestion regarding this application or
    this manual, use the bug tracking system at <ulink 
      url="http://bugzilla.xfce.org/" 
      type="http">http://bugzilla.xfce.org/</ulink>. 
  </para>

  <para>If you have questions about the use or installation of this package,
    please ask on the <ulink 
      url="http://lunar-linux.org/mailman/listinfo/xfce"
      type="http">xfce</ulink> mailing list. Development discussion takes
    place on the <ulink 
      url="http://lunar-linux.org/mailman/listinfo/xfce4-dev"
      type="http">xfce4-dev</ulink> mailing list
    or on  <ulink 
      url="http://lunar-linux.org/mailman/listinfo/xfce4-goodies-dev"
      type="http">xfce4-goodies-dev</ulink> mailing list.
  </para>
  
</sect1>  

 <!-- extra space -->
  <para>&nbsp;</para>
  <para> 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.
  </para>

  <para>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.
  </para>

</article>