Hi,
This is another Lenovo with detachable keyboard and 1200x1920 screen
mounted sideways.
The following has been tested with 6.2.0-rc6.
Thanks,
Darrell
index 3659f04..590bb7b 100644
--- a/kernel/drm_panel_orientation
_quirks.c
+++ b/kernel/linux-6.2-rc6/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -304,6 +304,12 @@ static const struct dmi_system_id orientation_data[] = {
DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad
D330-10IGM"),
},
.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"),
+ },
+ .driver_data = (void *)&lcd1200x1920_rightside_up,
}, { /* Lenovo Ideapad D330-10IGL (HD) */
.matches = {
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
Hi Darrell, On 2/3/23 19:32, Darrell Kavanagh wrote: > Hi, > > This is another Lenovo with detachable keyboard and 1200x1920 screen > mounted sideways. > > The following has been tested with 6.2.0-rc6. > > Thanks, > Darrell Thank you for your patch. Note that instead of "Hi, ... Thanks, Darrell" there should be a message describing the what and why of the patch here, see e.g. : https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/gpu/drm/drm_panel_orientation_quirks.c?id=653f2d94fcda200b02bd79cea2e0307b26c1b747 I also notice that the diff output below has a bit weird file-paths, so this patch is clearly not the output of "git format-patch" + "git send-email" on a standard linux source tree git clone. The whole kernel patch workflow can be a bit daunting if you are just trying to submit a small quirk like this. So you can either try again if you want to, or I can fix all of this up for you if that is preferred. If you want me to fix this up for you, there is one thing which I still need from you, your patch is missing a Signed-off-by line in the commit-message. I can only accept patches with a Signed-off-by line in the commit-message like this: Signed-off-by: Your Real Name <email@your.domain> By adding this line you indicate that you are the author of the code and are submitting it under the existing license for the file which you are modifying (typically GPL-2.0) or that you have permission from the author to submit it under this license. See: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin If you want me to fix this up for you, please reply to this email with the proper Signed-off-by: ... line for me to add to the commit message. Regards, Hans > > index 3659f04..590bb7b 100644 > --- a/kernel/drm_panel_orientation > _quirks.c > +++ b/kernel/linux-6.2-rc6/drivers/gpu/drm/drm_panel_orientation_quirks.c > @@ -304,6 +304,12 @@ static const struct dmi_system_id orientation_data[] = { > DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad > D330-10IGM"), > }, > .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"), > + }, > + .driver_data = (void *)&lcd1200x1920_rightside_up, > }, { /* Lenovo Ideapad D330-10IGL (HD) */ > .matches = { > DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), >
Further information: With the above fix, the very early boot console messages are not rotated. adding "fbcon=rotate:1" to the kernel command line corrects this. But these early boot console messages are still garbled - it looks like the display driver in use at the time cannot write to the screen fast enough - lines are half-formed before scrolling. Note that this corrects itself and later boot messages are legible before the plymouth splash (if in use). I can't see anything that looks like useful information re the fb in journalctl immediately preceding the first legible output seen during boot. I've played around with console, earlycon and fbcon parms to no useful effect. Any ideas? Darrell On Fri, 3 Feb 2023 at 18:32, Darrell Kavanagh <darrell.kavanagh@gmail.com> wrote: > > Hi, > > This is another Lenovo with detachable keyboard and 1200x1920 screen > mounted sideways. > > The following has been tested with 6.2.0-rc6. > > Thanks, > Darrell > > index 3659f04..590bb7b 100644 > --- a/kernel/drm_panel_orientation > _quirks.c > +++ b/kernel/linux-6.2-rc6/drivers/gpu/drm/drm_panel_orientation_quirks.c > @@ -304,6 +304,12 @@ static const struct dmi_system_id orientation_data[] = { > DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad > D330-10IGM"), > }, > .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"), > + }, > + .driver_data = (void *)&lcd1200x1920_rightside_up, > }, { /* Lenovo Ideapad D330-10IGL (HD) */ > .matches = { > DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
I've resolved this by adding a matching quirk in drivers/firmware/efi/sysfb_efi.c - see below. Are you the right people to be notifying about this? --- diff --git a/kernel/6.2-rc6 original/sysfb_efi.c b/kernel/6.2-rc6 changes/sysfb_efi.c index 7882d4b..f06fdac 100755 --- a/kernel/6.2-rc6 original/sysfb_efi.c +++ b/kernel/6.2-rc6 changes/sysfb_efi.c @@ -264,6 +264,14 @@ static const struct dmi_system_id efifb_dmi_swap_width_height[] __initconst = { "Lenovo ideapad D330-10IGM"), }, }, + { + /* Lenovo IdeaPad Duet 3 10IGL5 with 1200x1920 portrait screen */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, + "IdeaPad Duet 3 10IGL5"), + }, + }, {}, }; --- Thanks, Darrell On Tue, 7 Feb 2023 at 15:51, Darrell Kavanagh <darrell.kavanagh@gmail.com> wrote: > > Further information: > > With the above fix, the very early boot console messages are not > rotated. adding "fbcon=rotate:1" to the kernel command line corrects > this. But these early boot console messages are still garbled - it > looks like the display driver in use at the time cannot write to the > screen fast enough - lines are half-formed before scrolling. > > Note that this corrects itself and later boot messages are legible > before the plymouth splash (if in use). I can't see anything that > looks like useful information re the fb in journalctl immediately > preceding the first legible output seen during boot. > > I've played around with console, earlycon and fbcon parms to no useful > effect. Any ideas? > > Darrell > > On Fri, 3 Feb 2023 at 18:32, Darrell Kavanagh > <darrell.kavanagh@gmail.com> wrote: > > > > Hi, > > > > This is another Lenovo with detachable keyboard and 1200x1920 screen > > mounted sideways. > > > > The following has been tested with 6.2.0-rc6. > > > > Thanks, > > Darrell > > > > index 3659f04..590bb7b 100644 > > --- a/kernel/drm_panel_orientation > > _quirks.c > > +++ b/kernel/linux-6.2-rc6/drivers/gpu/drm/drm_panel_orientation_quirks.c > > @@ -304,6 +304,12 @@ static const struct dmi_system_id orientation_data[] = { > > DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad > > D330-10IGM"), > > }, > > .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"), > > + }, > > + .driver_data = (void *)&lcd1200x1920_rightside_up, > > }, { /* Lenovo Ideapad D330-10IGL (HD) */ > > .matches = { > > DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
Hi, On Wed, Feb 08, 2023 at 07:04:58PM +0000, Darrell Kavanagh wrote: > I've resolved this by adding a matching quirk in > drivers/firmware/efi/sysfb_efi.c - see below. > > Are you the right people to be notifying about this? Yes, we are. Howewer, please follow https://www.kernel.org/doc/html/latest/process/submitting-patches.html In particular, a proper commit log and your Signed-off-By tag is missing. Maxime
Hi, On 2/9/23 16:36, Maxime Ripard wrote: > Hi, > > On Wed, Feb 08, 2023 at 07:04:58PM +0000, Darrell Kavanagh wrote: >> I've resolved this by adding a matching quirk in >> drivers/firmware/efi/sysfb_efi.c - see below. Right, this is a known issue on Lenovo 2-in-1s with the panel mounted 90 degree rotated issue. For some reason the efifb info still gives a landscape resolution even though the actual resolution really is portrait. This also messes up the pitch of the framebuffer leading to the weird corrupted looking output you saw. >> I've resolved this by adding a matching quirk in >> drivers/firmware/efi/sysfb_efi.c - see below. >> >> Are you the right people to be notifying about this? > > Yes, we are. > > Howewer, please follow > https://www.kernel.org/doc/html/latest/process/submitting-patches.html > > In particular, a proper commit log and your Signed-off-By tag is missing. Are we, do patches to that file go through drm-misc ? : [hans@shalem linux]$ scripts/get_maintainer.pl -f drivers/firmware/efi/sysfb_efi.c Ard Biesheuvel <ardb@kernel.org> (maintainer:EXTENSIBLE FIRMWARE INTERFACE (EFI)) linux-efi@vger.kernel.org (open list:EXTENSIBLE FIRMWARE INTERFACE (EFI)) linux-kernel@vger.kernel.org (open list) Either way this should be turned into a proper patch with a proper Signed-off-By message as Maxime mentioned. My offer for the drm_panel_orientation_quirks.c patch to turn it into a proper patch for you also extends to this one. If you want that, please let me know and again add your Signed-off-by as a standalone separate line in your reply so that I can use it for the commit message. Regards, Hans
It certainly is a learning process! Let me try to get things together properly myself, will be useful in the long run. Darrell On Thu, 9 Feb 2023 at 15:53, Hans de Goede <hdegoede@redhat.com> wrote: > > Hi, > > On 2/9/23 16:36, Maxime Ripard wrote: > > Hi, > > > > On Wed, Feb 08, 2023 at 07:04:58PM +0000, Darrell Kavanagh wrote: > >> I've resolved this by adding a matching quirk in > >> drivers/firmware/efi/sysfb_efi.c - see below. > > Right, this is a known issue on Lenovo 2-in-1s with > the panel mounted 90 degree rotated issue. For some reason > the efifb info still gives a landscape resolution even though > the actual resolution really is portrait. This also messes > up the pitch of the framebuffer leading to the weird corrupted > looking output you saw. > > >> I've resolved this by adding a matching quirk in > >> drivers/firmware/efi/sysfb_efi.c - see below. > >> > >> Are you the right people to be notifying about this? > > > > Yes, we are. > > > > Howewer, please follow > > https://www.kernel.org/doc/html/latest/process/submitting-patches.html > > > > In particular, a proper commit log and your Signed-off-By tag is missing. > > Are we, do patches to that file go through drm-misc ? : > > [hans@shalem linux]$ scripts/get_maintainer.pl -f drivers/firmware/efi/sysfb_efi.c > Ard Biesheuvel <ardb@kernel.org> (maintainer:EXTENSIBLE FIRMWARE INTERFACE (EFI)) > linux-efi@vger.kernel.org (open list:EXTENSIBLE FIRMWARE INTERFACE (EFI)) > linux-kernel@vger.kernel.org (open list) > > Either way this should be turned into a proper patch with a proper > Signed-off-By message as Maxime mentioned. > > My offer for the drm_panel_orientation_quirks.c patch to turn it into > a proper patch for you also extends to this one. If you want that, > please let me know and again add your Signed-off-by as a standalone > separate line in your reply so that I can use it for the commit message. > > Regards, > > Hans > >
© 2016 - 2025 Red Hat, Inc.