How to disable sleeping on Raspberry pi

Javed Ali picture Javed Ali · Jun 22, 2015 · Viewed 67.4k times · Source

I am working on a project similar to the one at http://www.instructables.com/id/Raspberry-Pi-Wall-Mounted-Google-Calendar/?ALLSTEPS

Similarly, I need my pi to stay on constantly. I have the regular Raspbian OS installed and I am using Iceweasel browser to run a web application all day.

I have tried every single one of these suggestions from this link http://www.bitpi.co/2015/02/14/prevent-raspberry-pi-from-sleeping/

Yet the pi fails to stay on longer than 10 minutes. Any help would be greatly appreciated.

Answer

Javed Ali picture Javed Ali · Jun 24, 2015

I installed xscreensaver

  1. sudo apt-get install xscreensaver
  2. Once installed, go to Rpi's desktop "Menu" (left top corner)
  3. Go to preference --> screensaver.
  4. You will see a screen saver main menu. In the mode drop-down menu, select "disable screensaver" then close the window.
  5. Reboot the Raspberry PI.

It should work now.