https://bugs.kde.org/show_bug.cgi?id=415683

            Bug ID: 415683
           Summary: KSettings > Screen Rotation doesn't rotate touchscreen
                    & generates xinput error
           Product: systemsettings
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kcm_kwintouchscreen
          Assignee: kwin-bugs-n...@kde.org
          Reporter: mila...@eclipso.de
                CC: plasma-b...@kde.org
  Target Milestone: ---

SUMMARY
On laptops screen rotation is only rotating the scree, but not the touchscreen,
so touch input remains unrotated.

STEPS TO REPRODUCE
1. goto Settings > Display > Rotate the screen by 180° on laptops that have
devices with duplicate names (e.g. Lenovo Yoga 900s) 

OBSERVED RESULT
Screen and touchpad are rotated, but touchscreen coordinates are not rotated.

EXPECTED RESULT
Coordinate Transformation Matrix must be applied for touchscreen as well.

ADDITIONAL INFORMATION
This happens because Settings is executing the following command:

xrandr -o inverted
xinput set-prop "ELAN21EF:00 04F3:2283" --type=float "Coordinate Transformation
Matrix" -1 0 1 0 -1 1 0 0 1
xinput set-prop "Synaptics TM2714-003" --type=float "Coordinate Transformation
Matrix" -1 0 1 0 -1 1 0 0 1

This leads to the following error:

"Warning: There are multiple devices matching 'ELAN21EF:00 04F3:2283'.
To ensure the correct one is selected, please use the device ID, or prefix the
device name with 'pointer:' or 'keyboard:' as appropriate.

unable to find device ELAN21EF:00 04F3:2283"


So instead, settings should call the following (notice the pointer arg):

xrandr -o inverted
xinput set-prop "pointer:ELAN21EF:00 04F3:2283" --type=float "Coordinate
Transformation Matrix" -1 0 1 0 -1 1 0 0 1
xinput set-prop "pointer:Synaptics TM2714-003" --type=float "Coordinate
Transformation Matrix" -1 0 1 0 -1 1 0 0 1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to