Comment 328 for bug 582809

Revision history for this message
Mohegan (jack-mohegan) wrote :

TODO for clickpad to work with the LED :

(Enable the proposed archive for Ubuntu 12.04 : https://wiki.ubuntu.com/Testing/EnableProposed
After dist-upgrade, do this :)

 1*) Build a xserver-xorg-input-synaptics with led support package :

a) mkdir tmpbuild
b) cd tmpbuild
c) apt-get source xserver-xorg-input-synaptics
d) cd xserver-xorg-input-synaptics-*/debian/patches
e) wget https://bugs.launchpad.net/ubuntu/+source/linux/+bug/582809/+attachment/3183411/+files/200-add_led_support_with_double_tap-synaptics-1.6.0-mohegan_V1.patch
f) ls -1 2*.patch >> series
g) cd ../..
h) sudo apt-get build-dep xserver-xorg-input-synaptics
i) debchange -i
j) Add somme comments (for example, "Add LED support with double tap") and quit.
k) debuild -us -uc -i -I
k) sudo dpkg -i ../xserver-xorg-input-synaptics_*.deb

 2*) Build a dkms module for psmouse

a) cd ..
b) apt-get source linux-image-`uname -r`
c) sudo mkdir -p /usr/src/psmouse-`uname -r`/src
d) sudo cp linux-*/drivers/input/mouse/* /usr/src/psmouse-`uname -r`/src/
e) sudo gedit /usr/src/psmouse-`uname -r`/dkms.conf
f) put this text, save the file and exit gedit : (remplace _your kernel version_ by the text obtain with the command `uname -r`. For me, it's 2.6.38-9-generic)

PACKAGE_NAME="psmouse"
PACKAGE_VERSION="_your kernel version_"
CLEAN="rm -f *.*o"

BUILT_MODULE_NAME[0]="psmouse"
MAKE[0]="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build/src psmouse.ko"
BUILT_MODULE_LOCATION[0]="src"
DEST_MODULE_LOCATION[0]="/updates"

AUTOINSTALL="yes"

g) wget https://bugs.launchpad.net/ubuntu/+source/linux/+bug/582809/+attachment/3183441/+files/synaptics_led_support_v2-ubuntu_12.04.patch -P /tmp
h) cd /usr/src/psmouse-`uname -r`
i) sudo patch -p1 -i /tmp/synaptics_led_support_v2-ubuntu_12.04.patch
j) sudo dkms add -m psmouse -v `uname -r`
k) sudo dkms build -m psmouse -v `uname -r`
l) sudo dkms install -m psmouse -v `uname -r`

 3*) Restart your computer and enjoy !

Please post comment if it works for you (with your configuration) !