You are not logged in.

#1 2026-11-14 00:43:38

Potomac
Member
Registered: 2011-12-25
Posts: 559

Bad gamma (RGB range) with Kernel 7.3.4 and AMD Radeon GPU over HDMI

Hello,

I have an AMD Radeon RX 7600 GPU graphic card, HDMI connection is used.

Since the update of Linux kernel to 7.3.4 version I notice a gamma problem : the colors are not good, the black color is not a truly black, it is a kind of dark grey.

If I ask to Gemini it says that kernel 7.3.4 has a regression about RGB color range detection for amdgpu driver over HDMI connection :

Gemini AI wrote:

The kernel defaults to a limited RGB color range (16–235) instead of the full range (0–255).

Workaround :

Force the full RGB range in KDE Plasma. Although the issue appears as early as boot, you can fix it once you log in. Open System Settings > Display and Monitor, then change the "RGB Range" option from "Automatic" to "Full." Automatic detection is broken in the 7.3 series when using AMD GPUs.

If I set KDE Plasma to use full RGB range then the gamma is correct, the black color is now a solid black.

Do you know if there is a kernel boot option for forcing full RGB range ?

I use HDMI connection, probably the bug will not happen if Display Port or DVI connection are used, as Display Port and DVI use full RGB range values (0-255) by default,

HDMI can select 2 ranges for RGB :

- limited range (16-235) if Linux kernel detects the HDMI screen as a TV screen,
- full range (0-255) if Linux kernel detects the HDMI screen as a PC monitor.

Last edited by Potomac (2026-11-14 03:55:15)

Offline

#2 2026-11-14 04:45:08

PaulStogov
Member
From: Saint-Petersburg, Russia
Registered: 2009-12-26
Posts: 27

Re: Bad gamma (RGB range) with Kernel 7.3.4 and AMD Radeon GPU over HDMI

Seconded this!
When switching back to 7.2.15 I get normal (usual, comfort) picture.
Navi 10 Radeon RX 5600


Asus N61J/ATi Radeon HD5730
Toshiba A200/ATi Radeon HD2600

Offline

#3 2026-11-14 10:55:17

Potomac
Member
Registered: 2011-12-25
Posts: 559

Re: Bad gamma (RGB range) with Kernel 7.3.4 and AMD Radeon GPU over HDMI

Thanks for the confirmation.

I made a bug report here :
https://gitlab.freedesktop.org/drm/amd/ … items/6134

Another Arch Linux user has the same problem here :

Sebastian Meyer wrote:

I don't know if this is the right thread to post this, but I'm seeing the same issue after upgrading from kernel 7.2.14 to 7.3.4 while using an RX 5700XT with my primary monitor connected via a DP->HDMI adapter and my second monitor connected via HDMI directly.
The color range is correct initially on boot, but it goes wrong as soon as my initramfs loads the AMDGPU firmware while I'm entering my root-FS's LUKS passphrase. The black background color turns gray on both screens and it stays like this.
In Plasma, I had "automatic" as color range selected. By choosing "full" it forces the correct color range, but this is of course only fixed within the DE itself, not during the boot phase or when switching to a different TTY.

https://gitlab.freedesktop.org/drm/amd/ … te_3780963

The bug occurs when HDMI connection is used (or a Diplay Port to HDMI adapter) for connecting the screen to the graphic card.

Last edited by Potomac (2026-11-14 10:58:33)

Offline

#4 2026-11-15 02:14:55

Potomac
Member
Registered: 2011-12-25
Posts: 559

Re: Bad gamma (RGB range) with Kernel 7.3.4 and AMD Radeon GPU over HDMI

Someone made a git bisect and found the commit that triggers the bug.

Leon wrote:

Both commits kinda introduced it, reverting either one fixes the issue:

- eb5650d1 made limited color range the default for RGB color encoding
- 106b4a2a subsequently changed the default color encoding from YCbCr 4:4:4 to RGB

https://gitlab.freedesktop.org/drm/amd/ … te_3784047

Reverting the eb5650d1f367722d0136de18998749008fe7d2a7 commit fixes the bug, I made a patch :
https://gitlab.freedesktop.org/-/projec … -bug.patch

Note that that some users don't have the bug, even if they use amdgpu and HDMI connection, the bug can occur if the content of EDID data (located inside the PC monitor)  has some informations that trigger the bug, probably changes made in 7.3.x break the compatibility with some PC monitors about RGB capabilities.

Last edited by Potomac (2026-11-15 02:20:09)

Offline

#5 2026-11-15 19:14:03

iamrusty
Member
Registered: 2025-01-11
Posts: 4

Re: Bad gamma (RGB range) with Kernel 7.3.4 and AMD Radeon GPU over HDMI

I have the same problem on Linux 7.3.4 with X11 and i3. I temporarily fixed it by forcing the RGB range to Full:

xrandr --output HDMI-1 --set "Broadcast RGB" "Full"

Last edited by iamrusty (2026-11-15 19:15:00)

Offline

#6 2026-11-16 16:01:15

oech3
Member
Registered: 2017-09-03
Posts: 77

Re: Bad gamma (RGB range) with Kernel 7.3.4 and AMD Radeon GPU over HDMI

I was needed to use custon EDID since solution at userspace user is compositor specific.

$ wxedid /sys/class/drm/card1-HDMI-A-*/edid

make set 0 rYCbCr 4:2:* of CEA-861 header, remove all 1920 x 1080 (if you use the size) belonging to CEA-816, save as

/usr/lib/firmware/edid/edid.bin

Set kernel param

drm.edid_firmware=HDMI-A-*:edid/edid.bin

Offline

#7 2026-11-17 04:53:39

lpr1
Member
Registered: 2017-10-08
Posts: 127

Re: Bad gamma (RGB range) with Kernel 7.3.4 and AMD Radeon GPU over HDMI

Same issue, HDMI, Broadcast RGB as an workaround.

Offline

Board footer

Powered by FluxBB