[Bug] Unable to tweak HDR settings even though my display definitely supports it
PS works fine of KDE and windows.
been waiting for this setting for a while now.
scale and orientation settings also broken.
I'll look into this. the HDR options were made around a different monitor so maybe there are some parts that report differently for yours. Could you run this for me?
{
echo "=== hyprctl monitors ==="; hyprctl monitors all -j
echo -e "\n=== EDID per connected output ==="
for f in /sys/class/drm/card*-*/status; do
d=$(dirname "$f"); c=$(basename "$d")
[ "$(cat "$f")" = "connected" ] || continue
echo "-- $c --"
base64 -w0 "$d/edid"; echo
command -v edid-decode &>/dev/null && edid-decode "$d/edid" 2>&1
done
echo -e "\n=== EDID parser output ==="
python3 ~/.config/quickshell/end4-pC/scripts/hyprland/monitor_caps.py $(hyprctl monitors all -j | jq -r '.[].name')
echo -e "\n=== monitors.lua ==="; cat ~/.config/hypr/monitors.lua 2>/dev/null
} > ~/hdr-debug.txt 2>&1; echo "Saved to ~/hdr-debug.txt"
And then just upload the output file here. In the meantime, try editing .~/config/hypr/monitors.lua directly. You'll wanna add the HDR options manually.
hl.monitor({ output = "DP-1", mode = "5120x1440@240", position = "0x0", scale = 1, bitdepth = 10, cm = "hdredid", sdr_max_luminance = 250, max_luminance = 1000, max_avg_luminance = 250, min_luminance = 0, sdr_min_luminance = 0, sdrbrightness = 1, sdrsaturation = 1, })
Keep in mind to change the output, res and refresh to match your current values. If hdredid fails try just entering hdr. You'll likely want to adjust the luminance/brightness values, the unit is nits.
=== hyprctl monitors === [{ "id": 0, "name": "eDP-1", "description": "Samsung Display Corp. 0x41AA", "make": "Samsung Display Corp.", "model": "0x41AA", "serial": "", "width": 2880, "height": 1800, "physicalWidth": 300, "physicalHeight": 190, "refreshRate": 120.00000, "x": 0, "y": 0, "activeWorkspace": { "id": 1, "name": "1" }, "specialWorkspace": { "id": 0, "name": "" }, "reserved": [0, 0, 0, 0], "scale": 2, "transform": 0, "focused": true, "dpmsStatus": true, "vrr": false, "solitary": "0", "solitaryBlockedBy": ["WINDOWED","CANDIDATE"], "activelyTearing": false, "tearingBlockedBy": ["NOT_TORN","CANDIDATE"], "directScanoutTo": "0", "directScanoutBlockedBy": ["USER","SW","CANDIDATE"], "disabled": false, "currentFormat": "XRGB8888", "mirrorOf": "none", "availableModes": ["[email protected]","[email protected]","[email protected]"], "colorManagementPreset": "srgb", "sdrBrightness": 1, "sdrSaturation": 1, "sdrMinLuminance": 0.2, "sdrMaxLuminance": 80, "hardwareCursorsInUse": false }]
=== EDID per connected output === -- card0-eDP-1 -- AP///////wBMg6pBAAAAAAAgAQS1HhN4A8/RrlE+tiMLUFQAAAABAQEBAQEBAQEBAQEBAQEBy/5AZLAIGHAgCIgALr0QAAAby/5AZLAIyHogCIgALr0QAAAbAAAA/QAweNraQgEAAAAAAAAAAAAAAgABAAAZlsg6FUbIAAAAAT1wIHkCACAADLpBWapBAAAAAAAWACEAHbgLbAdACwgHAO7qUOzTtj1CCwFFVEBe0GAYECN4JgAJBwYDAAAAUAAAIgAU5/MJhT8LYwAfAAcABwcXAAcABwCBAB9zGgAAAwMweACgdAJgAngAAAAAjeMFgADmBgUBdGACAAAAAAAJkA== edid-decode (hex):
00 ff ff ff ff ff ff 00 4c 83 aa 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 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 3d
70 20 79 02 00 20 00 0c ba 41 59 aa 41 00 00 00 00 00 16 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 09 90
Block 0, Base EDID: EDID Structure Version & Revision: 1.4 Vendor & Product Identification: Manufacturer: SDC Model: 16810 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 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: 0x3d
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: 16810 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.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: 0x09 Checksum: 0x90
=== EDID parser output === {"eDP-1": {"digital": true, "maxBpc": 10, "hdr": false, "hdrDynamic": false, "source": "/sys/class/drm/card0-eDP-1/edid"}}
=== monitors.lua === hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 10, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 8, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 10, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) transform = 2, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) transform = 1, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 8, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) transform = 3, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) transform = 2, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) transform = 1, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) mode = "2880x1800@120", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) mode = "2880x1800@48", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) transform = 2, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 1, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 0.75, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 1, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 0.75, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) transform = 2, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) transform = 3, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 10, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 8, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 10, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) transform = 1, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) transform = 3, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) transform = 2, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) transform = 1, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "0x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "1x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "19x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "191x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "190x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "191x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "192x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "193x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "194x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "195x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "196x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "197x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "198x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "199x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "200x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "20x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "2x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "23x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "24x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "23x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "22x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "21x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "20x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "19x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "18x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "17x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "16x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "15x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "14x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "13x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "12x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "11x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "10x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "9x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "8x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "7x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "6x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "5x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "4x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "3x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "2x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) position = "1x0", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 2, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 1.75, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 1.5, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 1.25, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 1, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 1.25, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 1, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 0.75, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 0.5, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 0.75, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 10, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 8, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) mode = "2880x1800@120", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 10, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 8, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 1, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 1.25, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 1, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) scale = 0.75, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) mode = "2880x1800@120", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) mode = "2880x1800@120", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) mode = "2880x1800@48", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) mode = "2880x1800@120", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) mode = "2880x1800@120", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) mode = "2880x1800@120", hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 10, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 }) bitdepth = 8, hl.monitor({ output = "eDP-1", mode = "[email protected]", position = "0x0", scale = 2 })
Alright thanks, I found the issue. DisplayID 2.0 isn't supported so I'll pull request that. Anyways you need to remove monitors.lua, it's heavily corrupted, or edit it manually to remove all the hl.monitor lines except for the first one, and split it into one line per option.
@SparkEden It got merged now, try updating the dots and see if it's fixed.
Updated but configurations do not save on restart, nor does hdr untill i turn it on manually?
wide p3 gets it working but i cant change anything.
Right, I'll see what I can do. Are you able to edit Wide (P3) manually in ~/.config/hypr/monitors.lua? Also does monitors.lua get formatted correctly?
generated monitors.lua from scratch
Right, I'll see what I can do. Are you able to edit Wide (P3) manually in ~/.config/hypr/monitors.lua? Also does monitors.lua get formatted correctly?
manual editting doesnt seem to do much either
manual editting doesnt seem to do much either
Might be a hyprland issue then ...
manual editting doesnt seem to do much either
Might be a hyprland issue then ...
Probably
The problem persists and is unable to verify my hdr capability at all anymore 🥲
@ParanoidExtreme