KDE plasma: mouse is way too fast or accelerates to strong even on lowest settings, need help

Hi,
this is a problem i am having for years, but now i want to finally solve it. My mouse is too fast, i kind of got used to it but sometimes when i boot windows 7 on the same system i realize
that the mouse movement there is way better than on opensuse kde plasma. I said that i got used to it but this only means that i do not notice the flaws anymore, but actually i am kind of crippled, especially slow and exact movements in small regions of the screen are horribly over-driven, even on the lowest acceleration settings.
I even googled a bit but i only found some hacks or tweaks using xinput to activate some deceleration, i do not really understand most of the stuff and i think that there has to be a way to do this with the GUI.

So that is the problem, can someone help me?
Here are some specs:
i am using opensuse tumbleweed (up to date), my mouse is a gaming mouse called: Razer Naga 2014
with no hardware buttons to control the acceleration, and i have to monitors (pretty old, none of them is 4k)

Should be able to adjusts in Configure Desktop -Input devices - mouse

I tried the normal KDE mouse configuration module, do you mean something different?

http://i.imgur.com/pLhMhWI.png

http://imgur.com/pLhMhWI

Reduce the speed with the first one You can reduce it down to 0.1

I did, but this had no noticeable effect

Did you apply the new setting. Personally I like very fast mouse so have mine set at 2X But you do have to apply before you see a difference

yes of course, it seems to have no effect.

Try a normal (generic) mouse not a gaming one. Those tend to be fast.

Here it makes a significant difference in the speed of my mouse

You can also adjust things in /etc/X11/xorg.conf.d/

But you need to find a good tutorial or manual since I never play with those setting not needing to.

I assume that since you’re using TW the mouse is handled using libinput?

Confirm with

grep "Using input driver" /var/log/Xorg.0.log

*If not for some reason, post back with this output

Mouse acceleration guide (libinput):
https://wiki.archlinux.org/index.php/Mouse_acceleration

Yes libinput, but i hoped there would be a way changing the mouse settings using the GUI.
Anyway, i already found that page and i find it very complicated, it starts that my mouse ist listed four times when calling xinput:


⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Valve Software Steam Controller           id=12   [slave  pointer  (2)]
⎜   ↳ Razer Razer Naga 2014                     id=13   [slave  pointer  (2)]
⎜   ↳ Razer Razer Naga 2014                     id=14   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ UVC Camera (046d:0821)                    id=8    [slave  keyboard (3)]
    ↳ LOGITECH G110 G-keys                      id=9    [slave  keyboard (3)]
    ↳ Gaming Keyboard G110                      id=10   [slave  keyboard (3)]
    ↳ Gaming Keyboard G110                      id=11   [slave  keyboard (3)]
    ↳ Razer Razer Naga 2014                     id=15   [slave  keyboard (3)]
    ↳ Valve Software Steam Controller           id=16   [slave  keyboard (3)]
    ↳ Razer Razer Naga 2014                     id=17   [slave  keyboard (3)]


the last two (ids 15 and 17) are probably related to the mini numblock that is located on the side of the mouse (12 buttons)
but which one of the first two ids is relevant for my problem?

The other problem is that the configuration describes on the link you posted is in no way standardized: especially the last sentence:
To make it permanent, edit xorg configuration (see above) or add commands to xprofile. The latter won’t affect speed in a Display manager.

what am i expected to do here? I do not use any xorg configuration files because i was told a lot of times that using such a file is the old way and is basically the depreciated way of doing so. But as stated in the same sentence, using xprofile wont affect the speed, but thats what i want to do.

This is very confusing.

edit: and apart from that the relevant property: ‘Device Accel Constant Deceleration’ is not existent for my mouse, i checked all 4 ids but none have it listed when calling
xinput list-props ID
i even tried to apply it using this command:
input --set-prop ID ‘Device Accel Constant Deceleration’ 2
on all for IDs but this always resulted in the following error:
property ‘Device Accel Constant Deceleration’ doesn’t exist, you need to specify its type and format

Yes, and I would expect that (DE configuration tools) to be working too.

Here is a bug report that you’re likely impacted by (one of several about broken mouse acceleration)
https://bugs.kde.org/show_bug.cgi?id=350688

edit: and apart from that the relevant property: ‘Device Accel Constant Deceleration’ is not existent for my mouse, i checked all 4 ids but none have it listed when calling
xinput list-props ID
i even tried to apply it using this command:
input --set-prop ID ‘Device Accel Constant Deceleration’ 2
on all for IDs but this always resulted in the following error:
property ‘Device Accel Constant Deceleration’ doesn’t exist, you need to specify its type and format

You can’t set a property that doesn’t exist. Do you have ’ libinput Accel Speed’ property listed?

Yes it is listed on for the device with ID 13:

xinput list-props 13                                       [0:06]
Device 'Razer Razer Naga 2014':
        Device Enabled (150):   1
        Coordinate Transformation Matrix (152): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Accel Speed (311):     0.000000
        libinput Accel Speed Default (312):     0.000000
        libinput Accel Profiles Available (313):        1, 1
        libinput Accel Profile Enabled (314):   1, 0
        libinput Accel Profile Enabled Default (315):   1, 0
        libinput Natural Scrolling Enabled (316):       0
        libinput Natural Scrolling Enabled Default (317):       0
        libinput Send Events Modes Available (295):     1, 0
        libinput Send Events Mode Enabled (296):        0, 0
        libinput Send Events Mode Enabled Default (297):        0, 0
        libinput Left Handed Enabled (318):     0
        libinput Left Handed Enabled Default (319):     0
        libinput Scroll Methods Available (320):        0, 0, 1
        libinput Scroll Method Enabled (321):   0, 0, 0
        libinput Scroll Method Enabled Default (322):   0, 0, 0
        libinput Button Scrolling Button (323): 2
        libinput Button Scrolling Button Default (324): 274
        libinput Middle Emulation Enabled (325):        0
        libinput Middle Emulation Enabled Default (326):        0
        Device Node (298):      "/dev/input/event3"
        Device Product ID (299):        5426, 64
        libinput Drag Lock Buttons (327):       <no items>
        libinput Horizonal Scroll Enabled (300):        1

but trying to change that like this:
xinput --set-prop 13 ‘libinput Accel Speed’ 150
results in this error:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  57 ()
  Value in failed request:  0x137
  Serial number of failed request:  20
  Current serial number in output stream:  21

You tried to specify an invalid value. It needs to be between -1 and 1. However, I’ve found for my touchpad (handled as a mouse in my VM guest) it doesn’t have an effect. Neither does changing the KDE mouse acceleration settings. So, I assume I’m affected by the bug I referred to earlier. That said, the default behaviour is ok for me.

You are right, the value was out of range.
But at least i can change the value and have an immediate effect, i do not know if iam affected by the bug you mentioned (rhw GUI does not work though) but still i have the feeling that the mouse acceleration is not the only relevant value here.
I have set it to -0.8 and it is much better but still it lacks the fine control i am having when booting into windows.

Try the following

xinput set-prop 13 "libinput Accel Profile Enabled" 0 1

You might need to experiment a bit. I haven’t managed to find a comprehensive libinput guide yet.

FWIW, the following blog is worth a read for those not happy with input device acceleration…

https://psyq123.wordpress.com/2016/05/11/did-your-mouse-turn-all-weird-in-debian-and-now-you-suck-at-quake/

It discusses some of strange libinput behaviour impacting on gamers, and some practical configuration advice, and explains some of the parameters relating to libinput and Xorg. It includes links to other useful references as well.

Thanks changing the profile had a positive effect. But why are there two arguments for the profile?
Another question that arose was, how do i make this change permanent? In one of the links it was suggested putting everything into
~/.xprofile
which i did, but it seems that this file is not used in my case. Do i have to enable it first?

Create a .desktop file in ~/.config/autostart pointing to a script with the required commands.

KDE autostart references:
https://wiki.archlinux.org/index.php/KDE#Autostarting_applications
https://docs.kde.org/trunk5/en/kde-workspace/kcontrol/autostart/index.html

For system-wide effect (and assuming the desktop environment doesn’t override any input device configuration),
you could create a custom Xorg config file eg /etc/X11/xorg.conf.d/30-mouse.conf

Section "InputClass"
        Identifier "Razer Razer Naga 2014"
        MatchIsPointer "yes"
        Driver "libinput"
        Option "AccelProfile" "-1"
        Option "AccelScheme" "none"
        Option "AccelSpeed" "-0.9"
EndSection

More info

man xorg.conf
man libinput