Note for English Readers
If I write the articles in Indonesian, I will write a summary in English so that you can read my articles too. After you read the summary and you feel that you need more information about that, please do not hesitate to contact me via e-mail that can be found in my profile.
Thank you for reading my blogs.
Thank you for reading my blogs.
Thursday, March 24, 2011
Synaptics-1.4.0 patch for activating right-click function on clickpad
Last month, I have written about how to activate right-click function on clickpad by patching synaptics-1.3.0. In this page, I will show you how to patch synaptics-1.4.0 so that you can use right-click function (also, middle-click). The patch is patch for synaptics-1.3.0 with a few changes. For the modified patch, you can download it from here (gzip compressed). You can follow the instructions from my last note; just change the step 3 with this: copy this file to path-to/x11/patch/ (in my case, copy it to /home/henry/rsync/x11/patch/). The rest will be same. I also put my clickpad.conf on google docs so that you can download it and place it in /etc/X11/xorg.conf.d/ then restart the X server.
12 comments:
hi Henry,
thanks for patch.
I have one question, do you know if clickpad turning off and on is working ?
on the top-left is area with small led for turning on/off (when double clicking on it). i have hp probook 4320s.
thanks.
Peter
Hi Peter,
I don't know. Currently, the LED is not working. The only one answer for your question, so far, use synclient -l | grep TouchpadOff
If the value is not one (1), the clickpad is ON or ON with exception.
from: man synaptics
Option "TouchpadOff" "integer"
Switch off the touchpad. Valid values are:
0 Touchpad is enabled
1 Touchpad is switched off
2 Only tapping and scrolling is switched off
Property: "Synaptics Off"
If you want to turn on/off your clickpad, use script. Click this link.
thank you Henry for a quick response !
i will use your script for turning on/off (method 1).
Peter
My pleasure.
Henry
When I patch 1.4.0 and try to build with your patch I am getting this error:
synaptics.c:1108:31: error: expected ')' before 'pInfo'
synaptics.c: In function 'update_hw_button_state':
synaptics.c:2387:8: warning: implicit declaration of function 'HandleClickpad'
Any ideas on this?
Thanks
Hi Brandon,
I have checked the patch again and recompile the source, nothing wrong. Could you post that line (with +/- 3 lines on above & below) to me?
Henry
Here is a gist of the patch. The only thing that I modified was the paths to the files as far as I know.
https://gist.github.com/916017
Thanks
Henry
Here is a gist of synaptics.c if that will help also.
https://gist.github.com/916041
Thanks
Hi Brandon,
My apology for delayed reply.
I have checked using diff and there is no difference between your file and mine on the code. In my system, it can be compiled.
btw, what is your distro?
I have the same issue on compilation. I'm usign Fedora15 with 1.4.0.901 version.
make[2]: Entering directory `/home/temp/xf86-input-synaptics-1.4.0.901/src'
CC synaptics.lo
synaptics.c:1108:16: error: unknown type name 'LocalDevicePtr'
synaptics.c: In function 'update_hw_button_state':
synaptics.c:2387:8: warning: implicit declaration of function 'HandleClickpad' [-Wimplicit-function-declaration]
make[2]: *** [synaptics.lo] Errore 1
make[2]: Leaving directory `/home/temp/xf86-input-synaptics-1.4.0.901/src'
make[1]: *** [all-recursive] Errore 1
make[1]: Leaving directory `/home/temp/xf86-input-synaptics-1.4.0.901'
make: *** [all] Errore 2
Do you have some idea about this, but, first of all thank you for helping, and an special thank you to you for publishing for Slackware :) (I use to use that distribution before passing to Fedora).
Alex.
Hi Alex,
I have re-checked the patch, I found no error. For that error, I don't have idea. Sorry, I cannot help you for that.
hello and thanks, you are my last hope hahaha
I still have a problem on my laptop hp4320s, I did everything as said and still no result, maybe the /X11/xorg.conf.d/randomname.conf!? couse its still as it was before :P
<3 Mihael
Post a Comment