Welcome to Raspberry Pi 4B repository
2.6 Set screen keep on
Raspberry Pi is a micro-computer, the system comes with hibernation protection, but some people may handle some transactions, I want the Raspberry Pi screen to be always on, to ensure that the Raspberry Pi has been active, and today share how to make the Raspberry Pi screen always bright , a solution that prohibits hibernation.
1.system: raspbian system.
2.Raspbian system uses the lightdm desktop display manager, you can set the xservice desktop interactive display to achieve the purpose of the screen is always bright.
3. Modify the desktop configuration file lightdm.conf
Enter the command shown below at the command terminal:
$sudo nano /etc/lightdm/lightdm.conf
We need to find the [Seat:*] and remove the comment # in front of ‘#xserver-command=X’.
xserver-command=X -s 0-dpms
As shown below.
Tip: -s parameter: set screen protection does not start, 0 number, -dpms parameter: turn off power saving management.
Next, we need to save and exit: Ctrl+X, press Y and press Enter.
4. Restart system
Enter the command shown below at the command terminal:
$sudo reboot