I am running Ubuntu 18.04.2 LTS with the standard gdm3 display manager. I would need to adjust the mouse speed, which I can do with xinput
, using the following two commands in my case:
xinput set-prop 9 287 0, 1
xinput set-prop 9 284 -0.9
The only problem is that I can't make these settings permanent after reboot. If I place them into ~/.bashrc
, then they do work fine after opening a new terminal window, but I would like to achieve the same already when the desktop has started (preferable already being active at the long-in screen).
Following this thread I did try to add these commands into ~/.xsessionrc
, but also to several other different locations, like: /etc/profiles
, ~/.xinputrc
, /etc/X11/xinit/xinitrc
, or /etc/X11/xinit/xinputrc
, but none of them had effect after xwindows
was up.
Any suggestions directing me to the correct path would be highly appreciated!
xinput
details: (unfortunately there are multiple ids with the same name "Razer Razer DeathAdder Elite", hence I have to use the id number = 9):
⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Razer Razer DeathAdder Elite id=9 [slave pointer (2)] ⎜ ↳ Razer Razer DeathAdder Elite id=10 [slave pointer (2)] ⎜ ↳ Razer Razer Ornata Chroma id=13 [slave pointer (2)] ⎜ ↳ Razer Razer Ornata Chroma 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)] ↳ Power Button id=7 [slave keyboard (3)] ↳ HD Webcam C525 id=8 [slave keyboard (3)] ↳ Razer Razer DeathAdder Elite id=11 [slave keyboard (3)] ↳ Razer Razer Ornata Chroma id=12 [slave keyboard (3)] ↳ Razer Razer DeathAdder Elite id=15 [slave keyboard (3)] ↳ Razer Razer Ornata Chroma id=16 [slave keyboard (3)]
xinput list-props 9
output, highlighting the two relevant ones:
... libinput Accel Speed (284): -0.900000 libinput Accel Speed Default (285): 0.000000 libinput Accel Profiles Available (286): 1, 1 libinput Accel Profile Enabled (287): 0, 1 libinput Accel Profile Enabled Default (288): 1, 0 ...
Options
in a file in/usr/share/X11/xorg.conf.d
.