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
|
.TH LIBAXL_REQUEST_SET_SCREEN_SAVER 3 libaxl
.SH NAME
LIBAXL_REQUEST_SET_SCREEN_SAVER - Configure screen-saver
.SH SYNOPSIS
.nf
#include <libaxl.h>
#define LIBAXL_REQUEST_SET_SCREEN_SAVER 107
struct libaxl_request_set_screen_saver {
uint8_t \fIopcode\fP;
uint8_t \fI__pad1\fP;
uint16_t \fI_request_length\fP;
int16_t \fItimeout\fP;
int16_t \fIinterval\fP;
uint8_t \fIprefer_blanking\fP;
uint8_t \fIallow_exposures\fP;
uint8_t \fI__pad2\fP;
};
.fi
.SH DESCRIPTION
If the
.I timeout
field is set to
.I LIBAXL_DISABLE
(=
.IR 0 ),
the display server shall disable screen-saving,
but shall however not deactivate any currently
active screen saver.
.PP
If the
.I timeout
field is set to a positive value, the display
server shall enable screen-saving and start the
screen saver whenever there has been no human
input to the display server (for example keyboard
or pointer input) for
.I timeout
seconds.
.PP
If the
.I timeout
field is set to
.I LIBAXL_RESTORE_DEFAULT
(=
.IR -1 ),
the default value for this field is applied.
.PP
If the
.I prefer_blanking
field is set to
.I LIBAXL_YES
or is set to
.I LIBAXL_DEFAULT
and the default value is
.IR LIBAXL_YES ,
when the screen-saver is activated, any monitor
than supports video blanking will go blank.
.PP
If the
.I allow_exposures
field is set to
.I LIBAXL_YES
or is set to
.I LIBAXL_DEFAULT
and the default value is
.IR LIBAXL_YES ,
or if the screen can be regenerated without sending
exposure events to the clients, when the screen-saver
is activated, any monitor that is not blanked is
changed in a server-dependent fashion to avoid
burn-in/burn-out. Otherwise, any monitor that is not
blanked when the screen-saver is activated will remain
unchanged.
.PP
If the screen saver is subject to periodic changes
(for example by periodically changing the colour map),
the value of the
.I interval
field serves as a hint to the display server how often
it shall change. This is expressed as an interval in
seconds. If the
.I interval
field is set to
.I LIBAXL_DISABLE
(=
.IR 0 ),
periodic change is disabled.
.PP
If the
.I interval
field is set to
.I LIBAXL_RESTORE_DEFAULT
(=
.IR -1 ),
the default value for this field is applied.
.PP
The value of the
.I opcode
field shall be
.I LIBAXL_REQUEST_SET_SCREEN_SAVER
to signify that the request is of the
request described in this document.
.PP
Other fields are filled in automatically by the
.BR libaxl_send_request (3)
function.
.SH ERRORS
.TP
.BR LIBAXL_ERROR_VALUE (3)
.I timeout
or
.I interval
is less than
.I -1
or
.I prefer_blanking
or
.I allow_exposures
is neither
.IR LIBAXL_NO ,
.IR LIBAXL_YES ,
nor
.IR LIBAXL_DEFAULT .
.SH REPLIES
None.
.SH NOTES
The screen-saver is deactivated when there is
human input or when there is a
.BR LIBAXL_REQUEST_FORCE_SCREEN_SAVER (3)
request made with the
.I mode
set to
.IR LIBAXL_RESET .
.SH SEE ALSO
.BR libaxl_send_request (3),
.BR LIBAXL_REQUEST_GET_SCREEN_SAVER (3),
.BR LIBAXL_REQUEST_FORCE_SCREEN_SAVER (3)
|