Files
ps5-linux-image/distros/cachyos/files/ps5-display.lua
Chihab Djaidja 292c9c02fd feat: add CachyOS image (Gamescope + Steam)
- Add distros/cachyos image.yaml and helper files under files/
- Wire kernel packaging and --distro cachyos in build_image.sh
- Stage CachyOS artifacts in image-builder entrypoints; include cachyos in multi image
- Add boot/kexec-cachyos.sh and document in README

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-08 20:40:44 +02:00

26 lines
894 B
Lua

-- Force sRGB colorimetry so gamescope does not set BT2020_RGB on the DP
-- connector. The PS5's internal DP->HDMI bridge cannot correctly translate
-- BT2020 signalling to HDMI, causing a black screen.
gamescope.config.known_displays.ps5_srgb_override = {
pretty_name = "PS5 sRGB Override",
hdr = {
supported = false,
force_enabled = false,
eotf = gamescope.eotf.gamma22,
max_content_light_level = 400,
max_frame_average_luminance = 400,
min_content_light_level = 0.5
},
colorimetry = {
r = { x = 0.640, y = 0.330 },
g = { x = 0.300, y = 0.600 },
b = { x = 0.150, y = 0.060 },
w = { x = 0.3127, y = 0.3290 }
},
matches = function(display)
debug("[ps5_srgb_override] Forcing sRGB for PS5 external display")
return 100
end
}
debug("Registered PS5 sRGB display override")