summaryrefslogtreecommitdiffstats
path: root/core/modules/pvs2
diff options
context:
space:
mode:
authorSimon Rettberg2019-11-13 13:56:28 +0100
committerSimon Rettberg2019-11-13 13:56:28 +0100
commit0955b965c745c798e0e3e903d52a7376cfa30577 (patch)
treed020cf947071362669c66314855e34819141b0d0 /core/modules/pvs2
parent[kiosk-chromium] Simplify json generation, add sanity check (diff)
downloadmltk-0955b965c745c798e0e3e903d52a7376cfa30577.tar.gz
mltk-0955b965c745c798e0e3e903d52a7376cfa30577.tar.xz
mltk-0955b965c745c798e0e3e903d52a7376cfa30577.zip
[pvs2] Disable idle-daemon saver/dpms for dedicated manager
Diffstat (limited to 'core/modules/pvs2')
-rwxr-xr-xcore/modules/pvs2/data/opt/openslx/scripts/setup-pvsmgr7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/modules/pvs2/data/opt/openslx/scripts/setup-pvsmgr b/core/modules/pvs2/data/opt/openslx/scripts/setup-pvsmgr
index 5531518a..2a8b1a88 100755
--- a/core/modules/pvs2/data/opt/openslx/scripts/setup-pvsmgr
+++ b/core/modules/pvs2/data/opt/openslx/scripts/setup-pvsmgr
@@ -10,6 +10,13 @@ if [ -n "$SLX_PVS_CONFIG_URL" ]; then
[ -s "${DST}" ] && CONF="--config=${DST}"
fi
+# In case nobody else manages this
+xset +dpms
+xset dpms 120 120 120
+# In case idle-daemon manages saver/dpms
+[ -z "$HOME" ] && HOME="$( getent passwd "$(id -u)" | awk -F: '{print $6}' )"
+touch "$HOME/.no-saver"
+
openbox &
timediff=5