Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
plasma6 wrong rotation (solved)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1331
Location: sweden

PostPosted: Tue Sep 03, 2024 3:29 pm    Post subject: plasma6 wrong rotation (solved) Reply with quote

hi all

After upgrading to plasma6 the screen rotation is 90 degree wrong . My laptop is a Asus t100ha 2 in 1 tablet/laptop and the main screen mode is portrait mode . In plasma5 when it was docked it was in "90 degree wrong" portrait mode (normal in iio-proxy-sensors) and undocked it was rotating correct . Now in plasma6 docked is "correct" landscape (left-up in iio-proxy-sensors) but undocked it is always 90 degrees wrong when i rotate the screen. I dont know if it is a kde or qtsensors issue and like to sort this issue.Where do i start?

regards hedmo


Last edited by hedmo on Wed Sep 04, 2024 9:18 am; edited 1 time in total
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1331
Location: sweden

PostPosted: Wed Sep 04, 2024 9:18 am    Post subject: Reply with quote

i found that qtsensors hardcode iio-sensor-proxys rotation via : src/plugins/sensors/iio-sensor-proxy/iiosensorproxyorientationsensor.cpp so i made a patch to fit my needs :

Code:

--- /src/plugins/sensors/iio-sensor-proxy/iiosensorproxyorientationsensor.cpp   2024-06-08 01:55:00.000000000 +0200
+++ /src/plugins/sensors/iio-sensor-proxy/iiosensorproxyorientationsensor.cpp 2024-09-04 09:12:47.416695993 +0200
@@ -59,13 +59,13 @@
 void IIOSensorProxyOrientationSensor::updateOrientation(const QString &orientation)
 {
     QOrientationReading::Orientation o = QOrientationReading::Undefined;
-    if (orientation == QLatin1String("normal"))
+    if (orientation == QLatin1String("left-up"))
         o = QOrientationReading::TopUp;
-    else if (orientation == QLatin1String("bottom-up"))
+    else if (orientation == QLatin1String("right-up"))
         o = QOrientationReading::TopDown;
-    else if (orientation == QLatin1String("left-up"))
+    else if (orientation == QLatin1String("bottom-up"))
         o = QOrientationReading::LeftUp;
-    else if (orientation == QLatin1String("right-up"))
+    else if (orientation == QLatin1String("normal"))
         o = QOrientationReading::RightUp;
 
     m_reading.setOrientation(o);


regards hedmo
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9261

PostPosted: Wed Sep 04, 2024 9:34 am    Post subject: Reply with quote

While it is good that you worked around your issue, you might want to follow up with upstream in order to make that non-hardcoded or rather configurable ...
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1331
Location: sweden

PostPosted: Wed Sep 04, 2024 11:11 am    Post subject: Reply with quote

asturm wrote:
While it is good that you worked around your issue, you might want to follow up with upstream in order to make that non-hardcoded or rather configurable ...


asturm

absolute but i find qt quite hard to follow . at github they only provide commits and not the changes them self . i know i have filed a bug on qt before and i will continue with informing upstream about the issue. still cannot say it is fully qt to blame on this matter.

regards hedmo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum