Touchpad Toggle

Hi, I could turn off my touchpad by pressing F6, and then the touchpad turns off. However, on startup, the touchpad is set to on automatically. I again have to press F6 to turn off my touchpad. I don’t want to disable it entirely. I just want to turn the touchpad on when necessary just by pressing F6 again. What do I do?

BTW, mine is a Lenovo Z50-70 laptop.

Whilst you don't have a 'non-working' issue, does the suggestion posted here help?
https://askubuntu.com/questions/632085/lenovo-z50-70-keyboard-and-touchpad-not-working-at-all

If you have gnome-tweaks (Tweaks) installed try adding this extension:
https://extensions.gnome.org/extension/935/toggle-touchpad/

No. My touchpad is working fine. I just want to somehow store the on/off state of touchpad across startups.

Do I have to run some command on startup?

Does this askubuntu thread help?:

libinput is already installed on my system.

Is something like pressing a FN key on startup is possible?

Like having a command which would press the F6 key on startup?

I just found out this. But toggling the touchpad off is not working.

When I execute sudo xdotool key XF86TouchpadToggle the button in the “Mouse & Touchpad” in settings does not switch off.

You can try adding this indicator which comes with a toggle:
http://ubuntuhandbook.org/index.php/2018/04/install-touchpad-indicator-ubuntu-18-04-lts/

Also, there is a way to make it Auto Toggle:

This is just disabling the touchpad entirely. Not toggling it.

Enter KDE!:

Well…
https://extensions.gnome.org/extension/935/toggle-touchpad/
Disclaimer on the page: NOT MAINTENAINED ANYMORE

Might be worth trying out for now, though.

Searching for an actual Toggle, I am not finding much for Gnome. I found some bash scripts that may work, but pretty sure you don’t want to go through that trouble without a reasonable guarantee it will do what you want it to do.

1 Like

Hello, it is 2024, and we are at Zorin 17. I would like to know if there is a way to disable the touchpad on the system, even completely, with a command and then re-enable it.

This would be the command to disable the touchpad on Zorin Wayland:

gsettings set org.gnome.desktop.peripherals.touchpad send-events disabled

In order to re-enable, you can just use enabled at the end. This behaves the same as if your keyboard had a button to toggle the touchpad on or off. If you wanted this to run at startup, you could add it to the startup applications and use that code as the command. This wouldn't disabled it in the login screen, and you could do that with a couple other options, but I assume this is more what you mean.

4 Likes

Thank you; you are a lifesaver. At last!

2 Likes

perfect solution to toggle touchpad - in Keyboard > Shortcuts > Custom Shortcuts > created one shortcut using the listed command "disabled" and a slightly different shortcut with "enabled" ... such as ctrl + super + l for Off; And ctrl + super + m to turn it back on . Thanks @applecheeks37

@chthonic Those who find this method too difficult can use in Zorin 18 this gnome extension: