dreemurrs-embedded / Pine64-Arch

:penguin: Arch Linux ARM for your PinePhone/Pro and PineTab/2
706 stars 108 forks source link

autorotation is backwards on pinetab 2 #618

Open dozadoesit opened 6 months ago

dozadoesit commented 6 months ago

Device info (please complete the following information)

Describe the bug with auto-rotation turned on the screen is in portrait when the tablet is in landscape and the screen in is in landscape when the tablet is in portrait.

To Reproduce Steps to reproduce the behavior:

  1. update to the latest plasma release with sudo pacman -Syu
  2. turn autorotation on when in tablet mode

Expected behavior Screen rotation should match the orientation of the device

dozadoesit commented 6 months ago

Thinking about this more it could be that the upgrade to the new plasma version messed something up with the sensors config for the autorotation. I am not sure how I would fix that however if that is the case.

jordemort commented 5 months ago

Also having this problem with the latest Plasma image on PineTab 2. FWIW I tried installing Phosh on the barebones image and it got rotation correct.

nerdcorenet commented 5 months ago

To Reproduce Steps to reproduce the behavior:

  1. update to the latest plasma release with sudo pacman -Syu
  2. turn autorotation on when in tablet mode

I was experiencing the same issue in recently updated KDE Plasma (libplasma-6.0.3-1 and danctnix-plasma-desktop-settings 20240312-1) when the PineTab2 is disconnected from the keyboard.

I disabled the "Only in tablet mode" option in KDE Plasma but left the "Automatic" orientation enabled (i.e. not "Manual"), and since doing so the incorrect orientation is applied both when the PineTab2 is attached to the keyboard and when it is disconnected from the keyboard equally.

The orientation seems to always be 90 degrees clockwise from what is expected. This means I ned to tilt my head to the right to see the screen properly, because the KDE desktop bottom is drawn to the Left and the desktop top is drawn on the Right.

nerdcorenet commented 5 months ago

I have set my KDE Plasma to Manual orientation for the time being, and this seems to reflect the nature of the problem well...

Screenshot_20240418_143342 Screenshot_20240418_143318

In the above screenshots you can see that selecting a Landscape orientation will cause the preview above to show Portrait, and vice versa.

Hope this helps.