source: general/sysutils/weston.xml@ 5b8f578d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 5b8f578d was 5b8f578d, checked in by DJ Lucas <dj@…>, 8 years ago

[systemd-merge] - Chapter 12 layout

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17436 af4574ff-66df-0310-9fd7-8a98e5e911e0

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