When drafting long emails, authoring code in IDEs, or taking notes during meetings on a laptop in Ubuntu, resting your palms naturally on the palm rest is a standard typing posture. However, on laptops featuring expansive modern touchpads, resting your thumbs or the base of your palms against the touchpad surface frequently registers accidental taps. This causes your text insertion cursor to leap erratically into previous paragraphs, overwriting established sentences and causing intense frustration. Ubuntu includes dedicated palm rejection settings that automatically suppress touchpad input while your keyboard is in use.
How Palm Rejection Operates in Linux
Ubuntu’s input subsystem (libinput) incorporates automated palm detection:
- Typing Suppression Window: Temporarily locks trackpad pointer movement and tap-to-click inputs while keys are being pressed and for a fraction of a second afterwards.
- Instant Reactivation: As soon as you pause typing, cursor tracking reactivates instantaneously without perceivable lag.
- Edge Pressure Filtering: Ignores stationary palm resting contact along the extreme left and right perimeters of the trackpad.
Step-by-Step: Enabling “Disable While Typing” via GNOME Tweaks
While the basic Settings app manages trackpad speed and scrolling, fine-tuning palm rejection is handled via GNOME Tweaks:
- If you do not have GNOME Tweaks installed, open Terminal (Ctrl + Alt + T) and run:
sudo apt install gnome-tweaks. - Launch Tweaks from your application launcher.
- In the left-hand navigation column, click on Keyboard & Mouse.
- Locate the Touchpad section.
- Locate the toggle switch labelled Disable While Typing.
- Switch the toggle to the On position.
The palm rejection driver takes effect immediately across all desktop applications without requiring a system restart or user logoff.
Method 2: Verify via Command Line (Dconf / Gsettings)
If you prefer configuring system preferences directly from the command line:
- Open Terminal.
- Execute the following command to enable typing suppression:
gsettings set org.gnome.desktop.peripherals.touchpad disable-while-typing true - To verify the current state, run:
gsettings get org.gnome.desktop.peripherals.touchpad disable-while-typing
Tip: If cursor jumping persists, check Settings > Mouse & Touchpad and consider turning off Tap to Click so that only physical trackpad clicks register as mouse buttons.
Enabling palm rejection restores confidence to your typing workflow, ensuring you can write fluidly without disruptive cursor hops.