stjohnbee
Posts: 10
Joined: Mon Jan 21, 2013 6:13 pm

Keeping Pi touchscreen out of sleep mode without a graphical interface

Mon Jan 08, 2018 7:18 am

Hi,

I am using a Pi as a NAS in my home set up. I have the Pi connected to a touchscreen and would like to show information in real time such as CPU and memory usage, throughput, connections, etc. on the screen.

I know I can use several methods such as > /dev/console to print to the screen, but the problem is that the screen goes into sleep mode and won’t come back on.

I am using Raspbian Stretch Light so don’t have a graphical interface running. The only solutions I can see so far assume a graphical interface.

Does anyone know of any packages or configuration options that will force the screen to stay out of sleep mode?

Many thanks in advance.


User avatar
RaTTuS
Posts: 10563
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Keeping Pi touchscreen out of sleep mode without a graphical interface

Mon Jan 08, 2018 1:40 pm

the best way is to add
consoleblank=0
to the end of /boot/cmdline.txt
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

stjohnbee
Posts: 10
Joined: Mon Jan 21, 2013 6:13 pm

Re: Keeping Pi touchscreen out of sleep mode without a graphical interface

Mon Jan 15, 2018 6:53 am

Thank you, RaTTuS. That worked perfectly!

Return to “HATs and other add-ons”