Saturday, April 27, 2013

Installing the psmouse alps driver in ubuntu 12.10

I recently upgraded to ubuntu 13.04. Couldn't get enough things to work the way I wanted, and the way they used to be, and so subsequently backed up my home folder and reinstalled 12.10. Since I had to reinstall the psmouse-alps driver for my mouspad to work with a scroll I decided to blog about it.

I searched and the best answer I found was in this link. The answer I used I believe was the third one down. It was the one with the install.sh script in it.

First off, you need to have the right kernel stuff installed.(Yeah I know, really technical). Look in your /usr/src folder and see what kernel you are using. e.g. before I install the driver mine showed

linux-headers-3.5.0-17

if this is all that shows up(and it probably will be) you will need to install your specific kernel's generic package.. I ran

sudo apt-get install linux-headers-3.5.0-17-generic

To install it you will also need to have dkms installed you can simply:

sudo apt-get install dkms

Once all that is installed, download the alps driver. Here is the link(hopefully it doesn't change).
https://docs.google.com/open?id=0BzNsvDx_ae6bQnFLQkNFT0dWc3c
Uploaded it to my drive account too just in case.
https://docs.google.com/file/d/0BwdxaDKyG0KSWmpEaTZqUU9zMkk/edit?usp=sharing

Once downloaded, navigate to the directory in which you downloaded it. then:

sudo cp psmouse-alps-dst-0.4.tar /usr/src
cd /usr/src
sudo tar xvf psmouse-alps-dst-0.4.tar

after extracting the go into the source directory:

cd psmouse-alps-dst-0.4

The instructions the person on askubuntu gave was to simply run

sudo sh install.sh

for some reason this didn't work for me when I tried it and it required a few extra things to do after. I also need to run these commands each time I start the computer so I put it in a script. Open up your text editor of choice (vim) and write these lines:

 #! /bin/bash
dkms add psmouse/alps-dst-0.4
dkms autoinstall
rmmod psmouse
modprobe psmouse

save the file, then make the file executable:

chmod 755 name_of_script

and run it:

sudo ./name_of_script

After that I simply went to System Settings->Mouse and Touchpad and then changed the settings as desired in the Mousepad tab (which wasn't there before).
Voila! And magically I could now enable multi-touch and scrolling with the mousepad.

No comments:

Post a Comment