Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4501

Troubleshooting • Changing HDMI mode via console on the fly (not in config.txt)

$
0
0
Hi there!

I'm trying to find a way to change the HDMI mode on the fly, via the console, on the latest Raspbian (bookworm 32bits on a RPi Zero 2) but can't seem to find a way of doing this at all.

There's a great topic on this here, describing the same problem I'm facing, but closed without a solution: viewtopic.php?t=284905

Since tvservice has been deprecated (I understand this was a way of achieving what I'm trying to do), does anyone knows a way to change the HDMI mode on the fly, via the console?

Right now my fb0 is set to 1080p, and I want to switch it to 480p via console (not on config.txt).

A bit more context of why I want to do this: I'm running two displays, one Adafruit TFT 2.8" resistive touch on the GPIO and an HDMI projector. I can boot the HDMI on 480p via the config.txt, no problem. But when the Adafruit LCD display initializes, it sets the HDMI to 1080p mode as that's the native resolution of the monitor attached to HDMI (although it supports many other resolutions):

An edid-decode of /sys/class/drm/card1-HDMI-A-1/edid yields (you can see my desired mode 3 in the list, and the native mode it's currently at as mode 16):

Block 1, CTA-861 Extension Block:
Revision: 3
Basic audio support
Supports YCbCr 4:4:4
Supports YCbCr 4:2:2
Native detailed modes: 0
Video Data Block:
VIC 5: 1920x1080i 60.000000 Hz 16:9 33.750 kHz 74.250000 MHz
VIC 3: 720x480 59.940060 Hz 16:9 31.469 kHz 27.000000 MHz
VIC 4: 1280x720 60.000000 Hz 16:9 45.000 kHz 74.250000 MHz
VIC 7: 1440x480i 59.940060 Hz 16:9 15.734 kHz 27.000000 MHz
VIC 16: 1920x1080 60.000000 Hz 16:9 67.500 kHz 148.500000 MHz (native)
VIC 1: 640x480 59.940476 Hz 4:3 31.469 kHz 25.175000 MHz
VIC 32: 1920x1080 24.000000 Hz 16:9 27.000 kHz 74.250000 MHz
VIC 18: 720x576 50.000000 Hz 16:9 31.250 kHz 27.000000 MHz
VIC 19: 1280x720 50.000000 Hz 16:9 37.500 kHz 74.250000 MHz
VIC 20: 1920x1080i 50.000000 Hz 16:9 28.125 kHz 74.250000 MHz
VIC 34: 1920x1080 30.000000 Hz 16:9 33.750 kHz 74.250000 MHz
VIC 22: 1440x576i 50.000000 Hz 16:9 15.625 kHz 27.000000 MHz
VIC 32: 1920x1080 24.000000 Hz 16:9 27.000 kHz 74.250000 MHz

But an fbset -s only lists:

mode "1920x1080"
geometry 1920 1080 1920 1080 16
timings 0 0 0 0 0 0 0
rgba 5/11,6/5,5/0,0/0
endmode

Any clues on where I should start with this? Suuuper thanks!

Statistics: Posted by olifiers — Sun Sep 29, 2024 6:06 pm — Replies 0 — Views 37



Viewing all articles
Browse latest Browse all 4501

Trending Articles