Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| raspberry-pi:official-touchscreen [2025/01/05 19:25] – removed - external edit (Unknown date) 127.0.0.1 | raspberry-pi:official-touchscreen [2026/03/15 19:02] (current) – Zyzonix | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Official Raspberry Pi Touchscreen ===== | ||
| + | |||
| + | ==== Rotating the Official 7" Touchscreen ==== | ||
| + | |||
| + | Create the following DESKTOP-file | ||
| + | <panel type=" | ||
| + | <code bash> | ||
| + | [Desktop Entry] | ||
| + | Type=Application | ||
| + | Name=Rotate DSI 180° | ||
| + | Exec=/ | ||
| + | Hidden=false | ||
| + | NoDisplay=false | ||
| + | X-GNOME-Autostart-enabled=true | ||
| + | </ | ||
| + | </ | ||
| + | Check if DSI-1 is the correct display, use '' | ||
| + | |||
| + | **Legacy mode (pre-TRIXIE): | ||
| + | ++++ Show / Hide | | ||
| + | Comment the following line in your ''/ | ||
| + | <code bash> | ||
| + | # Enable DRM VC4 V3D driver | ||
| + | # | ||
| + | </ | ||
| + | |||
| + | And add the following line to your config: | ||
| + | <code bash> | ||
| + | # rotate screen | ||
| + | lcd_rotate=2 | ||
| + | display_rotate=0 | ||
| + | </ | ||
| + | ++++ | ||
| + | |||
| + | ==== Run chromium in kiosk mode at startup ==== | ||
| + | |||
| + | Firstly enable autologin and boot to desktop. Therefore you can use the '' | ||
| + | <code bash> | ||
| + | |||
| + | Just add the following lines to the '' | ||
| + | <panel type=" | ||
| + | <code bash> | ||
| + | # 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:// | ||
| + | </ | ||
| + | </ | ||
| + | This also includes already a higher buffer size for playing streams (e.g. internet radio) | ||
| + | |||
| + | |||
| + | **Legacy mode (X11):** | ||
| + | ++++ Show / Hide | | ||
| + | And then add the following line to the user's '' | ||
| + | <panel type=" | ||
| + | <code bash> | ||
| + | </ | ||
| + | |||
| + | //Sourced from: [[https:// | ||
| + | ++++ | ||
| + | ==== Turn off screen automatically after a period of inactivity ==== | ||
| + | |||
| + | To enable this " | ||
| + | <code bash> | ||
| + | |||
| + | Then add this content: | ||
| + | <code bash> | ||
| + | [Unit] | ||
| + | Description=Automatic screen blanking | ||
| + | After=network.target network-online.target | ||
| + | |||
| + | [Service] | ||
| + | Environment=DISPLAY=: | ||
| + | RestartSec=40 | ||
| + | Restart=always | ||
| + | User=pi | ||
| + | ExecStart=/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | </ | ||
| + | |||
| + | Finally save the service and enable it with: | ||
| + | <code bash> | ||
| + | |||
| + | //Partially sourced from [[https:// | ||
| + | |||