Ask Ubuntu Asked by Lehdari on February 8, 2021
After complete system upgrade yesterday my mouse sensitivity get reset every time I replug it. This happens often since I have my peripherals attached to my monitor which I use as a dock to switch between 2 computers.
Workarounds I’ve tried so far:
/etc/udev/rules.d
to call a script to set the sensitivity when the mouse is replugged:/etc/udev/rules.d/config-mouse-roccat.rules
:ACTION=="add"
, ATTRS{idVendor}=="1e7d"
, ATTRS{idProduct}=="2e23"
, ENV{DISPLAY}=":0"
, ENV{XAUTHORITY}="/run/user/1000/gdm/Xauthority"
, RUN+="/home/lehdari/.scripts/config_mouse_roccat.sh"
/home/lehdari/.scripts/config_mouse_roccat.sh
:
#! /bin/sh
xinput set-prop "ROCCAT ROCCAT Kone XTD Optical Mouse" 157 0.3 0.0 0.0 0.0 0.3 0.0 0.0 0.0 1.0
The script itself works fine and gets called when tested with udevadm test
as instructed at https://linuxconfig.org/tutorial-on-how-to-write-basic-udev-rules-in-linux, but does not work nevertheless.
/usr/share/X11/xorg.conf.d/50-mouse.conf
:
Section "InputClass"
Identifier "ROCCAT ROCCAT Kone XTD Optical Mouse"
Driver "libinput"
MatchIsPointer "yes"
Option "AccelProfile" "flat"
Option "AccelSpeed" "-0.7"
Option "ScrollMethod" "button"
EndSection
Neither of these does work. (I guess the xorg conf couldn’t work even on theory since the config gets called only when the X server is initialized)
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP