From patchwork Mon Mar 31 17:03:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mark Dietzer X-Patchwork-Id: 14033814 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 790ACC3600B for ; Mon, 31 Mar 2025 17:03:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C89F010E05A; Mon, 31 Mar 2025 17:03:48 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="PRrAmqNg"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 965B210E05A for ; Mon, 31 Mar 2025 17:03:45 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 8B2EF4366B; Mon, 31 Mar 2025 17:03:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id C5AF5C4CEE3; Mon, 31 Mar 2025 17:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1743440617; bh=zYUBTx3mP3FxfTSGErZ2JJwH6vnMYKAlrU3a0Dl0ZXk=; h=From:Date:Subject:To:Cc:Reply-To:From; b=PRrAmqNgtIDA+kR0ViCSFkcepfjq0kq2B8xNNSLfZ4a4zR2FpL4a/+OvHH4h1akhp cC3OSOEvWDU0Oj8kpauJwB1b2sTcRS1n7UcWjtkHaeATA75qQYqhOTch08nDYQ6IAK EMulF4yRDFLpJAiK8woJrA17HHST2OOtnhc2dbOgsCAjgEW9h5VEGBkZcQw619a4dt ceONc12PmdsTG7vFcsWFTDGS+Jyu6zl5TtDd09h7i+z0FtZ+6BcyvZ63bwOTFR5Do2 XGh7BHBbmE86alGI0E0yUy1pNd9F7/XEYIhLRjckdiqpMIUIQYfLJbJjn5fN2AbghU 5ZV7kFVYBOvYw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0F56C3600B; Mon, 31 Mar 2025 17:03:37 +0000 (UTC) Date: Mon, 31 Mar 2025 10:03:33 -0700 Subject: [PATCH v3] drm: panel-backlight-quirks: Add Framework 16 panel MIME-Version: 1.0 Message-Id: <20250331-framework16-drm-quirks-v3-1-7fd29770a918@doridian.net> X-B4-Tracking: v=1; b=H4sIAOXK6mcC/4WOQW7DIBBFrxKx7lhAbAxd5R5VFgSGepRi3MF1W 0W+e4kv0M2X3uI/vYeoyIRVvJ4egnGjSmVucH45iTD5+R2BYmOhpR6k1hYS+4zfhe/KQOQMn1/ E9wpjfxtslHI8WyPaeWFM9HOI366NE5cM68ToD50KzlilEPo49NBb6eEWpGsTtXMOLRpz8cvSJ V/X7OmjCyU/vRPVtfDv0bvpp/3ftE2DgjAmn6xJA7p4iYUpkp+7GVdx3ff9D8XlE+8HAQAA X-Change-ID: 20250228-framework16-drm-quirks-74b58d007386 To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Mark Dietzer , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1743440617; l=1963; i=git@doridian.net; s=20250228; h=from:subject:message-id; bh=ZU/61npGl+rwUoUEE7wnye9HmuwhwaVSQG0fvTUZY9k=; b=8cNITSsSusv0HSWzqGUPM3xOgLyl5BeDJyoHuVZMAJik6fSOLLTq4zTFDMXsj5MLfJEtXbeZE 3n6etJtw7WbAPeF+zTDTX6GnDHDArlR3+lK58lLwozmr4tSAg296RSn X-Developer-Key: i=git@doridian.net; a=ed25519; pk=XY9bZ7EBhoLNoRt6zd2/vutpAXC3tsX6OytpZHjbUsQ= X-Endpoint-Received: by B4 Relay for git@doridian.net/20250228 with auth_id=353 X-Original-From: Mark Dietzer X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: git@doridian.net Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Mark Dietzer From: Mark Dietzer Similarly for the Framework 13 panels already handled in those quirks, the 16 can be helped by the same kind of patch. I have run this on my own 16 for multiple months (hard coding the value to 0 before the quirks made it upstream) and it has resulted in a darker minimum brightness (as expected) and no issues. The Framework community threads between the 13 and 16 for this improvement are the same one, so user reports in the link below will be mixed and likely more focused on the 13. Link: https://community.frame.work/t/solved-even-lower-screen-brightness/25711/60 Signed-off-by: Mark Dietzer Reviewed-by: Thomas Weißschuh --- Changes in v3: - Fix the EDID, first submission was incorrect - Link to v2: https://lore.kernel.org/r/20250228-framework16-drm-quirks-v2-1-c7faf86f5e9d@doridian.net --- drivers/gpu/drm/drm_panel_backlight_quirks.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- base-commit: 76544811c850a1f4c055aa182b513b7a843868ea change-id: 20250228-framework16-drm-quirks-74b58d007386 Best regards, diff --git a/drivers/gpu/drm/drm_panel_backlight_quirks.c b/drivers/gpu/drm/drm_panel_backlight_quirks.c index c477d98ade2b41314d4218281ced7d3c4d087769..1370fd02f0e0667ef8ec76839d415092102e02c8 100644 --- a/drivers/gpu/drm/drm_panel_backlight_quirks.c +++ b/drivers/gpu/drm/drm_panel_backlight_quirks.c @@ -41,6 +41,14 @@ static const struct drm_panel_min_backlight_quirk drm_panel_min_backlight_quirks .ident.name = "NE135A1M-NY1", .min_brightness = 0, }, + /* 16 inch panel */ + { + .dmi_match.field = DMI_BOARD_VENDOR, + .dmi_match.value = "Framework", + .ident.panel_id = drm_edid_encode_panel_id('B', 'O', 'E', 0x0bc9), + .ident.name = "NE160QDM-NZ6", + .min_brightness = 0, + }, }; static bool drm_panel_min_backlight_quirk_matches(const struct drm_panel_min_backlight_quirk *quirk,