Saturday, June 13, 2009

Enabling SHMConfig for Synaptics Touchpad

My laptop is an ASUS A8JS, and there is thing nifty function where you press Fn+F9 and it disables your touchpad. However in Ubuntu, SHMConfig needs to be enabled to be able to do that. You do it once and then you are done but I forget to do it every time I upgrade. Every time I have to remember where it's the file I'm looking for and what is the string I need to add. Since I am in the process of learning python, I decided to make a script that did this for me. I may have overdone it when I started adding more 'features' but it gets the job done, gracefully (assuming no path names change). I only tested this in 9.04, but it should work in 8.10 as well. I got my information from this website. That is exactly the process my script follows. If you don't trust it you can look at the source code.
I also recently started using git, so you can checkout my script in my github, but if you just want the script Click Me!

**UPDATE**
My touchpad stopped working, I don't know if my own script caused it but it should have not happened because of it because I restored the backup file. This happened after a Kernel upgrade. I am currently using Kernel 2.6.28-13 so if anyone can confirm that it is the kernel upgrade and not my actual script, that would be very helpful.

**UPDATE-2**
Well what do you know, my touchpad works again, I have no idea what I did. The last thing I remember doing was reinstalling the synaptics drivers and restarting Ubuntu. That may have been the solution to my problem, but I really don't know.

2 comments:

Jordan said...

I have had numerous problems like this in a lot of versions of Ubuntu. I love the operating system, but I can't bring myself to use it exclusively again because I have always run into problems that stay problems until the "magic" fixes them.

Trigoman05 said...

Yes I know what you mean, but then again this problem was probably my fault to begin with. I might've tinkered with something that I did not make a note of. Do you have any other preference as for Linux Distros?