I use xinput
to control mouse speed (I have a SteelSeries Rival 310 mouse):
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ SteelSeries SteelSeries Rival 310 eSports Mouse id=12 [slave pointer (2)]
Note the id=12
. Now issue this command to list all the possible attributes that You can manipulate for the mouse:
$ xinput --list-props 12
Device 'SteelSeries SteelSeries Rival 310 eSports Mouse':
Device Enabled (152): 1
Coordinate Transformation Matrix (154): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Accel Speed (292): -0.700000
libinput Accel Speed Default (293): 0.000000
libinput Accel Profiles Available (294): 1, 1
libinput Accel Profile Enabled (295): 1, 0
libinput Accel Profile Enabled Default (296): 1, 0
libinput Natural Scrolling Enabled (288): 0
libinput Natural Scrolling Enabled Default (289): 0
libinput Send Events Modes Available (273): 1, 0
libinput Send Events Mode Enabled (274): 0, 0
libinput Send Events Mode Enabled Default (275): 0, 0
libinput Left Handed Enabled (297): 0
libinput Left Handed Enabled Default (298): 0
libinput Scroll Methods Available (299): 0, 0, 1
libinput Scroll Method Enabled (300): 0, 0, 0
libinput Scroll Method Enabled Default (301): 0, 0, 0
libinput Button Scrolling Button (302): 2
libinput Button Scrolling Button Default (303): 2
libinput Middle Emulation Enabled (304): 0
libinput Middle Emulation Enabled Default (305): 0
Device Node (276): "/dev/input/event3"
Device Product ID (277): 4152, 5920
libinput Drag Lock Buttons (290): <no items>
libinput Horizontal Scroll Enabled (291): 1
Note the libinput Accel Speed (292): -0.700000
. This is the attribute You will want to change. Set new value like this:
$ xinput --set-prop 12 "libinput Accel Speed" -0.7
Try different values to find the best one that works for You.
You can install the unofficial driver logiops for Logitech mice and keyboard from github and increase the DPI settings in addition to the system mousespeed setting.
The following worked for my MX Master 2S with Ubuntu 18.04 and enabled me to use my thumb button, smartshift scrolling and individual dpi settings. However I think this might also work on later Ubuntu version or other Ubuntu-based OSes.
1. to clone repo from github execute (maybe you need to install git first). then navigate to that folder:
git clone https://github.com/PixlOne/logiops.git
cd logiops
2. Follow build instructions from repo. This step needs build-essentials:
mkdir build
cd build
cmake ..
make
sudo make install
3. To create a system deamon which runs the driver in the background follow the instructions from here
- create a file
/etc/systemd/system/logid.service
with the content
[Unit]
Description=Logitech Configuration Daemon
[Service]
Type=simple
ExecStart=/usr/local/bin/logid -c /etc/logid.cfg
User=root
#ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
4. You may want to configure the driver via the file /etc/logif.cfg
. The following worked for my MX Master 2S. Other configs can be found on github or in the Archwiki. Here you can change the dpi manually in addition to adjusting the system mouse-speed setting.
# this config file is for Logiops and needs to be placed in /etc/logid.cfg
devices: (
{
name: "MX Master 2S";
smartshift:
{
on: false;
threshold: 15; # 7 is ideal for work
};
hiresscroll:
{
hires: false;
invert: false;
target: false;
};
dpi: 800;# <- you may change this number
buttons: (
{
cid: 0xc3;
action =
{
type: "Gestures";
gestures: (
{
direction: "Up";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_UP"];
};
},
{
direction: "Down";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_DOWN"];
};
},
{
direction: "Left";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_LEFT"];
};
},
{
direction: "Right";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_RIGHT"];
}
},
{
direction: "None"
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA"];
}
}
);
};
},
{
cid: 0xc4;
action =
{
type = "ToggleSmartshift";
};
}
);
}
);
5. Finally enable the service to run on system startup and start the service:
sudo systemctl enable logid
sudo systemctl start logid
Best Answer
KDE has not built this into its control center yet, but you can use xinput from the command line. First, run
xinput list
to find the device number of your mouse:On my laptop, the device id I want is 10 (SynPS/2 Synaptics TouchPad). On your system, you will have to decide which device is the correct one. Next, run
xinput list-props <your device id>
to see the current settings for that device:The property you are interested in is "Device Accel Constant Deceleration (267)". To slow your mouse down, the value must be increased by running
xinput set-prop <your device id> <property id> <value>
:In this example, the value is increased from 2.5 to 5.0 and the mouse moves at half-speed.