How to disable sleep on raspberries pi

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

Similarly, I need my pi to stay constant. I have a normal Raspbian installation installed and I use the Iceweasel browser to run the web application all day.

I tried each of these suggestions at this link http://www.bitpi.co/2015/02/14/prevent-raspberry-pi-from-sleeping/

However, pi cannot remain for more than 10 minutes. Any help would be greatly appreciated.

+9
source share
4 answers

After a full installation of the OS.

I installed xscreensaver

sudo apt-get install xscreensaver 

After installation, go to the Rpi "Menu" desktop (upper left corner)

Go to preference mode ---> screen saver.

You will see the main screen saver menu. In the mode: section, select "disable screensaver" and close.

Reboot the Rpi. Now it should work.

+25
source

You do not need to install lib, just edit lightdm

1 - Open lightdm using a text editor, for example, using the default editor (nano) .:

sudo nano /etc/lightdm/lightdm.conf

2 - add this line

xserver-command=X -s 0 dpms

+4
source

I created a frame with pi 3 and want the screen to go blank. I installed xscreensaver as in answer 22 and it works fun:

sudo apt-get install xscreensaver

After installation I switched to the desktop Rpi "Menu" (upper left corner)

I went to the preference ---> screen saver.

Then in the: section mode, select "disable screen saver" and close it.

Rebooted Rpi.

+2
source

Without installing anything, the official Raspberry Pi whitepaper:

On the console If you use the Raspberry Pi exclusively on the console (without a graphical desktop interface), you need to set the console blanking. The current setting in seconds can be displayed with

cat/sys/module/kernel/parameters/consoleblank

Here consoleblank is the kernel parameter. To be permanently installed, this must be specified on the kernel command line.

sudo nano/boot/cmdline.txt

Add consoleblank=0 to completely turn off screen blanking, or edit it to set the number of seconds of inactivity before the console goes blank. Note that the kernel command line must be a single line of text.

https://www.raspberrypi.org/documentation/configuration/screensaver.md

0
source

Source: https://habr.com/ru/post/989542/


All Articles