Wayland: Difference between revisions

From ArmadeusWiki
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
==Installation==
==Installation==


Use corresponding config (apf6_wayland_defconfig), or activate it in menuconfig:
Use corresponding config (''apf6_wayland_defconfig)'', or activate it in menuconfig:


<pre class="config>
<pre class="config>
Line 26: Line 26:
│ │    [*]  kiosk shell                                                                          │ │   
│ │    [*]  kiosk shell                                                                          │ │   
│ │    [*]  demo clients                                                                        │ │
│ │    [*]  demo clients                                                                        │ │
</pre>
== Launching ==
* Needs to be done from a graphical/framebuffer console. [[Framebuffer#Login.2FConsole|To activate one]].
* Login to graphical console / tty1
* Do some config the first boot:
<pre class="apf">
# mkdir /tmp/runtime
# chmod 0700 /tmp/runtime
# export XDG_RUNTIME_DIR=/tmp/runtime
</pre>
* Start weston
<pre class="apf">
# weston -B drm-backend.so
</pre>
</pre>


Line 32: Line 46:
<pre class="APF">
<pre class="APF">
BIOS> setenv extrabootargs '${extrabootargs} cma=256M'
BIOS> setenv extrabootargs '${extrabootargs} cma=256M'
</pre>
* To rotate display in landscape mode on OPOS93Dev kit, one might create '/etc/xdg/weston/weston.ini' config file and add it:
<pre class="APF">
[output]
name=DSI-1
mode=720x1280@60
transform=rotate-90
</pre>
</pre>


[[Category:Graphical User Interface]]
[[Category:Graphical User Interface]]

Latest revision as of 18:46, 24 December 2025

Intro

Wayland is the new protocol dedicated to replace X11 windowing system. It's first Linux implementation is called weston. It uses KMS/DRM video drivers direct access, and so needs a recent kernel (4.4+). It currently works well on APF6.

Installation

Use corresponding config (apf6_wayland_defconfig), or activate it in menuconfig:

...
Target packages  --->
    ...
    Graphic libraries and applications (graphic/text)  --->
        ...
        [*] weston                                                                                 │ │  
│ │           default compositor (drm)  --->                                                       │ │  
│ │     -*-   DRM compositor                                                                       │ │  
│ │     [ ]   RDP compositor                                                                       │ │  
│ │     [ ]   headless (testing) compositor                                                        │ │  
│ │     [ ]   Wayland (nested) compositor                                                          │ │  
│ │     [ ]   X11 (nested) compositor                                                              │ │  
│ │     [ ]   XWayland support                                                                     │ │  
│ │     [*]   desktop shell                                                                        │ │  
│ │     [*]   fullscreen shell                                                                     │ │  
│ │     [*]   ivi shell                                                                            │ │  
│ │     [*]   kiosk shell                                                                          │ │  
│ │     [*]   demo clients                                                                         │ │

Launching

  • Needs to be done from a graphical/framebuffer console. To activate one.
  • Login to graphical console / tty1
  • Do some config the first boot:
# mkdir /tmp/runtime
# chmod 0700 /tmp/runtime
# export XDG_RUNTIME_DIR=/tmp/runtime
  • Start weston
# weston -B drm-backend.so

Tips

  • For OpenGL/ES demos, it is necessary to increase Linux kernel allocable video memory at boot:
BIOS> setenv extrabootargs '${extrabootargs} cma=256M'
  • To rotate display in landscape mode on OPOS93Dev kit, one might create '/etc/xdg/weston/weston.ini' config file and add it:
[output]
name=DSI-1
mode=720x1280@60
transform=rotate-90