blob: efb6d2b41f4ffcfac1454489134028e985128371 [file] [log] [blame]
Pekka Paalanen495cc242012-09-13 13:46:27 +03001.TH WESTON 1 "2012-09-13" "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.
33It supports multiple monitors in a unified desktop with DPMS.
34.TP
35.I wayland-backend.so
36The Wayland backend runs on another Wayland server, a different Weston
37instance, for example. Weston shows up as a single desktop window on
38the parent server.
39.TP
40.I x11-backend.so
41The X11 backend runs on an X server. Each Weston output becomes an
42X window. This is a cheap way to test multi-monitor support of a
43Wayland shell, desktop, or applications.
44.
45.\" ***************************************************************
46.SH SHELLS
47.TP
48Desktop shell
49Desktop shell is like a modern X desktop environment, concentrating
50on traditional keyboard and mouse user interfaces and the familiar
51desktop-like window management. Desktop shell consists of the
52shell plugin
53.I desktop-shell.so
54and the special client
55.B weston-desktop-shell
56which provides the wallpaper, panel, and screen locking dialog.
57.TP
58Tablet shell
59Tablet shell is a graphical user interface aimed for tablet-like
60devices, where usually the only input method is a touch screen.
61It does not support freely floating windows or many other desktop
62features, but intends to provide a natural interface on tablets.
63Tablet shell consists of the shell plugin
64.I tablet-shell.so
65and the special client
66.B weston-tablet-shell
67which provides the basic user interface.
68.
69.\" ***************************************************************
Pekka Paalanen495cc242012-09-13 13:46:27 +030070.SH XWAYLAND
71XWayland requires a special X.org server to be installed. This X server will
72connect to a Wayland server as a Wayland client, and X clients will connect to
73the X server. XWayland provides backwards compatibility to X applications in a
74Wayland stack.
75
76XWayland is activated by instructing
77.BR weston " to load " xwayland.so " module, see " EXAMPLES .
78Weston starts listening on a new X display socket, and exports it in the
79environment variable
80.BR DISPLAY .
81When the first X client connects, Weston launches a special X server as a
82Wayland client to handle the X client and all future X clients.
Tiago Vignatti5643aa52012-09-28 16:29:47 +030083
84It has also its own X window manager where cursor themes and sizes can be
85chosen using
86.BR XCURSOR_PATH
87and
88.BR XCURSOR_SIZE " environment variables. See " ENVIRONMENT .
Pekka Paalanen495cc242012-09-13 13:46:27 +030089.
90.\" ***************************************************************
Pekka Paalanena91291c2012-08-29 15:49:48 +030091.SH OPTIONS
92.
93.SS Weston core options:
94.TP
95\fB\-\^B\fR\fIbackend.so\fR, \fB\-\-backend\fR=\fIbackend.so\fR
96Load
97.I backend.so
98instead of the default backend. The file is searched for in
99.IR "__weston_modules_dir__" ,
100or you can pass an absolute path. The default backend is
Pekka Paalanena51e6fa2012-11-07 12:25:12 +0200101.I __weston_native_backend__
Pekka Paalanena91291c2012-08-29 15:49:48 +0300102unless the environment suggests otherwise, see
103.IR DISPLAY " and " WAYLAND_DISPLAY .
104.TP
105.BR \-\^h ", " \-\-help
106Print the program version and a summary of command line options, and quit.
107.TP
108\fB\-\^i\fR\fIN\fR, \fB\-\-idle\-time\fR=\fIN\fR
109Set the idle timeout to
110.I N
111seconds. The default timeout is 300 seconds. When there has not been any
112user input for the idle timeout, Weston enters an inactive mode. The
113screen fades to black, and depending on the shell in use, a screensaver
114may activate, monitors may switch off, and the shell may lock the session.
115.TP
116\fB\-\-log\fR=\fIfile.log\fR
117Append log messages to the file
118.I file.log
119instead of writing them to stderr.
120.TP
Kristian Høgsberga6813d22012-09-12 12:21:01 -0400121\fB\-\-modules\fR=\fImodule1.so,module2.so\fR
122Load the comma-separated list of modules. Only used by the test
Pekka Paalanena91291c2012-08-29 15:49:48 +0300123suite. The file is searched for in
124.IR "__weston_modules_dir__" ,
125or you can pass an absolute path.
126.TP
127\fB\-\^S\fR\fIname\fR, \fB\-\-socket\fR=\fIname\fR
128Weston will listen in the Wayland socket called
129.IR name .
130Weston will export
131.B WAYLAND_DISPLAY
132with this value in the environment for all child processes to allow them to
133connect to the right server automatically.
Pekka Paalanena91291c2012-08-29 15:49:48 +0300134.SS DRM backend options:
135.TP
136\fB\-\-connector\fR=\fIconnectorid\fR
137.TP
138.B \-\-current\-mode
139.TP
140\fB\-\-seat\fR=\fIseatid\fR
141.TP
142\fB\-\-tty\fR=\fItty\fR
143.
144.SS Wayland backend options:
145.TP
146\fB\-\-display\fR=\fIdisplay\fR
147Name of the Wayland display to connect to, see also
148.I WAYLAND_DISPLAY
149of the environment.
150.TP
151\fB\-\-width\fR=\fIW\fR, \fB\-\-height\fR=\fIH\fR
152Make the desktop size
153.IR W x H " pixels."
154.
155.SS X11 backend options:
156.TP
157.B \-\-fullscreen
158.TP
159.B \-\-no\-input
160Do not provide any input devices. Used for testing input-less Weston.
161.TP
162\fB\-\-output\-count\fR=\fIN\fR
163Create
164.I N
165X windows to emulate the same number of outputs.
166.TP
167\fB\-\-width\fR=\fIW\fR, \fB\-\-height\fR=\fIH\fR
168Make the default size of each X window
169.IR W x H " pixels."
170.
171.\" ***************************************************************
172.SH FILES
173.
174.\" ***************************************************************
175.SH ENVIRONMENT
176.
177.TP
178.B DISPLAY
179The X display. If
180.B DISPLAY
181is set, and
182.B WAYLAND_DISPLAY
183is not set, the default backend becomes
184.IR x11-backend.so .
185.TP
186.B WAYLAND_DEBUG
187If set to any value, causes libwayland to print the live protocol
188to stderr.
189.TP
190.B WAYLAND_DISPLAY
191The name of the display (socket) of an already running Wayland server, without
192the path. The directory path is always taken from
193.BR XDG_RUNTIME_DIR .
194If
195.B WAYLAND_DISPLAY
196is not set, the socket name is "wayland-0".
197
198If
199.B WAYLAND_DISPLAY
200is already set, the default backend becomes
201.IR wayland-backend.so .
202This allows launching Weston as a nested server.
203.TP
204.B WAYLAND_SOCKET
205.TP
206.B WESTON_TTY_FD
207.TP
208.B WESTON_LAUNCHER_SOCK
209.TP
Tiago Vignatti5643aa52012-09-28 16:29:47 +0300210.B XCURSOR_PATH
211Set the list of paths to look for cursors in. It changes both
212libwayland-cursor and libXcursor, so it affects both Wayland and X11 based
213clients. See
214.B xcursor
215(3).
216.TP
Pekka Paalanena91291c2012-08-29 15:49:48 +0300217.B XCURSOR_SIZE
Tiago Vignatti5643aa52012-09-28 16:29:47 +0300218This variable can be set for choosing an specific size of cursor. Affect
219Wayland and X11 clients. See
220.B xcursor
221(3).
Pekka Paalanena91291c2012-08-29 15:49:48 +0300222.TP
223.B XDG_CONFIG_HOME
224.TP
225.B XDG_RUNTIME_DIR
226The directory for Weston's socket and lock files.
227Wayland clients will automatically use this.
228.
229.\" ***************************************************************
230.SH DIAGNOSTICS
231.
232.\" ***************************************************************
233.SH BUGS
234Bugs should be reported to the freedesktop.org bugzilla at
235https://bugs.freedesktop.org with product "Wayland" and
236component "weston".
237.
238.\" ***************************************************************
239.SH WWW
240http://wayland.freedesktop.org/
241.
242.\" ***************************************************************
243.SH EXAMPLES
Pekka Paalanen495cc242012-09-13 13:46:27 +0300244.IP "Launch Weston with the DRM backend on a VT"
Pekka Paalanena91291c2012-08-29 15:49:48 +0300245weston-launch
Pekka Paalanen495cc242012-09-13 13:46:27 +0300246.IP "Launch Weston with the DRM backend and XWayland support"
247weston-launch -- --modules=xwayland.so
Pekka Paalanena91291c2012-08-29 15:49:48 +0300248.IP "Launch Weston (wayland-1) nested in another Weston instance (wayland-0)"
249WAYLAND_DISPLAY=wayland-0 weston -Swayland-1
250.IP "From an X terminal, launch Weston with the x11 backend"
251weston
252.
253.\" ***************************************************************
254.\".SH "SEE ALSO"
255.\".BR weston-launch (1),
256.\".BR weston.ini (5)