From 5a06b741745aced539e7847c52925d6f14305c96 Mon Sep 17 00:00:00 2001 From: TomasM Date: Tue, 2 Jul 2019 08:29:16 +0000 Subject: [PATCH] Disable screen blanking on console and X --- .../debian/modules/03-desktop/rootcopy/root/.fluxbox/startup | 4 ++++ Slax/debian/rootcopy/root/.bashrc | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup b/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup index 14efa2b..e98f223 100644 --- a/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup +++ b/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup @@ -28,6 +28,10 @@ done xsetroot -solid '#111111' xsetroot -xcf /usr/share/icons/breeze_cursors/cursors/watch 37 +# disable screen blanking +xset s off +xset -dpms + # volume icon in system tray. Can fail if no soundcard is detected volumeicon & diff --git a/Slax/debian/rootcopy/root/.bashrc b/Slax/debian/rootcopy/root/.bashrc index 98bc99c..63ae734 100644 --- a/Slax/debian/rootcopy/root/.bashrc +++ b/Slax/debian/rootcopy/root/.bashrc @@ -38,3 +38,8 @@ export -f ll export -f l export -f apt-get export -f apt + +# disable screen blanking +setterm -blank 0 +setterm -powerdown 0 +setterm -powersave 0