#文中设置均基于最新版的Raspbian系统2016-Version 11
Raspbian in the desktop environment, the system will go into hibernation after a period of time. Tried some methods such as directly with Xset close DPMS, is not successful.
Raspbian uses a lightweight desktop display manager that is LIGHTDM, which allows you to set up Xserver desktop session interaction \ Display, and so on.
1. Open the terminal;
2. Edit/etc/lightdm/lightdm.conf
3. Locate the ' Xserver-command ' in the [Seatdefaults] section, uncomment it, and modify it as follows:
Xserver-command=x-s 0-dpms
-S #--set screen saver is not enabled
-DPMS Shutdown Power Saving management
Click to open link
Open a root terminal in raspberry Pi. Now, need to edit your the script that's starting X. The default build with LIGHTDM.
Open "lightdm.conf" file located in,
/etc/lightdm/lightdm.conf
ADD below line on to Seatdefault section.
[Seatdefaults]
Xserver-command=x-s 0-dpms
Restart your Raspberry Pi.