Blame SOURCES/clear-screen.patch

01018b
From 3d670017e0ebcbb4c1ad939c1cec573ff23b2e3c Mon Sep 17 00:00:00 2001
01018b
From: Ray Strode <rstrode@redhat.com>
01018b
Date: Fri, 14 Mar 2014 11:04:49 -0400
01018b
Subject: [PATCH] systemd: clear terminal after starting and before stopping
01018b
01018b
This helps with flicker when the X server shuts down.
01018b
---
01018b
 data/gdm.service.in | 2 ++
01018b
 1 file changed, 2 insertions(+)
01018b
01018b
diff --git a/data/gdm.service.in b/data/gdm.service.in
01018b
index df8bc09..a497da2 100644
01018b
--- a/data/gdm.service.in
01018b
+++ b/data/gdm.service.in
01018b
@@ -1,15 +1,17 @@
01018b
 [Unit]
01018b
 Description=GNOME Display Manager
01018b
 Conflicts=getty@tty@GDM_INITIAL_VT@.service plymouth-quit.service
01018b
 After=systemd-user-sessions.service getty@tty@GDM_INITIAL_VT@.service plymouth-quit.service
01018b
 
01018b
 [Service]
01018b
 ExecStart=@sbindir@/gdm
01018b
+ExecStartPost=-/bin/bash -c "TERM=linux /usr/bin/clear > /dev/tty1"
01018b
+ExecStop=-/bin/bash -c "TERM=linux /usr/bin/clear > /dev/tty1"
01018b
 Restart=always
01018b
 IgnoreSIGPIPE=no
01018b
 BusName=org.gnome.DisplayManager
01018b
 StandardOutput=syslog
01018b
 StandardError=inherit
01018b
 
01018b
 [Install]
01018b
 Alias=display-manager.service
01018b
-- 
01018b
1.9.0
01018b