You are not logged in.

#1 2020-02-02 20:48:29

GiuseppeSchnee
Member
Registered: 2020-01-24
Posts: 12

[SOLVED] Adjust Mouse Sensitivity (DPI)

Hey there

I want to adjust the sensitivity of my mouse.
As far as I read, it could be done with xinput, but I don't feel any changes if I change the parameters.

$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Mouse Trust Gaming Mouse                  id=11   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                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)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ Mouse Trust Gaming Mouse                  id=10   [slave  keyboard (3)]
    ↳ Chicony USB 2.0 Camera: Chicony           id=12   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]
$ xinput list-props 11
Device 'Mouse Trust Gaming Mouse':
        Device Enabled (163):   1
        Coordinate Transformation Matrix (165): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Natural Scrolling Enabled (298):       0
        libinput Natural Scrolling Enabled Default (299):       0
        libinput Scroll Methods Available (300):        0, 0, 1
        libinput Scroll Method Enabled (301):   0, 0, 0
        libinput Scroll Method Enabled Default (302):   0, 0, 0
        libinput Button Scrolling Button (303): 2
        libinput Button Scrolling Button Default (304): 2
        libinput Middle Emulation Enabled (305):        0
        libinput Middle Emulation Enabled Default (306):        0
        libinput Accel Speed (307):     0.000000
        libinput Accel Speed Default (308):     0.000000
        libinput Accel Profiles Available (309):        1, 1
        libinput Accel Profile Enabled (310):   1, 0
        libinput Accel Profile Enabled Default (311):   1, 0
        libinput Left Handed Enabled (312):     0
        libinput Left Handed Enabled Default (313):     0
        libinput Send Events Modes Available (283):     1, 0
        libinput Send Events Mode Enabled (284):        0, 0
        libinput Send Events Mode Enabled Default (285):        0, 0
        Device Node (286):      "/dev/input/event6"
        Device Product ID (287):        5215, 627
        libinput Drag Lock Buttons (314):       <no items>
        libinput Horizontal Scroll Enabled (315):       1

I read that "Device Accel Constant Deceleration" should be changed, but as you can see I don't have this settings.
I changed "Coordinate Transformation Matrix" but it took no effect.

Any ideas?

Thanks Giuseppe

Last edited by GiuseppeSchnee (2020-02-02 21:53:50)

Offline

#2 2020-02-02 21:00:25

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Adjust Mouse Sensitivity (DPI)


Jin, Jîyan, Azadî

Offline

#3 2020-02-02 21:26:13

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Adjust Mouse Sensitivity (DPI)

Which WM/DE are you using?
Which display server (X or Wayland)?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2020-02-02 21:39:37

GiuseppeSchnee
Member
Registered: 2020-01-24
Posts: 12

Re: [SOLVED] Adjust Mouse Sensitivity (DPI)

$ sudo evhz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   895Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   895Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   903Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   903Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   911Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   911Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   911Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   911Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   911Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   921Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   921Hz
Mouse Trust Gaming Mouse: Latest   500Hz, Average   914Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   914Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   921Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   921Hz
Mouse Trust Gaming Mouse: Latest  1000Hz, Average   929Hz

polling Rate seams to be around 1000Hz means position updates every 1ms

$ lsusb
Bus 001 Device 002: ID [b]145f:0273[/b] Trust Trust Gaming Mouse
$ sudo grep -B3 -A6 145f.*0273 /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 [b]Spd=12[/b]   MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=145f ProdID=0273 Rev= 1.01
S:  Manufacturer=Mouse
S:  Product=Trust Gaming Mouse
C:* #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 [b]Ivl=8ms[/b]
I:* If#= 1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
$ systool -m usbhid -A mousepoll
Module = "usbhid"

    mousepoll           = "0"
$ cat /etc/modprobe.d/usbhid.conf
options usbhid mousepoll=4

Polling rate changed:

Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz
Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz
Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz
Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz
Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz
Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz
Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz
Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz
Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz
Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz
Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz
Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz
Mouse Trust Gaming Mouse: Latest   250Hz, Average   244Hz

But it wasn't what I searched for, the mousepointer is moving at the same speed.

Offline

#5 2020-02-02 21:41:33

GiuseppeSchnee
Member
Registered: 2020-01-24
Posts: 12

Re: [SOLVED] Adjust Mouse Sensitivity (DPI)

Slithery wrote:

Which WM/DE are you using?
Which display server (X or Wayland)?

WM = Openbox
DE = LXqt
display server Xorg

Offline

#6 2020-02-02 21:45:40

xerxes_
Member
Registered: 2018-04-29
Posts: 1,073

Re: [SOLVED] Adjust Mouse Sensitivity (DPI)

https://wiki.archlinux.org/index.php/Mouse_acceleration

You have to change by libinput:

xinput --set-prop <device id> 'libinput Accel Speed' <acceleration factor>

in range -1, 1 (default 0) and check by 'xinput list-props 11'.

Offline

#7 2020-02-02 21:53:24

GiuseppeSchnee
Member
Registered: 2020-01-24
Posts: 12

Re: [SOLVED] Adjust Mouse Sensitivity (DPI)

$ xinput --set-prop 11 'libinput Accel Speed' -1
[harry@harryonarch ~]$ xinput list-props 11
Device 'Mouse Trust Gaming Mouse':
        Device Enabled (163):   1
        Coordinate Transformation Matrix (165): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Natural Scrolling Enabled (298):       0
        libinput Natural Scrolling Enabled Default (299):       0
        libinput Scroll Methods Available (300):        0, 0, 1
        libinput Scroll Method Enabled (301):   0, 0, 0
        libinput Scroll Method Enabled Default (302):   0, 0, 0
        libinput Button Scrolling Button (303): 2
        libinput Button Scrolling Button Default (304): 2
        libinput Middle Emulation Enabled (305):        0
        libinput Middle Emulation Enabled Default (306):        0
        libinput Accel Speed (307):     -1.000000
        libinput Accel Speed Default (308):     0.000000
        libinput Accel Profiles Available (309):        1, 1
        libinput Accel Profile Enabled (310):   1, 0
        libinput Accel Profile Enabled Default (311):   1, 0
        libinput Left Handed Enabled (312):     0
        libinput Left Handed Enabled Default (313):     0
        libinput Send Events Modes Available (283):     1, 0
        libinput Send Events Mode Enabled (284):        0, 0
        libinput Send Events Mode Enabled Default (285):        0, 0
        Device Node (286):      "/dev/input/event6"
        Device Product ID (287):        5215, 627
        libinput Drag Lock Buttons (314):       <no items>
        libinput Horizontal Scroll Enabled (315):       1

That was it.
I read the article, but I assumed that "Accel" would only affect the acceleration, meaning the speed of the mouse affects the mouse logarithmic and not linear.

Thank you!
Giuseppe

Offline

Board footer

Powered by FluxBB