This is an old revision of the document!


Comment the following line in your /boot/config.txt (to disable this parameter):

# Enable DRM VC4 V3D driver
#dtoverlay=vc4-kms-v3d

And add the following line to your config:

# rotate screen
lcd_rotate=2
display_rotate=0

Firstly enable autologin and boot to desktop. Therefore you can use the raspi-config-tool:

sudo raspi-config

Just add the following lines to the labwc (a Wayland compositor) config:

nano ~/.config/labwc/autostart

# The actual kiosk launch
# Use chromium (or chromium-browser — try both if one fails)
chromium \
    --kiosk \
    --noerrdialogs \
    --disable-infobars \
    --no-first-run \
    --start-maximized \
    --audio-buffer-size=16384 \
    --enable-features=OverlayScrollbar \
    https://your-website.com &

This also includes already a higher buffer size for playing streams (e.g. internet radio)

Legacy mode (X11):

Show / Hide

To enable this “energy saving”-setting create a system service file under /etc/systemd/system/ with the name screenblanking.service:

sudo nano /etc/systemd/system/screenblanking.service

Then add this content:

[Unit]
Description=Automatic screen blanking
After=network.target network-online.target
 
[Service]
Environment=DISPLAY=:0.0
RestartSec=40
Restart=always
User=pi
ExecStart=/usr/bin/xset dpms force off
 
[Install]
WantedBy=multi-user.target

Finally save the service and enable it with:

sudo systemctl enable screenblanking.service

Partially sourced from forums.raspberrypi.com - know a command-line for turning off the screen?

  • raspberry-pi/official-touchscreen.1773594655.txt.gz
  • Last modified: 2026/03/15 18:10
  • by Zyzonix