
Tengo un nuevo asus 1215n y necesito digitar comandos para habilitar el modo multitáctil. No hay problema: he hecho un guión. Dado que este netbook también necesita la activación manual del controlador wifi, el script completo es:
#!/bin/bash
#
# list of synaptics device properties http://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html#sect4
# list current synaptics device properties: xinput list-props '"SynPS/2 Synaptics TouchPad"'
#
sleep 5 #added delay...
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 1
xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 4
xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 9 # Below width 1 finger touch, above width simulate 2 finger touch. - value=pad-pixels
xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Edge Scrolling" 1 1 0 # vertical, horizontal, corner - values: 0=disable 1=enable
xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Jumpy Cursor Threshold" 250 # stabilize 2 finger actions - value=pad-pixels
#xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 0 0 0 0 1 2 3 # pad corners rt rb lt lb tap fingers 1 2 3 (can't simulate more then 2 tap fingers AFAIK) - values: 0=disable 1=left 2=middle 3=right etc. (in FF 8=back 9=forward)
xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 1 0 # vertical scrolling, horizontal scrolling - values: 0=disable 1=enable
#xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Circular Scrolling" 1
#xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Circular Scrolling Trigger" 3
sudo modprobe lib80211
sudo insmod /home/pitto/Drivers/broadcom/wl.ko
exit
Guardé el script, luego lo puse en mi casa y luego
chmod +x nombre de script
y luego lo agregó a las aplicaciones de inicio.
Luego lo hice: sudo visudo
y agregué esta fila:
myusername ALL=(ALL) NOPASSWD: /home/scriptname
reiniciado y...
El multitáctil funciona pero el wifi no. Cuando inicio manualmente el script, me pide la contraseña de sudo, así que pensé que era debido a los comandos modprobe e insmod y agregué esos comandos a sudo visudo. Nada.
¿Qué estoy haciendo mal?
Respuesta1
La configuración correcta /etc/sudoers
para evitar que se solicite la contraseña es:
myusername ALL = NOPASSWD: /home/scriptname, /sbin/modprobe lib80211, /sbin/insmod /home/pitto/Drivers/broadcom/wl.ko