source: general/sysutils/weston-systemd.xml@ eab72a4e

systemd-13485
Last change on this file since eab72a4e was 3e53844, checked in by Christopher Gregory <cjg@…>, 10 years ago

Updated weston to 1.6.0 as it was somehow missed.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14667 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY weston-download-http "http://wayland.freedesktop.org/releases/weston-&weston-version;.tar.xz">
8 <!ENTITY weston-download-ftp " ">
9 <!ENTITY weston-md5sum "c60ce9dde99a089db0539d8f6b557827">
10 <!ENTITY weston-size "699 KB">
11 <!ENTITY weston-buildsize "26.1 MB">
12 <!ENTITY weston-time "0.5 SBU">
13]>
14
15<sect1 id="weston" xreflabel="Weston-&weston-version;">
16 <?dbhtml filename="weston.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Weston-&weston-version;</title>
24
25 <indexterm zone="weston">
26 <primary sortas="a-Weston">Weston</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Weston</title>
31
32 <para>
33 <application>Weston</application> is the reference implementation of
34 a <application>Wayland</application> compositor, and a useful
35 compositor in its own right. It has various backends that lets it
36 run on Linux kernel modesetting and evdev input as well as under X11.
37 <application>Weston</application> also ships with a few example clients,
38 from simple clients that demonstrate certain aspects of the protocol
39 to more complete clients and a simplistic toolkit.
40 </para>
41
42 &lfs76_checked;
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>
48 Download (HTTP): <ulink url="&weston-download-http;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download (FTP): <ulink url="&weston-download-ftp;"/>
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download MD5 sum: &weston-md5sum;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Download size: &weston-size;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated disk space required: &weston-buildsize;
69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Estimated build time: &weston-time;
74 </para>
75 </listitem>
76 </itemizedlist>
77
78<!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
79 <itemizedlist spacing="compact">
80 <listitem>
81 <para>
82 Required patch:
83 <ulink url="&patch-root;/weston-&weston-version;-libinput_fixes-1.patch"/>
84 </para>
85 </listitem>
86 </itemizedlist>-->
87
88 <bridgehead renderas="sect3">Weston Dependencies</bridgehead>
89
90 <bridgehead renderas="sect4">Required</bridgehead>
91 <para role="required">
92 <xref linkend="cairo"/> (with OpenGL surface enabled),
93 <xref linkend="libjpeg"/>,
94 <xref linkend="libxkbcommon"/>,
95 <xref linkend="glu"/>,
96 <xref linkend="mtdev"/>, and
97 <xref linkend="wayland"/>
98 </para>
99
100 <bridgehead renderas="sect4">Recommended</bridgehead>
101 <para role="recommended">
102 <xref linkend="libinput"/> (for the libinput backend),
103 <xref linkend="linux-pam"/> (for the <command>weston-launch</command> utility),
104 <xref linkend="pango"/> (to build some demo clients),
105 <xref linkend="systemd"/> (for Logind),
106 <xref linkend="xorg7-lib"/> (to build the X11 backend and X11 compatibility layer), and
107 <xref linkend="xorg-server"/> (with Xwayland, runtime - for X11 backwards compatibility)
108 </para>
109
110 <note>
111 <para>
112 The <command>weston-launch</command> utility is required if
113 you wish to run <application>Weston</application> as a
114 non privileged user.
115 </para>
116 </note>
117
118 <bridgehead renderas="sect4">Optional</bridgehead>
119 <para role="optional">
120 <xref linkend="colord"/>,
121 <xref linkend="lcms2"/>,
122 <xref linkend="libva"/> (for H.264 VAAPI video encoding),
123 <xref linkend="libwebp"/>,
124 <ulink url="http://www.freerdp.com/">FreeRDP</ulink>, and
125 <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>
126 </para>
127
128 <para condition="html" role="usernotes">
129 User Notes: <ulink url="&blfs-wiki;/weston"/>
130 </para>
131 </sect2>
132
133 <sect2 role="installation">
134 <title>Installation of Weston</title>
135
136 <para>
137 Install <application>Weston</application> by running the following
138 commands:
139 </para>
140
141<screen><userinput>./configure --prefix=/usr \
142 --with-cairo=gl \
143 --enable-libinput-backend \
144 --enable-demo-clients-install &amp;&amp;
145make</userinput></screen>
146
147 <para>
148 To test the results, issue: <command>make -k check</command>.
149 <filename>xwayland-test.weston</filename> fails for unknown
150 reasons.
151 </para>
152
153 <para>
154 Now, as the <systemitem class="username">root</systemitem> user:
155 </para>
156
157<screen role="root"><userinput>make install</userinput></screen>
158
159 </sect2>
160
161 <sect2 role="commands">
162 <title>Command Explanations</title>
163
164 <para>
165 <parameter>--with-cairo=gl</parameter>: This switch is used to
166 tell <command>configure</command> to use
167 <application>Cairo</application>'s OpenGL surface backend
168 instead of the default Image surface backend.
169 </para>
170
171 <para>
172 <parameter>--enable-libinput-backend</parameter>: This switch is
173 used to build <application>Weston</application> with the
174 <application>libinput</application> input backend instead of the
175 default, older one. Remove it if you have not installed
176 <xref linkend="libinput"/>.
177 </para>
178
179 <para>
180 <parameter>--enable-demo-clients-install</parameter>: This switch
181 enables installing of the the demo clients shipped with
182 <application>Weston</application>.
183 </para>
184
185 </sect2>
186
187 <sect2 role="using">
188 <title>Using Weston</title>
189
190 <para>
191 To start <application>Weston</application> as an X11 client,
192 from an X terminal, run the following command:
193 </para>
194
195<screen><userinput>weston</userinput></screen>
196
197 <para>
198 To run it as a DRM compositor, from a TTY, while logged
199 in as a normal user, run the following command:
200 </para>
201
202<screen><userinput>weston-launch</userinput></screen>
203
204 <para>
205 Note that <command>weston-launch</command> is a wrapper for
206 <command>weston</command>. If you need to pass a parameter
207 to <command>weston</command> while using
208 <command>weston-launch</command>, use the following syntax:
209 </para>
210
211<screen><userinput>weston-launch -- --backend=fbdev-backend.so</userinput></screen>
212
213 <para>
214 Note the -- between the <command>weston-launch</command> and
215 the <command>weston</command> parameter
216 <parameter>--backend=fbdev-backend.so</parameter>. For list
217 of parameters that you can pass to <command>weston</command>,
218 consult the <command>weston(1)</command> manual page.
219 </para>
220
221 <para>
222 To terminate <application>Weston</application> when running
223 as a DRM compositor, use the CTRL+ALT+Backspace
224 combination on your keyboard.
225 </para>
226
227 <para>
228 Note that the default backend, DRM, will only run if a
229 KMS driver is present on the system. It will not run in
230 a virtual machine such as VBox or Qemu and on NVidia or
231 AMD hardware with proprietary drivers. On these setups
232 it would be possible to use the FBDEV backend by running
233 the command described above.
234 </para>
235
236 <para>
237 Also note that X11 backend requires working EGL stack.
238 If you are running hardware that has no 3D support or
239 no EGL stack, you can't run accelerated applications
240 inside <application>Weston</application>. Latest
241 proprietary NVidia driver has the necessary EGL
242 stack needed to run <application>Weston</application>
243 as an X11 client, but it is not officially supported.
244 </para>
245
246 </sect2>
247
248 <sect2 role="configuration">
249 <title>Configuring Weston</title>
250
251 <sect3 id="weston-config">
252 <title>Config Files</title>
253 <para>
254 <filename>~/.config/weston.ini</filename>
255 </para>
256
257 <indexterm zone="weston weston-config">
258 <primary sortas="e-AA.config-weston.ini">~/.config/weston.ini</primary>
259 </indexterm>
260 </sect3>
261
262 <sect3>
263 <title>Configuration Information</title>
264
265 <para>
266 <application>Weston</application> configuration file can be
267 used to configure which modules will be loaded, keyboard
268 layout, display resolution, touchpad behaviour, desktop shell
269 appearance, etc.
270 </para>
271
272 <para>
273 To change the keyboard layout inside <application>Weston</application>,
274 add the following to your config file:
275 </para>
276
277<screen><literal>[keyboard]
278keymap_model=pc105
279keymap_layout=de
280keymap_variant=euro
281keymap_options=grp:alt_shift_toggle</literal></screen>
282
283 <para>
284 For explanation about each of the mentioned options,
285 consult the <command>xkeyboard-config(7)</command>
286 manual page.
287 </para>
288
289 <para>
290 To change the resolution of the compositor,
291 add the following to your config file:
292 </para>
293
294<screen><literal>[output]
295name=LVDS1
296mode=1366x768</literal></screen>
297
298 <para>
299 The name can be one of the following:
300 </para>
301
302 <itemizedlist spacing="compact">
303 <listitem>
304 <para>
305 DRM backend: LVDS1 (Laptop internal panel no.1)
306 </para>
307 </listitem>
308 <listitem>
309 <para>
310 DRM backend: VGA1 (VGA connector no.1)
311 </para>
312 </listitem>
313 <listitem>
314 <para>
315 X11 backend: X1 (X window no.1)
316 </para>
317 </listitem>
318 <listitem>
319 <para>
320 Wayland backend: WL1 (Wayland window no.1)
321 </para>
322 </listitem>
323 </itemizedlist>
324
325 <para>
326 For more information consult the
327 <command>weston-drm(7)</command> manual page.
328 </para>
329
330 <para>
331 To load a <application>Weston</application> module or a shell
332 backend, add the following to your config file:
333 </para>
334
335<screen><literal>[core]
336modules=xwayland.so
337shell=desktop-shell.so</literal></screen>
338
339 <para>
340 Note that you need to load the <filename>xwayland.so</filename>
341 if you want to use X11 clients inside
342 <application>Weston</application>.
343 </para>
344
345 <para>
346 For a detailed list of configuration directives, consult the
347 <command>weston.ini(5)</command> manual page or examine the
348 <filename>weston.ini</filename> file inside the
349 <application>Weston</application> source directory.
350 </para>
351
352 </sect3>
353
354 </sect2>
355
356 <sect2 role="content">
357 <title>Contents</title>
358
359 <segmentedlist>
360 <segtitle>Installed Programs</segtitle>
361 <segtitle>Installed Libraries</segtitle>
362 <segtitle>Installed Directories</segtitle>
363
364 <seglistitem>
365 <seg>
366 wcap-decode, weston, weston-calibrator, weston-clickdot,
367 weston-cliptest, weston-dnd, weston-editor, weston-eventdemo,
368 weston-flower, weston-fullscreen, weston-gears, weston-image,
369 weston-info, weston-launch, weston-multi-resource,
370 weston-resizor, weston-scaler, weston-simple-egl,
371 weston-simple-shm, weston-simple-touch, weston-smoke,
372 weston-stacking, weston-terminal, and weston-transformed
373 </seg>
374 <seg>
375 None
376 </seg>
377 <seg>
378 /usr/include/weston,
379 /usr/lib/weston, and
380 /usr/share/weston
381 </seg>
382 </seglistitem>
383 </segmentedlist>
384
385 <variablelist>
386 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
387 <?dbfo list-presentation="list"?>
388 <?dbhtml list-presentation="table"?>
389
390 <varlistentry id="weston-prog">
391 <term><command>weston</command></term>
392 <listitem>
393 <para>
394 is the reference implementation of a Wayland server.
395 </para>
396 <indexterm zone="weston weston-prog">
397 <primary sortas="b-weston">weston</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 </variablelist>
403
404 </sect2>
405
406</sect1>
Note: See TracBrowser for help on using the repository browser.