This file is indexed.

/usr/share/xtrace/vidmode.proto is in xtrace 1.3.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
# This file is part of "xtrace"
# Copyright (C) 2006 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
#
# This file is based on /usr/include/X11/extensions/xf86vmstr.h which states:
## Copyright 1995  Kaleb S. KEITHLEY
##
## Permission is hereby granted, free of charge, to any person obtaining
## a copy of this software and associated documentation files (the
## "Software"), to deal in the Software without restriction, including
## without limitation the rights to use, copy, modify, merge, publish,
## distribute, sublicense, and/or sell copies of the Software, and to
## permit persons to whom the Software is furnished to do so, subject to
## the following conditions:
##
## The above copyright notice and this permission notice shall be
## included in all copies or substantial portions of the Software.
##
## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
## EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
## MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
## IN NO EVENT SHALL Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES 
## OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
## ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
## OTHER DEALINGS IN THE SOFTWARE.
##
## Except as contained in this notice, the name of Kaleb S. KEITHLEY 
## shall not be used in advertising or otherwise to promote the sale, use 
## or other dealings in this Software without prior written authorization
## from Kaleb S. KEITHLEY

EXTENSION "XFree86-VidModeExtension" VidMode
USE core

REQUESTS
QueryVersion RESPONDS
GetModeLine RESPONDS
ModModeLine
SwitchMode
GetMonitor RESPONDS
LockModeSwitch
GetAllModeLines RESPONDS
AddModeLine
DeleteModeLine
ValidateModeLine RESPONDS
SwitchToMode
GetViewPort RESPONDS
SetViewPort
GetDotClocks RESPONDS
SetClientVersion
SetGamma
GetGamma RESPONDS
GetGammaRamp RESPONDS
SetGammaRamp
GetGammaRampSize RESPONDS
GetPermissions RESPONDS
END

EVENTS
END

ERRORS
BadClock
BadHTimings
BadVTimings
ModeUnsuitable
ExtensionDisabled
ClientNotLocal
ZoomLocked
END

BITMASK xf86vidmode_perms
1	read
2	write
END

BITMASK xf86vidmode_flags
# taken from xvidtune:
1	+hsync
2	-hsync
4	+vsync
8	-vsync
16	interlace
32	doublescan
64	csync
128	+csync
256	-csync
END

REQUEST QueryVersion
END
RESPONSE QueryVersion
 8	major-version	UINT16
10	minor-version	UINT16
END

REQUEST GetModeLine
 4	screen	UINT16
END

REQUEST GetAllModeLines ALIASES GetModeLine

REQUEST GetMonitor ALIASES GetModeLine

REQUEST GetViewPort ALIASES GetModeLine

REQUEST GetDotClocks ALIASES GetModeLine

REQUEST GetPermissions ALIASES GetModeLine

REQUEST GetGamma ALIASES GetModeLine

RESPONSE GetModeLine
 8	dotclock	UINT32
12	hdisplay	UINT16
14	hsyncstart	UINT16
16	hsyncend	UINT16
18	htotal	UINT16
20	hskew	UINT16
22	vdisplay	UINT16
24	vsyncstart	UINT16
26	vsyncend	UINT16
28	vtotal	UINT16
32	flags	BITMASK32 xf86vidmode_flags
36	reserved1	UINT32
40	reserved2	UINT32
44	reserved3	UINT32
48	privsize	UINT32
END

LIST Modes length 48
# This is somehow buggy, xf86vmstr.h values cannot
# be, this looks a bit better, but I'm still not sure
 0	dotclock	UINT32
 4	hdisplay	UINT16
 6	hsyncstart	UINT16
 8	hsyncend	UINT16
10	htotal	UINT16
12	hskew	UINT32
16	vdisplay	UINT16
18	vsyncstart	UINT16
20	vsyncend	UINT16
22	vtotal	UINT16
28	flags	BITMASK32 xf86vidmode_flags
32	reserved1	UINT32
36	reserved2	UINT32
40	reserved3	UINT32
44	privsize	UINT32
END

RESPONSE GetAllModeLines
 8	modecount	UINT32
 8	modecount	COUNT32
32	modes	LISTofModes
END

LIST Sync length 4
 0	min		UINT16
 2	max		UINT16
END

RESPONSE GetMonitor
 8	vendorLength	COUNT8
32	vendor	STRING8
 9	modelLength	COUNT8
LATER	model	STRING8
10	nhsync	COUNT8
LATER	hsync	LISTofSync
11	nvsync	COUNT8
LATER	vsync	LISTofSync
END

REQUEST AddModeLine
 4	screen	CARD32
 8	dotclock	UINT32
12	hdisplay	UINT16
14	hsyncstart	UINT16
16	hsyncend	UINT16
18	htotal	UINT16
20	hskew	UINT16
22	vdisplay	UINT16
24	vsyncstart	UINT16
26	vsyncend	UINT16
28	vtotal	UINT16
32	flags	BITMASK32 xf86vidmode_flags
36	reserved1	UINT32
40	reserved2	UINT32
44	reserved3	UINT32
48	privsize	UINT32
52	after_dotclock	UINT32
56	after_hdisplay	UINT16
58	after_hsyncstart	UINT16
60	after_hsyncend	UINT16
62	after_htotal	UINT16
64	after_hskew	UINT16
66	after_vdisplay	UINT16
68	after_vsyncstart	UINT16
70	after_vsyncend	UINT16
72	after_vtotal	UINT16
76	after_flags	CARD32
80	reserved4	UINT32
84	reserved5	UINT32
88	reserved6	UINT32
END

REQUEST ModModeLine
 4	screen	CARD32
 8	hdisplay	UINT16
10	hsyncstart	UINT16
12	hsyncend	UINT16
14	htotal	UINT16
16	hskew	UINT16
18	vdisplay	UINT16
20	vsyncstart	UINT16
22	vsyncend	UINT16
24	vtotal	UINT16
28	flags	BITMASK32 xf86vidmode_flags
32	reserved1	UINT32
36	reserved2	UINT32
40	reserved3	UINT32
44	privsize	UINT32
END

REQUEST ValidateModeLine
 4	screen	CARD32
 8	dotclock	UINT32
12	hdisplay	UINT16
14	hsyncstart	UINT16
16	hsyncend	UINT16
18	htotal	UINT16
20	hskew	UINT16
22	vdisplay	UINT16
24	vsyncstart	UINT16
26	vsyncend	UINT16
28	vtotal	UINT16
32	flags	BITMASK32 xf86vidmode_flags
36	reserved1	UINT32
40	reserved2	UINT32
44	reserved3	UINT32
48	privsize	UINT32
END
RESPONSE ValidateModeLine
 8	status	CARD32
END

REQUEST DeleteModeLine ALIASES ValidateModeLine

REQUEST SwitchToMode ALIASES ValidateModeLine

REQUEST SwitchMode
 4	screen	CARD16
 6	zoom	UINT16
END
REQUEST LockModeSwitch
 4	screen	CARD16
 6	lock	CARD16
END

RESPONSE GetViewPort
 8	x	UINT32
12	y	UINT32
END

REQUEST SetViewPort
 4	screen	CARD16
 8	x	UINT32
12	y	UINT32
END

RESPONSE GetDotClocks
 8	flags	BITMASK32 xf86vidmode_flags
12	clocks	UINT32
16	maxclocks	UINT32
END

REQUEST SetClientVersion
 4	major	UINT16
 6	minor	UINT16
END

RESPONSE GetGamma
 8	red	UINT32
12	green	UINT32
16	blue	UINT32
END

REQUEST SetGamma
 4	screen	CARD16
 8	red	UINT32
12	green	UINT32
16	blue	UINT32
END

REQUEST SetGammaRamp
 4	screen	CARD16
 8	size	COUNT32
12	red	LISTofUINT16
 8	size	COUNT32
LATER	green	LISTofUINT16
 8	size	COUNT32
LATER	blue	LISTofUINT16
END

REQUEST GetGammaRamp
 4	screen	CARD16
 6	size	UINT16
END
RESPONSE GetGammaRamp
 8	size	COUNT16
32	red	LISTofUINT16
 8	size	COUNT16
LATER	green	LISTofUINT16
 8	size	COUNT16
LATER	blue	LISTofUINT16
END

REQUEST GetGammaRampSize
 4	screen	CARD16
END

RESPONSE GetGammaRampSize
 8	size	UINT16
END
RESPONSE GetPermissions
 8	permissions	BITMASK32 xf86vidmode_perms
END

EOF