0

want to prevent Raspberry Pi from going to sleep I tried below mentioned Solution but my pi is going to sleep every 10 min.

I am using Raspbian OS with Raspberry Pi 2

1.I installed xscreensaver and disabled it

2.I added xserver-command=X -s 0 -dpms to sudo nano /etc/lightdm/lightdm.conf.also test it by changing to xserver-command=X -s 0 dpms.

3.I added consoleblank=0 to sudo nano /boot/cmdline.txt.

Nothing works can any one help me for this?

  • where in /etc/lightdm/lightdm.conf did you add that? – Jaromanda X May 6 '19 at 10:05
  • have you tried everything in raspberrypi.org/forums/viewtopic.php?t=202859 ... exactly as stated in that thread – Jaromanda X May 6 '19 at 10:07
  • @JaromandaX at the last I added the lines and Yes I tried Everything from Link you provided – joker2368 May 6 '19 at 10:12
  • I added the lines ... where – Jaromanda X May 6 '19 at 10:16
  • I added the line in end of file – joker2368 May 6 '19 at 10:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.