Selasa, 08 Februari 2011

Rahasia : Fix Touchpad Issues on Asus UL30

Ubuntu 10.04 was good and bad for the UL30. While the touchpad worked flawlessly, there were some issues where the processor seemed to "lag," or catch, and you had to hit a keyboard button to make it get out of its rut. All that has seemed to be fixed in the 10.10 update, but I lost some functionality of the touchpad.
I like using a two-finger tap as mouse button 2. That way I can close tabs in chrome, open menus, etc, and use the three-finger tap as button 3, which I rarely use. I found a neat tip here on how to fix the mouse buttons. The yurivkhan patch worked great for 10.04, but in 10.10, every time I restart or awaken my computer from suspend, my mouse buttons have reverted to their default:
ben@ben-UL30A:~$ synclient -l
ben@ben-UL30A:~$ ...
               TapButton2=3
               TapButton3=2
This was a big head-scratcher, and all the advise out there on the interweb was pretty useless. Changing the settings, of course, is very simple:

ben@ben-UL30A:~$ synclient TapButton2=2 TapButton3=3
ben@ben-UL30A:~$
However, the settings would revert after a suspend or reboot. Even with yurivkhan patch. Even with adjustments to mouse buttons in the patched gconf. And it's annoying to switch the settings back every time you open your computer. I want it streamlined, and automated. This is a machine, after all. Do it for me!

The fix is head-slappingly simple. Make a bash script, I named it touchpad.sh, with the following contents:
#!bin/bash
#make the script sleep for a few seconds so that the touchpad driver will have time to load
sleep 10
synclient TapButton2=2 TapButton3=3
exit

Now your button settings should do as that script told them to do, and be in the appropriate way after reboot AND wake from suspend.
Note: You can add whatever synclient settings you want to that script, of which there are many.
Note: Make sure you set the script to be executable, and add it to your startup applications. You could even be so bold as to add it to your /usr/bin:
ben@ben-UL30A:~$ sudo cp touchpad.sh /usr/bin/
ben@ben-UL30A:~$
Now, you can just add touchpad.sh to your startup applications. I like doing it this way better. It just keeps things cleaner. I don't know, call me crazy.

Tidak ada komentar:

Posting Komentar

Setelah membaca artikel di atas.
Apa komentar anda ??