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=X
delete the comment symbol # in front of it below and modify it to the following
xserver-command=X -s 0-dpms
Among them, the -s
parameter: set the screen saver not to start, the 0
number is zero, and the -dpms
parameter: turn off the power and save energy management.
Save and exit:, Ctrl+X
press Y
, then press again enter
.
Reboot the system
sudo reboot