Explorar el Código

add additional protection against screen blanking

Blaine Story hace 2 años
padre
commit
10aac06c01
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      roles/kodi-config/templates/configuration.nix.j2

+ 4 - 1
roles/kodi-config/templates/configuration.nix.j2

@@ -35,7 +35,10 @@
   services.xserver.displayManager.autoLogin.enable = true;
   services.xserver.displayManager.autoLogin.user = "kodi";
   services.xserver.displayManager.job.preStart = "/run/current-system/sw/bin/systemctl start network-online.target";
-  services.xserver.displayManager.sessionCommands = "xset s off -dpms";
+  services.xserver.displayManager.sessionCommands = ''
+    xset dpms 0 0 0
+    xset s off -dpms
+  '';
   users.users.kodi.isNormalUser = true;