You are not logged in.
Pages: 1
I have a cheap Chinese mouse with 4 side buttons (MB1, MB2, etc.) and for some reason they all send a double keypress when clicked. This happens in Windows 10 as well, the mouse is the issue.
In Windows, a simple Autohotkey script can be used to remap the mouse buttons and stop any duplicate clicks by only letting it through one time in a max amount of milliseconds, fixing the issue.
How would I accomplish something similar on Arch? I've tried "input-remapper" tool, and that can remap the mouse buttons fine, but whatever it's remapped to gets the duplicate send.
Last edited by BigDawg (2023-08-02 01:30:58)
Offline
Debouncing is the default behavior.
sudo libinput list-devices
sudo libinput quirks list /dev/input/event<relevant number here>Does the mouse show up as various devices (one being a "keyboard")?
Offline
There was once a debounce hacked version of evdev for Xorg too, can't find it anymore in the Aur.
patch for upstream was rejected, it seems.
https://github.com/denisix/evdev-debounce-buggy-mouse
Last edited by kokoko3k (2023-08-02 06:01:35)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Debouncing is the default behavior.
sudo libinput list-devices sudo libinput quirks list /dev/input/event<relevant number here>Does the mouse show up as various devices (one being a "keyboard")?
Yes! it shows up as 3 different devices and one IS a keyboard! Which gives me the idea you might know how to fix this.
I have successfully set my duplicate keypress settings (I think) in the XFCE accessibility settings, and it DID fix the double mouse button press. However it also stops me from being able to quickly type two regular keys on my keyboard. So I dont think its what others were referring to, just a generic "stop duplicate keys" accessibility option.
So that setting fixed the mouse's double key send, but also double keys from every attatched device, which I don't want. For example if I press backspace rapidly, or any other keyboard key (like a word with 2 consecutive letters) it blocks any keysend after the first one, and because I type at a decent speed, this is unbearable lol.
Do you have an alternative solution, or maybe a way to set the "stop duplicate key" presses for only one device, so I can stop them on my mouse but have my main keyboard work as expected?
Last edited by BigDawg (2023-08-02 18:23:17)
Offline
Did you ensure that the events come from the keyboard device?
Is this just autorepeat?
Do they fire more often if you push the button and keep it pressed?
What keys/events are generated specifically (either "xev -event keyboard" or "sudo libinput debug-events")?
Edit:
https://aur.archlinux.org/packages/xkbset
You can control the bouncekeys delay w/ it so if the mouse actually bounces and bounces fast, a short enough delay will allow you normal human operation but block the hw bounce.
Last edited by seth (2023-08-02 19:39:14)
Offline
https://aur.archlinux.org/packages/xkbset
You can control the bouncekeys delay w/ it so if the mouse actually bounces and bounces fast, a short enough delay will allow you normal human operation but block the hw bounce.
Awesome tool, thanks for this!!!
Sorry for kind of hijacking the thread, but I have a cheap keyboard which has a great layout and it feels good enough to me, but some keys fire twice when I press them, e.g. the space bar. Now with a simple
xkbset bo 20(the value of 20 ms is the first I'll test longer, the line goes into .xinitrc)
I can use it normally.
Great tool, keeps me from buying a better keyboard ![]()
Last edited by sekret (2023-08-03 07:24:30)
Offline
Pages: 1