From 40fe657823802f4111879a2bfc32d93f7a9b48ee Mon Sep 17 00:00:00 2001 From: Raffael Herzog Date: Sat, 1 Aug 2015 18:44:55 +0200 Subject: [PATCH 1/2] Turn off screen saver in default configuration. I noticed this issue while trying to calibrate a second screen connected using intel-virtual-output unattendedly. The screen kept going black after 10 minutes without any keyboard/mouse input, while ArgyllCMS/dispcalGUI was trying to measure colors. Disabling the screen saver on display :8 fixes this. Probably, the same thing should be done for the nouveau, but I can't test this. --- conf/xorg.conf.nvidia | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/xorg.conf.nvidia b/conf/xorg.conf.nvidia index c3107f9..70aef46 100644 --- a/conf/xorg.conf.nvidia +++ b/conf/xorg.conf.nvidia @@ -2,6 +2,12 @@ Section "ServerLayout" Identifier "Layout0" Option "AutoAddDevices" "false" Option "AutoAddGPU" "false" + + # turn off integrated screen saver + Option "BlankTime" "0" + Option "StandbyTime" "0" + Option "SuspendTime" "0" + Option "OffTime" "0" EndSection Section "Device" From a21b1a3dc5ce72f7035fe0efd657481236311ce7 Mon Sep 17 00:00:00 2001 From: Raffael Herzog Date: Sat, 2 Jan 2016 18:28:58 +0100 Subject: [PATCH 2/2] Comment the options to disable the screensaver out This also adds a comment that describes the issue that these options fix. --- conf/xorg.conf.nouveau | 20 ++++++++++++++++++++ conf/xorg.conf.nvidia | 24 +++++++++++++++++++----- 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/conf/xorg.conf.nouveau b/conf/xorg.conf.nouveau index 87e48cb..43ab7bf 100644 --- a/conf/xorg.conf.nouveau +++ b/conf/xorg.conf.nouveau @@ -2,6 +2,26 @@ Section "ServerLayout" Identifier "Layout0" Option "AutoAddDevices" "false" Option "AutoAddGPU" "false" + +# When using `intel-virtual-output`, the X-server for the second monitor +# uses its own screensaver settings for the built-in screensaver of X. If +# any application like e.g. a video player suppresses the screensaver, the +# external screen will still turn black after 10 minutes without any +# keyboard or mouse input. The following settings suppress this behaviour +# by completely disabling the built-in screensaver. + +# Note that this does not affect the screensaver of your desktop +# environment, as they usually do their own screensaving. Also locking +# the workstation works just fine. However, power saving features will not +# work on the external monitor, it will never go to powersaving mode. + +# This is a workaround for issue #93562 against `intel-virtual-output`: +# https://bugs.freedesktop.org/show_bug.cgi?id=93562 + +# Option "BlankTime" "0" +# Option "StandbyTime" "0" +# Option "SuspendTime" "0" +# Option "OffTime" "0" EndSection Section "Device" diff --git a/conf/xorg.conf.nvidia b/conf/xorg.conf.nvidia index 70aef46..9295785 100644 --- a/conf/xorg.conf.nvidia +++ b/conf/xorg.conf.nvidia @@ -3,11 +3,25 @@ Section "ServerLayout" Option "AutoAddDevices" "false" Option "AutoAddGPU" "false" - # turn off integrated screen saver - Option "BlankTime" "0" - Option "StandbyTime" "0" - Option "SuspendTime" "0" - Option "OffTime" "0" +# When using `intel-virtual-output`, the X-server for the second monitor +# uses its own screensaver settings for the built-in screensaver of X. If +# any application like e.g. a video player suppresses the screensaver, the +# external screen will still turn black after 10 minutes without any +# keyboard or mouse input. The following settings suppress this behaviour +# by completely disabling the built-in screensaver. + +# Note that this does not affect the screensaver of your desktop +# environment, as they usually do their own screensaving. Also locking +# the workstation works just fine. However, power saving features will not +# work on the external monitor, it will never go to powersaving mode. + +# This is a workaround for issue #93562 against `intel-virtual-output`: +# https://bugs.freedesktop.org/show_bug.cgi?id=93562 + +# Option "BlankTime" "0" +# Option "StandbyTime" "0" +# Option "SuspendTime" "0" +# Option "OffTime" "0" EndSection Section "Device"