Friday, March 29, 2013

How to deactivate monitor sleep in Raspbery Pi

This is my personal experience. I have installed "Raspbery Pi Wheezy" in to my raspberry pi. I used it to display some browser based dashboard and it going to sleep mode frequently. i found this solution from one of the site i couldn't' remember what it is. Following was the solution what i have used to avoid this issue. It's worked perfect.

1. Open a root terminal in raspberry Pi. Now  you need to edit your script that's starting X. In the default build with lightdm.
2. Open "lightdm.conf" file located in, 

     /etc/lightdm/lightdm.conf

3. Add below line in to SeatDefault section.
[SeatDefaults]
xserver-command=X -s 0 -dpms
4. Restart your Raspberry Pi.
Now issue should be solved.

7 comments:

徐梦阳 said...

I am a people from china ,your job really helped me , thank you very much!

徐梦阳 said...

your job really helped me ,thank you very much!

Suresh Jayawardana said...
This comment has been removed by the author.
Suresh Jayawardana said...

there are more topic under seatDefaults.so can i add this code any where under the seatDefaults or have a special place..?

can u help me

3toe Productions said...

Do i need to remove the # before the line of code

Anonymous said...

Yes, you must remove the # before the line of code.

# lines are ignored

Anonymous said...

this step use but screen few second go to sleep what to do?