Bug 397452

Summary: Take into account "panel orientation" output property to determine appropriate default rotation
Product: [Plasma] KScreen Reporter: RussianNeuroMancer <russianneuromancer>
Component: commonAssignee: Sebastian Kügler <sebas>
Status: RESOLVED FIXED    
Severity: wishlist CC: nate, oded
Priority: NOR    
Version: 5.12.6   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.27
Attachments: xrandr output from GPD Win 2

Description RussianNeuroMancer 2018-08-14 15:44:53 UTC
Created attachment 114436 [details]
xrandr output from GPD Win 2

Hello!

I find that "panel orientation" output property is not supported in KScreen. Linux kernel include quirks for several devices with hint about panel position: https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/drm_panel_orientation_quirks.c

For example on GPD Win 1 and GPD Win 2 panels mounted as portrait, so kernel include hint about that:
https://github.com/torvalds/linux/commit/404d1a3edc3873b339198ec3f3d6a09be2ddda4f
https://github.com/jwrdegoede/linux-sunxi/commit/8c4d5359cab5058f94ebf02eb4dceb8a59a1ec7f

xrandr output from GPD Win 2 is attached (look for "panel orientation" line).

This hint is taken into account by text console and by Gnome Shell, but seems like ignored by KScreen.
Comment 1 Nate Graham 2022-11-15 20:35:11 UTC
Fixed by Xaver Hugl with https://invent.kde.org/plasma/kwin/-/commit/65e886cde2387c7d2ad3247c3b77e6b9fb9514e5 in Plasma 5.27!
Comment 2 Oded Arbel 2022-11-21 11:52:13 UTC Comment hidden (spam)
Comment 3 Nate Graham 2022-11-21 21:21:10 UTC Comment hidden (spam)
Comment 4 Oded Arbel 2022-11-28 09:37:07 UTC Comment hidden (spam)
Comment 5 Nate Graham 2022-11-28 23:58:39 UTC Comment hidden (spam)