Difference between revisions of "IMX8 Debian XWayland"

From Variscite Wiki
(Created page with "Running X11 based applications on wayland backend on IMX8 Platforms via xwayland. == Installing Xwayland == https://wayland.freedesktop.org/xserver.html Please follow the b...")
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Running X11 based applications on wayland backend on IMX8 Platforms via xwayland.
+
{{PageHeader| Running X11 applications on wayland backend via xwayland}}
 
+
{{DocImage|category1=Debian|category2=DART-MX8M}} [[Category:DART-MX8M-MINI]] [[Category:VAR-SOM-MX8X]] [[Category:VAR-SOM-MX8]]
== Installing Xwayland ==
 
  
 +
= Xwayland introduction / reference =
 
https://wayland.freedesktop.org/xserver.html
 
https://wayland.freedesktop.org/xserver.html
  
Please follow the below steps (tested on buster) on debian.
+
= Installing Xwayland =
 
 
# apt-get update; apt-get install -y xwayland
 
 
Edit : /etc/xdg/weston/weston.ini and make sure it has below two highlighted params:<br>
 
'''[core]<br>
 
'''xwayland=true<br>
 
<br>
 
'''[xwayland]<br>
 
'''path=/usr/bin/Xwayland<br>
 
  
Your weston.ini should look like below
+
# apt-get update
 +
# apt-get install xwayland
  
# cat /etc/xdg/weston/weston.ini
+
= Starting the Xwayland server =
  [core]
+
Edit the /etc/xdg/weston/weston.ini file and make sure it has the two highlighted params below:<br>
 +
  '''[core]'''
 
  # i.MX: Disable idle timeout
 
  # i.MX: Disable idle timeout
 
  idle-time=0
 
  idle-time=0
 
  #use-g2d=1
 
  #use-g2d=1
  xwayland=true
+
  '''xwayland=true'''
 
   
 
   
  [xwayland]
+
  '''[xwayland]'''
  path=/usr/bin/Xwayland
+
  '''path=/usr/bin/Xwayland'''
  
== Restart Weston ==
+
= Restart Weston =
#systemctl stop weston
+
  # systemctl restart weston
  #systemctl start weston
 
  
==Install X11 based application==
+
= Install and run an X11 based application =
Here below chromium as and example,
+
We'll use Chromium as an example:<br>
On Debian buster chromium only supports X11 backend, ozone is not supported from buster repository.  
+
On Debian Buster Chromium only supports the X11 backend (chromium-ozone is not in the Debian Buster repository).<br>
 
+
  # apt-get install -y chromium
  #apt-get install -y chromium
+
  # export DISPLAY=:0
#export GDK_BACKEND=x11
+
  # /usr/bin/chromium --no-sandbox
  #export DISPLAY=:0
+
You can safely ignore the warnings. The acceleration is provided using LLVMPIPE - no Vivante GPU integration is available.<br>
  #/usr/bin/chromium --ignore-gpu-blacklist --no-sandbox
+
<br>
You can safely ignore the warnings, but as far as I can see, the acceleration is provided using LLVMPIPE, no Vivante integration is available.
+
'''Note:'''
 
+
* While other X11 based application may work, not all X11 applications in the Debian repository are tested by Variscite.
'''Note:
+
* Chromium built by Debian repo does not support Video Decoding acceleration.
* Other X11 based application may work.
 
* Not all Debian repository x11 applications are tested by Variscite.
 
* Please contact support via http://www.variscite.com/support/variscite-customer-portal and create a ticket for specific case if you encounter any problems.
 

Latest revision as of 15:13, 4 May 2020

Running X11 applications on wayland backend via xwayland

1 Xwayland introduction / reference

https://wayland.freedesktop.org/xserver.html

2 Installing Xwayland

# apt-get update
# apt-get install xwayland

3 Starting the Xwayland server

Edit the /etc/xdg/weston/weston.ini file and make sure it has the two highlighted params below:

[core]
# i.MX: Disable idle timeout
idle-time=0
#use-g2d=1
xwayland=true

[xwayland]
path=/usr/bin/Xwayland

4 Restart Weston

# systemctl restart weston

5 Install and run an X11 based application

We'll use Chromium as an example:
On Debian Buster Chromium only supports the X11 backend (chromium-ozone is not in the Debian Buster repository).

# apt-get install -y chromium
# export DISPLAY=:0
# /usr/bin/chromium --no-sandbox

You can safely ignore the warnings. The acceleration is provided using LLVMPIPE - no Vivante GPU integration is available.

Note:

  • While other X11 based application may work, not all X11 applications in the Debian repository are tested by Variscite.
  • Chromium built by Debian repo does not support Video Decoding acceleration.