¿Cómo deshabilitar el touchpad cuando uso el trackpoint en Linux?

¿Cómo deshabilitar el touchpad cuando uso el trackpoint en Linux?

Recientemente instalé Ubuntu (y sus derivados Xubuntu y Kubuntu) en mi computadora portátil.

En mi computadora tengo un panel táctil y un trackpoint. En Windows, el panel táctil está desactivado cuando uso el trackpoint.

¿Hay alguna forma de recrear esto en Linux?

Respuesta1

Busqué en Google una y otra vez una solución para este problema exacto y esto es lo que se me ocurrió para adaptarme a mi sistema:

#!/bin/bash
#
#Change /dev/input/event13 to your trackstick event
    cat /dev/input/event13 > /tmp/mousemove &
#initialize counter to prevent garbage file from growing
    i="0";
    while true ; do 
        i=$[$i+1];
        #variables  
        oldchecksum=${newchecksum};
        newchecksum=`md5sum /tmp/mousemove | awk '{print $1}'`
        #see if trackpad is already disabled
        if [ "$trackpad" = "off" ]; then

            #compare previous checksum to current if they're same trackstick is not moving
            if [ "$oldchecksum" = "$newchecksum" ]; then
                #make sure trackpad is enabled
                xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 1;
                trackpad="on";
            fi

        else

            #compare previous checksum to current if they're different trackstick is moving
            if [ "$oldchecksum" != "$newchecksum" ]; then
                #disable trackpad
                xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 0;
                trackpad="off";
            fi

        fi

        #check for count to keep poll file smaller
        if [ "$i" = "300" ]; then
            echo '' > /tmp/mousemove;
            i="0";
            newchecksum=`md5sum /tmp/mousemove | awk '{print $1}'`
        fi
            #sleep for 1 second so we don't eat up resources
            #if the update speed is not fast enough for you a smaller number such as .75 may be better
            sleep 1;
    done

Desde que ejecuto fluxbox en arch, agregué la llamada al script en mi~/.fluxbox/apps

La única advertencia que pude encontrar fue que si logras pkill cat como root, para lo cual se debe ejecutar este script para acceder al evento del mouse, eliminarás el script, al mismo tiempo, si eliminas el script y no eliminas cat continuará ejecutándose hasta que se quede sin espacio en /tmp, pkill cat o reinicie el sistema.

Respuesta2

Tengo un truco simple (truco en realidad):

xinput set-prop "DLL07B0:01 044E:120B" "Synaptics Finger" 100 1000 100

Lo que hace es establecer un parámetro de presión incorrecto (mín > máximo) y un tamaño de dedo ridículo.

Synaptics Finger
    32 bit, 3 values, low, high, press. 

Option "FingerLow" "integer"
    When finger pressure drops below this value, the driver counts it as a release. Property: "Synaptics Finger"

Option "FingerHigh" "integer"
    When finger pressure goes above this value, the driver counts it as a touch. Property: "Synaptics Finger" 

Por lo tanto, el conductor contará incluso como una prensa cuando la presión > 1000 y la presión < 100, lo cual es lógicamente imposible.

información relacionada