Running headless Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
lesporos
Posts: 5
Joined: Sun Oct 25, 2020 1:05 am

Running headless

Post by lesporos »

Hello,

I am running dietpi headless and using the hdmi screen to display some stats over the terminal.
My problem is that after about 10 minutes the screen goes blank and I haven't been able to find a way to prevent that.
User avatar
Joulinar
Posts: 2597
Joined: Sat Nov 16, 2019 12:49 am

Re: Running headless

Post by Joulinar »

Hi,

many thanks for your message. Just for clarification: Headless means you are running without screen attached ;)

Back to your topic. Probably you are hit by a screen saver. Ho do you display the stats via HDMI? Do you have some xsession running? Or a web browser? Or via plain CLI?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
lesporos
Posts: 5
Joined: Sun Oct 25, 2020 1:05 am

Re: Running headless

Post by lesporos »

You're right,
I meant to say that I don't have a graphical desktop.
I am running padd on boot from .bashrc
User avatar
WarHawk
Posts: 634
Joined: Thu Jul 20, 2017 8:55 am

Re: Running headless

Post by WarHawk »

That's a pretty cool application!
User avatar
Joulinar
Posts: 2597
Joined: Sat Nov 16, 2019 12:49 am

Re: Running headless

Post by Joulinar »

I tried to replicate the issue on my RPi3B+ having a normal monitor attached via HDMI. But even after 40 minutes uptime, the screen did not go blank.

can you try to connect a normal screen (I guess you have a waveshare attached) to see how it behaving?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2423
Joined: Sat Nov 18, 2017 6:21 pm

Re: Running headless

Post by MichaIng »

I was wondering if there is any OS/kernel-wise powersave/blanking mechanism as I only know about one through X server and of course the display itself may have one. However, in case of a little LCD I would have expected none as this is usually used to show something permanently without user input, compared to a larger monitor.

However did some search and found: http://ventures.tpedersen.net/projects/ ... osleepdpms (no HTTPS, really? :o)
So please try to add consoleblank=0 to the end of the line in /boot/cmdline.txt.
lesporos
Posts: 5
Joined: Sun Oct 25, 2020 1:05 am

Re: Running headless

Post by lesporos »

Cmdline.txt in /boot/ didn't exist, so I created one though I feel like this is not going to solve the issue.

Here's what's inside:

Code: Select all

 Automation_Custom_Script.sh   FSCK0002.REC                 System.map-3.16.85+   config-3.16.85+        dietpi-LICENSE.txt   dietpi.txt             uInitrd
 FSCK0000.REC                  Image                        boot.ini              dietpi                 dietpi-README.md     initrd.img-3.16.85+    uInitrd-3.16.85+
 FSCK0001.REC                 'System Volume Information'   cmdlinfe.txt          dietpi-CHANGELOG.txt   dietpi-wifi.txt      meson64_odroidc2.dtb   vmlinuz-3.16.85+
Edit: I am on odroid c2, not sure if that makes a difference because what you linked is talking about rpi
Edit2: I found this https://odroid.com/dokuwiki/doku.php?id ... _note_v1.9 but boot.ini didn't have suspend_hdmiphy
User avatar
MichaIng
Site Admin
Posts: 2423
Joined: Sat Nov 18, 2017 6:21 pm

Re: Running headless

Post by MichaIng »

Ah sorry I did erroneously assume it's an RPi. On Odroid C2 add it to /boot/boot.ini setenv bootargs line into the double quotes. The cmdline.txt can be removed, as it is only effective on RPi.
lesporos
Posts: 5
Joined: Sun Oct 25, 2020 1:05 am

Re: Running headless

Post by lesporos »

That seems to have to the trick, thank!
Post Reply