This forum has been archived. All content is frozen. Please use KDE Discuss instead.

tablet - screen rotation problem

Tags: None
(comma "," separated)
herrdeh
Registered Member
Posts
21
Karma
0

tablet - screen rotation problem

Thu Jan 23, 2020 9:46 am
Hello,

after a nightmare with GNOME (I'm really a GNOME fan - but it's not for tablets....) I finally came to KDE, and that's really nice. It's vast configurability helps a lot.
Unluckily, the auto-rotate feature does not work. https://bugs.kde.org/show_bug.cgi?id=384066 - I'm still with plasma 5.12 at kubuntu 18, Xorg.

I could be happy with manual rotation (often the automatism causes more trouble than pleasure...), but when I rotate the screen by 90°, only the actual readout and the mouse reaction rotates - not the touch screen response. Meaning: When I move my finger vertically, the mouse pointer will move horizontally, ande vice versa.

Does someone have a hint for a fix or a workaround?
NB: The wayland version does only rotate by 180°, not by 90°.

Cheers,
Wolf
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: tablet - screen rotation problem

Thu Jan 23, 2020 11:31 am
This has been solved quite some time ago, I suggest you get a newer Plasma version, yours is really old now.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
herrdeh
Registered Member
Posts
21
Karma
0
Thank you for this hint. I found https://community.kde.org/Kubuntu/PPAs#Kubuntu_Updates, but in the end I did not get any further than plasma 5.12.9, the problems persist. Are there any possibilities to get more recent updates - or could I only go to ubuntu 19 ?

Cheers,
Wolf
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Why not give Kubuntu 19.10 a try? There is really no reason to keep using an LTS version, especially not on a tablet. LTS is meant for businesses who have to manage multiple installations which is easier with an LTS installation, but there is no reason for a private user to do so.

FWIW: Plasma Mobile would be a good choice for a tablet as it is optimized for this kind of devices.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
herrdeh
Registered Member
Posts
21
Karma
0
Mamarok wrote:Why not give Kubuntu 19.10 a try? There is really no reason to keep using an LTS version, especially not on a tablet. LTS is meant for businesses who have to manage multiple installations which is easier with an LTS installation, but there is no reason for a private user to do so.

Allright, let's try that. Former experience with a non-LTS on my desktop was awful, but that may be much better on that tablet.
Edit few hours later: No improvement at all. Neither with Xorg, nor with wayland, ):
FWIW: Plasma Mobile would be a good choice for a tablet as it is optimized for this kind of devices.

That would mean a fresh install of Neon - https://www.plasma-mobile.org/get/ - correct? - Looks interesting, but first let's see how much happy I can get with ubuntu 19.

Thanks a lot,
Wolf
herrdeh
Registered Member
Posts
21
Karma
0
I tried plasma-mobile. Well. At the moment it's not for real use. Last update 2019-02-18 is not so promising...
I switched from ubuntu to manjaro, but more recent KDE version do not cure the core problems.

Sad. It's quite small bits missing to really have fun with KDE on a tablet, but they are missing...
  • emulation of right-click
  • screen rotation (dunno care whether automatically or manual
  • easy scaleable sliders would be nice, the defaults are way too narrow

Cheers,
Wolf
herrdeh
Registered Member
Posts
21
Karma
0

Re: tablet - screen rotation problem

Sat Feb 01, 2020 12:39 pm
In the meanwhile, I had certain success with manjaro Linux KDE. I summarized steps and struggles here:
https://forum.manjaro.org/t/tablet-howto-draft-for-a-wiki-page-help-appreciated/121979.
andreasgoebel
Registered Member
Posts
27
Karma
0
Hi,
I use plasma on a Lenovo Thinkpad l380 Yoga.

Automatic screen rotation (WITH Stylus!) works fine with

- screenrotator : https://github.com/GuLinux/ScreenRotator

- kded rotation: https://github.com/dos1/kded_rotation

Both of them rely on iio_sensor_proxy, so you will have to have those installed.

Screenrotator is faster, so I use that, but both work.

What I would like to have: The L380 Yoga (and most other convertibles, too) have a 16:9 screen ratio. So I place my kde panel on the left in landscape mode. I would very much like to place it on the top in portrait mode - which is, of course, easily done by hand after rotation. But this should happen automatically.

In which config-file is the place of the panel located? I could then integrate that into one of the screen-rotation programs.

Regards, Andreas
rudirudi
Registered Member
Posts
3
Karma
0
Mamarok wrote:This has been solved quite some time ago, I suggest you get a newer Plasma version, yours is really old now.


Hi,

I am kind of confused. Everywhere I hear that tablet rotiation works out of the box. I am sitting here with a new (well used new to me) Yoga 370 and searching for 2 hours now not finding a real solution.

I have installed Kubuntu 20.04, Plasma 5.18.4, KDE 5.68.0, Qt 5.12.8 Kernel 5.4.0-29-generic and feel stupid.

What am I missing?

I will try this now but that's not out of the box, is it.

Automatic screen rotation (WITH Stylus!) works fine with

- screenrotator : https://github.com/GuLinux/ScreenRotator

- kded rotation: https://github.com/dos1/kded_rotation

Both of them rely on iio_sensor_proxy, so you will have to have those installed.


Regars
rr
rudirudi
Registered Member
Posts
3
Karma
0

xrandr and xsetwacom collide somehow

Thu May 21, 2020 11:23 am
Hi,

another question for manual rotation.

Using xrandr -o inverted

works out of the box. xsetwacom somehow is called inverting the the touchscreen as well.

Unfortunately turning the screen left is more complicated.

xrandr -o left turns the screen and turns xsetwacom to cw which is wrong, so I use now:

Code: Select all
xrandr -o left

#trackpoint 14
xinput set-prop 14 "Coordinate Transformation Matrix"  0 -1 0 1 0 0 0 0 1
#touchscreen sleep needed otherwise the Rotian stays cw
sleep 1
xsetwacom set "Wacom Pen and multitouch sensor Finger touch" "Rotate" "ccw"
xsetwacom set "Wacom Pen and multitouch sensor Pen stylus" "Rotate" "ccw"
xsetwacom set "Wacom Pen and multitouch sensor Pen eraser" "Rotate" "ccw"


So somehow xrandr calls xsetwacom but where? (So I can fix it there)

Regards

rr
andreasgoebel
Registered Member
Posts
27
Karma
0
I have never heard that xrandr calls xsetwacom. I used to have some scripts for screen rotation (before I got my thinkpad yoga), I always called xsetwacom (or rather the xinput equivalent) after the xrandr call.

I also have never heard that this works "out of the box". If so, it is a convenience by the distro used, but it is not in kde itself.

I have my knowledge about screen rotation from the arch wiki:

https://wiki.archlinux.org/index.php/Ta ... c_rotation

The arch wiki is always worth reading, even if you do not use arch.
rudirudi
Registered Member
Posts
3
Karma
0

Re: tablet - screen rotation problem

Sat May 23, 2020 12:20 pm
Hi,

I have never heard that xrandr calls xsetwacom. I used to have some scripts for screen rotation (before I got my thinkpad yoga), I always called xsetwacom (or rather the xinput equivalent) after the xrandr call.


me neither, this behavior did cost me some time. As on my yoga xrandr appearently works semiautomatic. I don't know if it "calls xsetwacom" I just noticed the output of xsetwacom --get changes after calling xrandr and I have no idea why that happens.

Thanks for the link. I found a lot allready but this one really sums it up.

Regards

rr
herrdeh
Registered Member
Posts
21
Karma
0
Thank you very much for the hints on screenrotator. With manjaro-KDE, it was easy to install on pamac and worked flawlessly out of the box. Great!
kartapux
Registered Member
Posts
1
Karma
0
Hi,

I had the same issue (X1 yoga gen 4 + plasma 5.22) and solved it with
1. screenrotator
2. in system settings -> graphic tablet -> tablet I checked "autorotate with screen" and "invert auto-rotation".

Regards
thefoster
Registered Member
Posts
1
Karma
0

Re: tablet - screen rotation problem

Wed Dec 28, 2022 12:32 am
kartapux wrote:I had the same issue (X1 yoga gen 4 + plasma 5.22) and solved it with
1. screenrotator
2. in system settings -> graphic tablet -> tablet I checked "autorotate with screen" and "invert auto-rotation".

So you haven't found an inbuilt method to get the tablet rotated in sync to the screen yet?
I've just opened https://bugs.kde.org/show_bug.cgi?id=463539 for the same issue still present in Kubuntu 22.04 (fresh install), at least on my Acer Spin SP313 (convertible like the Yoga).
BR


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]