Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EDID colorimetry parameters for DeckHD panels #1595

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
local steamdeck_dhd_colorimetry_spec = {
r = { x = 0.6396, y = 0.3300 },
g = { x = 0.2998, y = 0.5996 },
b = { x = 0.1503, y = 0.0595 },
w = { x = 0.3125, y = 0.3291 }
}

gamescope.config.known_displays.steamdeck_deckhd_lcd = {
pretty_name = "Steam Deck DeckHD - Unofficial Screen Replacement",
dynamic_refresh_rates = {
Expand All @@ -15,10 +22,9 @@ gamescope.config.known_displays.steamdeck_deckhd_lcd = {
max_frame_average_luminance = 400,
min_content_light_level = 0.5
},
-- No colorimetry was provided in the original PR,
-- and I have no idea if their BIOS mod/whatever has colorimetry
-- in their edid.
-- Someone that works on this or uses this should go fix that.
colorimetry = steamdeck_dhd_colorimetry_spec,
--FIXME: Measure colorimetry parameters
--colorimetry = steamdeck_lcd_colorimetry_measured,
dynamic_modegen = function(base_mode, refresh)
debug("Generating mode "..refresh.."Hz for DeckHD")
local mode = base_mode
Expand Down