How to enable/disable the touchpad when connecting an external mouse? - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20) +--- Thread: How to enable/disable the touchpad when connecting an external mouse? (/showthread.php?tid=3936) |
How to enable/disable the touchpad when connecting an external mouse? - estelondono - 04-11-2017 Hi there everybody! I'm trying to do something so mi laptop disables the TouchPad when I connect the external Mouse and enables it again when I disconnect the mouse. So far I got the bash script for each action. Searching the web I discovered that with udev I can do that. But so far it doesn't work. So I come here for some help. NOTE: I have to say that I had to change systemd with upstart and lightDM with SDDM in order to make Linux Lite work in my computer (with Ubuntu, my computer only works with Kubuntu and upstart). Unfortunately I'm not that an advance user to explain this, but it just works this way. Ok, now that everything is explained here comes the things I've done: First I create the scripts to disable the touchpad Code: #!/bin/sh and the script to enable it Code: #!/bin/sh I made the rule in /etc/udev/rules.d/10-personal.rules: * Sorry to place an image. For some reason if I write the text here the forum doesn't let me make the post. I restarted my computer but when I connect/disconnect the external mouse the udev rules don't work. The system recognize the mouse and it works ok. But it appears that the udev rules are not "charged". What I am doing wrong? Re: How to enable/disable the touchpad when connecting an external mouse? - torreydale - 04-11-2017 What happens when you adjust the Mouse and Touchpad settings (Menu, Settings, Mouse and Touchpad)? Re: How to enable/disable the touchpad when connecting an external mouse? - estelondono - 04-11-2017 (04-11-2017, 04:59 PM)torreydale link Wrote: What happens when you adjust the Mouse and Touchpad settings (Menu, Settings, Mouse and Touchpad)? Everything works as it's supposed to when I change the settings in the Mouse and the Touchpad via "Mouse and Touchpad setting". Re: How to enable/disable the touchpad when connecting an external mouse? - torreydale - 04-11-2017 Ok. If this is a solved issue, please mark it as such. For your convenience, the forum posting guidelines are here: https://www.freecinema2022.gq/forums/introductions/forum-posting-guidelines/ Re: How to enable/disable the touchpad when connecting an external mouse? - estelondono - 04-11-2017 (04-11-2017, 05:29 PM)torreydale link Wrote: Ok. If this is a solved issue, please mark it as such. For your convenience, the forum posting guidelines are here: Maybe I didn't explain myself correctly: The "Mouse and Touchpad" setting GUI works fine, but there's no option to disable de touchpad when an external mouse is connected to the computer. I'm looking for some kind of daemon to "hear" when the external mouse is connected and then disables the touchpad and vice versa. So far the only thing I can do is a hotkey that toggles the state of the touchpad. But I'm looking for the system to do it automatically. For anyone who's looking the script to toggles the Synaptic touchpad here is the code: Code: #!/bin/sh |