GuLinux / ScreenRotator

Automatic screen rotation daemon for X11
GNU General Public License v3.0
57 stars 18 forks source link

add rotate touch input #11

Open lsmith77 opened 5 years ago

lsmith77 commented 5 years ago

after rotating the screen by 180 it seems to properly invert the input, but after a 90 degree rotation, the touch input is off on my Lenovo X1 Yoga 3rd gen.

Patatra commented 5 years ago

Hi, I can confirm that screen rotation is ok on a Lenovo X1 Yoga 3rd gen but not the input rotation.

xinput --list

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ xwayland-pointer:15                       id=6    [slave  pointer  (2)]
⎜   ↳ xwayland-relative-pointer:15              id=7    [slave  pointer  (2)]
⎜   ↳ xwayland-touch:15                         id=9    [slave  pointer  (2)]
⎜   ↳ xwayland-stylus:15                        id=10   [slave  pointer  (2)]
⎜   ↳ xwayland-eraser:15                        id=11   [slave  pointer  (2)]
⎜   ↳ xwayland-cursor:15                        id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ xwayland-keyboard:15                      id=8    [slave  keyboard (3)]

xinput --list-props 9

Device 'xwayland-touch:15':
    Device Enabled (119):   1
    Coordinate Transformation Matrix (121): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (244): 0
    Device Accel Constant Deceleration (245):   1.000000
    Device Accel Adaptive Deceleration (246):   1.000000
    Device Accel Velocity Scaling (247):    10.000000

All others devices have a transformation matrix too

marcdeop commented 5 years ago

Could it be that the problems are related to other software?

I managed to make the input work on my Lenovo Yoga X1 Carbon by changing the settings here: image

dadosch commented 4 years ago

This fixes it for the pen for me; but if the eraser button is pressed, the input is upsidedown. (X1 Yoga) EDIT: https://github.com/dos1/kded_rotation works fine.