aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/dmx/doc/html/dmxdpms_8c.html
blob: 2912b4e7cb0c4ad3bddfd94f97f7a32a93f4598c (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
    <title>File Index</title>
    <link href="doxygen.css" rel="stylesheet" type="text/css">
  </head>
  <body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>dmxdpms.c File Reference</h1><code>#include &quot;<a class="el" href="dmx_8h_source.html">dmx.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="dmxdpms_8h_source.html">dmxdpms.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="dmxlog_8h_source.html">dmxlog.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="dmxsync_8h_source.html">dmxsync.h</a>&quot;</code><br/>
<code>#include &quot;windowstr.h&quot;</code><br/>
<code>#include &lt;X11/extensions/dpms.h&gt;</code><br/>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dmxdpms_8c.html#afd14a12acf152c0a881144aff85e584a">_dmxDPMSInit</a> (<a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> *dmxScreen)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dmxdpms_8c.html#a6c93ecabb9ee83027c79f878e143a472">dmxDPMSInit</a> (<a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> *dmxScreen)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dmxdpms_8c.html#a54288399c9ed5293b83d7d508ff2465c">dmxDPMSTerm</a> (<a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> *dmxScreen)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dmxdpms_8c.html#aa996aaa17a07afb7fc613142599505c5">dmxDPMSWakeup</a> (void)</td></tr>
<tr><td colspan="2"><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static unsigned long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dmxdpms_8c.html#a7bb06fe7454077ecfbfae62ac9cba1e0">dpmsGeneration</a> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dmxdpms_8c.html#a2d45a784084cd5cdef646499d5298254">dpmsSupported</a> = TRUE</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Provides DPMS support and unifies all DPMS and other screen-saver support in one file. If -dpms is given on the command line, or the Xdmx server is not compiled with DPMS support, then the DPMS extension does not work for clients, but DPMS on the backends is still disables (and restored at Xdmx server shutdown time). </p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="afd14a12acf152c0a881144aff85e584a"></a><!-- doxytag: member="dmxdpms.c::_dmxDPMSInit" ref="afd14a12acf152c0a881144aff85e584a" args="(DMXScreenInfo *dmxScreen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void _dmxDPMSInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> *&nbsp;</td>
          <td class="paramname"> <em>dmxScreen</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>References <a class="el" href="dmx_8h_source.html#l00099">_DMXScreenInfo::beDisplay</a>, <a class="el" href="dmxlog_8c_source.html#l00183">dmxLogOutput()</a>, <a class="el" href="dmx_8h_source.html#l00176">_DMXScreenInfo::dpmsCapable</a>, <a class="el" href="dmx_8h_source.html#l00177">_DMXScreenInfo::dpmsEnabled</a>, <a class="el" href="dmxdpms_8c_source.html#l00056">dpmsGeneration</a>, <a class="el" href="dmx_8h_source.html#l00180">_DMXScreenInfo::dpmsOff</a>, <a class="el" href="dmx_8h_source.html#l00178">_DMXScreenInfo::dpmsStandby</a>, <a class="el" href="dmxdpms_8c_source.html#l00057">dpmsSupported</a>, and <a class="el" href="dmx_8h_source.html#l00179">_DMXScreenInfo::dpmsSuspend</a>.</p>

<p>Referenced by <a class="el" href="dmxdpms_8c_source.html#l00130">dmxDPMSInit()</a>.</p>

</div>
</div>
<a class="anchor" id="a6c93ecabb9ee83027c79f878e143a472"></a><!-- doxytag: member="dmxdpms.c::dmxDPMSInit" ref="a6c93ecabb9ee83027c79f878e143a472" args="(DMXScreenInfo *dmxScreen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dmxDPMSInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> *&nbsp;</td>
          <td class="paramname"> <em>dmxScreen</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initialize DPMS support. We save the current settings and turn off DPMS. The settings are restored in <a class="el" href="dmxdpms_8h.html#a54288399c9ed5293b83d7d508ff2465c">dmxDPMSTerm</a>. </p>

<p>References <a class="el" href="dmxdpms_8c_source.html#l00059">_dmxDPMSInit()</a>, <a class="el" href="dmx_8h_source.html#l00099">_DMXScreenInfo::beDisplay</a>, <a class="el" href="dmxsync_8c_source.html#l00150">dmxSync()</a>, and <a class="el" href="dmx_8h_source.html#l00175">_DMXScreenInfo::savedTimeout</a>.</p>

<p>Referenced by <a class="el" href="dmxscrinit_8c_source.html#l00090">dmxBEScreenInit()</a>.</p>

</div>
</div>
<a class="anchor" id="a54288399c9ed5293b83d7d508ff2465c"></a><!-- doxytag: member="dmxdpms.c::dmxDPMSTerm" ref="a54288399c9ed5293b83d7d508ff2465c" args="(DMXScreenInfo *dmxScreen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dmxDPMSTerm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> *&nbsp;</td>
          <td class="paramname"> <em>dmxScreen</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Terminate DPMS support on <em>dmxScreen</em>. We restore the settings saved in <a class="el" href="dmxdpms_8h.html#a6c93ecabb9ee83027c79f878e143a472">dmxDPMSInit</a>. </p>

<p>References <a class="el" href="dmx_8h_source.html#l00099">_DMXScreenInfo::beDisplay</a>, <a class="el" href="dmxsync_8c_source.html#l00150">dmxSync()</a>, <a class="el" href="dmx_8h_source.html#l00176">_DMXScreenInfo::dpmsCapable</a>, <a class="el" href="dmx_8h_source.html#l00177">_DMXScreenInfo::dpmsEnabled</a>, <a class="el" href="dmx_8h_source.html#l00180">_DMXScreenInfo::dpmsOff</a>, <a class="el" href="dmx_8h_source.html#l00178">_DMXScreenInfo::dpmsStandby</a>, <a class="el" href="dmx_8h_source.html#l00179">_DMXScreenInfo::dpmsSuspend</a>, and <a class="el" href="dmx_8h_source.html#l00175">_DMXScreenInfo::savedTimeout</a>.</p>

<p>Referenced by <a class="el" href="dmxscrinit_8c_source.html#l00365">dmxBECloseScreen()</a>.</p>

</div>
</div>
<a class="anchor" id="aa996aaa17a07afb7fc613142599505c5"></a><!-- doxytag: member="dmxdpms.c::dmxDPMSWakeup" ref="aa996aaa17a07afb7fc613142599505c5" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dmxDPMSWakeup </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when activity is detected so that DPMS power-saving mode can be deactivated. </p>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a7bb06fe7454077ecfbfae62ac9cba1e0"></a><!-- doxytag: member="dmxdpms.c::dpmsGeneration" ref="a7bb06fe7454077ecfbfae62ac9cba1e0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned long <a class="el" href="dmxdpms_8c.html#a7bb06fe7454077ecfbfae62ac9cba1e0">dpmsGeneration</a> = 0<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Referenced by <a class="el" href="dmxdpms_8c_source.html#l00059">_dmxDPMSInit()</a>.</p>

</div>
</div>
<a class="anchor" id="a2d45a784084cd5cdef646499d5298254"></a><!-- doxytag: member="dmxdpms.c::dpmsSupported" ref="a2d45a784084cd5cdef646499d5298254" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Bool <a class="el" href="dmxdpms_8c.html#a2d45a784084cd5cdef646499d5298254">dpmsSupported</a> = TRUE<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Referenced by <a class="el" href="dmxdpms_8c_source.html#l00059">_dmxDPMSInit()</a>.</p>

</div>
</div>
</div>
    <hr>
    <address>
      <small>
        Generated June 29, 2004 for <a
        href="http://dmx.sourceforge.net">Distributed Multihead X</a> by
        <a href="http://www.doxygen.org/index.html">doxygen</a>
        1.3.4.
      </small>
    </addres>
    </hr>
  </body>
</html>