Skip to content

Commit c8ec577

Browse files
author
Alasdair Allan
authored
Merge pull request #3152 from raspberrypi/fix-screen-blanking
Fix screen blanking instructions
2 parents de15e95 + ba72b85 commit c8ec577

File tree

3 files changed

+51
-10
lines changed

3 files changed

+51
-10
lines changed
5.89 MB
Loading
13.1 MB
Loading
Lines changed: 51 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,61 @@
1-
== Configuring Screen Blanking
1+
== Configure Screen Blanking
22

3-
You can configure your Raspberry Pi to use a screen saver or to blank the screen.
3+
You can configure your Raspberry Pi to blank the screen after a period of inactivity. By default, Raspberry Pi OS blanks the screen after 10 minutes of inactivity when screen blanking is enabled.
44

5-
=== On Console
5+
=== Desktop
66

7-
When running without a graphical desktop, Raspberry Pi OS will blank the screen after 10 minutes without user input, e.g. mouse movement or key presses.
7+
You can control screen blanking using the *Screen Blanking* option in the Raspberry Pi Configuration menu.
88

9-
The current setting, in seconds, can be displayed using:
9+
==== Raspberry Pi Configuration
10+
11+
Click the Raspberry Pi button in the menu bar. Navigate to *Preferences* > *Raspberry Pi Configuration*.
12+
13+
image::images/pi-configuration.png[opening the Raspberry Pi Configuration menu from the desktop]
14+
15+
Select the *Display* tab. Toggle the *Screen Blanking* radio button into the on position. Press *OK* to confirm your selection.
16+
17+
image::images/blanking.png[toggle Screen Blanking on in the Raspberry Pi Configuration menu]
18+
19+
==== CLI
20+
21+
You can enable and disable screen blanking with the `raspi-config` CLI tool. Run the following command to open the tool:
1022

11-
[,bash]
1223
----
13-
cat /sys/module/kernel/parameters/consoleblank
24+
sudo raspi-config
1425
----
1526

16-
You can use the `raspi-config` tool to disable screen blanking. Note that the screen blanking setting in `raspi-config` also controls screen blanking when the graphical desktop is running.
27+
Use the arrow keys to navigate and the *Enter* key to select. Select `Display Options` > `Screen Blanking`. Choose `yes` with the arrow keys to enable screen blanking, or `no` to disable screen blanking.
28+
29+
Alternatively, you can add or edit the following lines to `~/.config/wayfire.ini`:
30+
31+
----
32+
[idle]
33+
dpms_timeout=600
34+
----
35+
36+
The `dpms_timeout` variable controls the number of seconds of inactivity required before Raspberry Pi OS blanks your screen. For example, a value of `600` blanks the screen after 600 seconds, or 10 minutes. Set the value to `0` to never blank the screen.
37+
38+
=== Console
1739

18-
=== On the Desktop
40+
The `dpms_timeout` screen blanking configuration used by Raspberry Pi Configuration only effects desktop sessions. In *console mode*, when your Raspberry Pi is connected to a monitor and keyboard with only a terminal for input, use the `consoleblank` setting in the boot command line.
1941

20-
Raspberry Pi OS will blank the graphical desktop after 10 minutes without user input. You can disable this by changing the 'Screen Blanking' option in the Raspberry Pi Configuration tool, available from the *Preferences* menu. The 'Screen Blanking' option also controls screen blanking when the graphical desktop is not running.
42+
==== Set console mode screen blanking
43+
44+
To change the console mode screen blanking configuration, open `/boot/firmware/cmdline.txt` in a text editor as an administrator:
45+
46+
----
47+
sudo nano /boot/firmware/cmdline.txt
48+
----
49+
50+
You can adjust the number of seconds before Raspberry Pi OS blanks the console here. For instance, add `consoleblank=600` to disable HDMI output after 600 seconds of inactivity. Set the value to `0` to never blank the screen.
51+
52+
Changes to `cmdline.txt` only go into effect after a reboot. Use the `reboot` command to reboot your Raspberry Pi.
53+
54+
==== View current screen blanking setting
55+
56+
You can display the current console blank time in seconds with the following command:
57+
58+
[,bash]
59+
----
60+
cat /sys/module/kernel/parameters/consoleblank
61+
----

0 commit comments

Comments
 (0)