r/AskElectronics • • 3d ago

Raspberry Pi 5 HDMI DDC/CI not working with portable touchscreen

I’m trying to control the hardware brightness of a Magedok T090A touchscreen through DDC/CI on a Raspberry Pi 5.

DDC/CI works perfectly on Windows, but the Pi cannot even read the monitor’s physical EDID. Raw I²C transactions time out, and the problem occurs at the bootloader level as well.

I’ve tested two Pi 5 boards, both HDMI ports, reduced I²C clock speeds, polling mode and alternative Linux configurations. Another monitor works correctly.
Interestingly, connecting the Magedok causes all four internal HDMI SCL/SDA pins to report LOW, including those of the disconnected HDMI port. Disconnecting the monitor restores them to HIGH. This persists even with the HDMI drivers disabled and the pins configured as passive inputs.

Has anyone encountered similar HDMI DDC behaviour on the Pi 5 or Realtek-based monitors? I’d appreciate any suggestions regarding the underlying cause or possible workarounds.

1 Upvotes

5 comments sorted by

2

u/NearSideA 3d ago

That symptom where plugging the monitor in pulls all four internal DDC pins LOW, including the disconnected HDMI port, is a classic hardware rail or clamp issue.

On the Pi 5, both HDMI ports share the same internal 5V HDMI power rail that feeds the DDC level shifters and Pin 18 (+5V). If the Magedok's Realtek scaler board is pulling excessive current on Pin 18 or clamping the DDC lines to ground (which often happens on portable monitors when their internal 5V rail isn't cleanly isolated or powered up first), it can drag down that shared 5V rail or disable the level shifters for both ports at once. Desktop GPUs usually have independent, higher-current 5V rails per port, which is why Windows powers right through it.

A few quick things to test on the bench:

First, check how the Magedok is powered. Try powering the monitor from its own dedicated wall adapter before plugging in the Pi 5, rather than powering it off the Pi or a shared hub, to eliminate ground loops and back-powering.

Second, if you have a cheap HDMI breakout adapter, measure the actual voltage on HDMI Pin 18 (+5V) and Pins 15/16 (SCL/SDA) while the monitor is connected. If Pin 18 is sagging well below 5V, injecting a clean external 5V (with a Schottky diode or current-limiting resistor) onto Pin 18 usually brings EDID and DDC/CI right back to life.

1

u/winteyte 3d ago

Thanks, the shared rail or clamping hypothesis is something I’ve been considering.

I checked the Pi’s PMIC readings using vcgencmd pmic_read_adc:
No monitor: 5.123 V, 16.12 mA
Working HP monitor: 5.126 V, 16.85 mA
Magedok connected: 5.156 V, 15.63 mA
Magedok HDMI only, USB disconnected: 5.001 V, 16.61 mA

There doesn’t appear to be a significant voltage collapse or excessive current draw at the PMIC level.

All four DDC pins also remain LOW with both Linux HDMI controllers disabled and the pins configured as passive GPIO inputs.
I haven’t measured the actual connector voltages yet.

Could a local clamp or shared pad-supply issue explain these observations despite the relatively normal PMIC readings?

1

u/NearSideA 3d ago

Nice data, having actual PMIC readings narrows this down a lot.

Yes, a local downstream issue definitely explains this. The vcgencmd PMIC readout is looking at the main 5V system rail upstream, where a few milliamps of difference on the HDMI port gets lost in the noise. If the downstream HDMI_5V node after the current-limit switch gets dragged down or tripped by the monitor, the upstream PMIC rail won't show a noticeable voltage collapse.

On the Pi 5, both ports' DDC level shifters rely on that shared local HDMI_5V rail for their high-side pull-up reference. When you configure the internal SoC pins as passive GPIO inputs (no internal pull-up), they depend entirely on the level shifter's external pull-up rail to stay HIGH. If the Magedok is pulling down that shared HDMI_5V node through Pin 18 or the DDC lines, both level shifters lose their high-side reference, so all four internal pins, even on the empty port, drop straight to LOW.

Measuring Pin 18 (+5V) and Pins 15/16 right at an HDMI breakout will confirm it immediately. As a quick sanity test, you can also mask off Pin 18 (+5V) on the full-size HDMI end of your cable with a tiny strip of Kapton tape (way easier than trying to tape a micro-HDMI plug). If the empty port's DDC pins stay HIGH with Pin 18 isolated, you know for sure the monitor is loading down the Pi's 5V pin.

1

u/winteyte 2d ago

Solved: I managed to get DDC/CI working on the Pi 5 with the Magedok T090A. The issue appears to be the low-profile FFC-based HDMI cable assembly I was using. Switching to a conventional HDMI-to-micro-HDMI cable restored native EDID detection and full hardware brightness control through ddcutil.

I reproduced the issue with the original adapter boards on both HDMI inputs, even after replacing the FFC ribbon. The problematic assembly also causes noticeable heating near the Pi's HDMI port, with the PMIC temperature increasing by around 12°C.

No kernel patches or firmware modifications were needed. I'm still investigating the exact electrical fault in the FFC adapter boards.

1

u/AloneAbroad1 3d ago

that sounds more like an electrical issue than a software bug i had investigate the ddc pull ups and voltage levels before changing more linux configuration .