turning off HDMI

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
asplundj
Posts: 12
Joined: Wed Nov 01, 2017 9:03 am

turning off HDMI

Post by asplundj »

I'm using dietpi on my rock64 headless and wonder if there's a way to turn off the HDMI
Fffrank
Posts: 12
Joined: Tue May 01, 2018 5:46 am

Re: turning off HDMI

Post by Fffrank »

"sudo dietpi-config" and then look under the Display options.
asplundj
Posts: 12
Joined: Wed Nov 01, 2017 9:03 am

Re: turning off HDMI

Post by asplundj »

"Display options" was my first guess as well. But there's no option for turning off HDMI on Rock64. I probably need to do it manually. but how?

Johan
User avatar
MichaIng
Site Admin
Posts: 2261
Joined: Sat Nov 18, 2017 6:21 pm

Re: turning off HDMI

Post by MichaIng »

@asplundj
Indeed turning of HDMI completely seems to be possible just for RPi, as RPi comes with some kernel/firmware variables and commands (tvservice -o) to actively disable it.

Quick search didn't lead to a method to do this on Rock64.

If no HDMI is plugged, I am not sure about an actual benefit, but you could reduce the resolution to the minimum to reduce potential framebuffer sizes.
zeroth
Posts: 8
Joined: Tue Jan 08, 2019 1:51 pm

Re: turning off HDMI

Post by zeroth »

/opt/vc/bin/tvservice -o
this worked for me. The only benefit I see is less power consumption from the pi.
User avatar
MichaIng
Site Admin
Posts: 2261
Joined: Sat Nov 18, 2017 6:21 pm

Re: turning off HDMI

Post by MichaIng »

Use dietpi-config > Display Options > Resolution > Headless to have this done automatically on boot.

With v6.20 we improved this a bid, by applying headless mode via "new" undocumented config.txt setting:
https://github.com/Fourdee/DietPi/pull/2402

Code: Select all

hdmi_ignore_hotplug=1
hdmi_ignore_composite=1
The second one is not documented within official docs. In combination with the first, it completely disables the video pipeline of the device including the framebuffer. This is moreless the same that tvservice -o does, but directly from boot and I think with tiny additional benefit, that framebuffer is disabled completely.
The downside is, that you can't re-enable video output without a reboot.
Post Reply