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, 


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


徐梦阳 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 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?

Anonymous said...

This is the only thing that has worked for me! Thank you so much for sharing! Finally my Raspberry is staying on for longer then 10 minutes!

Anonymous said...

Thanks man.. This helped me out..

Anonymous said...

Thanks !