How to change mouse sensitivity?

the built in app "Keyboard and mouse" doesn't affect anything:
image

in archwiki i don't have any file named 50-mouse-accelaration.conf. i have 00-keyboard and 30-touchpad. and archwiki is scary i don't have guts to create a new conf file. i am confused which method to use or how to proceed. i found a file in .config'/autostart with this line
xset m 100/10 100 r rate 500 30 b on

in windows there is a thing, if you move mouse faster your cursor will go more distance than if you move it slower, which i want to be disabled.

System:
  Kernel: 5.19.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=5a1a7018-04d3-413c-8c48-65d37ccf7308 rw rootflags=subvol=@
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=4d1231c9-2dd3-48e1-9758-f32fd70cbe97 loglevel=3
  Desktop: Qtile v: 0.21.1.dev91+g5e54027e vt: 1 dm: SDDM
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: Gigabyte model: B450M S2H v: x.x
    serial: <superuser required> UEFI: American Megatrends v: F50
    date: 11/27/2019
CPU:
  Info: model: AMD Ryzen 3 3100 bits: 64 type: MT MCP arch: Zen 2 gen: 3
    built: 2020-22 process: TSMC n7 (7nm) family: 0x17 (23)
    model-id: 0x71 (113) stepping: 0 microcode: 0x8701013
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 2 MiB desc: 4x512 KiB
    L3: 16 MiB desc: 2x8 MiB
  Speed (MHz): avg: 3606 high: 3694 min/max: 2200/3906 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 3600 2: 3694
    3: 3600 4: 3592 5: 3566 6: 3600 7: 3600 8: 3600 bogomips: 57491
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
    protection
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
    always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    vendor: Sapphire driver: amdgpu v: kernel arch: GCN-4 code: Arctic Islands
    process: GF 14nm built: 2016-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
    ports: active: HDMI-A-2 empty: DP-1, DP-2, DVI-D-1, HDMI-A-1
    bus-ID: 0a:00.0 chip-ID: 1002:67df class-ID: 0300
  Display: x11 server: X.Org v: 21.1.4 compositors: 1: Qtile
    v: 0.21.1.dev91+g5e54027e 2: Picom v: git-affe4 driver: X: loaded: amdgpu
    unloaded: modesetting alternate: fbdev,vesa gpu: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-2 mapped: HDMI-A-1 model: LG (GoldStar) FULL HD
    serial: <filter> built: 2020 res: 1920x1080 dpi: 102 gamma: 1.2
    size: 480x270mm (18.9x10.63") diag: 551mm (21.7") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  OpenGL: renderer: AMD Radeon RX 570 Series (polaris10 LLVM 14.0.6 DRM
    3.47 5.19.2-zen1-1-zen) v: 4.6 Mesa 22.1.6 direct render: Yes
Audio:
  Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
    vendor: Sapphire driver: snd_hda_intel bus-ID: 3-1:2 v: kernel
    chip-ID: 0c76:16cb pcie: class-ID: 0300 gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 0a:00.1 chip-ID: 1002:aaf0 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0c:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: JMTek LLC. FANTECH CAPTAIN 7.1 type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound Server-1: ALSA v: k5.19.2-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 09:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp9s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
    driver: btusb v: 0.8 bus-ID: 1-4.1:3 chip-ID: 0a12:0001 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: N/A
Drives:
  Local Storage: total: 1.14 TiB used: 53.42 GiB (4.6%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SanDisk model: ADATA SX6000PNP
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: V9002s34
    temp: 39.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000DM010-2EP102
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B
    speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: CC43
    scheme: GPT
Partition:
  ID-1: / raw-size: 221.05 GiB size: 221.05 GiB (100.00%) used: 53.4 GiB
    (24.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 25.9 MiB
    (8.6%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 221.05 GiB size: 221.05 GiB (100.00%) used: 53.4
    GiB (24.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 221.05 GiB size: 221.05 GiB (100.00%) used: 53.4
    GiB (24.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 221.05 GiB size: 221.05 GiB (100.00%) used: 53.4
    GiB (24.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.57 GiB used: 2 MiB (0.0%) priority: 100
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 17.13 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 55.9 C mobo: N/A gpu: amdgpu temp: 48.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 801
Info:
  Processes: 303 Uptime: 28m wakeups: 0 Memory: 15.57 GiB used: 2.91 GiB
  (18.7%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.1.1 clang: 14.0.6 Packages: note: see --pkg pacman: 1658
  lib: 481 Shell: Zsh v: 5.9 running-in: alacritty inxi: 3.3.20
Garuda (2.6.6-1):
  System install date:     2022-08-04
  Last full system update: 2022-08-20
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:            swapfile.swap

Iā€™m afraid this is not the right approach, in Linux and especially an Arch-based distroā€¦ :wink:
This looks easy (at least to try) and a good starting point.
I donā€™t see big risks!
In the worst case (mouse not working) you just use the keyboard, delete those files and reboot.
The easiest thing would be to copy one of the other config files, rename it, copy the contents from wiki and start playingā€¦ :blush:

2 Likes

i created 50-mouseblabla.conf it didn't affect.
app i gave screenshot of is a gui of xinput i think. because if i type xinput it shows up. and the file inside autostart is modified by this app. none of them affects anything.

cz is the country code top-level domain (ccTLD) of the Czech Republic.

We have many members, like myself, who are not familiar with abbreviations or may misinterpret them.

1 Like

edited that. can you help me now?

Personally I cannot help much here, but for the others to help I suggest you should try to be more precise. E.g.

What values did you try, in both conf files and GUI?

Another piece of advice in all sincerity. This sounds a little polemicā€¦ Moderating a forum is mostly about making people follow the rules and good practices, including avoiding jargon and acronyms.

1 Like

my apologies.

50-mouse-acceleration.conf:

Section "InputClass"
	Identifier "SINOWEALTH Game Mouse"
	MatchIsPointer "yes"
# set the following to 1 1 0 respectively to disable acceleration.
	Option "AccelerationNumerator" "2" #or 1
	Option "AccelerationDenominator" "1" 
	Option "AccelerationThreshold" "1" #or 0
EndSection

in Keyboard and mouse which is 'lxinput' gui i tried various values, took the slider to a random places etc. xset command and lxinput gui rewrites .config/autostart/LXinput-setup.desktop to

Exec=sh -c 'xset m 10/10 1 r rate 500 30 b on'

or

Exec=sh -c 'xset m 100/10 100 r rate 500 30 b on'

or

Exec=sh -c 'xset m 3/2 0 r rate 500 30 b on'

i couldn't figure out how to use the xinput --set-props method

1 Like

I am sure you read

       --set-prop [--type=atom|float|int] [--format=8|16|32] device property value
       [...]
               Set the property to the given value(s).  If not specified, the forā€
               mat and type of the property are left as-is.  The arguments are inā€
               terpreted  according  to  the  property  type. See Section CHANGING
               PROPERTIES.
xinput set-prop "my device" "my prop" 1 2 3

alright creating a bash script for autostart seems to work.

#!/bin/bash

xinput --set-prop 'pointer:''Your mouse name here' 'libinput Accel Profile Enabled' 0, 1
xinput --set-prop 'pointer:''Your mouse name here' 'libinput Accel Speed' -0.6
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.