gnu.x11.extension
Class DPMS

java.lang.Object
  extended by gnu.x11.extension.Extension
      extended by gnu.x11.extension.DPMS

public class DPMS
extends Extension

Display Power Management Signaling Extension. The specification can be found here (protocol).


Nested Class Summary
static class DPMS.Info
          Reply of info()
static class DPMS.TimeoutsInfo
          Reply of timeouts()
 
Field Summary
static int CLIENT_MAJOR_VERSION
           
static int CLIENT_MINOR_VERSION
           
static java.lang.String[] LEVEL_STRINGS
           
static java.lang.String[] MINOR_OPCODE_STRINGS
           
static int OFF
           
static int ON
           
 int server_major_version
           
 int server_minor_version
           
static int STAND_BY
           
static int SUSPEND
           
 
Fields inherited from class gnu.x11.extension.Extension
display, first_error, first_event, major_opcode, name
 
Constructor Summary
DPMS(Display display)
           
 
Method Summary
 boolean capable()
          Determine whether or not the currently running server's devices are capable of DPMS operations.
 void disable()
           
 void enable()
           
 void force_level(int level)
           
 DPMS.Info info()
           
 java.lang.String more_string()
          Additional information such as client version and server version to display in toString().
 void set_timeouts(int standby, int suspend, int off)
           
 DPMS.TimeoutsInfo timeouts()
           
 
Methods inherited from class gnu.x11.extension.Extension
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MINOR_OPCODE_STRINGS

public static final java.lang.String[] MINOR_OPCODE_STRINGS

CLIENT_MAJOR_VERSION

public static final int CLIENT_MAJOR_VERSION
See Also:
Constant Field Values

CLIENT_MINOR_VERSION

public static final int CLIENT_MINOR_VERSION
See Also:
Constant Field Values

server_major_version

public int server_major_version

server_minor_version

public int server_minor_version

ON

public static final int ON
See Also:
Constant Field Values

STAND_BY

public static final int STAND_BY
See Also:
Constant Field Values

SUSPEND

public static final int SUSPEND
See Also:
Constant Field Values

OFF

public static final int OFF
See Also:
Constant Field Values

LEVEL_STRINGS

public static final java.lang.String[] LEVEL_STRINGS
Constructor Detail

DPMS

public DPMS(Display display)
     throws NotFoundException
Throws:
NotFoundException
See Also:
DPMSQueryExtension
Method Detail

capable

public boolean capable()
Determine whether or not the currently running server's devices are capable of DPMS operations. There is a bug in all servers based on X Consortium sample implementation up to R6.5 (including XFree86 4.0.1 or earlier): the sequence number of the reply is incorrect, causing a "reply out of order" error.

See Also:
DPMSCapable

timeouts

public DPMS.TimeoutsInfo timeouts()
See Also:
DPMSGetTimeouts

set_timeouts

public void set_timeouts(int standby,
                         int suspend,
                         int off)
See Also:
DPMSSetTimeouts

enable

public void enable()
See Also:
DPMSEnable

disable

public void disable()
See Also:
DPMSDisable

force_level

public void force_level(int level)
Parameters:
level - valid: ON, STAND_BY, SUSPEND, OFF
See Also:
DPMSForceLevel

info

public DPMS.Info info()
See Also:
DPMSInfo

more_string

public java.lang.String more_string()
Description copied from class: Extension
Additional information such as client version and server version to display in toString().

Overrides:
more_string in class Extension