%general-entities; ]> $LastChangedBy$ $Date$ Weston-&weston-version; Weston Introduction to Weston Weston is the reference implementation of a Wayland compositor, and a useful compositor in its own right. It has various backends that lets it run on Linux kernel modesetting and evdev input as well as under X11. Weston also ships with a few example clients, from simple clients that demonstrate certain aspects of the protocol to more complete clients and a simplistic toolkit. &lfs7a_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &weston-md5sum; Download size: &weston-size; Estimated disk space required: &weston-buildsize; Estimated build time: &weston-time; Weston Dependencies Required , , , , (built with Wayland support), , , and Recommended (to build the screensaver client), (to build the weston-launch utility), (to build some demo clients), , (to build the X11 backend and X11 compatibility layer) and (with Xwayland, runtime - for X11 backwards compatibility) The weston-launch utility is required if you want to run Weston as a non privileged user. Optional , , , , (for H.264 VAAPI video encoding), , FreeRDP and libunwind User Notes: Installation of Weston Install Weston by running the following commands: ./configure --prefix=/usr --enable-demo-clients-install && make To test the results, issue: make check. Now, as the root user: make install Command Explanations --enable-demo-clients-install: This switch enables the installation of the demo clients shipped with Weston. Consult ./configure --help output for switches needed to prevent configure from looking for some of the recommended dependencies. Using Weston To start Weston as a X11 client, from an X terminal, run the following command: weston To run it as a DRM compositor, from a TTY, while logged in as a normal user, run the following command: weston-launch Note that weston-launch is a wrapper for weston. If you need to pass a parameter to weston while using weston-launch, use the following syntax: weston-launch -- --backend=fbdev-backend.so Note the -- between the weston-launch and the weston parameter --backend=fbdev-backend.so. For list of parameters that you can pass to weston, consult the weston(1) manual page. To terminate Weston when running as a DRM compositor, use the CTRL+ALT+Backspace combination on your keyboard. Note that the default backend, DRM, will only run if a KMS driver is present on the system. It will not run in a virtual machine such as VBox or Qemu and on NVidia or AMD hardware with proprietary drivers. On these setups it would be possible to use the FBDEV backend by running the command described above. Also note that the X11 backend requires a working EGL stack. If you are running hardware that has no 3D support or no EGL stack, you can't run accelerated applications inside Weston. The latest proprietary NVidia driver has the necessary EGL stack needed to run Weston as an X11 client, but it is not officially supported. Configuring Weston Config Files ~/.config/weston.ini ~/.config/weston.ini Configuration Information The Weston configuration file can be used to configure which modules will be loaded, keyboard layout, display resolution, touchpad behaviour, desktop shell appearance, etc. To change the keyboard layout inside Weston, add the following to your config file: [keyboard] keymap_model=pc105 keymap_layout=de keymap_variant=euro keymap_options=grp:alt_shift_toggle For an explanation of each of the mentioned options, consult the xkeyboard-config(7) manual page. To change the resolution of the compositor, add the following to your config file: [output] name=LVDS1 mode=1366x768 The name can be one of the following: DRM backend: LVDS1 (Laptop internal panel no.1) DRM backend: VGA1 (VGA connector no.1) X11 backend: X1 (X window no.1) Wayland backend: WL1 (Wayland window no.1) For more information consult the weston-drm(7) manual page. To load a Weston module or a shell backend, add the following to your config file: [core] modules=xwayland.so shell=desktop-shell.so Note that you need to load the xwayland.so if you want to use X11 clients inside Weston. For a detailed list of configuration directives, consult the weston.ini(5) manual page or examine the weston.ini file inside the Weston source directory. Contents Installed Programs Installed Libraries Installed Directories wcap-decode, weston, weston-calibrator, weston-clickdot, weston-cliptest, weston-dnd, weston-editor, weston-eventdemo, weston-flower, weston-fullscreen, weston-image, weston-info, weston-launch, weston-multi-resource, weston-presentation-shm, weston-resizor, weston-scaler, weston-simple-damage, weston-simple-dmabuf-intel, weston-simple-dmabuf-v4l, weston-simple-egl, weston-simple-shm, weston-simple-touch, weston-smoke, weston-stacking, weston-subsurfaces, weston-terminal and weston-transformed None /usr/include/weston, /usr/lib/weston, /usr/share/wayland-sessions and /usr/share/weston Short Descriptions weston is the reference implementation of a Wayland server. weston