[5b8f578d] | 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 " ">
|
---|
[543be6b] | 9 | <!ENTITY weston-md5sum "310af6d7f8ba03c3418cec8ad72ea748">
|
---|
[3fdc9b0] | 10 | <!ENTITY weston-size "1.2 MB">
|
---|
[543be6b] | 11 | <!ENTITY weston-buildsize "57 MB (with tests)">
|
---|
| 12 | <!ENTITY weston-time "0.5 SBU (with tests)">
|
---|
[5b8f578d] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="weston" xreflabel="Weston-&weston-version;" revision="systemd">
|
---|
| 16 | <?dbhtml filename="weston.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Weston-&weston-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="weston">
|
---|
| 22 | <primary sortas="a-Weston">Weston</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Weston</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <application>Weston</application> is the reference implementation of
|
---|
| 30 | a <application>Wayland</application> compositor, and a useful
|
---|
| 31 | compositor in its own right. It has various backends that lets it
|
---|
| 32 | run on Linux kernel modesetting and evdev input as well as under X11.
|
---|
| 33 | <application>Weston</application> also ships with a few example clients,
|
---|
| 34 | from simple clients that demonstrate certain aspects of the protocol
|
---|
| 35 | to more complete clients and a simplistic toolkit.
|
---|
| 36 | </para>
|
---|
| 37 |
|
---|
[2ec47f0] | 38 | &lfs80_checked;
|
---|
[5b8f578d] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&weston-download-http;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&weston-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download MD5 sum: &weston-md5sum;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Download size: &weston-size;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated disk space required: &weston-buildsize;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | Estimated build time: &weston-time;
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">Weston Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 77 | <para role="required">
|
---|
| 78 | <xref linkend="cairo"/>,
|
---|
| 79 | <xref linkend="libinput"/>,
|
---|
| 80 | <xref linkend="libjpeg"/>,
|
---|
| 81 | <xref linkend="libxkbcommon"/>,
|
---|
| 82 | <xref linkend="mesa"/> (built with
|
---|
| 83 | <application>Wayland</application> support),
|
---|
[3fdc9b0] | 84 | <xref linkend="mtdev"/>,
|
---|
| 85 | <xref linkend="wayland"/>, and
|
---|
| 86 | <xref linkend="wayland-protocols"/>
|
---|
[5b8f578d] | 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 90 | <para role="recommended">
|
---|
| 91 | <xref linkend="glu"/> (to build the screensaver client),
|
---|
| 92 | <xref linkend="linux-pam"/> (to build the
|
---|
| 93 | <command>weston-launch</command> utility),
|
---|
| 94 | <xref linkend="pango"/> (to build some demo clients),
|
---|
| 95 | <xref linkend="systemd"/>,
|
---|
| 96 | <xref linkend="xorg7-lib"/> (to build the X11
|
---|
| 97 | backend and X11 compatibility layer) and
|
---|
| 98 | <xref linkend="xorg-server"/> (with Xwayland, runtime
|
---|
| 99 | - for X11 backwards compatibility)
|
---|
| 100 | </para>
|
---|
| 101 |
|
---|
[3fdc9b0] | 102 | <note>
|
---|
[5b8f578d] | 103 | <para>
|
---|
| 104 | The <command>weston-launch</command> utility is required if
|
---|
| 105 | you want to run <application>Weston</application> as a
|
---|
| 106 | non privileged user.
|
---|
| 107 | </para>
|
---|
| 108 | </note>
|
---|
| 109 |
|
---|
| 110 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 111 | <para role="optional">
|
---|
| 112 | <xref linkend="colord"/>,
|
---|
[3fdc9b0] | 113 | <xref linkend="doxygen"/>,
|
---|
[5b8f578d] | 114 | <xref linkend="lcms2"/>,
|
---|
[3fdc9b0] | 115 | <xref linkend="libpng"/>,
|
---|
[5b8f578d] | 116 | <xref linkend="libva"/> (for H.264 VAAPI video encoding),
|
---|
| 117 | <xref linkend="libwebp"/>,
|
---|
| 118 | <ulink url="http://www.freerdp.com/">FreeRDP</ulink> and
|
---|
| 119 | <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>
|
---|
| 120 | </para>
|
---|
| 121 |
|
---|
| 122 | <para condition="html" role="usernotes">
|
---|
| 123 | User Notes: <ulink url="&blfs-wiki;/weston"/>
|
---|
| 124 | </para>
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="installation">
|
---|
| 128 | <title>Installation of Weston</title>
|
---|
| 129 |
|
---|
| 130 | <para>
|
---|
| 131 | Install <application>Weston</application> by running the following
|
---|
| 132 | commands:
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
| 135 | <screen><userinput>./configure --prefix=/usr --enable-demo-clients-install &&
|
---|
| 136 | make</userinput></screen>
|
---|
| 137 |
|
---|
| 138 | <para>
|
---|
[543be6b] | 139 | To test the results, issue: <command>make check</command>. The tests need
|
---|
| 140 | to be run from an X Terminal or equivalent.
|
---|
[5b8f578d] | 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
|
---|
[3fdc9b0] | 156 | enables the installation of the demo clients shipped with
|
---|
[5b8f578d] | 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>
|
---|
[3fdc9b0] | 174 | To start <application>Weston</application> as a X11 client,
|
---|
[5b8f578d] | 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>
|
---|
[3fdc9b0] | 220 | Also note that the X11 backend requires a working EGL stack.
|
---|
[5b8f578d] | 221 | If you are running hardware that has no 3D support or
|
---|
| 222 | no EGL stack, you can't run accelerated applications
|
---|
[3fdc9b0] | 223 | inside <application>Weston</application>. The latest
|
---|
[5b8f578d] | 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>
|
---|
[3fdc9b0] | 249 | The <application>Weston</application> configuration file can be
|
---|
[5b8f578d] | 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]
|
---|
| 261 | keymap_model=pc105
|
---|
| 262 | keymap_layout=de
|
---|
| 263 | keymap_variant=euro
|
---|
| 264 | keymap_options=grp:alt_shift_toggle</literal></screen>
|
---|
| 265 |
|
---|
| 266 | <para>
|
---|
[3fdc9b0] | 267 | For an explanation of each of the mentioned options,
|
---|
[5b8f578d] | 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]
|
---|
| 278 | name=LVDS1
|
---|
| 279 | mode=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]
|
---|
| 319 | modules=xwayland.so
|
---|
| 320 | shell=desktop-shell.so</literal></screen>
|
---|
| 321 |
|
---|
| 322 | <para>
|
---|
| 323 | Note that you need to load the <filename>xwayland.so</filename>
|
---|
[543be6b] | 324 | module if you want to use X11 clients inside
|
---|
[5b8f578d] | 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,
|
---|
[3fdc9b0] | 354 | weston-simple-damage, weston-simple-dmabuf-intel,
|
---|
| 355 | weston-simple-dmabuf-v4l, weston-simple-egl, weston-simple-shm,
|
---|
[5b8f578d] | 356 | weston-simple-touch, weston-smoke, weston-stacking,
|
---|
| 357 | weston-subsurfaces, weston-terminal and weston-transformed
|
---|
| 358 | </seg>
|
---|
| 359 | <seg>
|
---|
[543be6b] | 360 | libweston-1.so and libweston-desktop-1.so
|
---|
[5b8f578d] | 361 | </seg>
|
---|
| 362 | <seg>
|
---|
[543be6b] | 363 | /usr/include/{libweston-1,weston}
|
---|
| 364 | /usr/lib/{libweston-1,weston},
|
---|
[5b8f578d] | 365 | /usr/share/wayland-sessions and
|
---|
| 366 | /usr/share/weston
|
---|
| 367 | </seg>
|
---|
| 368 | </seglistitem>
|
---|
| 369 | </segmentedlist>
|
---|
| 370 |
|
---|
| 371 | <variablelist>
|
---|
| 372 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 373 | <?dbfo list-presentation="list"?>
|
---|
| 374 | <?dbhtml list-presentation="table"?>
|
---|
| 375 |
|
---|
| 376 | <varlistentry id="weston-prog">
|
---|
| 377 | <term><command>weston</command></term>
|
---|
| 378 | <listitem>
|
---|
| 379 | <para>
|
---|
| 380 | is the reference implementation of a Wayland server.
|
---|
| 381 | </para>
|
---|
| 382 | <indexterm zone="weston weston-prog">
|
---|
| 383 | <primary sortas="b-weston">weston</primary>
|
---|
| 384 | </indexterm>
|
---|
| 385 | </listitem>
|
---|
| 386 | </varlistentry>
|
---|
| 387 |
|
---|
| 388 | </variablelist>
|
---|
| 389 |
|
---|
| 390 | </sect2>
|
---|
| 391 |
|
---|
| 392 | </sect1>
|
---|