mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Your Name <ken20001@ukr.net>
To: dri-devel@lists.freedesktop.org
Cc: hansg@kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] drm/panel-orientation-quirks: Add quirk for Lenovo Tablet 10
Date: Sat, 05 Dec 2026 00:19:56 +0200	[thread overview]
Message-ID: <auto.1796422945.625278000.jfv9rcex@ukr.net> (raw)

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

                 reply	other threads:[~2026-12-04 22:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=auto.1796422945.625278000.jfv9rcex@ukr.net \
    --to=ken20001@ukr.net \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hansg@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®