6

I asked this a year ago, with the new (awful) upgrade 18.04 upgrade, the fix got removed and reapplying it doesn't work.

I have a laptop, and while typing, my palm touches the touchpad, which makes the mouse move, close tabs by itself, delete words, open programs, and all other actions.

I want to disable it while typing, same way Windows automatically does it.

This is the previous question, the accepted answer worked for me in 16.04, but no longer works anymore. How do I disable the touchpad while typing?

Note that running the command mentioned in the accepted answer gives this:

Input:

sudo apt install xserver-xorg-input-libinput

Output:

xserver-xorg-input-libinput is already the newest version (0.27.1-1).
The following packages were automatically installed and are no longer required:
  libgnome-keyring-common libgnome-keyring0 libnih-dbus1
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Yes, I restarted my laptop.

  • Have you tried it from gnome tweaks? – PRATAP Oct 19 '18 at 22:11
  • You could try using syndaemon, as this answer describes. – earthmeLon Oct 19 '18 at 23:09
  • @earthmeLon Already tried that, doesn't work well. The one in 16.04 was working perfectly. – MichaelX Oct 19 '18 at 23:15
  • @PRATAP I've only used gnome tweaks once for a skin or something, do you know if it has an option for this? – MichaelX Oct 19 '18 at 23:17
1

Install Touchpad Indicator GNOME extension. Perfect.

https://extensions.gnome.org/extension/131/touchpad-indicator/

Switch the touchpad, trackpoint, fingertouch, touchscreen or a pen device on and off easily from the top panel. Optionally, automatically disable some or all devices when a mouse is plugged in and re-enable them when unplugged.

  • 1
    I tried that before, it doesn't offer what I'm looking for. – MichaelX Oct 21 '18 at 15:49
1

Install gnome-tweaks

sudo apt install gnome-tweaks

and open it.

Under the tab Keyboard & Mouse you will find in the main window under Touchpad the switch Disable While Typing.

enter image description here

  • 3
    Doesn't work. What theme are you using? – MichaelX Oct 21 '18 at 15:48
  • I'm using a MacOS theme..However, opening gnome-tweaks & should display this menu. – abu_bua Oct 21 '18 at 15:58
  • 1
    The menu is displayed, selecting that option does not fix the problem. – MichaelX Oct 21 '18 at 16:02
  • Maybe you have to restart the shell: alt+f2 and r + enter – abu_bua Oct 21 '18 at 16:03
  • 2
    Restarted the computer, it simply doesn't work. – MichaelX Oct 23 '18 at 1:33
0

Assuming your system is using libinput, not synaptics, here is the correction. Copy the following place in /etc/X11/xorg.conf.d/90-libinput.conf. Must log out to trigger a re-load of X11.

The change that affects the touchpad while typing is in the second to last line. In my case, I have some boiler plate that channels all of the action to the libinput driver, that may not be strictly necessary. HOwever, I'm certain that the last stanza is your magic bullet.

# Match on all types of devices but tablet devices and joysticks
Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "MyTouchpad"
        MatchIsTouchpad "on"
        Driver "libinput"
        Option "Tapping" "on"
        Option "DisableWhileTyping" "on"
EndSection
0

I did it this way:

sudo apt remove xserver-xorg-input-synaptics
sudo apt install xserver-xorg-input-libinput
sudo reboot

On my machine I had both of them, so synaptics was default, deleting it helped me. Do not forget to reboot.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.