Skip to content

Commit 73ed697

Browse files
StaticRocketpraneethbajjuri
authored andcommitted
feat(weston): add note about weston backends
Add a note about Weston backends, what is selected by default, and how those affect the start of Weston. Signed-off-by: Randolph Sapp <[email protected]>
1 parent fca008a commit 73ed697

File tree

1 file changed

+15
-2
lines changed
  • source/linux/Foundational_Components/Graphics/Common

1 file changed

+15
-2
lines changed

source/linux/Foundational_Components/Graphics/Common/Weston.rst

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,25 @@ The supported Wayland/Weston version brings in the multiple display support in
66
extended desktop mode and the ability to drag-and-drop windows from one display
77
to the other.
88

9+
Weston has support for multiple backends. By default it will use the ``drm``
10+
backend unless the ``WAYLAND_DISPLAY`` environment variable is set. This backend
11+
will register the compositor as the controller of the kms interface and will
12+
pick up human interface device (HID) input using evdev.
13+
14+
If the ``WAYLAND_DISPLAY`` variable is set, Weston will attempt to use the
15+
``wayland`` backend for nested composition. This is useful for development, but
16+
is normally not what you want for standard composition use. See
17+
:ref:`starting-weston-manually` or `the upstream weston documentation`_ for more
18+
information.
19+
920
.. ifconfig:: CONFIG_part_variant in ('AM62PX', 'J722S')
1021

1122
The |__PART_FAMILY_NAME__| group of devices actually utilizes two separate
1223
DSS modules enumerated under two different :file:`/dev/dri/card*` devices.
1324

1425
Weston versions newer than ``11.0.91`` can specify additional card devices
15-
via the ``--additional-devices`` command line parameter.
26+
via the ``--additional-devices`` command line parameter when using the
27+
``drm`` backend.
1628

1729
To launch Weston using both card0 and card1, you can use the following
1830
command:
@@ -59,12 +71,13 @@ To inspect the systemd service and socket status, do the following:
5971
6072
# systemctl status weston.service weston.socket
6173
74+
.. _starting-weston-manually:
6275

6376
************************
6477
Starting Weston Manually
6578
************************
6679

67-
To launch Weston manually, do the following:
80+
To launch Weston manually with the DRM backend, do the following:
6881

6982
On the target console:
7083

0 commit comments

Comments
 (0)