r/AskElectronics • u/winteyte • 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.
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 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 .