From: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Date: Fri, 11 Dec 2015 08:05:20 +0000 (+0900)
Subject: Disable blinking cursor when booting with fb console
X-Git-Tag: albacore_1.0~3
X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F4457%2F3;p=AGL%2Fmeta-agl.git

Disable blinking cursor when booting with fb console

When running on QEMU or VM, blinking cursor of console corrupt
screen. To fix this, it is stopped just before psplash launched.

Change-Id: I6e3cc49a6b65f3c70c246f315314710bd090ce13
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
---

diff --git a/meta-agl/recipes-core/psplash/files/psplash-start.service b/meta-agl/recipes-core/psplash/files/psplash-start.service
index 7881e73cc..7bad9593e 100644
--- a/meta-agl/recipes-core/psplash/files/psplash-start.service
+++ b/meta-agl/recipes-core/psplash/files/psplash-start.service
@@ -5,6 +5,7 @@ After=systemd-vconsole-setup.service systemd-udev-trigger.service systemd-udevd.
 DefaultDependencies=no
 
 [Service]
+ExecStartPre=/bin/sh -c "if [ -e /sys/class/graphics/fbcon/cursor_blink ]; then echo 0 > /sys/class/graphics/fbcon/cursor_blink; fi"
 ExecStart=/usr/bin/psplash -n
 
 [Install]