source: general/sysutils/weston-systemd.xml@ 6e8b058

krejzi/svn
Last change on this file since 6e8b058 was 52e5650b, checked in by Krejzi <krejzi@…>, 10 years ago

Conversion, Additions and Updates to system utilities section, completing general section entirely.

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

  • Property mode set to 100644
File size: 11.7 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 "716 KB">
11 <!ENTITY weston-buildsize "45 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">Weston Dependencies</bridgehead>
79
80 <bridgehead renderas="sect4">Required</bridgehead>
81 <para role="required">
82 <xref linkend="cairo"/> (with OpenGL surface enabled),
83 <xref linkend="libjpeg"/>,
84 <xref linkend="libxkbcommon"/>,
85 <xref linkend="glu"/>,
86 <xref linkend="mtdev"/>, and
87 <xref linkend="wayland"/>
88 </para>
89
90 <bridgehead renderas="sect4">Recommended</bridgehead>
91 <para role="recommended">
92 <xref linkend="libinput"/> (for the libinput backend),
93 <xref linkend="linux-pam"/> (for the <command>weston-launch</command> utility),
94 <xref linkend="pango"/> (to build some demo clients),
95 <xref linkend="systemd"/> (for Logind),
96 <xref linkend="xorg7-lib"/> (to build the X11 backend and X11 compatibility layer), and
97 <xref linkend="xorg-server"/> (with Xwayland, runtime - for X11 backwards compatibility)
98 </para>
99
100 <note>
101 <para>
102 The <command>weston-launch</command> utility is required if
103 you wish to run <application>Weston</application> as a
104 non privileged user.
105 </para>
106 </note>
107
108 <bridgehead renderas="sect4">Optional</bridgehead>
109 <para role="optional">
110 <xref linkend="colord"/>,
111 <xref linkend="lcms2"/>,
112 <xref linkend="libva"/> (for H.264 VAAPI video encoding),
113 <xref linkend="libwebp"/>,
114 <ulink url="http://www.freerdp.com/">FreeRDP</ulink>, and
115 <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>
116 </para>
117
118 <para condition="html" role="usernotes">
119 User Notes: <ulink url="&blfs-wiki;/weston"/>
120 </para>
121 </sect2>
122
123 <sect2 role="installation">
124 <title>Installation of Weston</title>
125
126 <para>
127 Install <application>Weston</application> by running the following
128 commands:
129 </para>
130
131<screen><userinput>./configure --prefix=/usr \
132 --with-cairo=gl \
133 --enable-demo-clients-install &amp;&amp;
134make</userinput></screen>
135
136 <para>
137 To test the results, issue: <command>make -k check</command>.
138 <filename>xwayland-test.weston</filename> fails for unknown
139 reasons.
140 </para>
141
142 <para>
143 Now, as the <systemitem class="username">root</systemitem> user:
144 </para>
145
146<screen role="root"><userinput>make install</userinput></screen>
147
148 </sect2>
149
150 <sect2 role="commands">
151 <title>Command Explanations</title>
152
153 <para>
154 <parameter>--with-cairo=gl</parameter>: This switch is used to
155 tell <command>configure</command> to use
156 <application>Cairo</application>'s OpenGL surface backend
157 instead of the default Image surface backend.
158 </para>
159
160 <para>
161 <parameter>--enable-demo-clients-install</parameter>: This switch
162 enables installing of the the demo clients shipped with
163 <application>Weston</application>.
164 </para>
165
166 <note>
167 <para>
168 Consult <command>./configure --help</command> output for switches needed
169 to prevent <command>configure</command> from looking for some of the
170 recommended dependencies.
171 </para>
172 </note>
173
174 </sect2>
175
176 <sect2 role="using">
177 <title>Using Weston</title>
178
179 <para>
180 To start <application>Weston</application> as an X11 client,
181 from an X terminal, run the following command:
182 </para>
183
184<screen><userinput>weston</userinput></screen>
185
186 <para>
187 To run it as a DRM compositor, from a TTY, while logged
188 in as a normal user, run the following command:
189 </para>
190
191<screen><userinput>weston-launch</userinput></screen>
192
193 <para>
194 Note that <command>weston-launch</command> is a wrapper for
195 <command>weston</command>. If you need to pass a parameter
196 to <command>weston</command> while using
197 <command>weston-launch</command>, use the following syntax:
198 </para>
199
200<screen><userinput>weston-launch -- --backend=fbdev-backend.so</userinput></screen>
201
202 <para>
203 Note the -- between the <command>weston-launch</command> and
204 the <command>weston</command> parameter
205 <parameter>--backend=fbdev-backend.so</parameter>. For list
206 of parameters that you can pass to <command>weston</command>,
207 consult the <command>weston(1)</command> manual page.
208 </para>
209
210 <para>
211 To terminate <application>Weston</application> when running
212 as a DRM compositor, use the CTRL+ALT+Backspace
213 combination on your keyboard.
214 </para>
215
216 <para>
217 Note that the default backend, DRM, will only run if a
218 KMS driver is present on the system. It will not run in
219 a virtual machine such as VBox or Qemu and on NVidia or
220 AMD hardware with proprietary drivers. On these setups
221 it would be possible to use the FBDEV backend by running
222 the command described above.
223 </para>
224
225 <para>
226 Also note that X11 backend requires working EGL stack.
227 If you are running hardware that has no 3D support or
228 no EGL stack, you can't run accelerated applications
229 inside <application>Weston</application>. Latest
230 proprietary NVidia driver has the necessary EGL
231 stack needed to run <application>Weston</application>
232 as an X11 client, but it is not officially supported.
233 </para>
234
235 </sect2>
236
237 <sect2 role="configuration">
238 <title>Configuring Weston</title>
239
240 <sect3 id="weston-config">
241 <title>Config Files</title>
242 <para>
243 <filename>~/.config/weston.ini</filename>
244 </para>
245
246 <indexterm zone="weston weston-config">
247 <primary sortas="e-AA.config-weston.ini">~/.config/weston.ini</primary>
248 </indexterm>
249 </sect3>
250
251 <sect3>
252 <title>Configuration Information</title>
253
254 <para>
255 <application>Weston</application> configuration file can be
256 used to configure which modules will be loaded, keyboard
257 layout, display resolution, touchpad behaviour, desktop shell
258 appearance, etc.
259 </para>
260
261 <para>
262 To change the keyboard layout inside <application>Weston</application>,
263 add the following to your config file:
264 </para>
265
266<screen><literal>[keyboard]
267keymap_model=pc105
268keymap_layout=de
269keymap_variant=euro
270keymap_options=grp:alt_shift_toggle</literal></screen>
271
272 <para>
273 For explanation about each of the mentioned options,
274 consult the <command>xkeyboard-config(7)</command>
275 manual page.
276 </para>
277
278 <para>
279 To change the resolution of the compositor,
280 add the following to your config file:
281 </para>
282
283<screen><literal>[output]
284name=LVDS1
285mode=1366x768</literal></screen>
286
287 <para>
288 The name can be one of the following:
289 </para>
290
291 <itemizedlist spacing="compact">
292 <listitem>
293 <para>
294 DRM backend: LVDS1 (Laptop internal panel no.1)
295 </para>
296 </listitem>
297 <listitem>
298 <para>
299 DRM backend: VGA1 (VGA connector no.1)
300 </para>
301 </listitem>
302 <listitem>
303 <para>
304 X11 backend: X1 (X window no.1)
305 </para>
306 </listitem>
307 <listitem>
308 <para>
309 Wayland backend: WL1 (Wayland window no.1)
310 </para>
311 </listitem>
312 </itemizedlist>
313
314 <para>
315 For more information consult the
316 <command>weston-drm(7)</command> manual page.
317 </para>
318
319 <para>
320 To load a <application>Weston</application> module or a shell
321 backend, add the following to your config file:
322 </para>
323
324<screen><literal>[core]
325modules=xwayland.so
326shell=desktop-shell.so</literal></screen>
327
328 <para>
329 Note that you need to load the <filename>xwayland.so</filename>
330 if you want to use X11 clients inside
331 <application>Weston</application>.
332 </para>
333
334 <para>
335 For a detailed list of configuration directives, consult the
336 <command>weston.ini(5)</command> manual page or examine the
337 <filename>weston.ini</filename> file inside the
338 <application>Weston</application> source directory.
339 </para>
340
341 </sect3>
342
343 </sect2>
344
345 <sect2 role="content">
346 <title>Contents</title>
347
348 <segmentedlist>
349 <segtitle>Installed Programs</segtitle>
350 <segtitle>Installed Libraries</segtitle>
351 <segtitle>Installed Directories</segtitle>
352
353 <seglistitem>
354 <seg>
355 wcap-decode, weston, weston-calibrator, weston-clickdot,
356 weston-cliptest, weston-dnd, weston-editor, weston-eventdemo,
357 weston-flower, weston-fullscreen, weston-gears, weston-image,
358 weston-info, weston-launch, weston-multi-resource,
359 weston-resizor, weston-scaler, weston-simple-damage,
360 weston-simple-egl, weston-simple-shm, weston-simple-touch,
361 weston-smoke, weston-stacking, weston-terminal, and
362 weston-transformed
363 </seg>
364 <seg>
365 None
366 </seg>
367 <seg>
368 /usr/include/weston,
369 /usr/lib/weston, and
370 /usr/share/weston
371 </seg>
372 </seglistitem>
373 </segmentedlist>
374
375 <variablelist>
376 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
377 <?dbfo list-presentation="list"?>
378 <?dbhtml list-presentation="table"?>
379
380 <varlistentry id="weston-prog">
381 <term><command>weston</command></term>
382 <listitem>
383 <para>
384 is the reference implementation of a Wayland server.
385 </para>
386 <indexterm zone="weston weston-prog">
387 <primary sortas="b-weston">weston</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 </variablelist>
393
394 </sect2>
395
396</sect1>
Note: See TracBrowser for help on using the repository browser.