View previous topic :: View next topic |
Author |
Message |
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1331 Location: sweden
|
Posted: Tue Sep 03, 2024 3:29 pm Post subject: plasma6 wrong rotation (solved) |
|
|
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 |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1331 Location: sweden
|
Posted: Wed Sep 04, 2024 9:18 am Post subject: |
|
|
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 |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 9261
|
Posted: Wed Sep 04, 2024 9:34 am Post subject: |
|
|
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 |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1331 Location: sweden
|
Posted: Wed Sep 04, 2024 11:11 am Post subject: |
|
|
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 |
|
|
|