mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm/panel-orientation-quirks: Add quirk for Lenovo Tablet 10
@ 2026-12-04 22:19 Your Name
  0 siblings, 0 replies; only message in thread
From: Your Name @ 2026-12-04 22:19 UTC (permalink / raw)
  To: dri-devel; +Cc: hansg, linux-kernel

The Lenovo Tablet 10 (model 20L4S07G1M) has a portrait-mounted 1200x1920
MIPI-DSI panel (DSI-1) which is mounted rotated 90 degrees counter-clockwise.

Adding video=DSI-1:panel_orientation=right_side_up fixes the display
orientation in Plymouth, GDM, and GNOME desktop (including accelerometer
alignment when detached from the keyboard dock).

Add a panel orientation quirk entry for this device so it works out of
the box without needing manual kernel parameters.

Hardware DMI modalias:
dmi:bvnLENOVO:bvrN29ET49W(1.29):bd09/11/2020:br1.29:efr1.22:svnLENOVO:pn20L4S07G1M:pvrLenovoTablet10:rvnLENOVO:rn20L4S07G1M:rvrNotDefined:cvnLENOVO:ct32:cvrNone:skuLENOVO_MT_20L4LenovoTablet10:pfaLenovoTablet10:

Signed-off-by: Yevhen Kovhar <ken20001@ukr.net>
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 1234567890ab..abcdef123456 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -260,6 +260,12 @@ static const struct dmi_system_id orientation_data[] = {
 		},
 		.driver_data = (void *)&lcd1200x1920_rightside_up,
 	}, {	/* Lenovo Tablet 10 */
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "LenovoTablet10"),
+		},
+		.driver_data = (void *)&lcd1200x1920_rightside_up,
+	}, {	/* Lenovo IdeaPad Duet 3 10IGL5 */
 		.matches = {
 			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
 			DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "IdeaPad Duet 3 10IGL5"),
-- 
2.47.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-04 22:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-04 22:19 [PATCH] drm/panel-orientation-quirks: Add quirk for Lenovo Tablet 10 Your Name

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®