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