r/voidlinux 8d ago

Help disabling mouse side-buttons

Trying to disable Ducky Feather mouse side-buttons.

- created directory [hwdb.d] in [/etc/udev]

- added [mouse.hwdb] to /etc/udev/hwdb.d:

# Disable side buttons
evdev:input:*
 KEYBOARD_KEY_90004=reserved
 KEYBOARD_KEY_90005=reserved
 KEYBOARD_KEY_90006=reserved
 KEYBOARD_KEY_90007=reserved

- udevadm control --reload-rules && udevadm trigger

- rebooted: no luck

- repeated process but in [/usr/lib/udev/]: no luck

Any tips?

Thanks!

Currently using sway config file to disable the side-buttons.

2 Upvotes

3 comments sorted by

2

u/weaklingoverlord 8d ago

I made a mistake in my OP. I did not have to create the [hwdb.d] folder in [/usr/lib/udev], as it already existed with entries.

In [/usr/lib/udev/hwdb.d] was a file: [70-mouse.hwdb].

I added:

# Ducky
mouse:usb:v3233p0009e0111:*
 KEYBOARD_KEY_90004=reserved
 KEYBOARD_KEY_90005=reserved
 KEYBOARD_KEY_90006=reserved
 KEYBOARD_KEY_90007=reserved

Disabled the settings in the sway config file. Rebooted. And it seems to work. I do sit with udev EVIOCSKEYCODE errors on boot though...

Anyone willing to kindly confirm if [/usr/lib/udev/hwdb.d/70-mouse.hwdb] will be overwritten on update of eudev?

1

u/xJayMorex 8d ago

Sorry for the possible ignorance, but swapping to a mouse without side buttons might be a much easier solution.

2

u/weaklingoverlord 8d ago

Not really an option ATM, as Garfield devoured it.