Disable Weston DRM backend in QEMU 71/8371/1 3.0.1 chinook/3.0.1 chinook_3.0.1
authorScott Murray <scott.murray@konsulko.com>
Wed, 25 Jan 2017 22:36:43 +0000 (17:36 -0500)
committerScott Murray <scott.murray@konsulko.com>
Wed, 25 Jan 2017 22:46:48 +0000 (17:46 -0500)
Since the Weston DRM backend does not work with the video card implementations
in VirtualBox and VMWare player, and has some outstanding issues on QEMU that
have resulted in GenIVI not enabling it[1], disable it for now. A comment has
been added to the QEMU weston.ini indicating that the DRM backend can be
re-enabled to potentially gain higher performance.

Additionally, the common weston.service systemd unit has been modified to
add the --tty option to weston-launch to start weston on /dev/tty1. This is
now required to avoid console messages writing on top of the HomeScreen in
QEMU, and is harmless to operation on the other platforms.

[1]: https://github.com/GENIVI/meta-genivi-dev/pull/34

Bug-AGL: SPEC-405

Change-Id: Ic0c0adeb15baf392e3ffa0bbd26c62d060df1ef5
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
meta-agl-bsp/recipes-graphics/wayland/weston/weston-qemu-drm.ini
meta-agl/recipes-graphics/wayland/weston/weston.service

index e380bf1..9c5ddd2 100644 (file)
@@ -1,6 +1,9 @@
 [core]
 shell=ivi-shell.so
-backend=drm-backend.so
+# DRM backend disabled for now to allow compatibility with VirtualBox
+# and VMWare Player. It may be re-enabled if running on QEMU for
+# potentially increased performance.
+#backend=drm-backend.so
 
 [ivi-shell]
 ivi-module=ivi-controller.so,wl-shell-emulator.so
index 295c3a9..afd8a7d 100644 (file)
@@ -4,7 +4,7 @@ Conflicts=getty@tty1.service
 After=dbus.service
 
 [Service]
-ExecStart=/usr/bin/weston-launch -u root -- --idle-time=4294967
+ExecStart=/usr/bin/weston-launch --tty /dev/tty1 --user root -- --idle-time=4294967
 ExecStop=/usr/bin/killall -s KILL weston
 Type=simple