How to disable sleeping on Raspberry pi

后端 未结 6 1772
深忆病人
深忆病人 2021-01-31 17:29

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 co

6条回答
  •  孤独总比滥情好
    2021-01-31 17:42

    Without installing anything, official Raspberry Pi doc:

    On the Console If you are using the Raspberry Pi solely on the console (no desktop GUI), you need to set the console blanking. The current setting, in seconds, can be displayed using

    cat /sys/module/kernel/parameters/consoleblank

    Here, consoleblank is a kernel parameter. In order to be permanently set, it needs to be defined on the kernel command line.

    sudo nano /boot/cmdline.txt

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

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

提交回复
热议问题