I recently purchased an Asus TUF GAMING M5 mouse. It worked OK on my dual boot Windows 10, but was not getting detected by Ubuntu. After a bit of research, I came to know that there are drivers for it in Ubuntu, but multiple interfaces within the mouse meant that X11 could not make up which driver to use and assigned the mouse a generic driver. The X11 logs indicated that the mouse will be assigned a keyboard catchall one driver.
So, I had to configure my x11.org within /etc/X11 with the following lines . After the restart, the mouse was detected OK. I still cannot figure out how to change the colours, but that is a battle for another day.
Identifier "ASUSTek TUF GAMING M5"
Option "SendCoreEvents" "true"
Option "Buttons" "27"
Option "Device" "/dev/input/by-id/usb-ASUSTek_TUF_GAMING_M5-event-mouse"
Hope this helps someone else 🙂