blob: 35d62ae698c6d4d22115b67f30e58313ca2c99bc [file] [log] [blame]
Pekka Paalanen424820f2012-11-27 16:54:08 +02001.TH WESTON-DRM 7 "2012-11-27" "Weston __version__"
2.SH NAME
3weston-drm \- the DRM backend for Weston
4.SH SYNOPSIS
5.B weston-launch
6.LP
7.B weston --backend=drm-backend.so
8.
9.\" ***************************************************************
10.SH DESCRIPTION
11The DRM backend is the native Weston backend for systems that support
12the Linux kernel DRM, kernel mode setting (KMS), and evdev input devices.
13It is the recommended backend for desktop PCs, and aims to provide
14the full Wayland experience with the "every frame is perfect" concept.
15It also relies on the Mesa GBM interface.
16
17With the DRM backend,
18.B weston
19runs without any underlying windowing system. The backend uses the
20Linux KMS API to detect connected monitors. Monitor hot-plugging is
21supported. Input devices are found automatically by
22.BR udev (7).
23Compositing happens mainly in GL\ ES\ 2, initialized through EGL. It
24is also possible to take advantage of hardware cursors and overlays,
25when they exist and are functional. Full-screen surfaces will be
26scanned out directly without compositing, when possible.
27Hardware accelerated clients are supported via EGL.
28
29The backend chooses the DRM graphics device first based on seat id.
30If seat identifiers are not set, it looks for the graphics device
31that was used in boot. If that is not found, it finally chooses
32the first DRM device returned by
33.BR udev (7).
34Combining multiple graphics devices are not supported yet.
35
36The DRM backend relies on
37.B weston-launch
38for managing input device access and DRM master status, so that
39.B weston
40can be run without root privileges. On switching away from the
41virtual terminal (VT) hosting Weston, all input devices are closed and
42the DRM master capability is dropped, so that other servers,
43including
44.BR Xorg (1),
45can run on other VTs. On switching back to Weston's VT, input devices
46and DRM master are re-acquired through the parent process
47.BR weston-launch .
48.
49.\" ***************************************************************
50.SH CONFIGURATION
51.
52The DRM backend uses the following entries from
53.BR weston.ini .
54.SS Section output
55.TP
56\fBname\fR=\fIconnector\fR
57The KMS connector name identifying the output, for instance
58.IR LVDS1 .
59.TP
60\fBmode\fR=\fImode\fR
61Specify the video mode for the output. The argument
62.I mode
63can be one of the words
64.BR off " to turn the output off, "
65.BR preferred " to use the monitor's preferred video mode, or "
66.BR current " to use the current video mode and avoid a mode switch."
67It can also be a resolution as
68\fIwidth\fBx\fIheight\fR, or a detailed mode line as below.
69.TP
70\fBmode\fR=\fIdotclock hdisp hsyncstart hsyncend htotal \
71vdisp vsyncstart vsyncend vtotal hflag vflag\fR
72Use the given detailed mode line as the video mode for this output.
73The definition is the same as in
74.BR xorg.conf "(5), and " cvt (1)
75can generate detailed mode lines.
76.TP
77\fBtransform\fR=\fItransform\fR
78Transform for the output, which can be rotated in 90-degree steps
79and possibly flipped. Possible values are
80.BR normal ", " 90 ", " 180 ", " 270 ", "
81.BR flipped ", " flipped-90 ", " flipped-180 ", and " flipped-270 .
82.
83.\" ***************************************************************
84.SH OPTIONS
85.
86When the DRM backend is loaded,
87.B weston
88will understand the following additional command line options.
89.TP
90\fB\-\-connector\fR=\fIconnectorid\fR
91Use the connector with id number
92.I connectorid
93as the only initial output.
94.TP
95.B \-\-current\-mode
96By default, use the current video mode of all outputs, instead of
97switching to the monitor preferred mode.
98.TP
99\fB\-\-seat\fR=\fIseatid\fR
100Use graphics and input devices designated for seat
101.I seatid
102instead of the default seat
103.BR seat0 .
104.TP
105\fB\-\-tty\fR=\fIx\fR
106Launch Weston on tty
107.I x
108instead of using the current tty.
109.
110.\" ***************************************************************
111.SH ENVIRONMENT
112.
113.TP
114.B WESTON_TTY_FD
115The file descriptor (integer) of the opened tty where
116.B weston
117will run. Set by
118.BR weston-launch .
119.TP
120.B WESTON_LAUNCHER_SOCK
121The file descriptor (integer) where
122.B weston-launch
123is listening. Automatically set by
124.BR weston-launch .
125.
126.\" ***************************************************************
127.SH "SEE ALSO"
128.BR weston (1)
129.\".BR weston-launch (1),
130.\".BR weston.ini (5)