Ubuntu 24.04 : Désactiver le pavé tactile

Distribution de travail : Lubuntu 24.04

Lien :

1/ Lister les périphériques de pointage.

util01@station54:~$ xinput --list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ PS/2 Generic Mouse                        id=10   [slave  pointer  (2)]
⎜   ↳ SIGMACHIP Usb Mouse                       id=13   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=9    [slave  keyboard (3)]
    ↳ HP WMI hotkeys                            id=12   [slave  keyboard (3)]

2/ Identifier le pavé numérique.

Ici : SynPS/2 Synaptics TouchPad Avec l'identifiant : 11

3/ Désactivation.

util01@station54:~$ xinput disable 11

4/ Activation.

util01@station54:~$ xinput enable 11

5/ Script Shell.

#!/bin/bash

output=$(xinput --list | grep -i "TouchPad")
id=$(echo $output | awk -F 'id=' '{print $2}' | awk '{print $1}')
xinput disable $id