Bug 389870 - Mouse KCM > Advanced: Add "Pointer deceleration"
Summary: Mouse KCM > Advanced: Add "Pointer deceleration"
Status: RESOLVED INTENTIONAL
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_mouse (show other bugs)
Version: 5.11.5
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-04 12:48 UTC by Gregor Mi
Modified: 2019-08-01 17:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The unfinished patch for reference (5.63 KB, patch)
2018-02-04 12:53 UTC, Gregor Mi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gregor Mi 2018-02-04 12:48:27 UTC
For some users it would be helpful to easily set a "Deceleration" value for the mouse.

In former times, I could accomplish this by using a startup script like this:

1. Find out pointer device id: $ xinput list (e.g. "13")
2. List properties for device: $ xinput list-props 13
3. Set the device deceleration: $ xinput --set-prop 13 'Device Accel Constant Deceleration' 2

Roughly since 2017, this method does not work anymore, see e.g. https://www.linuxquestions.org/questions/slackware-14/xinput-and-mouse-deceleration-dude-4175617417

There is another method by creating a suitable file here /etc/X11/xorg.conf.d (see https://wiki.archlinux.org/index.php/Mouse_acceleration) which I did not try.

WISH: It would be nice to have a setting "Pointer deceleration" alongside the "Pointer acceleration" setting in the Mouse KCM "Advanced" Tab.

Three years ago, I tried to create a patch for this, but I did not succeed, see https://git.reviewboard.kde.org/r/117811/diff/
Comment 1 Gregor Mi 2018-02-04 12:53:40 UTC
Created attachment 110332 [details]
The unfinished patch for reference

Attach patch. Description from reviewboard:

```
Add new option for "constant deceleration" in KDE Control Module Input/Mouse.

OPEN ISSUE: setting is not stored or at least not restored from config and messes with other config values which will be reset to default. Why?

Testing with: $ kcmshell5 mouse
```
Comment 2 Christoph Feck 2018-02-22 22:16:18 UTC
Thanks for the patch! I am unsure if we should add features to the old xinput support code, when the future is libinput.

I still suggest to try your luck via a phabricator request to get feedback from Plasma developers.
Comment 3 Nate Graham 2019-08-01 17:02:39 UTC
I must agree with Christoph. Libinput is the future, and most users don't see the non-Libinput version anymore. I would recommend bringing this up with the Libinput developer Peter Hutterer, who I have found to be very reasonable.

https://gitlab.freedesktop.org/libinput/libinput/issues