Disable touchpad when mouse is connected
- Anmelden oder Registrieren um Kommentare zu schreiben
I'd like to have the touchpad disabled when the mouse is connected, and enabled otherwise.
There seems to be such a settings for GNOME, but not for MATE. I tried this which does not work:
gsettings set org.gnome.desktop.peripherals.touchpad send-events disabled-on-external-mouse
There is no similar setting in org.mate.desktop.peripherals.touchpad. There is a setting to disable the touchpad when typing, I have it on, but still, I get issues when typing because I hit the touchpad, so it looks not effective.
At https://ubuntu-mate.community/t/13931, someone linked a solution https://askubuntu.com/questions/438179/how-can-i-toggle-the-touchpad-depending-on-whether-a-mouse-is-connected/438220#438220 as working, but it looks a bit complicated to me and the post is from 2018, so not sure how well it would work.
Anyone has a solution for this?
> someone linked a solution https://askubuntu.com/questions/438179/how-can-i-toggle-the-touchpad-depending-on-whether-a-mouse-is-connected/438220#438220
It worked here on Trisquel 12.
Thanks. When I have no mouse connected, I still have this:
$ xinput list | grep -i mouse ⎜ ↳ FTCS1000:00 2808:0102 Mouse id=8 [slave pointer (2)] ⎜ ↳ ImPS/2 Generic Wheel Mouse id=15 [slave pointer (2)]
So I modified my script to only detect the mouse I am currently using, then it works. I will try later to modify it to exclude those two fake mouses.

