blob: d8d924e43e0fd4e2e55ca330cdb124de9a44e037 [file] [log] [blame]
Pekka Paalanen864c7842012-11-27 16:54:09 +02001.TH WESTON 1 "2012-11-27" "Weston __version__"
Pekka Paalanena91291c2012-08-29 15:49:48 +03002.SH NAME
3weston \- the reference Wayland server
4.SH SYNOPSIS
5.B weston
6.
7.\" ***************************************************************
8.SH DESCRIPTION
9.B weston
10is the reference implementation of a Wayland server. A Wayland server is a
11display server, a window manager, and a compositor all in one. Weston has
12several backends as loadable modules: it can run on Linux KMS (kernel
13modesetting via DRM), as an X client, or inside another Wayland server
14instance.
15
16Weston supports fundamentally different graphical user interface paradigms via
17shell plugins. Two plugins are provided: the desktop shell, and the tablet
18shell.
19
20When weston is started as the first windowing system (i.e. not under X nor
21under another Wayland server), it should be done with the command
22.B weston-launch
23to set up proper privileged access to devices.
24
Pekka Paalanen495cc242012-09-13 13:46:27 +030025Weston also supports X clients via
26.BR XWayland ", see below."
Pekka Paalanena91291c2012-08-29 15:49:48 +030027.
28.\" ***************************************************************
29.SH BACKENDS
30.TP
31.I drm-backend.so
32The DRM backend uses Linux KMS for output and evdev devices for input.
Pekka Paalanen424820f2012-11-27 16:54:08 +020033It supports multiple monitors in a unified desktop with DPMS. See
34.BR weston-drm (7),
35if installed.
Pekka Paalanena91291c2012-08-29 15:49:48 +030036.TP
37.I wayland-backend.so
38The Wayland backend runs on another Wayland server, a different Weston
39instance, for example. Weston shows up as a single desktop window on
40the parent server.
41.TP
42.I x11-backend.so
43The X11 backend runs on an X server. Each Weston output becomes an
44X window. This is a cheap way to test multi-monitor support of a
45Wayland shell, desktop, or applications.
46.
47.\" ***************************************************************
48.SH SHELLS
Pekka Paalanen41d2ccc2015-03-20 15:59:01 +020049Each of these shells have its own public protocol interface for clients.
50This means that a client must be specifically written for a shell protocol,
51otherwise it will not work.
Pekka Paalanena91291c2012-08-29 15:49:48 +030052.TP
53Desktop shell
54Desktop shell is like a modern X desktop environment, concentrating
55on traditional keyboard and mouse user interfaces and the familiar
56desktop-like window management. Desktop shell consists of the
57shell plugin
58.I desktop-shell.so
59and the special client
60.B weston-desktop-shell
61which provides the wallpaper, panel, and screen locking dialog.
62.TP
Pekka Paalanen41d2ccc2015-03-20 15:59:01 +020063Fullscreen shell
64Fullscreen shell is intended for a client that needs to take over
65whole outputs, often all outputs. This is primarily intended for
66running another compositor on Weston. The other compositor does not
67need to handle any platform-specifics like DRM/KMS or evdev/libinput.
68The shell consists only of the shell plugin
69.IR fullscreen-shell.so .
70.TP
71IVI-shell
72In-vehicle infotainment shell is a special purpose shell that exposes
73a GENIVI Layer Manager compatible API to controller modules, and a very
74simple shell protocol towards clients. IVI-shell starts with loading
75.IR ivi-shell.so ,
76and then a controller module which may launch helper clients.
Pekka Paalanena91291c2012-08-29 15:49:48 +030077.
78.\" ***************************************************************
Pekka Paalanen495cc242012-09-13 13:46:27 +030079.SH XWAYLAND
80XWayland requires a special X.org server to be installed. This X server will
81connect to a Wayland server as a Wayland client, and X clients will connect to
82the X server. XWayland provides backwards compatibility to X applications in a
83Wayland stack.
84
85XWayland is activated by instructing
86.BR weston " to load " xwayland.so " module, see " EXAMPLES .
87Weston starts listening on a new X display socket, and exports it in the
88environment variable
89.BR DISPLAY .
90When the first X client connects, Weston launches a special X server as a
91Wayland client to handle the X client and all future X clients.
Tiago Vignatti5643aa52012-09-28 16:29:47 +030092
93It has also its own X window manager where cursor themes and sizes can be
94chosen using
95.BR XCURSOR_PATH
96and
97.BR XCURSOR_SIZE " environment variables. See " ENVIRONMENT .
Pekka Paalanen495cc242012-09-13 13:46:27 +030098.
99.\" ***************************************************************
Pekka Paalanena91291c2012-08-29 15:49:48 +0300100.SH OPTIONS
101.
102.SS Weston core options:
103.TP
104\fB\-\^B\fR\fIbackend.so\fR, \fB\-\-backend\fR=\fIbackend.so\fR
105Load
106.I backend.so
107instead of the default backend. The file is searched for in
108.IR "__weston_modules_dir__" ,
109or you can pass an absolute path. The default backend is
Pekka Paalanena51e6fa2012-11-07 12:25:12 +0200110.I __weston_native_backend__
Pekka Paalanena91291c2012-08-29 15:49:48 +0300111unless the environment suggests otherwise, see
112.IR DISPLAY " and " WAYLAND_DISPLAY .
113.TP
Scott Moreau12245142012-08-29 15:15:58 -0600114.BR \-\-version
115Print the program version.
116.TP
Pekka Paalanena91291c2012-08-29 15:49:48 +0300117.BR \-\^h ", " \-\-help
Scott Moreau12245142012-08-29 15:15:58 -0600118Print a summary of command line options, and quit.
Pekka Paalanena91291c2012-08-29 15:49:48 +0300119.TP
120\fB\-\^i\fR\fIN\fR, \fB\-\-idle\-time\fR=\fIN\fR
121Set the idle timeout to
122.I N
123seconds. The default timeout is 300 seconds. When there has not been any
124user input for the idle timeout, Weston enters an inactive mode. The
125screen fades to black, and depending on the shell in use, a screensaver
126may activate, monitors may switch off, and the shell may lock the session.
Scott Moreau650aab52013-03-09 11:55:40 -0700127A value of 0 effectively disables the timeout.
Pekka Paalanena91291c2012-08-29 15:49:48 +0300128.TP
129\fB\-\-log\fR=\fIfile.log\fR
130Append log messages to the file
131.I file.log
132instead of writing them to stderr.
133.TP
Kristian Høgsberga6813d22012-09-12 12:21:01 -0400134\fB\-\-modules\fR=\fImodule1.so,module2.so\fR
135Load the comma-separated list of modules. Only used by the test
Pekka Paalanena91291c2012-08-29 15:49:48 +0300136suite. The file is searched for in
137.IR "__weston_modules_dir__" ,
138or you can pass an absolute path.
139.TP
Pekka Paalanen588bee12014-05-07 16:26:25 +0300140.BR \-\-no-config
141Do not read
142.I weston.ini
143for the compositor. Avoids e.g. loading compositor modules via the
144configuration file, which is useful for unit tests.
145.TP
Pekka Paalanena91291c2012-08-29 15:49:48 +0300146\fB\-\^S\fR\fIname\fR, \fB\-\-socket\fR=\fIname\fR
147Weston will listen in the Wayland socket called
148.IR name .
149Weston will export
150.B WAYLAND_DISPLAY
151with this value in the environment for all child processes to allow them to
152connect to the right server automatically.
Pekka Paalanena91291c2012-08-29 15:49:48 +0300153.SS DRM backend options:
Pekka Paalanen424820f2012-11-27 16:54:08 +0200154See
155.BR weston-drm (7).
Pekka Paalanena91291c2012-08-29 15:49:48 +0300156.
157.SS Wayland backend options:
158.TP
159\fB\-\-display\fR=\fIdisplay\fR
160Name of the Wayland display to connect to, see also
161.I WAYLAND_DISPLAY
162of the environment.
163.TP
Jason Ekstrand399841d2013-11-10 17:26:28 -0600164.B \-\-fullscreen
165Create a single fullscreen output
166.TP
167\fB\-\-output\-count\fR=\fIN\fR
168Create
169.I N
170Wayland windows to emulate the same number of outputs.
171.TP
Pekka Paalanena91291c2012-08-29 15:49:48 +0300172\fB\-\-width\fR=\fIW\fR, \fB\-\-height\fR=\fIH\fR
Jason Ekstrand399841d2013-11-10 17:26:28 -0600173Make all outputs have a size of
Pekka Paalanena91291c2012-08-29 15:49:48 +0300174.IR W x H " pixels."
Jason Ekstrand399841d2013-11-10 17:26:28 -0600175.TP
176.B \-\-scale\fR=\fIN\fR
177Give all outputs a scale factor of
178.I N.
179.TP
180.B \-\-use\-pixman
181Use the pixman renderer. By default, weston will try to use EGL and
182GLES2 for rendering and will fall back to the pixman-based renderer for
183software compositing if EGL cannot be used. Passing this option will force
184weston to use the pixman renderer.
Pekka Paalanena91291c2012-08-29 15:49:48 +0300185.
186.SS X11 backend options:
187.TP
188.B \-\-fullscreen
189.TP
190.B \-\-no\-input
191Do not provide any input devices. Used for testing input-less Weston.
192.TP
193\fB\-\-output\-count\fR=\fIN\fR
194Create
195.I N
196X windows to emulate the same number of outputs.
197.TP
198\fB\-\-width\fR=\fIW\fR, \fB\-\-height\fR=\fIH\fR
199Make the default size of each X window
200.IR W x H " pixels."
Kristian Høgsbergefaca342013-01-07 15:52:44 -0500201.TP
Jason Ekstrandd89a0942014-03-07 15:29:14 -0600202.B \-\-scale\fR=\fIN\fR
203Give all outputs a scale factor of
204.I N.
205.TP
Kristian Høgsbergefaca342013-01-07 15:52:44 -0500206.B \-\-use\-pixman
207Use the pixman renderer. By default weston will try to use EGL and
208GLES2 for rendering. Passing this option will make weston use the
209pixman library for software compsiting.
Pekka Paalanena91291c2012-08-29 15:49:48 +0300210.
211.\" ***************************************************************
212.SH FILES
213.
Pekka Paalanen864c7842012-11-27 16:54:09 +0200214If the environment variable is set, the configuration file is read
215from the respective path, or the current directory if neither is set.
216.PP
217.BI $XDG_CONFIG_HOME /weston.ini
218.br
219.BI $HOME /.config/weston.ini
220.br
221.I ./weston.ini
222.br
223.
Pekka Paalanena91291c2012-08-29 15:49:48 +0300224.\" ***************************************************************
225.SH ENVIRONMENT
226.
227.TP
228.B DISPLAY
229The X display. If
230.B DISPLAY
231is set, and
232.B WAYLAND_DISPLAY
233is not set, the default backend becomes
234.IR x11-backend.so .
235.TP
236.B WAYLAND_DEBUG
237If set to any value, causes libwayland to print the live protocol
238to stderr.
239.TP
240.B WAYLAND_DISPLAY
241The name of the display (socket) of an already running Wayland server, without
242the path. The directory path is always taken from
243.BR XDG_RUNTIME_DIR .
244If
245.B WAYLAND_DISPLAY
246is not set, the socket name is "wayland-0".
247
248If
249.B WAYLAND_DISPLAY
250is already set, the default backend becomes
251.IR wayland-backend.so .
252This allows launching Weston as a nested server.
253.TP
254.B WAYLAND_SOCKET
Pekka Paalanen864c7842012-11-27 16:54:09 +0200255For Wayland clients, holds the file descriptor of an open local socket
256to a Wayland server.
Pekka Paalanena91291c2012-08-29 15:49:48 +0300257.TP
Tiago Vignatti5643aa52012-09-28 16:29:47 +0300258.B XCURSOR_PATH
259Set the list of paths to look for cursors in. It changes both
260libwayland-cursor and libXcursor, so it affects both Wayland and X11 based
261clients. See
262.B xcursor
263(3).
264.TP
Pekka Paalanena91291c2012-08-29 15:49:48 +0300265.B XCURSOR_SIZE
Tiago Vignatti5643aa52012-09-28 16:29:47 +0300266This variable can be set for choosing an specific size of cursor. Affect
267Wayland and X11 clients. See
268.B xcursor
269(3).
Pekka Paalanena91291c2012-08-29 15:49:48 +0300270.TP
271.B XDG_CONFIG_HOME
Pekka Paalanen864c7842012-11-27 16:54:09 +0200272If set, specifies the directory where to look for
273.BR weston.ini .
Pekka Paalanena91291c2012-08-29 15:49:48 +0300274.TP
275.B XDG_RUNTIME_DIR
276The directory for Weston's socket and lock files.
277Wayland clients will automatically use this.
278.
279.\" ***************************************************************
280.SH DIAGNOSTICS
Pekka Paalanen864c7842012-11-27 16:54:09 +0200281Weston has a segmentation fault handler, that attempts to restore
282the virtual console or ungrab X before raising
283.BR SIGTRAP .
284If you run
285.BR weston " under " gdb (1)
286from an X11 terminal or a different virtual terminal, and tell gdb
287.IP
288handle SIGSEGV nostop
289.PP
290This will allow weston to switch back to gdb on crash and then
291gdb will catch the crash with SIGTRAP.
Pekka Paalanena91291c2012-08-29 15:49:48 +0300292.
293.\" ***************************************************************
294.SH BUGS
295Bugs should be reported to the freedesktop.org bugzilla at
296https://bugs.freedesktop.org with product "Wayland" and
297component "weston".
298.
299.\" ***************************************************************
300.SH WWW
301http://wayland.freedesktop.org/
302.
303.\" ***************************************************************
304.SH EXAMPLES
Pekka Paalanen495cc242012-09-13 13:46:27 +0300305.IP "Launch Weston with the DRM backend on a VT"
Pekka Paalanena91291c2012-08-29 15:49:48 +0300306weston-launch
Pekka Paalanen495cc242012-09-13 13:46:27 +0300307.IP "Launch Weston with the DRM backend and XWayland support"
308weston-launch -- --modules=xwayland.so
Pekka Paalanena91291c2012-08-29 15:49:48 +0300309.IP "Launch Weston (wayland-1) nested in another Weston instance (wayland-0)"
310WAYLAND_DISPLAY=wayland-0 weston -Swayland-1
311.IP "From an X terminal, launch Weston with the x11 backend"
312weston
313.
314.\" ***************************************************************
Pekka Paalanen424820f2012-11-27 16:54:08 +0200315.SH "SEE ALSO"
316.BR weston-drm (7)
Pekka Paalanena91291c2012-08-29 15:49:48 +0300317.\".BR weston-launch (1),
318.\".BR weston.ini (5)