My wired mouse jumps around the screen when I use an xorg-based wm. It looks like it’s drifting, but when I jitter my mouse around or make circles with it, I can see it teleport randomly a bit. When I reboot the problem disappears. If I power my desktop off, the problem “resets”. When I use Wayland or Windows, I don’t have this issue. Regardless if I pick xorg or Wayland on login, if I log out and switch between them, xorg still has the issue and Wayland does not.
Important note: this only happens for my Razer DeathAdder V3. I’ve tried a few different mice, and haven’t had the same issue. Maybe it’s an issue with the mouse itself, but from everything I describe in this post, that doesn’t really make sense to me (esp. b.c. it only happens on xorg).
The actual jumping behavior happens every few seconds while I’m moving my mouse, and location the cursor jumps to is random, but not too too far away from where it originally was. I currently don’t have screen recording software installed, but as soon as I can set one up I’ll upload a video.
I originally installed endeavor with sway, and added on bspwm later through the community edition install script for some funky Xbox login issues. I think the issue has existed since I installed bspwm, but I honestly can’t remember since I originally barely used it. I use the bspwm version on my laptop, decided I’d stick to one wm, and tried to switch on my desktop, only to find this issue which I vaguely remember running into when I installed it a year or so ago. That’s all to say, I don’t think this is the result of an update, and I don’t think I’ve messed all that much with my X11 settings.
I set my mouse settings through /etc/X11/xorg.conf.d/90-razer-deathadder-v3.conf so that the acceleration is set to flat and zero…
Section "InputClass"
Identifier "My Razer Deathadder V3 Config"
MatchDriver "libinput"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
MatchProduct "Razer Razer DeathAdder V3"
Option "AccelProfile" "flat"
Option "AccelSpeed" "0"
EndSection
I’ve validated the settings are applied through xinput…
$ xinput list-props 11
Device 'Razer Razer DeathAdder V3':
Device Enabled (174): 1
Coordinate Transformation Matrix (176): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (305): 0
libinput Natural Scrolling Enabled Default (306): 0
libinput Scroll Methods Available (310): 0, 0, 1
libinput Scroll Method Enabled (311): 0, 0, 0
libinput Scroll Method Enabled Default (312): 0, 0, 0
libinput Button Scrolling Button (313): 2
libinput Button Scrolling Button Default (314): 2
libinput Button Scrolling Button Lock Enabled (315): 0
libinput Button Scrolling Button Lock Enabled Default (316): 0
libinput Middle Emulation Enabled (317): 0
libinput Middle Emulation Enabled Default (318): 0
libinput Rotation Angle (288): 0.000000
libinput Rotation Angle Default (289): 0.000000
libinput Accel Speed (319): 0.000000
libinput Accel Speed Default (320): 0.000000
libinput Accel Profiles Available (321): 1, 1, 1
libinput Accel Profile Enabled (322): 0, 1, 0
libinput Accel Profile Enabled Default (323): 1, 0, 0
libinput Accel Custom Fallback Points (324): <no items>
libinput Accel Custom Fallback Step (325): 0.000000
libinput Accel Custom Motion Points (326): <no items>
libinput Accel Custom Motion Step (327): 0.000000
libinput Accel Custom Scroll Points (328): <no items>
libinput Accel Custom Scroll Step (329): 0.000000
libinput Left Handed Enabled (330): 0
libinput Left Handed Enabled Default (331): 0
libinput Send Events Modes Available (290): 1, 0
libinput Send Events Mode Enabled (291): 0, 0
libinput Send Events Mode Enabled Default (292): 0, 0
Device Node (293): "/dev/input/event5"
Device Product ID (294): 5426, 178
libinput Drag Lock Buttons (307): <no items>
libinput Horizontal Scroll Enabled (308): 1
libinput Scrolling Pixel Distance (332): 15
libinput Scrolling Pixel Distance Default (333): 15
libinput High Resolution Wheel Scroll Enabled (309): 1
The issue occurs both with and without the /etc/X11/xorg.conf.d/90-razer-mouse.conf mentioned above.
Something I did notice was that xinput reports multiple razer deathadder mouses, although from what I gathered the endeavor and arch forums is that might be the different buttons on the mouse (thumb, scroll wheel, dpi profile, etc. buttons) for whatever reason. Thought it’d be worth pointing it out…
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Generic Blue Microphones Consumer Control id=9 [slave pointer (2)]
⎜ ↳ Razer Razer DeathAdder V3 id=11 [slave pointer (2)]
⎜ ↳ Razer Razer DeathAdder V3 Keyboard id=12 [slave pointer (2)]
⎜ ↳ Boardsource boardsource/unicorne Mouse id=15 [slave pointer (2)]
⎜ ↳ Boardsource boardsource/unicorne Consumer Control id=17 [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)]
↳ Generic Blue Microphones id=10 [slave keyboard (3)]
↳ Razer Razer DeathAdder V3 id=13 [slave keyboard (3)]
↳ Boardsource boardsource/unicorne id=14 [slave keyboard (3)]
↳ Boardsource boardsource/unicorne System Control id=16 [slave keyboard (3)]
↳ Boardsource boardsource/unicorne Keyboard id=18 [slave keyboard (3)]
↳ Generic Blue Microphones Consumer Control id=19 [slave keyboard (3)]
↳ Razer Razer DeathAdder V3 Keyboard id=20 [slave keyboard (3)]
↳ Boardsource boardsource/unicorne Consumer Control id=21 [slave keyboard (3)]
I have checked the configs in both /etc/X11 and /urs/share/X11, and have failed to find a conf that I believe should cause an issue. Most of the confs I believe are defaults that came with the endevor bspwm community edition, at the very least the only one I’ve created is the one for my mouse I already mentioned. Here’s what both X11 dirs look like, in case anyone thinks one of the defaults could be messing with something…
$ cd /etc/X11 && tree
.
├── xinit
│ ├── xinitrc
│ ├── xinitrc.d
│ │ ├── 40-libcanberra-gtk-module.sh
│ │ ├── 50-systemd-user.sh
│ │ ├── 80xapp-gtk3-module.sh
│ │ └── 90xbrlapi
│ └── xserverrc
└── xorg.conf.d
├── 00-keyboard.conf
├── 10-libinput.conf
└── 90-razer-deathadder-v3.conf
$ cd /usr/share/X11 && tree
.
├── app-defaults
│ └── ... # big dir
├── locale
│ └── ... # big dir
├── Xcms.txt
├── xkb
│ └── ... # big dir
└── xorg.conf.d
├── 10-amdgpu.conf
├── 10-quirks.conf
├── 10-radeon.conf
├── 30-touchpad.conf
└── 40-libinput.conf
Please let me know if you have any ideas on what could be causing this issue, or whatever additional information you might need.