Blob Blame History Raw
From 3d670017e0ebcbb4c1ad939c1cec573ff23b2e3c Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Fri, 14 Mar 2014 11:04:49 -0400
Subject: [PATCH] systemd: clear terminal after starting and before stopping

This helps with flicker when the X server shuts down.
---
 data/gdm.service.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/data/gdm.service.in b/data/gdm.service.in
index df8bc09..a497da2 100644
--- a/data/gdm.service.in
+++ b/data/gdm.service.in
@@ -1,15 +1,17 @@
 [Unit]
 Description=GNOME Display Manager
 Conflicts=getty@tty@GDM_INITIAL_VT@.service plymouth-quit.service
 After=systemd-user-sessions.service getty@tty@GDM_INITIAL_VT@.service plymouth-quit.service
 
 [Service]
 ExecStart=@sbindir@/gdm
+ExecStartPost=-/bin/bash -c "TERM=linux /usr/bin/clear > /dev/tty1"
+ExecStop=-/bin/bash -c "TERM=linux /usr/bin/clear > /dev/tty1"
 Restart=always
 IgnoreSIGPIPE=no
 BusName=org.gnome.DisplayManager
 StandardOutput=syslog
 StandardError=inherit
 
 [Install]
 Alias=display-manager.service
-- 
1.9.0