spiceqxl.xorg.conf.example revision d514b0f3
1d514b0f3SmrgSection "Device"
2d514b0f3Smrg    Identifier "XSPICE"
3d514b0f3Smrg    Driver "spiceqxl"
4d514b0f3Smrg
5d514b0f3Smrg    # ---- Network and security options
6d514b0f3Smrg
7d514b0f3Smrg    # Do not require a client password.
8d514b0f3Smrg    # default: False
9d514b0f3Smrg    #Option "SpiceDisableTicketing" "False"
10d514b0f3Smrg
11d514b0f3Smrg    # Set the password required to connect to the Spice server.
12d514b0f3Smrg    #Option "SpicePassword" ""
13d514b0f3Smrg
14d514b0f3Smrg    # Enable usage of SASL supported by the spice-gtk client. Not required,
15d514b0f3Smrg    # default: False
16d514b0f3Smrg    #Option "SpiceSasl" "False"
17d514b0f3Smrg
18d514b0f3Smrg    # Use Spice's regular unencrypted port. One of SpicePort or SpiceTlsPort
19d514b0f3Smrg    # must be specified. SpicePort can also be set through the XSPICE_PORT
20d514b0f3Smrg    # environment variable or the --port Xspice option.
21d514b0f3Smrg    # Specify 0 to disable the use of the regular port
22d514b0f3Smrg    # default: 5900
23d514b0f3Smrg    #Option "SpicePort" "5900"
24d514b0f3Smrg
25d514b0f3Smrg    # Use a TLS (encrypted) port. One of SpicePort or SpiceTlsPort must be
26d514b0f3Smrg    # specified. SpiceTlsPort can also be set through the XSPICE_TLS_PORT
27d514b0f3Smrg    # environment variable or the --tls-port Xspice option.
28d514b0f3Smrg    #Option "SpiceTlsPort" "5900"
29d514b0f3Smrg
30d514b0f3Smrg    # Set the directory where the CA certificate, server key and server
31d514b0f3Smrg    # certificate are searched for TLS, using the same predefined names QEMU
32d514b0f3Smrg    # uses:
33d514b0f3Smrg    #   cacert.pem, server-key.pem, server-cert.pem
34d514b0f3Smrg    #Option "SpiceX509Dir" ""
35d514b0f3Smrg
36d514b0f3Smrg    # Set the CA certificate file location for TLS.
37d514b0f3Smrg    #Option "SpiceCacertFile" ""
38d514b0f3Smrg
39d514b0f3Smrg    # Set the server key file location for TLS.
40d514b0f3Smrg    #Option "SpiceX509KeyFile" ""
41d514b0f3Smrg
42d514b0f3Smrg    # Set the server key's password for TLS.
43d514b0f3Smrg    #Option "SpiceX509KeyPassword" ""
44d514b0f3Smrg
45d514b0f3Smrg    # Set the server certificate file location for TLS.
46d514b0f3Smrg    #Option "SpiceX509CertFile" ""
47d514b0f3Smrg
48d514b0f3Smrg    # Set the server DH file location for TLS.
49d514b0f3Smrg    #Option "SpiceDhFile" ""
50d514b0f3Smrg
51d514b0f3Smrg    # Set the TLS ciphers preference order.
52d514b0f3Smrg    #Option "SpiceTlsCiphers" ""
53d514b0f3Smrg
54d514b0f3Smrg    # Listen to a specific interface.
55d514b0f3Smrg    # default: Listen to all (0.0.0.0).
56d514b0f3Smrg    #Option "SpiceAddr" ""
57d514b0f3Smrg
58d514b0f3Smrg    # Set to True to only listen on IPv4 interfaces.
59d514b0f3Smrg    # default: False
60d514b0f3Smrg    #Option "SpiceIPV4Only" "False"
61d514b0f3Smrg
62d514b0f3Smrg    # Set to True to only listen on IPv6 interfaces.
63d514b0f3Smrg    # default: False
64d514b0f3Smrg    #Option "SpiceIPV6Only" "False"
65d514b0f3Smrg
66d514b0f3Smrg    # If set, the Spice server will exit when the first client disconnects.
67d514b0f3Smrg    # default: False
68d514b0f3Smrg    #Option "SpiceExitOnDisconnect" "True"
69d514b0f3Smrg
70d514b0f3Smrg
71d514b0f3Smrg    # ---- Monitor configuration options
72d514b0f3Smrg
73d514b0f3Smrg    # The number of heads to allocate by default.
74d514b0f3Smrg    # default: 4
75d514b0f3Smrg    #Option "NumHeads" "4"
76d514b0f3Smrg
77d514b0f3Smrg
78d514b0f3Smrg    # ---- Compression options
79d514b0f3Smrg
80d514b0f3Smrg    # Set zlib glz wan compression. Options are auto, never, always.
81d514b0f3Smrg    # default: auto
82d514b0f3Smrg    #Option "SpiceZlibGlzWanCompression" ""
83d514b0f3Smrg
84d514b0f3Smrg    # Set jpeg wan compression. Options are auto, never, always.
85d514b0f3Smrg    # default: auto
86d514b0f3Smrg    #Option "SpiceJpegWanCompression" ""
87d514b0f3Smrg
88d514b0f3Smrg    # Set image compression. Options are off, auto_glz, auto_lz, quic, glz, lz.
89d514b0f3Smrg    # default: auto_glz
90d514b0f3Smrg    #Option "SpiceImageCompression" ""
91d514b0f3Smrg
92d514b0f3Smrg    # If non zero, the driver will render all operations to the frame buffer,
93d514b0f3Smrg    # and keep track of a changed rectangle list. The changed rectangles
94d514b0f3Smrg    # will be transmitted at the rate requested (e.g. 10 frames per second).
95d514b0f3Smrg    # This can dramatically reduce network bandwidth for some use cases.
96d514b0f3Smrg    #Option "SpiceDeferredFPS" "10"
97d514b0f3Smrg
98d514b0f3Smrg    # Set the streaming video method. Options are filter, off, all.
99d514b0f3Smrg    # default: filter
100d514b0f3Smrg    #Option "SpiceStreamingVideo" ""
101d514b0f3Smrg
102d514b0f3Smrg    # Sets a semicolon-separated list of preferred video codecs.
103d514b0f3Smrg    # Each takes the form encoder:codec, with spice:mjpeg being the default,
104d514b0f3Smrg    # and other options being provided by gstreamer for the mjpeg, vp8 and h264
105d514b0f3Smrg    # codecs.
106d514b0f3Smrg    #Option "SpiceVideoCodecs" ""
107d514b0f3Smrg
108d514b0f3Smrg    # Enable caching of images directly written with uxa->put_image.
109d514b0f3Smrg    # default: True
110d514b0f3Smrg    #Option "EnableImageCache" "True"
111d514b0f3Smrg
112d514b0f3Smrg    # Enable caching of images created by uxa->prepare_access.
113d514b0f3Smrg    # default: True
114d514b0f3Smrg    #Option "EnableFallbackCache" "True"
115d514b0f3Smrg
116d514b0f3Smrg    # Enable the use of off-screen surfaces.
117d514b0f3Smrg    # default: True
118d514b0f3Smrg    #Option "EnableSurfaces" "True"
119d514b0f3Smrg
120d514b0f3Smrg
121d514b0f3Smrg    # ---- Xspice-specific buffer options
122d514b0f3Smrg
123d514b0f3Smrg    # Buffer Size notes:
124d514b0f3Smrg    #  The following buffer sizes are used for Xspice only.
125d514b0f3Smrg    #  If you are using the DFPS mode, surface ram is not used,
126d514b0f3Smrg    #  and you can set it to 1.
127d514b0f3Smrg    #  Otherwise, the surface buffer should be at least as large
128d514b0f3Smrg    #   as the frame buffer, and probably a multiple like 8.
129d514b0f3Smrg    #  The command buffer ram should also be substantially larger
130d514b0f3Smrg    #   than the frame buffer, and note that the frame buffer occupies
131d514b0f3Smrg    #   the front of the command buffer.  Hence, our default size
132d514b0f3Smrg    #   is a command buffer 7x the size of the frame buffer.
133d514b0f3Smrg    #  If you see 'Out of memory' errors in your xorg.log, you probably need
134d514b0f3Smrg    #   to increase the surface or command buffer sizes.
135d514b0f3Smrg
136d514b0f3Smrg    # The amount of surface buffer ram, in megabytes, to allocate.
137d514b0f3Smrg    # default: 128
138d514b0f3Smrg    #Option "SurfaceBufferSize" "128"
139d514b0f3Smrg
140d514b0f3Smrg    # The amount of command buffer ram, in megabytes, to allocate.
141d514b0f3Smrg    # default: 128
142d514b0f3Smrg    #Option "CommandBufferSize" "128"
143d514b0f3Smrg
144d514b0f3Smrg    # The amount of frame buffer ram, in megabytes, to reserve
145d514b0f3Smrg    #  This is reserved out of the CommandBuffer RAM
146d514b0f3Smrg    #  This governs the maximum size the X screen can be;
147d514b0f3Smrg    #   4 Heads at 1920x1080 require 32M of RAM
148d514b0f3Smrg    # default: 16
149d514b0f3Smrg    #Option "FrameBufferSize" "16"
150d514b0f3Smrg
151d514b0f3Smrg
152d514b0f3Smrg    # ---- VDAgent options
153d514b0f3Smrg
154d514b0f3Smrg    # Whether or not to accept Vdagent connections.
155d514b0f3Smrg    # default: False
156d514b0f3Smrg    #Option "SpiceVdagentEnabled" "False"
157d514b0f3Smrg
158d514b0f3Smrg    # Default path to listen for agent virtual io connections.
159d514b0f3Smrg    # default: /tmp/xspice-virtio"
160d514b0f3Smrg    #Option "SpiceVdagentVirtioPath" "/tmp/xspice-virtio"
161d514b0f3Smrg
162d514b0f3Smrg    # Default path to listen for agent uinput connections.
163d514b0f3Smrg    # default: /tmp/xspice-uinput
164d514b0f3Smrg    #Option "SpiceVdagentUinputPath" "/tmp/xspice-uinput"
165d514b0f3Smrg
166d514b0f3Smrg    # Default user id to set for the Virtio and Uinput sockets.
167d514b0f3Smrg    # Note: both uid and gid must be given for either to take effect.
168d514b0f3Smrg    # default: 0, or none
169d514b0f3Smrg    #Option "SpiceVdagentUid" "0"
170d514b0f3Smrg
171d514b0f3Smrg    # Default group id to set for the Virtio and Uinput sockets.
172d514b0f3Smrg    # Note: both uid and gid must be given for either to take effect.
173d514b0f3Smrg    # default: 0, or none
174d514b0f3Smrg    #Option "SpiceVdagentGid" "0"
175d514b0f3Smrg
176d514b0f3Smrg    # Set Spice Agent Mouse - Use Agent mouse if an agent connects.
177d514b0f3Smrg    # default: True
178d514b0f3Smrg    #Option "SpiceAgentMouse" "True"
179d514b0f3Smrg
180d514b0f3Smrg    # Set Spice Playback compression.
181d514b0f3Smrg    # default: True
182d514b0f3Smrg    #Option "SpicePlaybackCompression" "True"
183d514b0f3Smrg
184d514b0f3Smrg    # Disable copy and paste.
185d514b0f3Smrg    # default: False
186d514b0f3Smrg    #Option "SpiceDisableCopyPaste" "False"
187d514b0f3Smrg
188d514b0f3Smrg    # If a directory is given, any file in that directory will be read
189d514b0f3Smrg    # for audio data to be sent to the client.
190d514b0f3Smrg    # default: Not set.
191d514b0f3Smrg    #Option "SpicePlaybackFIFODir" "/tmp/"
192d514b0f3Smrg
193d514b0f3Smrg    # A unix domain name for a unix domain socket to communicate with
194d514b0f3Smrg    # a spiceccid smartcard driver.
195d514b0f3Smrg    # default: Not set.
196d514b0f3Smrg    #Option "SpiceSmartCardFile" "/tmp/spice.pcsc.comm"
197d514b0f3SmrgEndSection
198d514b0f3Smrg
199d514b0f3SmrgSection "InputDevice"
200d514b0f3Smrg    Identifier "XSPICE POINTER"
201d514b0f3Smrg    Driver     "xspice pointer"
202d514b0f3SmrgEndSection
203d514b0f3Smrg
204d514b0f3SmrgSection "InputDevice"
205d514b0f3Smrg    Identifier "XSPICE KEYBOARD"
206d514b0f3Smrg    Driver     "xspice keyboard"
207d514b0f3SmrgEndSection
208d514b0f3Smrg
209d514b0f3SmrgSection "Monitor"
210d514b0f3Smrg    Identifier    "Configured Monitor"
211d514b0f3SmrgEndSection
212d514b0f3Smrg
213d514b0f3SmrgSection "Screen"
214d514b0f3Smrg    Identifier     "XSPICE Screen"
215d514b0f3Smrg    Monitor        "Configured Monitor"
216d514b0f3Smrg    Device        "XSPICE"
217d514b0f3Smrg    DefaultDepth    24
218d514b0f3SmrgEndSection
219d514b0f3Smrg
220d514b0f3SmrgSection "ServerLayout"
221d514b0f3Smrg    Identifier "XSPICE Example"
222d514b0f3Smrg    Screen "XSPICE Screen"
223d514b0f3Smrg    InputDevice "XSPICE KEYBOARD"
224d514b0f3Smrg    InputDevice "XSPICE POINTER"
225d514b0f3SmrgEndSection
226d514b0f3Smrg
227d514b0f3Smrg# Prevent udev from loading vmmouse in a vm and crashing.
228d514b0f3SmrgSection "ServerFlags"
229d514b0f3Smrg    Option "AutoAddDevices" "False"
230d514b0f3SmrgEndSection
231