User Tools

Site Tools


ubuntu:mouse:lowering_mouse_sensitivity

This is an old revision of the document!


Ubuntu - Mouse - Lowering Mouse Sensitivity

Determine the system

xinput list-props 8

returns:

Device 'Razer Razer DeathAdder V2':
	Device Enabled (155):	1
	Coordinate Transformation Matrix (157):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Natural Scrolling Enabled (291):	0
	libinput Natural Scrolling Enabled Default (292):	0
	libinput Scroll Methods Available (293):	0, 0, 1
	libinput Scroll Method Enabled (294):	0, 0, 0
	libinput Scroll Method Enabled Default (295):	0, 0, 0
	libinput Button Scrolling Button (296):	2
	libinput Button Scrolling Button Default (297):	2
	libinput Middle Emulation Enabled (298):	0
	libinput Middle Emulation Enabled Default (299):	0
	libinput Accel Speed (300):	0.742647
	libinput Accel Speed Default (301):	0.000000
	libinput Accel Profiles Available (302):	1, 1
	libinput Accel Profile Enabled (303):	1, 0
	libinput Accel Profile Enabled Default (304):	1, 0
	libinput Left Handed Enabled (305):	0
	libinput Left Handed Enabled Default (306):	0
	libinput Send Events Modes Available (276):	1, 0
	libinput Send Events Mode Enabled (277):	0, 0
	libinput Send Events Mode Enabled Default (278):	0, 0
	Device Node (279):	"/dev/input/event7"
	Device Product ID (280):	5426, 132
	libinput Drag Lock Buttons (307):	<no items>
	libinput Horizontal Scroll Enabled (308):	1

NOTE: The initial 8 is the Mouse Id as determined per Determine the Mouse.

  • The libinput lines indicate that this is Wayland/libinput.

On Wayland/libinput systems

xinput --set-prop "Device Name" "libinput Accel Speed" -0.9

NOTE: The number must be an integer between 1 and -1, and appears less flexible than the old Constant Deceleration setting.

  • Check this plot to see the impact of different acceleration speed values.
  • libinput calculates the mouse acceleration depending on the DPI and the parameter Acceleration Speed.

On non-Wayland/libinput systems

xinput --set-prop "Device Name" "Device Accel Constant Deceleration" 5

NOTE: The lower the number the faster it will be, similarly, higher the number slower it will be.


To turn off mouse acceleration

xinput --set-prop "Razer DeathAdder" "Device Accel Velocity Scaling" 1
xinput --set-prop "Razer DeathAdder" "Device Accel Profile" -1

Using xset

NOTE: xset does not use libinput.

To get the current values, use:

xset q | grep -A 1 Pointer

returns:

Pointer Control:
  acceleration:  2/1    threshold:  4

To set new values:

xset m acceleration threshold

where acceleration defines how many times faster the cursor will move than the default speed. threshold is the velocity required for acceleration to become effective, usually measured in device units per 10ms. acceleration can be a fraction, so if you want to slow down the mouse you can use 1/2, 1/3, 1/4, … if you want to make it faster you can use 2/1, 3/1, 4/1, …

Threshold defines the point at which acceleration should occur in pixels per 10 ms. If threshold is zero, e.g. if you use:

xset m 3/2 0

as suggested in the man page, then acceleration is treated as “the exponent of a more natural and continuous formula.”

To get the default settings back:

$ xset m default


Confirm any changes

xinput --list-props 8

NOTE: The 8 is the device-id per Determine the Mouse.


References

ubuntu/mouse/lowering_mouse_sensitivity.1635242778.txt.gz · Last modified: 2021/10/26 10:06 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki