Small shell script to get trackpad operating at startup
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Ubuntu 11.04, UNE 10.10, CrunchBang Statler, Bodhi
Posts: 52
Rep:
Small shell script to get trackpad operating at startup
I am a Mac user and a newcomer to Linux, and I recently made my PowerBook G4 a dual boot with the latest version of Ubuntu (8.04). While most of my hardware was recognized properly, my trackpad wasn't, and although there is a trackpad entry in my /etc/X11/xorg.conf file, it does not automatically enable the tap feature. I can do this after each startup at the Terminal with "sudo trackpad tap", but I would like this to be done automatically. A colleague suggested I write a simple shell script to do this, but the question is how to write it so that I don't have to password-enable it after the boot sequence. Is there a way to do this as root and a place to put it where a password isn't requested? If not, if I write a simple text file with "sudo trackpad tap" in it, where would it go and would that result in a simple password request after the boot sequence. Note: I have never written a script of any kind before.
Not sure about Ubuntu, but you should be able to put it in one of your startup scripts, and it'll run as root at boot time, so that should take care of your password problem.
I'd put it in rc.local, which is the last script that gets run, after all the other system init stuff is finished, but that's just one place you could put it.
Distribution: Ubuntu 11.04, UNE 10.10, CrunchBang Statler, Bodhi
Posts: 52
Original Poster
Rep:
Thanks for the suggestion, TBOne. I added the words "trackpad tap" at the end of the rc.local file (I think it was rc2.local), and now I have tapping enabled when I start up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.