Differences
This shows you the differences between two versions of the page.
Both sides previous 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 [2025/01/05 19:25] (current) – ↷ Page name changed from raspberry-pi:rotate-official-touchscreen to raspberry-pi:official-touchscreen Zyzonix | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Official Raspberry Pi Touchscreen ===== | ||
+ | |||
+ | ==== Rotating the Official 7" Touchscreen ==== | ||
+ | |||
+ | 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> | ||
+ | |||
+ | 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:// | ||
+ | |||