Turn off touchpad while typing.  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
dancytron
Posts: 13
Joined: Thu Dec 28, 2023 11:54 am

Turn off touchpad while typing.  [Solved]

#1 Post by dancytron »

I'd like to turn off the touchpad while I'm typing. The solution in the xfce help, which also works on Puppy Linux and some similar distros, is to run this, but I get an the error below. Same with sudo and a root terminal..

Code: Select all

$ syndaemon -i 2.0 -K -R
No synaptics properties on device 'SynPS/2 Synaptics TouchPad'.

See https://docs.xfce.org/xfce/xfce4-settings/mouse.

Thanks,

Dan


Code: Select all

System:
  Kernel: 6.1.0-13-amd64 [6.1.55-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/antiX-Frugal-6.1.0-13-amd64/vmlinuz bdir=antiX-Frugal-6.1.0-13-amd64
    buuid=2618304c-b5be-4cdc-bcc4-5eee05256f09 quiet splasht nosplash lang=en_US kbd=us
    tz=America/Chicago persist_root
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23.2_x64 Libretto October 15  2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: HP product: HP 15 Notebook PC v: N/A serial: <superuser required> Chassis:
    type: 10 serial: <superuser required>
  Mobo: HP model: 8015 v: 11.27 serial: <superuser required> UEFI: American Megatrends v: F.34
    date: 12/07/2015
Battery:
  ID-1: BAT0 charge: 30.5 Wh (100.0%) condition: 30.5/30.5 Wh (100.0%) volts: 12.4 min: 10.9
    model: Hewlett-Packard Primary type: Li-ion serial: N/A status: full cycles: 274
CPU:
  Info: model: AMD A8-7410 APU with AMD Radeon R5 Graphics bits: 64 type: MCP arch: Puma level: v2
    built: 2014-15 process: GF 28nm family: 0x16 (22) model-id: 0x30 (48) stepping: 1
    microcode: 0x7030105
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB
    L2: 2 MiB desc: 1x2 MiB
  Speed (MHz): avg: 1025 high: 1086 min/max: 1000/2200 boost: enabled scaling:
    driver: acpi-cpufreq governor: ondemand cores: 1: 1003 2: 1015 3: 1086 4: 998 bogomips: 17566
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT disabled
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling, PBRSB-eIBRS: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Mullins [Radeon R4/R5 Graphics] vendor: Hewlett-Packard driver: radeon v: kernel
    alternate: amdgpu arch: GCN-2 code: Sea Islands process: GF/TSMC 16-28nm built: 2013-17 ports:
    active: eDP-1 empty: HDMI-A-1 bus-ID: 00:01.0 chip-ID: 1002:9851 class-ID: 0300
  Device-2: Microdia HP Webcam type: USB driver: uvcvideo bus-ID: 2-1.2:3 chip-ID: 0c45:651b
    class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X: loaded: radeon
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: radeon display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99") s-diag: 414mm (16.31")
  Monitor-1: eDP-1 mapped: eDP model: AU Optronics 0x10ec built: 2014 res: 1366x768 hz: 60
    dpi: 101 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5") ratio: 16:9 modes:
    max: 1366x768 min: 640x480
  API: OpenGL v: 4.5 Mesa 22.3.6 renderer: KABINI ( LLVM 15.0.6 DRM 2.50 6.1.0-13-amd64)
    direct-render: Yes
Audio:
  Device-1: AMD Kabini HDMI/DP Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    bus-ID: 00:01.1 chip-ID: 1002:9840 class-ID: 0403
  Device-2: AMD FCH Azalia vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    bus-ID: 00:14.2 chip-ID: 1022:780d class-ID: 0403
  API: ALSA v: k6.1.0-13-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8188EE Wireless Network Adapter vendor: Hewlett-Packard driver: rtl8188ee
    v: kernel modules: wl pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 01:00.0
    chip-ID: 10ec:8179 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Hewlett-Packard driver: r8169
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 02:00.0 chip-ID: 10ec:8136
    class-ID: 0200
  IF: eth0 state: down mac: <filter>
Bluetooth:
  Device-1: Edimax Bluetooth Adapter type: USB driver: btusb v: 0.8 bus-ID: 3-1:2
    chip-ID: 7392:c611 class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 3.0 lmp-v: 5.1
    sub-v: 8a6b hci-v: 5.1 rev: 9a9
  Info: acl-mtu: 1021:6 sco-mtu: 255:12 link-policy: rswitch hold sniff park
    link-mode: peripheral accept service-classes: rendering, capturing, object transfer, audio,
    telephony
Drives:
  Local Storage: total: 465.76 GiB used: 240.35 GiB (51.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: HGST (Hitachi) model: HTS545050A7E680 size: 465.76 GiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: A3J0 scheme: GPT
Partition:
  Message: No partition data found.
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 5.86 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda7
    maj-min: 8:7
Sensors:
  System Temperatures: cpu: 51.8 C mobo: N/A gpu: radeon temp: 55.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2294 pm: dpkg pkgs: 2293 libs: 1148 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 1
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/DebianDog.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
    3: deb-src http://deb.debian.org/debian/ bookworm non-free-firmware non-free contrib main
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list
    1: deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ bookworm main non-free
  No active apt repos in: /etc/apt/sources.list.d/vysor.list
Info:
  Processes: 234 Uptime: 13h 19m wakeups: 2 Memory: 10.63 GiB used: 4.4 GiB (41.4%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
SecureBoot enabled

Charlie Brown

Re: Turn off touchpad while typing.

#2 Post by Charlie Brown »

libinput is the default driver as of MX-23 (hence that output/error) (...however that feature is already set to off by default).

Code: Select all

sudo nano /etc/X11/xorg.conf.d/30-touchpad-libinput.conf
You can add this line

Code: Select all

    Option "DisableWhileTyping" "true"
Save ...

Charlie Brown

Re: Turn off touchpad while typing.

#3 Post by Charlie Brown »

In case you'd like to turn back to (the good old) Synaptics :

Code: Select all

sudo mv /etc/X11/xorg.conf.d/30-touchpad-libinput.conf{,.old} ; sudo apt update ; sudo apt install xserver-xorg-input-synaptics -y
Reboot.


To revert back to libinput (for whatever reason) :

Code: Select all

sudo mv /etc/X11/xorg.conf.d/30-touchpad-libinput.conf.old /etc/X11/xorg.conf.d/30-touchpad-libinput.conf ; sudo apt remove xserver-xorg-input-synaptics -y
Reboot.

dancytron
Posts: 13
Joined: Thu Dec 28, 2023 11:54 am

Re: Turn off touchpad while typing.

#4 Post by dancytron »

Thanks.

I'll test it this evening and then mark this as solved.

User avatar
Jerry3904
Administrator
Posts: 23101
Joined: Wed Jul 19, 2006 6:13 am

Re: Turn off touchpad while typing.

#5 Post by Jerry3904 »

There is also a convenient GUI touchpad-indicator available in the repos.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

MXRobo
Posts: 1834
Joined: Thu Nov 14, 2019 12:09 pm

Re: Turn off touchpad while typing.

#6 Post by MXRobo »

And I like(d) to reduce the delay much more, say syndaemon -i 0.1 -K -R
and "-t"

Code: Select all

-t     Only disable tapping and scrolling, not mouse movements, in  response  to  keyboard activity.
man syndaemon

dancytron
Posts: 13
Joined: Thu Dec 28, 2023 11:54 am

Re: Turn off touchpad while typing.

#7 Post by dancytron »

Tested and it works. I'm sure google will have the info on how to fine tune it if necessary now that I know where to look. Marking as solved.

The help button in the xfce4-mouse-settings application help button points to the old syndaemon way on the xfce site. https://docs.xfce.org/xfce/xfce4-settings/mouse

dancytron
Posts: 13
Joined: Thu Dec 28, 2023 11:54 am

Re: Turn off touchpad while typing.

#8 Post by dancytron »

Jerry3904 wrote: Wed Mar 20, 2024 10:17 am There is also a convenient GUI touchpad-indicator available in the repos.
Perfect. Thanks.

Post Reply

Return to “MX Help”