Skip to contentSkip to conversation

weston-init: De-couple framebuffer console from Weston for systemd startup

PATCH Superseded Tom Hochstein 2 participants 3 messages Jul 15, 2016

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 weston-init: De-couple framebuffer console from Weston for systemd startup

The framebuffer console was using the same I/O as Weston. We fix this by having openvt switch to the new VT when starting weston-launch, same as is already done for the sysvinit case.

---
 meta/recipes-graphics/wayland/weston-init/init         | 2 +-
 meta/recipes-graphics/wayland/weston-init/weston-start | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-graphics/wayland/weston-init/init +1 -1
index 5c925f4..d3e87c6 100644
@@ -31,7 +31,7 @@ case "$1" in
   start)
         . /etc/profile
 
-        weston-start -s -- $OPTARGS
+        weston-start -- $OPTARGS
   ;;
 
   stop)
meta/recipes-graphics/wayland/weston-init/weston-start +1 -1
index 5b7604f..1ede12e 100755
@@ -37,7 +37,7 @@ else
 	launcher="weston-launch --"
 fi
 
-openvt_args=""
+openvt_args="-s"
 while [ -n "$1" ]; do
 	openvt_args="$openvt_args $1"
 	shift
Signature · 1 line
1.9.1
Acked-by on v2 1/1
#1 lore raw
Quoted 5 lines · Tom Hochstein

The framebuffer console was using the same I/O as Weston. We fix this by having openvt switch to the new VT when starting weston-launch, same as is already done for the sysvinit case.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
author Acked-by Otavio Salvador
#2 lore raw

Sorry again, seems that the weston-start parser is not prepared to take no openvt arguments. Will need to fix that as well.

Tom

-----Original Message-----
From: Otavio Salvador [mailto:[email protected]]
Sent: Friday, July 15, 2016 12:01 PM
To: Tom Hochstein <[email protected]>
Cc: Patches and discussions about the oe-core layer <[email protected]>
Subject: Re: [OE-core] [PATCH v2] weston-init: De-couple framebuffer console from Weston for systemd startup

Quoted 5 lines · Tom Hochstein

The framebuffer console was using the same I/O as Weston. We fix this by having openvt switch to the new VT when starting weston-launch, same as is already done for the sysvinit case.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750