From: Daniel Vetter <daniel@ffwll.ch>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Sean Paul <seanpaul@chromium.org>,
David Airlie <airlied@linux.ie>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm: panel-orientation-quirks: Add quirk for Acer One 10 (S1003)
Date: Tue, 16 Oct 2018 14:22:41 +0200 [thread overview]
Message-ID: <20181016122241.GS31561@phenom.ffwll.local> (raw)
In-Reply-To: <20181012101610.29100-1-hdegoede@redhat.com>
On Fri, Oct 12, 2018 at 12:16:10PM +0200, Hans de Goede wrote:
> The Acer One 10 uses a clamshell design with a detachable keyboard.
> As such in normal operating mode, with the keyboard attach the device
> is in landscape mode (and the Acer logo at boot also shows in landscape
> mode).
>
> But the device uses a portrait screen rotated 90 degrees (sigh). This
> commit adds a quirk for this device so that we shown the fbcon the
> right way up and that we hint userspace to also show e.g. plymouth and
> gdm the right way up.
>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Bugzilla link or other report here would be good. If you have any.
Also cc: stable I'd say?
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> ---
> drivers/gpu/drm/drm_panel_orientation_quirks.c | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> index 280a41d33081..ab4e70e63f6e 100644
> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> @@ -30,6 +30,12 @@ struct drm_dmi_panel_orientation_data {
> int orientation;
> };
>
> +static const struct drm_dmi_panel_orientation_data acer_s1003 = {
> + .width = 800,
> + .height = 1280,
> + .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
> +};
> +
> static const struct drm_dmi_panel_orientation_data asus_t100ha = {
> .width = 800,
> .height = 1280,
> @@ -75,7 +81,13 @@ static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = {
> };
>
> static const struct dmi_system_id orientation_data[] = {
> - { /* Asus T100HA */
> + { /* Acer One 10 (S1003) */
> + .matches = {
> + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Acer"),
> + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"),
> + },
> + .driver_data = (void *)&acer_s1003,
> + }, { /* Asus T100HA */
> .matches = {
> DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
> DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100HAN"),
> --
> 2.19.0
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2018-10-16 12:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-12 10:16 [PATCH] drm: panel-orientation-quirks: Add quirk for Acer One 10 (S1003) Hans de Goede
2018-10-16 12:22 ` Daniel Vetter [this message]
2018-10-17 12:11 ` Hans de Goede
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=20181016122241.GS31561@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--cc=hdegoede@redhat.com \
--cc=seanpaul@chromium.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