~ubuntu-branches/debian/sid/upower/sid

« back to all changes in this revision

Viewing changes to doc/html/UPower.html

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2014-07-12 20:45:10 UTC
  • mfrom: (17.1.6 experimental)
  • Revision ID: package-import@ubuntu.com-20140712204510-9rwc7jgforgc8301
Tags: 0.99.0-3
* Team upload.
* Bump Standards-Version to 3.9.5
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<html>
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
 
<title>org.freedesktop.UPower</title>
 
5
<title>UPower Reference Manual: org.freedesktop.UPower</title>
6
6
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
<link rel="home" href="index.html" title="UPower Reference Manual">
8
8
<link rel="up" href="ref-dbus.html" title="D-Bus API Reference">
9
9
<link rel="prev" href="ref-dbus.html" title="D-Bus API Reference">
10
10
<link rel="next" href="Device.html" title="org.freedesktop.UPower.Device">
11
 
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
</head>
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
 
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
 
<tr valign="middle">
17
 
<td><a accesskey="p" href="ref-dbus.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
 
<td><a accesskey="u" href="ref-dbus.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
 
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
 
<th width="100%" align="center">UPower Reference Manual</th>
21
 
<td><a accesskey="n" href="Device.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
 
</tr>
23
 
<tr><td colspan="5" class="shortcuts">
24
 
<a href="#UPower.synopsis" class="shortcut">Top</a>
 
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
 
16
<td width="100%" align="left">
 
17
<a href="#" class="shortcut">Top</a>
25
18
                   | 
26
19
                  <a href="#UPower.description" class="shortcut">Description</a>
27
20
                   | 
30
23
                  <a href="#UPower.properties" class="shortcut">Properties</a>
31
24
                   | 
32
25
                  <a href="#UPower.signals" class="shortcut">Signals</a>
33
 
</td></tr>
34
 
</table>
 
26
</td>
 
27
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
 
28
<td><a accesskey="u" href="ref-dbus.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
 
29
<td><a accesskey="p" href="ref-dbus.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
 
30
<td><a accesskey="n" href="Device.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
 
31
</tr></table>
35
32
<div class="refentry">
36
33
<a name="UPower"></a><div class="titlepage"></div>
37
34
<div class="refnamediv"><table width="100%"><tr>
44
41
<div class="refsynopsisdiv">
45
42
<h2>Methods</h2>
46
43
<pre class="synopsis"><a class="link" href="UPower.html#UPower.EnumerateDevices">EnumerateDevices</a>(out'ao'devices)
47
 
<a class="link" href="UPower.html#UPower.AboutToSleep">AboutToSleep</a>(in's'action)
48
 
<a class="link" href="UPower.html#UPower.Suspend">Suspend</a>()
49
 
<a class="link" href="UPower.html#UPower.SuspendAllowed">SuspendAllowed</a>(out'b'allowed)
50
 
<a class="link" href="UPower.html#UPower.Hibernate">Hibernate</a>()
51
 
<a class="link" href="UPower.html#UPower.HibernateAllowed">HibernateAllowed</a>(out'b'allowed)
 
44
<a class="link" href="UPower.html#UPower.GetDisplayDevice">GetDisplayDevice</a>(out'o'device)
 
45
<a class="link" href="UPower.html#UPower.GetCriticalAction">GetCriticalAction</a>(out's'action)
52
46
</pre>
53
47
</div>
54
48
<div class="refsect1">
55
49
<a name="id-1.2.3.4"></a><h2>Signals</h2>
56
50
<pre class="synopsis"><a class="link" href="UPower.html#UPower::DeviceAdded">DeviceAdded</a>('o'device)
57
51
<a class="link" href="UPower.html#UPower::DeviceRemoved">DeviceRemoved</a>('o'device)
58
 
<a class="link" href="UPower.html#UPower::DeviceChanged">DeviceChanged</a>('o'device)
59
 
<a class="link" href="UPower.html#UPower::Changed">Changed</a>()
60
 
<a class="link" href="UPower.html#UPower::Sleeping">Sleeping</a>()
61
 
<a class="link" href="UPower.html#UPower::NotifySleep">NotifySleep</a>('s'action)
62
 
<a class="link" href="UPower.html#UPower::Resuming">Resuming</a>()
63
 
<a class="link" href="UPower.html#UPower::NotifyResume">NotifyResume</a>('s'action)
64
52
</pre>
65
53
</div>
66
54
<div class="refsect1">
74
62
<div class="refsect1">
75
63
<a name="id-1.2.3.6"></a><h2>Properties</h2>
76
64
<pre class="synopsis"><a class="link" href="UPower.html#UPower:DaemonVersion">'DaemonVersion'</a>read's'
77
 
<a class="link" href="UPower.html#UPower:CanSuspend">'CanSuspend'</a>read'b'
78
 
<a class="link" href="UPower.html#UPower:CanHibernate">'CanHibernate'</a>read'b'
79
65
<a class="link" href="UPower.html#UPower:OnBattery">'OnBattery'</a>read'b'
80
 
<a class="link" href="UPower.html#UPower:OnLowBattery">'OnLowBattery'</a>read'b'
81
66
<a class="link" href="UPower.html#UPower:LidIsClosed">'LidIsClosed'</a>read'b'
82
67
<a class="link" href="UPower.html#UPower:LidIsPresent">'LidIsPresent'</a>read'b'
83
 
<a class="link" href="UPower.html#UPower:LidForceSleep">'LidForceSleep'</a>read'b'
84
68
<a class="link" href="UPower.html#UPower:IsDocked">'IsDocked'</a>read'b'
85
69
</pre>
86
70
</div>
161
145
<hr>
162
146
<div class="refsect2">
163
147
<a name="id-1.2.3.8.5"></a><h3>
164
 
<a name="UPower.AboutToSleep"></a>AboutToSleep ()</h3>
165
 
<pre class="programlisting">AboutToSleep (in's'action)</pre>
166
 
</div>
167
 
<p>
168
 
            This method tells UPower that the Suspend() or Hibernate() method
169
 
            is about to be called.
170
 
            This allows UPower to emit the Suspending signal whilst
171
 
            session activities are happening that have to be done before the
172
 
            suspend process is started.
173
 
          </p>
174
 
<p>
175
 
            This method would typically be called by the session power
176
 
            management daemon, before it locks the screen and waits for the
177
 
            screen to fade to black.
178
 
            The session power management component would then call Suspend() or
179
 
            Hibernate() when these syncronous tasks have completed.
180
 
          </p>
181
 
<p>
182
 
            If this method is not called than nothing bad will happen and
183
 
            Suspend() or Hibernate() will block for the required second.
 
148
<a name="UPower.GetDisplayDevice"></a>GetDisplayDevice ()</h3>
 
149
<pre class="programlisting">GetDisplayDevice (out'o'device)</pre>
 
150
</div>
 
151
<p>
 
152
            Get the object to the "display device", a composite device that represents the
 
153
            status icon to show in desktop environments. You can also access the object directly
 
154
            as its path is guaranteed to be /org/freedesktop/UPower/devices/DisplayDevice.
 
155
            The following standard org.freedesktop.UPower.Device
 
156
            properties will be defined (only <code class="literal">IsPresent</code> takes a special meaning):
 
157
            </p>
 
158
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
 
159
<li class="listitem">
 
160
<span class="bold"><strong>Type: </strong></span>the type of the display device, UPS or Battery. Note that this value can change, as opposed to real devices.</li>
 
161
<li class="listitem">
 
162
<span class="bold"><strong>State: </strong></span>the power state of the display device, such as Charging or Discharging.</li>
 
163
<li class="listitem">
 
164
<span class="bold"><strong>Percentage: </strong></span>the amount of energy left on the device.</li>
 
165
<li class="listitem">
 
166
<span class="bold"><strong>Energy: </strong></span>Amount of energy (measured in Wh) currently available in the power source.</li>
 
167
<li class="listitem">
 
168
<span class="bold"><strong>EnergyFull: </strong></span>Amount of energy (measured in Wh) in the power source when it's considered full.</li>
 
169
<li class="listitem">
 
170
<span class="bold"><strong>EnergyRate: </strong></span>Amount of energy being drained from the source, measured in W. If positive, the source is being discharged, if negative it's being charged.</li>
 
171
<li class="listitem">
 
172
<span class="bold"><strong>TimeToEmpty: </strong></span>Number of seconds until the power source is considered empty.</li>
 
173
<li class="listitem">
 
174
<span class="bold"><strong>TimeToFull: </strong></span>Number of seconds until the power source is considered full.</li>
 
175
<li class="listitem">
 
176
<span class="bold"><strong>IsPresent: </strong></span>Whether a status icon using this information should be presented.</li>
 
177
<li class="listitem">
 
178
<span class="bold"><strong>IconName: </strong></span>An icon name representing the device state.</li>
 
179
<li class="listitem">
 
180
<span class="bold"><strong>WarningLevel: </strong></span>The same as the overall <code class="literal">WarningLevel</code>
 
181
</li>
 
182
</ul></div>
 
183
<p>
 
184
          </p>
 
185
<div class="variablelist"><table border="0" class="variablelist">
 
186
<colgroup>
 
187
<col align="left" valign="top">
 
188
<col>
 
189
</colgroup>
 
190
<tbody><tr>
 
191
<td><p><span class="term"><em class="parameter"><code>device</code></em>:</span></p></td>
 
192
<td>An object path for the "display device.</td>
 
193
</tr></tbody>
 
194
</table></div>
 
195
<hr>
 
196
<div class="refsect2">
 
197
<a name="id-1.2.3.8.8"></a><h3>
 
198
<a name="UPower.GetCriticalAction"></a>GetCriticalAction ()</h3>
 
199
<pre class="programlisting">GetCriticalAction (out's'action)</pre>
 
200
</div>
 
201
<p>
 
202
            When the system's power supply is critical (critically low batteries or UPS),
 
203
            the system will take this action. Possible values are:
 
204
            </p>
 
205
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
 
206
<li class="listitem"><span class="bold"><strong>HybridSleep: </strong></span></li>
 
207
<li class="listitem"><span class="bold"><strong>Hibernate: </strong></span></li>
 
208
<li class="listitem"><span class="bold"><strong>PowerOff: </strong></span></li>
 
209
</ul></div>
 
210
<p>
184
211
          </p>
185
212
<div class="variablelist"><table border="0" class="variablelist">
186
213
<colgroup>
189
216
</colgroup>
190
217
<tbody><tr>
191
218
<td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td>
192
 
<td>
193
 
            The sleep action type, e.g. <code class="literal">suspend</code> or
194
 
            <code class="literal">hibernate</code>.
195
 
          </td>
196
 
</tr></tbody>
197
 
</table></div>
198
 
<hr>
199
 
<div class="refsect2">
200
 
<a name="id-1.2.3.8.10"></a><h3>
201
 
<a name="UPower.Suspend"></a>Suspend ()</h3>
202
 
<pre class="programlisting">Suspend ()</pre>
203
 
</div>
204
 
<p>
205
 
            Suspends the computer into a low power state.
206
 
            System state is not preserved if the power is lost.
207
 
          </p>
208
 
<p>
209
 
            If AboutToSleep() has not been called then UPower will send
210
 
            the Sleeping() signal and block for one second.
211
 
          </p>
212
 
<p>
213
 
            If AboutToSleep() has been called less than one second
214
 
            before this method is called then UPower will block for the
215
 
            remaining time to complete one second of delay.
216
 
          </p>
217
 
<div class="variablelist"><table border="0" class="variablelist">
218
 
<colgroup>
219
 
<col align="left" valign="top">
220
 
<col>
221
 
</colgroup>
222
 
<tbody></tbody>
223
 
</table></div>
224
 
<hr>
225
 
<div class="refsect2">
226
 
<a name="id-1.2.3.8.15"></a><h3>
227
 
<a name="UPower.SuspendAllowed"></a>SuspendAllowed ()</h3>
228
 
<pre class="programlisting">SuspendAllowed (out'b'allowed)</pre>
229
 
</div>
230
 
<p>
231
 
            Check if the caller has (or can get) the PolicyKit privilege to call
232
 
            <code class="function">Suspend</code>.
233
 
          </p>
234
 
<div class="variablelist"><table border="0" class="variablelist">
235
 
<colgroup>
236
 
<col align="left" valign="top">
237
 
<col>
238
 
</colgroup>
239
 
<tbody><tr>
240
 
<td><p><span class="term"><em class="parameter"><code>allowed</code></em>:</span></p></td>
241
 
<td>TRUE if allowed, otherwise FALSE</td>
242
 
</tr></tbody>
243
 
</table></div>
244
 
<hr>
245
 
<div class="refsect2">
246
 
<a name="id-1.2.3.8.18"></a><h3>
247
 
<a name="UPower.Hibernate"></a>Hibernate ()</h3>
248
 
<pre class="programlisting">Hibernate ()</pre>
249
 
</div>
250
 
<p>
251
 
            Hibernates the computer into a low power state.
252
 
            System state is preserved if the power is lost.
253
 
          </p>
254
 
<p>
255
 
            If AboutToSleep() has not been called then UPower will send
256
 
            the Sleeping() signal and block for one second.
257
 
          </p>
258
 
<p>
259
 
            If AboutToSleep() has been called less than one second
260
 
            before this method is called then UPower will block for the
261
 
            remaining time to complete one second of delay.
262
 
          </p>
263
 
<div class="variablelist"><table border="0" class="variablelist">
264
 
<colgroup>
265
 
<col align="left" valign="top">
266
 
<col>
267
 
</colgroup>
268
 
<tbody></tbody>
269
 
</table></div>
270
 
<hr>
271
 
<div class="refsect2">
272
 
<a name="id-1.2.3.8.23"></a><h3>
273
 
<a name="UPower.HibernateAllowed"></a>HibernateAllowed ()</h3>
274
 
<pre class="programlisting">HibernateAllowed (out'b'allowed)</pre>
275
 
</div>
276
 
<p>
277
 
            Check if the caller has (or can get) the PolicyKit privilege to call
278
 
            <code class="function">Hibernate</code>.
279
 
          </p>
280
 
<div class="variablelist"><table border="0" class="variablelist">
281
 
<colgroup>
282
 
<col align="left" valign="top">
283
 
<col>
284
 
</colgroup>
285
 
<tbody><tr>
286
 
<td><p><span class="term"><em class="parameter"><code>allowed</code></em>:</span></p></td>
287
 
<td>TRUE if allowed, otherwise FALSE</td>
 
219
<td>A string representing the critical action configured and available.</td>
288
220
</tr></tbody>
289
221
</table></div>
290
222
</div>
327
259
<td>Object path of device that was removed.</td>
328
260
</tr></tbody>
329
261
</table></div>
330
 
<hr>
331
 
<div class="refsect2">
332
 
<a name="id-1.2.3.9.8"></a><h3>
333
 
<a name="UPower::DeviceChanged"></a>The DeviceChanged signal</h3>
334
 
<pre class="programlisting">DeviceChanged ('o'device)</pre>
335
 
</div>
336
 
<p>
337
 
            Emitted when a device changed.
338
 
          </p>
339
 
<div class="variablelist"><table border="0" class="variablelist">
340
 
<colgroup>
341
 
<col align="left" valign="top">
342
 
<col>
343
 
</colgroup>
344
 
<tbody><tr>
345
 
<td><p><span class="term"><em class="parameter"><code>device</code></em>:</span></p></td>
346
 
<td>Object path of device that was changed.</td>
347
 
</tr></tbody>
348
 
</table></div>
349
 
<hr>
350
 
<div class="refsect2">
351
 
<a name="id-1.2.3.9.11"></a><h3>
352
 
<a name="UPower::Changed"></a>The Changed signal</h3>
353
 
<pre class="programlisting">Changed ()</pre>
354
 
</div>
355
 
<p>
356
 
            Emitted when one or more properties on the object changes.
357
 
          </p>
358
 
<div class="variablelist"><table border="0" class="variablelist">
359
 
<colgroup>
360
 
<col align="left" valign="top">
361
 
<col>
362
 
</colgroup>
363
 
<tbody></tbody>
364
 
</table></div>
365
 
<hr>
366
 
<div class="refsect2">
367
 
<a name="id-1.2.3.9.14"></a><h3>
368
 
<a name="UPower::Sleeping"></a>The Sleeping signal</h3>
369
 
<pre class="programlisting">Sleeping ()</pre>
370
 
</div>
371
 
<p>
372
 
            This signal is sent when the session is about to be suspended or
373
 
            hibernated.
374
 
          </p>
375
 
<p>
376
 
            This signal is DEPRECATED. Use NotifySleep() instead.
377
 
          </p>
378
 
<div class="variablelist"><table border="0" class="variablelist">
379
 
<colgroup>
380
 
<col align="left" valign="top">
381
 
<col>
382
 
</colgroup>
383
 
<tbody></tbody>
384
 
</table></div>
385
 
<hr>
386
 
<div class="refsect2">
387
 
<a name="id-1.2.3.9.18"></a><h3>
388
 
<a name="UPower::NotifySleep"></a>The NotifySleep signal</h3>
389
 
<pre class="programlisting">NotifySleep ('s'action)</pre>
390
 
</div>
391
 
<p>
392
 
            This signal is sent when the session is about to be suspended or
393
 
            hibernated.
394
 
            Session and system programs have one second to do anything required
395
 
            before the sleep action is taken (such as sending out Avahi or
396
 
            Jabber messages).
397
 
          </p>
398
 
<div class="variablelist"><table border="0" class="variablelist">
399
 
<colgroup>
400
 
<col align="left" valign="top">
401
 
<col>
402
 
</colgroup>
403
 
<tbody><tr>
404
 
<td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td>
405
 
<td>
406
 
            The sleep action type, e.g. suspend,
407
 
            hibernate or hybrid.
408
 
          </td>
409
 
</tr></tbody>
410
 
</table></div>
411
 
<hr>
412
 
<div class="refsect2">
413
 
<a name="id-1.2.3.9.21"></a><h3>
414
 
<a name="UPower::Resuming"></a>The Resuming signal</h3>
415
 
<pre class="programlisting">Resuming ()</pre>
416
 
</div>
417
 
<p>
418
 
            This signal is sent when the session has just returned from
419
 
            Suspend() or Hibernate().
420
 
          </p>
421
 
<p>
422
 
            This signal is DEPRECATED. Use NotifyResume() instead.
423
 
          </p>
424
 
<div class="variablelist"><table border="0" class="variablelist">
425
 
<colgroup>
426
 
<col align="left" valign="top">
427
 
<col>
428
 
</colgroup>
429
 
<tbody></tbody>
430
 
</table></div>
431
 
<hr>
432
 
<div class="refsect2">
433
 
<a name="id-1.2.3.9.25"></a><h3>
434
 
<a name="UPower::NotifyResume"></a>The NotifyResume signal</h3>
435
 
<pre class="programlisting">NotifyResume ('s'action)</pre>
436
 
</div>
437
 
<p>
438
 
            This signal is sent when the session has just returned from
439
 
            Suspend() or Hibernate().
440
 
            Session and system programs can then do anything required (such as
441
 
            sending out Avahi or Jabber messages).
442
 
          </p>
443
 
<div class="variablelist"><table border="0" class="variablelist">
444
 
<colgroup>
445
 
<col align="left" valign="top">
446
 
<col>
447
 
</colgroup>
448
 
<tbody><tr>
449
 
<td><p><span class="term"><em class="parameter"><code>action</code></em>:</span></p></td>
450
 
<td>
451
 
            The sleep action type, e.g. suspend,
452
 
            hibernate or hybrid.
453
 
          </td>
454
 
</tr></tbody>
455
 
</table></div>
456
262
</div>
457
263
<div class="refsect1">
458
264
<a name="id-1.2.3.10"></a><h2>Property Details</h2>
475
281
<hr>
476
282
<div class="refsect2">
477
283
<a name="id-1.2.3.10.5"></a><h3>
478
 
<a name="UPower:CanSuspend"></a>The "CanSuspend" property</h3>
479
 
<pre class="programlisting">'CanSuspend'read'b'
480
 
</pre>
481
 
</div>
482
 
<p>
483
 
            Whether the system is able to suspend.
484
 
      </p>
485
 
<div class="variablelist"><table border="0" class="variablelist">
486
 
<colgroup>
487
 
<col align="left" valign="top">
488
 
<col>
489
 
</colgroup>
490
 
<tbody></tbody>
491
 
</table></div>
492
 
<hr>
493
 
<div class="refsect2">
494
 
<a name="id-1.2.3.10.8"></a><h3>
495
 
<a name="UPower:CanHibernate"></a>The "CanHibernate" property</h3>
496
 
<pre class="programlisting">'CanHibernate'read'b'
497
 
</pre>
498
 
</div>
499
 
<p>
500
 
            Whether the system is able to hibernate.
501
 
      </p>
502
 
<div class="variablelist"><table border="0" class="variablelist">
503
 
<colgroup>
504
 
<col align="left" valign="top">
505
 
<col>
506
 
</colgroup>
507
 
<tbody></tbody>
508
 
</table></div>
509
 
<hr>
510
 
<div class="refsect2">
511
 
<a name="id-1.2.3.10.11"></a><h3>
512
284
<a name="UPower:OnBattery"></a>The "OnBattery" property</h3>
513
285
<pre class="programlisting">'OnBattery'read'b'
514
286
</pre>
526
298
</table></div>
527
299
<hr>
528
300
<div class="refsect2">
529
 
<a name="id-1.2.3.10.14"></a><h3>
530
 
<a name="UPower:OnLowBattery"></a>The "OnLowBattery" property</h3>
531
 
<pre class="programlisting">'OnLowBattery'read'b'
532
 
</pre>
533
 
</div>
534
 
<p>
535
 
            Indicates whether the system is running on battery power and if the battery is critically low.
536
 
            This property is provided for convenience.
537
 
      </p>
538
 
<div class="variablelist"><table border="0" class="variablelist">
539
 
<colgroup>
540
 
<col align="left" valign="top">
541
 
<col>
542
 
</colgroup>
543
 
<tbody></tbody>
544
 
</table></div>
545
 
<hr>
546
 
<div class="refsect2">
547
 
<a name="id-1.2.3.10.17"></a><h3>
 
301
<a name="id-1.2.3.10.8"></a><h3>
548
302
<a name="UPower:LidIsClosed"></a>The "LidIsClosed" property</h3>
549
303
<pre class="programlisting">'LidIsClosed'read'b'
550
304
</pre>
561
315
</table></div>
562
316
<hr>
563
317
<div class="refsect2">
564
 
<a name="id-1.2.3.10.20"></a><h3>
 
318
<a name="id-1.2.3.10.11"></a><h3>
565
319
<a name="UPower:LidIsPresent"></a>The "LidIsPresent" property</h3>
566
320
<pre class="programlisting">'LidIsPresent'read'b'
567
321
</pre>
578
332
</table></div>
579
333
<hr>
580
334
<div class="refsect2">
581
 
<a name="id-1.2.3.10.23"></a><h3>
582
 
<a name="UPower:LidForceSleep"></a>The "LidForceSleep" property</h3>
583
 
<pre class="programlisting">'LidForceSleep'read'b'
584
 
</pre>
585
 
</div>
586
 
<p>
587
 
            If the system really has to sleep when the lid is closed.
588
 
            Some laptops actually melt (!) if the lid is closed and the
589
 
            computer keeps running. We blacklist those, and do something
590
 
            sane for the other machines.
591
 
          </p>
592
 
<p>
593
 
            This allows us to set the default session policy to not
594
 
            suspend on lid close if the laptop is docked, and be sure
595
 
            the machine is not going to melt.
596
 
          </p>
597
 
<div class="variablelist"><table border="0" class="variablelist">
598
 
<colgroup>
599
 
<col align="left" valign="top">
600
 
<col>
601
 
</colgroup>
602
 
<tbody></tbody>
603
 
</table></div>
604
 
<hr>
605
 
<div class="refsect2">
606
 
<a name="id-1.2.3.10.27"></a><h3>
 
335
<a name="id-1.2.3.10.14"></a><h3>
607
336
<a name="UPower:IsDocked"></a>The "IsDocked" property</h3>
608
337
<pre class="programlisting">'IsDocked'read'b'
609
338
</pre>
624
353
</div>
625
354
<div class="footer">
626
355
<hr>
627
 
          Generated by GTK-Doc V1.19</div>
 
356
          Generated by GTK-Doc V1.19.1</div>
628
357
</body>
629
358
</html>
 
 
b'\\ No newline at end of file'