Skip to main content
Topic: Unable to use mouse side buttons (Read 692 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Unable to use mouse side buttons

I've recently switched to Artix using the plasma-runit installer and so I noticed that none of my mouse buttons are working.

I Googled around a little but and found some recommendations to install Piper.
I succeeded installing Piper but can't get it to work as I don't have ratbagd installed. I tried installing a ratbagd alternative libratbag-nosystemd-git (AUR package) but the compilation fails. I don't know how to fix it, but here's the logs of installing it https://pastebin.com/QMBb9VFk

I also tried to set the button map using xinput but that also doesn't work. For some reason my mouse4 and mouse5 buttons are not recognized at all. Logs for mouse4 and mouse5 don't show up when I do `xinput test [mouse id]`, basic mouse buttons show up just fine and so do mouse movements.

Oh and the mouse is not broken. Side buttons work fine on other systems (such as Windows).

So my question is how do I go on about getting my mouse side buttons working on Artix? Any help is appreciated and feel free to ask for any logs or tests.

EDIT: My mouse is Logitech G Pro Wireless.

Re: Unable to use mouse side buttons

Reply #1
Could be that in Windows it fetches it's own proprietary driver quicker than you can realize, these fancy wireless guys break standards all the time and God knows how it maps it's auxiliary buttons.
Before you can make ratbagd/Piper work here (the compilation issue seems python related), to save a lot of time just boot an ubuntu/etc iso and try it there. AFAIK it can only do so much as it was originally made just for dpi/led control, they added some mapping later.

Re: Unable to use mouse side buttons

Reply #2
Could be that in Windows it fetches it's own proprietary driver quicker than you can realize, these fancy wireless guys break standards all the time and God knows how it maps it's auxiliary buttons.
Before you can make ratbagd/Piper work here (the compilation issue seems python related), to save a lot of time just boot an ubuntu/etc iso and try it there. AFAIK it can only do so much as it was originally made just for dpi/led control, they added some mapping later.

Thanks for the help and the reply ^^

Just tried piper and ratbagd on Ubuntu 20.04 and sadly my mouse is not even recognized there :(
I did some Googling and apparently the same problem occurs for other Logitech G Pro Wireless mouse users: https://github.com/libratbag/libratbag/issues/1333

So I guess that takes Piper out of the question.

I also tried Solaar and my mouse is fully recognized and working there. The only problem with that app is that it can't do mouse mappings.

Using the side buttons on my mouse are so embedded in my muscle memory when browsing the internet and using the buttons for ingame bindings that I'm not ready to give up just yet.
Is there any other way I could use my mouse's side buttons?

Re: Unable to use mouse side buttons

Reply #3
Perhaps some of the advice here could be worth investigating, various issues with some Logitech mouse models are discussed:
https://wiki.archlinux.org/title/Mouse_buttons
Libinput is the default mouse driver thing, with laptops you can also try the older synaptics driver instead, I don't think that's true for a desktop mouse, I think it would probably be the evdev driver instead, xf86-input-evdev.
https://wiki.archlinux.org/title/libinput

 

Re: Unable to use mouse side buttons

Reply #4
I was able to get ratbagd/Piper to recognize my mouse in Ubuntu by switching off the "Onboard Memory" mode using the G Hub application on a Windows machine.

However the ratbagd/Piper still didn't recognize my mouse4 and mouse5 button presses, even after trying to configure the side buttons to send a left mouse button, they just wouldn't work.
I also tried `xinput test [mouse id]` and xev to see if either of them would recognize the side buttons here in Artix but that also didn't work.

Not really sure what to do with this information though, I guess I could go and harass the ratbagd devs to add compatability to the side buttons?

Perhaps some of the advice here could be worth investigating, various issues with some Logitech mouse models are discussed:
https://wiki.archlinux.org/title/Mouse_buttons
Libinput is the default mouse driver thing, with laptops you can also try the older synaptics driver instead, I don't think that's true for a desktop mouse, I think it would probably be the evdev driver instead, xf86-input-evdev.
https://wiki.archlinux.org/title/libinput

In the thumb buttons mapping (https://wiki.archlinux.org/title/Mouse_buttons#Thumb_buttons_-_forward_and_back) it assumes that you know which keycode (?) gets sent to your machine from the mouse when you press the side buttons, but I can't really figure that out since xev and xinput don't recognize the presses.