You are not logged in.

#1 2025-02-15 07:41:42

uchouT
Member
Registered: 2025-02-04
Posts: 20

HDR can't be enabled while my device support HDR

I'm running my desktop on KDE/wayland, and I couldn't find HDR toggle in the System Settings. When I run `kscreen-docor -o` , it shows HDR incapable:

Output: 1 eDP-1
        enabled
        connected
        priority 1
        Panel
        Modes:  1:2880x1800@120*!  2:2880x1800@120  3:2880x1800@48  4:1920x1200@120  5:1920x1080@120  6:1600x1200@120  7:1680x1050@120  8:1280x1024@120  9:1440x900@120  10:1280x800@120  11:1280x720@120  12:1024x768@120  13:800x600@120  14:640x480@120  15:1600x1200@60  16:1280x1024@60  17:1024x768@60  18:2560x1600@60  19:1920x1200@60  20:1280x800@60  21:2880x1620@60  22:2560x1440@60  23:1920x1080@60  24:1600x900@60  25:1368x768@60  26:1280x720@60 
        Geometry: 0,0 1440x900
        Scale: 2
        Rotation: 1
        Overscan: 0
        Vrr: Automatic
        RgbRange: unknown
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer efficiency and performance
        Brightness control: supported, set to 15% and dimming to 100%

But my device support HDR indeed:

cat /sys/class/drm/card1-eDP-1/edid | edid-decode 
edid-decode (hex):

00 ff ff ff ff ff ff 00 4c 83 97 41 00 00 00 00
00 20 01 04 b5 1e 13 78 03 0b d1 af 51 3d b6 23
0b 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 cb fe 40 64 b0 08 18 70 20 08
88 00 2e bd 10 00 00 1b cb fe 40 64 b0 08 c8 7a
20 08 88 00 2e bd 10 00 00 1b 00 00 00 fd 00 30
78 da da 42 01 00 00 00 00 00 00 00 00 00 00 02
00 01 00 00 19 96 c8 3a 15 46 c8 00 00 00 01 14

70 20 79 02 00 20 00 0c ba 41 59 97 41 00 00 00
00 00 16 00 21 00 1d b8 0b 6c 07 40 0b 08 07 00
f2 ea 50 d7 d3 b6 3d 42 0b 01 45 54 40 5e d0 60
18 10 23 78 26 00 09 07 06 03 00 00 00 50 00 00
22 00 14 e6 f3 09 84 3f 0b 63 00 1f 00 07 00 07
07 17 00 07 00 07 00 81 00 1f 73 1a 00 00 03 03
30 78 00 a0 74 02 60 02 78 00 00 00 00 8d e3 05
80 00 e6 06 05 01 74 60 02 00 00 00 00 00 2f 90

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: SDC
    Model: 16791
    Made in: 2022
  Basic Display Parameters & Features:
    Digital display
    Bits per primary color channel: 10
    DisplayPort interface
    Maximum image size: 30 cm x 19 cm
    Gamma: 2.20
    Supported color formats: RGB 4:4:4
    First detailed timing includes the native pixel format and preferred refresh rate
    Display supports continuous frequencies
  Color Characteristics:
    Red  : 0.6835, 0.3164
    Green: 0.2402, 0.7138
    Blue : 0.1396, 0.0439
    White: 0.3125, 0.3291
  Established Timings I & II: none
  Standard Timings: none
  Detailed Timing Descriptors:
    DTD 1:  2880x1800  120.001398 Hz  16:10   218.883 kHz    652.270000 MHz (302 mm x 189 mm)
                 Hfront   32 Hsync   8 Hback   60 Hpol P
                 Vfront    8 Vsync   8 Vback    8 Vpol N
    DTD 2:  2880x1800   48.000559 Hz  16:10   218.883 kHz    652.270000 MHz (302 mm x 189 mm)
                 Hfront   32 Hsync   8 Hback   60 Hpol P
                 Vfront    8 Vsync   8 Vback 2744 Vpol N
    Display Range Limits:
      Monitor ranges (Range Limits Only): 48-120 Hz V, 218-218 kHz H, max dotclock 660 MHz
    Manufacturer-Specified Display Descriptor (0x02): 00 02 00 01 00 00 19 96 c8 3a 15 46 c8 00 00 00 '.........:.F....'
  Extension blocks: 1
Checksum: 0x14

----------------

Block 1, DisplayID Extension Block:
  Version: 2.0
  Extension Count: 0
  Display Product Primary Use Case: None of the listed primary use cases; generic display
  Product Identification Data Block (0x20), OUI BA-41-59:
    Product Code: 16791
    Year of Manufacture: 2022
  Display Parameters Data Block (0x21):
    Image size: 300.0 mm x 190.0 mm
    Display native pixel format: 2880x1800
    Scan Orientation: Left to Right, Top to Bottom
    Luminance Information: Minimum guaranteed value
    Color Information: CIE 1931
    Audio Speaker Information: integrated
    Native Color Chromaticity:
      Primary #1:  (0.684082, 0.315918)
      Primary #2:  (0.239990, 0.714111)
      Primary #3:  (0.139893, 0.043945)
      White Point: (0.312744, 0.329102)
    Native Maximum Luminance (Full Coverage): 400.000000 cd/m^2
    Native Maximum Luminance (10% Rectangular Coverage): 616.000000 cd/m^2
    Native Minimum Luminance: 0.000500 cd/m^2
    Native Color Depth: 12 bpc
    Display Device Technology: Organic LED
    Native Gamma EOTF: 2.20
  Display Interface Features Data Block:
    Supported bpc for RGB encoding: 6, 8, 10
    Supported bpc for YCbCr 4:4:4 encoding: 8, 10
    Supported bpc for YCbCr 4:2:2 encoding: 8, 10
    Supported color space and EOTF standard combination 1: DCI-P3, BT.2020/SMPTE ST 2084
  Video Timing Modes Type 7 - Detailed Timings Data Block:
    DTD:  2880x1800  120.000110 Hz  16:9    218.880 kHz    652.263000 MHz (aspect 16:9, no 3D stereo, preferred)
               Hfront   32 Hsync   8 Hback   60 Hpol N
               Vfront    8 Vsync   8 Vback    8 Vpol N
  CTA-861 DisplayID Data Block:
  Vendor-Specific Data Block (AMD), OUI 00-00-1A:
    Version: 3
    Feature Caps: 0x03
    Minimum Refresh Rate: 48 Hz
    Maximum Refresh Rate: 120 Hz
    Flags 1.x: 0x00
    Flags 2.x: 0xa0
    Maximum luminance: 116 (616.884 cd/m^2)
    Minimum luminance: 2 (0.000 cd/m^2)
    Unknown: 0x60 0x02
  Colorimetry Data Block:
    BT2020RGB
  HDR Static Metadata Data Block:
    Electro optical transfer functions:
      Traditional gamma - SDR luminance range
      SMPTE ST2084
    Supported static metadata descriptors:
      Static metadata type 1
    Desired content max luminance: 116 (616.884 cd/m^2)
    Desired content max frame-average luminance: 96 (400.000 cd/m^2)
    Desired content min luminance: 2 (0.000 cd/m^2)
  Checksum: 0x2f
Checksum: 0x90

I've search the Internet but all the similar issues revolve around Nvidia, but I use amd.

                  -`                     i@uchouT-laptop
                 .o+`                    ---------------
                `ooo/                    OS: Arch Linux x86_64
               `+oooo:                   Host: HP Envy x360 2-in-1 Laptop 14-fa0xxx
              `+oooooo:                  Kernel: Linux 6.13.2-zen1-1-zen
              -+oooooo+:                 Uptime: 1 hour, 53 mins
            `/:-:++oooo+:                Packages: 1015 (pacman), 8 (flatpak-user)
           `/++++/+++++++:               Shell: bash 5.2.37
          `/++++++++++++++:              Display (SDC4197): 2880x1800 @ 120 Hz (as 1440x900) i]
         `/+++ooooooooooooo/`            DE: KDE Plasma 6.3.0
        ./ooosssso++osssssso+`           WM: KWin (Wayland)
       .oossssso-````/ossssss+`          WM Theme: Layan
      -osssssso.      :ssssssso.         Theme: Layan (OrchisDark) [Qt], Breeze-Dark [GTK2], B]
     :osssssss/        osssso+++.        Icons: Tela-circle [Qt], Tela-circle [GTK2/3/4]
    /ossssssss/        +ssssooo/-        Font: LXGW WenKai (10pt) [Qt], LXGW WenKai (10pt) [GT]
  `/ossssso+/:-        -:/+osssso+-      Cursor: Vimix-dark (24px)
 `+sso+:-`                 `.-/+oso:     Terminal: tabby --no-sandbox
`++:.                           `-/+/    Terminal Font: monospace (14pt)
.`                                 `/    CPU: AMD Ryzen 7 8840HS (16) @ 5.13 GHz
                                         GPU: AMD Phoenix3 [Integrated]
                                         Memory: 6.44 GiB / 30.64 GiB (21%)
                                         Swap: 0 B / 32.00 GiB (0%)

I don't know if the problem with regards to this issue.
I meet the same issue that I run `eglinfo -B` shows

GBM platform:
_amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed (-13)
amdgpu: amdgpu_device_initialize failed.
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 19.1.7, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 24.3.4-arch1.1
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 19.1.7, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 24.3.4-arch1.1
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 19.1.7, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.3.4-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

While `sudo eglinfo -B` is normal.

Any help is appreciated.

Offline

#2 2025-02-15 15:35:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,037

Re: HDR can't be enabled while my device support HDR

your opengl is broken, get rid of amdgpu-pro if installed and maybe throw in

printenv
LIBGL_DEBUG=verbose glxinfo -B
ls -l /usr/lib/libGL*

Offline

#3 2025-02-20 14:30:58

uchouT
Member
Registered: 2025-02-04
Posts: 20

Re: HDR can't be enabled while my device support HDR

Thanks for your remind, but I've never tried amdgpu-pro
printenv

SHELL=/bin/bash
SESSION_MANAGER=local/uchouT-laptop:@/tmp/.ICE-unix/1129,unix/uchouT-laptop:/tmp/.ICE-unix/1129
COLORTERM=truecolor
XDG_CONFIG_DIRS=/home/i/.config/kdedefaults:/etc/xdg
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_MENU_PREFIX=plasma-
GTK_IM_MODULE=fcitx
ICEAUTHORITY=/run/user/1000/iceauth_ruJpse
LC_ADDRESS=zh_CN.UTF-8
GRADLE_HOME=/usr/share/java/gradle
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
TABBY_PLUGINS=
XMODIFIERS=@im=fcitx
DESKTOP_SESSION=plasma
LC_MONETARY=zh_CN.UTF-8
GTK_RC_FILES=/etc/gtk/gtkrc:/home/i/.gtkrc:/home/i/.config/gtkrc
NO_AT_BRIDGE=1
EDITOR=vim
XDG_SEAT=seat0
PWD=/home/i
XDG_SESSION_DESKTOP=KDE
LOGNAME=i
XDG_SESSION_TYPE=wayland
SYSTEMD_EXEC_PID=1231
XAUTHORITY=/run/user/1000/xauth_fOlets
MOTD_SHOWN=pam
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/i/.gtkrc-2.0:/home/i/.config/gtkrc-2.0
HOME=/home/i
LC_PAPER=zh_CN.UTF-8
LANG=en_US.UTF-8
XDG_CURRENT_DESKTOP=KDE
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/plasma-plasmashell.service/memory.pressure
WAYLAND_DISPLAY=wayland-0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
INVOCATION_ID=afa2162d3cb94f0e9b31d75229a270bd
MANAGERPID=876
CHROME_DESKTOP=tabby.desktop
KDE_SESSION_UID=1000
SDL_IM_MODULE=fcitx
XDG_SESSION_CLASS=user
TERM=xterm-256color
USER=i
QT_WAYLAND_RECONNECT=1
KDE_SESSION_VERSION=6
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
DISPLAY=:1
SHLVL=1
LC_TELEPHONE=zh_CN.UTF-8
QT_IM_MODULE=fcitx
LC_MEASUREMENT=zh_CN.UTF-8
XDG_VTNR=1
XDG_SESSION_ID=2
TABBY_CONFIG_DIRECTORY=/home/i/.config/tabby
CRASHDIR=/home/i/.local/share/ShellCrash
XDG_RUNTIME_DIR=/run/user/1000
NODE_PATH=undefined:/opt/Tabby/resources/builtin-plugins:/opt/Tabby/resources/app.asar/node_modules:/home/i/.config/tabby/plugins/node_modules
DEBUGINFOD_URLS=https://debuginfod.archlinux.org 
QT_AUTO_SCREEN_SCALE_FACTOR=0
JOURNAL_STREAM=9:3070
XDG_DATA_DIRS=/home/i/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
GDK_BACKEND=x11
KDE_FULL_SESSION=true
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/home/i/.local/share/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
ORIGINAL_XDG_CURRENT_DESKTOP=KDE
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
KDE_APPLICATIONS_AS_SCOPE=1
MAIL=/var/spool/mail/i
LC_NUMERIC=zh_CN.UTF-8
TERM_PROGRAM=Tabby
_=/usr/bin/printenv
OLDPWD=/home/i/Documents/git

Offline

#4 2025-02-20 18:18:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,037

Re: HDR can't be enabled while my device support HDR

And the other outputs?

Offline

#5 2025-02-21 06:15:59

uchouT
Member
Registered: 2025-02-04
Posts: 20

Re: HDR can't be enabled while my device support HDR

LIBGL_DEBUG=verbose glxinfo -B

name of display: :1
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/i/.drirc: No such file or directory.
using driver amdgpu for 4
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/i/.drirc: No such file or directory.
pci id for fd 4: 1002:1900, driver radeonsi
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/i/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/i/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/i/.drirc: No such file or directory.
/usr/share/libdrm/amdgpu.ids version: 1.0.0
Using DRI3 for screen 0
display: :1  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon Graphics (radeonsi, gfx1103_r1, LLVM 19.1.7, DRM 3.59, 6.13.2-zen1-1-zen) (0x1900)
    Version: 24.3.4
    Accelerated: yes
    Video memory: 512MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 70 MB, largest block: 70 MB
    VBO free aux. memory - total: 13862 MB, largest block: 13862 MB
    Texture free memory - total: 70 MB, largest block: 70 MB
    Texture free aux. memory - total: 13862 MB, largest block: 13862 MB
    Renderbuffer free memory - total: 70 MB, largest block: 70 MB
    Renderbuffer free aux. memory - total: 13862 MB, largest block: 13862 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 512 MB
    Total available memory: 16201 MB
    Currently available dedicated video memory: 70 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Graphics (radeonsi, gfx1103_r1, LLVM 19.1.7, DRM 3.59, 6.13.2-zen1-1-zen)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.3.4-arch1.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.3.4-arch1.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.3.4-arch1.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

ls -l /usr/lib/libGL*

lrwxrwxrwx 1 root root     18 Oct  8  2023 /usr/lib/libGLdispatch.so -> libGLdispatch.so.0
lrwxrwxrwx 1 root root     22 Oct  8  2023 /usr/lib/libGLdispatch.so.0 -> libGLdispatch.so.0.0.0
-rwxr-xr-x 1 root root 718872 Oct  8  2023 /usr/lib/libGLdispatch.so.0.0.0
lrwxrwxrwx 1 root root     14 Oct  8  2023 /usr/lib/libGLESv2.so -> libGLESv2.so.2
lrwxrwxrwx 1 root root     18 Oct  8  2023 /usr/lib/libGLESv2.so.2 -> libGLESv2.so.2.1.0
-rwxr-xr-x 1 root root  71624 Oct  8  2023 /usr/lib/libGLESv2.so.2.1.0
lrwxrwxrwx 1 root root     10 Oct  8  2023 /usr/lib/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root     14 Oct  8  2023 /usr/lib/libGL.so.1 -> libGL.so.1.7.0
-rwxr-xr-x 1 root root 538568 Oct  8  2023 /usr/lib/libGL.so.1.7.0
lrwxrwxrwx 1 root root     11 Jul  3  2024 /usr/lib/libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root     15 Jul  3  2024 /usr/lib/libGLU.so.1 -> libGLU.so.1.3.1
-rwxr-xr-x 1 root root 354344 Jul  3  2024 /usr/lib/libGLU.so.1.3.1
lrwxrwxrwx 1 root root     20 Jan 23 08:24 /usr/lib/libGLX_indirect.so.0 -> libGLX_mesa.so.0.0.0
lrwxrwxrwx 1 root root     16 Jan 23 08:24 /usr/lib/libGLX_mesa.so -> libGLX_mesa.so.0
lrwxrwxrwx 1 root root     20 Jan 23 08:24 /usr/lib/libGLX_mesa.so.0 -> libGLX_mesa.so.0.0.0
-rwxr-xr-x 1 root root 416432 Jan 23 08:24 /usr/lib/libGLX_mesa.so.0.0.0
lrwxrwxrwx 1 root root     11 Oct  8  2023 /usr/lib/libGLX.so -> libGLX.so.0
lrwxrwxrwx 1 root root     15 Oct  8  2023 /usr/lib/libGLX.so.0 -> libGLX.so.0.0.0
-rwxr-xr-x 1 root root 137088 Oct  8  2023 /usr/lib/libGLX.so.0.0.0

Offline

#6 2025-07-01 12:55:16

MikeSolar
Member
Registered: 2025-07-01
Posts: 2

Re: HDR can't be enabled while my device support HDR

Same problem. Is there any solution?
My edid:
```
edid-decode (hex):

00 ff ff ff ff ff ff 00 4c 83 9d 41 00 00 00 00
00 20 01 04 b5 1e 13 78 03 cf d1 ae 51 3e b6 23
0b 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 cb fe 40 64 b0 08 38 77 20 08
88 00 2e bd 10 00 00 1b 00 00 00 fd 00 30 78 da
da 42 01 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fe
00 41 54 4e 41 34 30 43 55 30 39 2d 30 20 01 23

70 20 79 02 00 20 00 0c 4c 83 00 9d 41 00 00 00
00 00 20 00 21 00 1d b8 0b 6c 07 40 0b 08 07 00
ee ea 50 ec d3 b6 3d 42 0b 01 45 54 40 5e d0 60
18 10 23 78 26 00 09 07 06 03 00 00 00 50 00 00
22 00 14 e7 f3 09 85 3f 0b 63 00 1f 00 07 00 07
07 17 00 07 00 07 00 81 00 1f 73 1a 00 00 03 03
30 78 00 a0 74 02 60 02 78 00 00 00 00 8d e3 05
80 00 e6 06 05 01 74 60 02 00 00 00 00 00 91 90

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: SDC
    Model: 16797
    Made in: 2022
  Basic Display Parameters & Features:
    Digital display
    Bits per primary color channel: 10
    DisplayPort interface
    Maximum image size: 30 cm x 19 cm
    Gamma: 2.20
    Supported color formats: RGB 4:4:4
    First detailed timing includes the native pixel format and preferred refresh rate
    Display supports continuous frequencies
  Color Characteristics:
    Red  : 0.6826, 0.3164
    Green: 0.2451, 0.7138
    Blue : 0.1396, 0.0439
    White: 0.3125, 0.3291
  Established Timings I & II: none
  Standard Timings: none
  Detailed Timing Descriptors:
    DTD 1:  2880x1800   60.000699 Hz  16:10   218.883 kHz    652.270000 MHz (302 mm x 189 mm)
                 Hfront   32 Hsync   8 Hback   60 Hpol P
                 Vfront    8 Vsync   8 Vback 1832 Vpol N
    Display Range Limits:
      Monitor ranges (Range Limits Only): 48-120 Hz V, 218-218 kHz H, max dotclock 660 MHz
    Empty Descriptor
    Alphanumeric Data String: 'ATNA40CU09-0 '
  Extension blocks: 1
Checksum: 0x23

----------------

Block 1, DisplayID Extension Block:
  Version: 2.0
  Extension Count: 0
  Display Product Primary Use Case: None of the listed primary use cases; generic display
  Product Identification Data Block (0x20), OUI 4C-83-00:
    Product Code: 16797
    Year of Manufacture: 2032
  Display Parameters Data Block (0x21):
    Image size: 300.0 mm x 190.0 mm
    Display native pixel format: 2880x1800
    Scan Orientation: Left to Right, Top to Bottom
    Luminance Information: Minimum guaranteed value
    Color Information: CIE 1931
    Audio Speaker Information: integrated
    Native Color Chromaticity:
      Primary #1:  (0.683105, 0.315918)
      Primary #2:  (0.245117, 0.714111)
      Primary #3:  (0.139893, 0.043945)
      White Point: (0.312744, 0.329102)
    Native Maximum Luminance (Full Coverage): 400.000000 cd/m^2
    Native Maximum Luminance (10% Rectangular Coverage): 616.000000 cd/m^2
    Native Minimum Luminance: 0.000500 cd/m^2
    Native Color Depth: 12 bpc
    Display Device Technology: Organic LED
    Native Gamma EOTF: 2.20
  Display Interface Features Data Block:
    Supported bpc for RGB encoding: 6, 8, 10
    Supported bpc for YCbCr 4:4:4 encoding: 8, 10
    Supported bpc for YCbCr 4:2:2 encoding: 8, 10
    Supported color space and EOTF standard combination 1: DCI-P3, BT.2020/SMPTE ST 2084
  Video Timing Modes Type 7 - Detailed Timings Data Block:
    DTD:  2880x1800  120.000294 Hz  16:10   218.881 kHz    652.264000 MHz (aspect 16:10, no 3D stereo, preferred)
               Hfront   32 Hsync   8 Hback   60 Hpol N
               Vfront    8 Vsync   8 Vback    8 Vpol N
  CTA-861 DisplayID Data Block:
  Vendor-Specific Data Block (AMD), OUI 00-00-1A:
    Version: 3
    Feature Caps: 0x03
    Minimum Refresh Rate: 48 Hz
    Maximum Refresh Rate: 120 Hz
    Flags 1.x: 0x00
    Flags 2.x: 0xa0
    Maximum luminance: 116 (616.884 cd/m^2)
    Minimum luminance: 2 (0.000 cd/m^2)
    Unknown: 0x60 0x02
  Colorimetry Data Block:
    BT2020RGB
  HDR Static Metadata Data Block:
    Electro optical transfer functions:
      Traditional gamma - SDR luminance range
      SMPTE ST2084
    Supported static metadata descriptors:
      Static metadata type 1
    Desired content max luminance: 116 (616.884 cd/m^2)
    Desired content max frame-average luminance: 96 (400.000 cd/m^2)
    Desired content min luminance: 2 (0.000 cd/m^2)
  Checksum: 0x91
Checksum: 0x90
```
My kscreen-doctor -o:
```
Output: 1 eDP-1 122a4043-d417-4555-8e64-03256c9ba00f
        enabled
        connected
        priority 1
        Panel
        replication source:0
        Modes:  1:2880x1800@120*!  2:2880x1800@60  3:1920x1200@120  4:1920x1080@120  5:1600x1200@120  6:1680x1050@120  7:1280x1024@120  8:1440x900@120  9:1280x800@120  10:1280x720@120  11:1024x768@120  12:800x600@120  13:640x480@120  14:1600x1200@60  15:1280x1024@60  16:1024x768@60  17:2560x1600@60  18:2560x1600@120  19:1920x1200@60  20:1280x800@60  21:2880x1620@60  22:2880x1620@120  23:2560x1440@60  24:2560x1440@120  25:1920x1080@60  26:1600x900@60  27:1600x900@120  28:1368x768@60  29:1368x768@120  30:1280x720@60
        Geometry: 0,0 1440x900
        Scale: 2
        Rotation: 1
        Overscan: 0
        Vrr: Automatic
        RgbRange: unknown
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: /home/katherinesolar/.local/share/DisplayCAL/storage/Monitor_1_#1_2025-06-30_22-08_2.2_F-S_XYZLUT+MTX/Monitor_1_#1_2025-06-30_22-08_2.2_F-S_XYZLUT+MTX.icc
        Color profile source: ICC
        Color power preference: prefer accuracy
        Brightness control: supported, set to 85% and dimming to 100%
        Color resolution: automatic (16), range: [8; 16] bits per color
        Allow EDR: never
```
ls -l /usr/lib/libGL*
```
lrwxrwxrwx 1 root root     18  6月14日 07:55 /usr/lib/libGLdispatch.so -> libGLdispatch.so.0
lrwxrwxrwx 1 root root     22  6月14日 07:55 /usr/lib/libGLdispatch.so.0 -> libGLdispatch.so.0.0.0
-rwxr-xr-x 1 root root 460896  6月14日 07:55 /usr/lib/libGLdispatch.so.0.0.0
lrwxrwxrwx 1 root root     14  6月14日 07:55 /usr/lib/libGLESv2.so -> libGLESv2.so.2
lrwxrwxrwx 1 root root     18  6月14日 07:55 /usr/lib/libGLESv2.so.2 -> libGLESv2.so.2.1.0
-rwxr-xr-x 1 root root  63512  6月14日 07:55 /usr/lib/libGLESv2.so.2.1.0
lrwxrwxrwx 1 root root     16 2024年 7月 3日 /usr/lib/libGLEW.so -> libGLEW.so.2.2.0
lrwxrwxrwx 1 root root     16 2024年 7月 3日 /usr/lib/libGLEW.so.2.2 -> libGLEW.so.2.2.0
-rw-r--r-- 1 root root 862136 2024年 7月 3日 /usr/lib/libGLEW.so.2.2.0
lrwxrwxrwx 1 root root     10  6月14日 07:55 /usr/lib/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root     14  6月14日 07:55 /usr/lib/libGL.so.1 -> libGL.so.1.7.0
-rwxr-xr-x 1 root root 460816  6月14日 07:55 /usr/lib/libGL.so.1.7.0
lrwxrwxrwx 1 root root     11 2024年 7月 3日 /usr/lib/libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root     15 2024年 7月 3日 /usr/lib/libGLU.so.1 -> libGLU.so.1.3.1
-rwxr-xr-x 1 root root 354344 2024年 7月 3日 /usr/lib/libGLU.so.1.3.1
lrwxrwxrwx 1 root root     20  6月19日 06:48 /usr/lib/libGLX_indirect.so.0 -> libGLX_mesa.so.0.0.0
lrwxrwxrwx 1 root root     16  6月19日 06:48 /usr/lib/libGLX_mesa.so -> libGLX_mesa.so.0
lrwxrwxrwx 1 root root     20  6月19日 06:48 /usr/lib/libGLX_mesa.so.0 -> libGLX_mesa.so.0.0.0
-rwxr-xr-x 1 root root 297552  6月19日 06:48 /usr/lib/libGLX_mesa.so.0.0.0
lrwxrwxrwx 1 root root     11  6月14日 07:55 /usr/lib/libGLX.so -> libGLX.so.0
lrwxrwxrwx 1 root root     15  6月14日 07:55 /usr/lib/libGLX.so.0 -> libGLX.so.0.0.0
-rwxr-xr-x 1 root root 133064  6月14日 07:55 /usr/lib/libGLX.so.0.0.0
```

Offline

#7 2025-07-01 13:03:33

MikeSolar
Member
Registered: 2025-07-01
Posts: 2

Re: HDR can't be enabled while my device support HDR

Hey, I found a similar problem in the KDE Discuss: https://discuss.kde.org/t/enabling-hdr- … play/36376
May be it works! Let's have a try!

Offline

#8 2025-12-11 19:13:51

agnostic
Member
Registered: 2025-12-11
Posts: 1

Re: HDR can't be enabled while my device support HDR

Solution: Patch EDID to add CTA-861 HDR block

I have the same panel (SDC 16797 / ATNA40CU09-0) on an ASUS Vivobook S 14 with AMD Ryzen AI 9 365. Got HDR working on GNOME 49.

The issue is that GNOME (Mutter) and KDE (KWin) can't read HDR metadata from DisplayID 2.0 extension blocks, they only parse CTA-861 blocks. Our panel has the HDR Static Metadata in DisplayID 2.0 format, so the compositors ignore it even though the kernel exposes HDR_OUTPUT_METADATA.

fix: Create a patched EDID that adds a CTA-861 extension block containing the same HDR data.

1. Dump your original EDID:

sudo cp /sys/class/drm/card1-eDP-1/edid ~/edid-original.bin

2. Create the patched EDID:

Save this as patch_edid.py and run it:

#!/usr/bin/env python3
with open("edid-original.bin", "rb") as f:
    original = bytearray(f.read())

block0 = bytearray(original[0:128])
block1 = bytearray(original[128:256])

# Update extension count 1 -> 2
block0[0x7E] = 0x02

# Recalculate Block 0 checksum
block0[0x7F] = 0
block0[0x7F] = (256 - (sum(block0) % 256)) % 256

# Create CTA-861 block with HDR data copied from DisplayID block
cta = bytearray(128)
cta[0:4] = [0x02, 0x03, 0x23, 0x00]  # CTA header
cta[4:24] = original[0xDA:0xDA+20]   # AMD VSDB (FreeSync)
cta[24:28] = original[0xEE:0xEE+4]   # Colorimetry (BT2020RGB)
cta[28:35] = original[0xF2:0xF2+7]   # HDR Static Metadata

# CTA checksum
cta[127] = (256 - (sum(cta) % 256)) % 256

patched = bytes(block0) + bytes(block1) + bytes(cta)
with open("edid-patched-hdr.bin", "wb") as f:
    f.write(patched)

print(f"Patched EDID saved: {len(patched)} bytes")
cd ~
python3 patch_edid.py

3. Install the patched EDID:

sudo mkdir -p /lib/firmware/edid
sudo cp ~/edid-patched-hdr.bin /lib/firmware/edid/edp-hdr.bin

4. Add to initramfs:

Edit /etc/mkinitcpio.conf:

FILES=(/lib/firmware/edid/edp-hdr.bin)

Rebuild:

sudo mkinitcpio -P

5. Add kernel parameter:

Edit /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="drm.edid_firmware=eDP-1:edid/edp-hdr.bin loglevel=0 quiet splash"
sudo grub-mkconfig -o /boot/grub/grub.cfg

6. Reboot and verify:

cat /sys/class/drm/card1-eDP-1/edid | wc -c  # Should show 384

HDR toggle should now appear in Settings → Displays.

Note: The Python script offsets (0xDA, 0xEE, 0xF2) work for SDC 16797 panels. If you have a different panel, you may need to adjust based on your edid-decode output to find where the AMD VSDB, Colorimetry, and HDR Static Metadata blocks are located.

Offline

#9 2026-01-10 15:44:13

dovahkiin
Member
Registered: 2026-01-10
Posts: 1

Re: HDR can't be enabled while my device support HDR

agnostic wrote:

Note: The Python script offsets (0xDA, 0xEE, 0xF2) work for SDC 16797 panels. If you have a different panel, you may need to adjust based on your edid-decode output to find where the AMD VSDB, Colorimetry, and HDR Static Metadata blocks are located.

I have a slightly different panel (SDC 16796 ATNA40CU05-0), but this isn't working. After patching the EDID, I can't still see the HDR toggle.
Any hint on how to find the proper offset of the blocks you mentioned?

Thanks a lot!

P.S. After studying DisplayID format and some thinkering, I managed to find the offsets for my panel:

cta[4:24] = original[0xc9:0xc9+20]   # AMD VSDB (FreeSync)
cta[24:28] = original[0xdd:0xdd+4]   # Colorimetry (BT2020RGB)
cta[28:35] = original[0xe1:0xe1+7]   # HDR Static Metadata

Now I can see the HDR toggle in KDE settings.
Once again, thanks a lot for the script and the instructions!

Last edited by dovahkiin (2026-01-11 22:46:23)

Offline

#10 Yesterday 14:13:20

Zeroed
Member
Registered: Yesterday
Posts: 1

Re: HDR can't be enabled while my device support HDR

Thanks for those who have provided info here - helped me get my similar laptop working.

Mine is an Asus Vivobook S 16 OLED (M5606) and the panel is SDC 16760 ATNA60BX01-1, but the same problem.

For anyone with the same panel wanting to skip the long detour into DisplayID format, here were the required changes to the patcher program (I don't think that there is freesync on this one, so some changes were necessary):

cta = bytearray(128)
cta[0:4] = [0x02, 0x03, 0x0F, 0x00]
cta[4:8] = original[0xEE: 0xEE + 4]
cta[8:15] = original[0xF2: 0xF2 + 7]

Can't promise anything and it's at your own risk, but worked for me.

Last edited by Zeroed (Yesterday 15:50:37)

Offline

Board footer

Powered by FluxBB