Raspberry Pi 4B Raspberry Pi | # Startup Tutorial 04# Set the screen to always be on and prohibit the Raspberry Pi from sleeping

The Raspberry Pi is a microcomputer, and the system comes with a hibernation protection function. However, some people may handle some tasks and want the Raspberry Pi screen to be always on to ensure that the Raspberry Pi is always active. Today I will share how to make the Raspberry Pi screen always bright , A solution to prohibit hibernation.

raspbian system

The Raspbian system uses the lightdm desktop display manager. You can set the xservice desktop interactive display to achieve the purpose of keeping the screen on.

Modify the desktop configuration file lightdm.conf

sudo nano /etc/lightdm/lightdm.conf

Find [Seat:*]this item, #xserver-command=Xdelete the comment symbol # in front of it below and modify it to the following

xserver-command=X -s 0-dpms
Insert picture description here

Among them, the -sparameter: set the screen saver not to start, the 0number is zero, and the -dpmsparameter: turn off the power and save energy management.

Save and exit:, Ctrl+Xpress Y, then press again enter.

Reboot the system

sudo reboot

Guess you like

Origin blog.csdn.net/Naiva/article/details/105196743