Skip to content

Commit

Permalink
Systemd unit: Use ExecStartPre for screen setup (#91)
Browse files Browse the repository at this point in the history
Example for disabling the screensaver and monitor standby in the systemd unit declaration.
  • Loading branch information
penguineer authored Mar 3, 2023
1 parent 4257cb9 commit 8430069
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ After=network.target
User=pi
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/pi/.Xauthority"

# Disable screensaver and monitor standby
ExecStartPre=xset s off
ExecStartPre=xset -dpms
ExecStartPre=xset s noblank

ExecStart=/usr/bin/grafana-kiosk -URL=<url> -login-method=local -username=<username> -password=<password> -playlists=true

[Install]
Expand Down

0 comments on commit 8430069

Please sign in to comment.