-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdpms.proto
84 lines (71 loc) · 1.54 KB
/
dpms.proto
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
# This file is part of "xtrace"
# Copyright (C) 2008 Bernhard R. Link
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# 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 St, Fifth Floor, Boston, MA 02110-1301 USA
EXTENSION "DPMS" Dpms
USE core
REQUESTS
GetVersion RESPONDS
Capable RESPONDS
GetTimeouts RESPONDS
SetTimeouts
Enable
Disable
ForceLevel
Info RESPONDS
END
EVENTS
END
ERRORS
END
CONSTANTS dpms_level
0 on
1 standby
2 suspend
3 off
END
TYPE DPMS_LEVEL ENUM16 dpms_level
REQUEST GetVersion
4 "major version" UINT16
6 "minor version" UINT16
END
RESPONSE GetVersion
8 "major version" UINT16
10 "minor version" UINT16
END
REQUEST Capable ALIASES Empty
RESPONSE Capable
8 capable BOOL
END
REQUEST GetTimeouts ALIASES Empty
RESPONSE GetTimeouts
8 standby UINT16
10 suspend UINT16
12 off UINT16
END
REQUEST SetTimeouts
4 standby UINT16
6 suspend UINT16
8 off UINT16
END
REQUEST Enable ALIASES Empty
REQUEST Disable ALIASES Empty
REQUEST ForceLevel
4 level DPMS_LEVEL
END
REQUEST Info ALIASES Empty
RESPONSE Info
8 power_level DPMS_LEVEL
10 state BOOL
END
EOF