User Tools

Site Tools


ubuntu:mouse:lowering_mouse_sensitivity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ubuntu:mouse:lowering_mouse_sensitivity [2021/10/26 10:06] peterubuntu:mouse:lowering_mouse_sensitivity [2021/10/26 10:10] (current) – removed peter
Line 1: Line 1:
-====== Ubuntu - Mouse - Lowering Mouse Sensitivity ====== 
- 
-  * [[Ubuntu:Mouse:Determine the Mouse|Determine the Mouse]]. 
- 
----- 
- 
-===== Determine the system ===== 
- 
-<code bash> 
-xinput list-props 8 
-</code> 
- 
-returns: 
- 
-<code bash> 
-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 
-</code> 
- 
-<WRAP info> 
-**NOTE:**  The initial 8 is the Mouse Id as determined per [[Ubuntu:Mouse:Determine the Mouse|Determine the Mouse]]. 
- 
-  * The **libinput** lines indicate that this is **Wayland/libinput**. 
- 
-</WRAP> 
- 
----- 
- 
-===== On Wayland/libinput systems ===== 
- 
-<code bash> 
-xinput --set-prop "Device Name" "libinput Accel Speed" -0.9 
-</code> 
- 
-<WRAP info> 
-**NOTE:**  The number must be an integer between 1 and -1, and appears less flexible than the old **Constant Deceleration** setting. 
- 
-  * Check [[https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html#ptraccel-linear|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. 
- 
-</WRAP> 
- 
----- 
- 
-===== On non-Wayland/libinput systems ===== 
- 
-<code bash> 
-xinput --set-prop "Device Name" "Device Accel Constant Deceleration" 5 
-</code> 
- 
-<WRAP info> 
-**NOTE:**  The lower the number the faster it will be, similarly, higher the number slower it will be. 
-</WRAP> 
- 
----- 
- 
-==== To turn off mouse acceleration ==== 
- 
-<code bash> 
-xinput --set-prop "Razer DeathAdder" "Device Accel Velocity Scaling" 1 
-xinput --set-prop "Razer DeathAdder" "Device Accel Profile" -1 
-</code> 
- 
----- 
- 
-==== Using xset ==== 
- 
-<WRAP info> 
-**NOTE:** xset does not use libinput. 
-</WRAP> 
- 
- 
-To get the current values, use: 
- 
-<code bash> 
-xset q | grep -A 1 Pointer 
-</code> 
- 
-returns: 
- 
-<code bash> 
-Pointer Control: 
-  acceleration:  2/1    threshold:  4 
-</code> 
- 
----- 
- 
-To set new values: 
- 
-<code bash> 
-xset m acceleration threshold 
-</code> 
- 
-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: 
- 
-<code bash> 
-xset m 3/2 0 
-</code> 
- 
-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 ===== 
- 
-<code bash> 
-xinput --list-props 8 
-</code> 
- 
-<WRAP info> 
-**NOTE:** The 8 is the device-id per [[Ubuntu:Mouse:Determine the Mouse|Determine the Mouse]]. 
-</WRAP> 
- 
----- 
- 
-===== References ===== 
- 
-https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html#ptraccel-linear 
- 
-https://wiki.archlinux.org/title/Mouse_acceleration 
  
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