OrnithO
July 26th, 2009, 07:45 AM
Hello,
I have a problem with my Acer Aspire Timeline 4810T, there is a small button to lock the touchpad and if I use it it will lock the touchpad but then I can't unlock it, I have to run the following line in a terminal to make it work again.
sudo modprobe -r psmouse && sudo modprobe psmouseI'm not an expert but I think it unmounts (is it the correct term ?) the touchpad module.:confused:
I tried to find a solution and managed to add a new key shortcut that runs this script:
#!/bin/bash
str=$(synclient -l | grep TouchpadOff | awk '{ print $3 }')
if [ "$str" = '0' ]; then
synclient TouchpadOff=1 &&exec 3> >(zenity --notification --listen --window-icon="/usr/share/pixmaps/touchpad.png") && echo "message:Touchpad Off" >&3
elif [ "$str" = '2' ]; then
synclient TouchpadOff=0 &&exec 3> >(zenity --notification --listen --window-icon="/usr/share/pixmaps/touchpad.png") && echo "message:Touchpad On" >&3
elif [ "$str" = '1' ]; then
synclient TouchpadOff=0 &&exec 3> >(zenity --notification --listen --window-icon="/usr/share/pixmaps/touchpad.png") && echo "message:Touchpad On" >&3
else
zenity --info --title="Toggle TouchPad" --text="Couldn't get touchpad status from synclient\nLaunch \"synclient -l\" in terminal to check the error" && exit 1
fi
exit 0It seems to work with the touchpad lock key as the notification displays correctly but I still cannot unlock the touchpad after... I think that the button still unmount the touchpad module (as I have to mount it again with modprobe) and at the same time execute the script...
So does somebody know how to change the settings of specific key ?
Thanks
Hope you'll understand me, english is not my first language :)
Ps using xev, when I pree the key, I have this:
FocusOut event, serial 32, synthetic NO, window 0x6800001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 32, synthetic NO, window 0x6800001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 32, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
I have a problem with my Acer Aspire Timeline 4810T, there is a small button to lock the touchpad and if I use it it will lock the touchpad but then I can't unlock it, I have to run the following line in a terminal to make it work again.
sudo modprobe -r psmouse && sudo modprobe psmouseI'm not an expert but I think it unmounts (is it the correct term ?) the touchpad module.:confused:
I tried to find a solution and managed to add a new key shortcut that runs this script:
#!/bin/bash
str=$(synclient -l | grep TouchpadOff | awk '{ print $3 }')
if [ "$str" = '0' ]; then
synclient TouchpadOff=1 &&exec 3> >(zenity --notification --listen --window-icon="/usr/share/pixmaps/touchpad.png") && echo "message:Touchpad Off" >&3
elif [ "$str" = '2' ]; then
synclient TouchpadOff=0 &&exec 3> >(zenity --notification --listen --window-icon="/usr/share/pixmaps/touchpad.png") && echo "message:Touchpad On" >&3
elif [ "$str" = '1' ]; then
synclient TouchpadOff=0 &&exec 3> >(zenity --notification --listen --window-icon="/usr/share/pixmaps/touchpad.png") && echo "message:Touchpad On" >&3
else
zenity --info --title="Toggle TouchPad" --text="Couldn't get touchpad status from synclient\nLaunch \"synclient -l\" in terminal to check the error" && exit 1
fi
exit 0It seems to work with the touchpad lock key as the notification displays correctly but I still cannot unlock the touchpad after... I think that the button still unmount the touchpad module (as I have to mount it again with modprobe) and at the same time execute the script...
So does somebody know how to change the settings of specific key ?
Thanks
Hope you'll understand me, english is not my first language :)
Ps using xev, when I pree the key, I have this:
FocusOut event, serial 32, synthetic NO, window 0x6800001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 32, synthetic NO, window 0x6800001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 32, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0