Okay! So let's start:
Create eventtouchpad script:
- Code: Select all
sudo gedit /usr/sbin/eventtouchpad
Copy the text below into the text editor and save/quit:
- Code: Select all
#!/bin/bash
rm /dev/input/eventtouchpad
ln -s /dev/input/event"$1" /dev/input/eventtouchpad
Create eventkeys script:
- Code: Select all
sudo gedit /usr/sbin/eventkeys
Copy the text below into the text editor and save/quit:
- Code: Select all
#!/bin/bash
rm /dev/input/eventkeys
ln -s /dev/input/event"$1" /dev/input/eventkeys
Next make them executable with the commands below:
- Code: Select all
sudo chmod +x /usr/sbin/eventtouchpad
sudo chmod +x /usr/sbin/eventkeys
Create the rules by typing:
- Code: Select all
sudo gedit /etc/udev/rules.d/10-acersynaptic.rules
Copy the text below into the text editor and save/quit:
- Code: Select all
SUBSYSTEMS=="input", ATTRS{phys}=="isa0060/serio4/input0", KERNEL=="event*", NAME="input/eventtouchpad"
SUBSYSTEMS=="input", ATTRS{phys}=="isa0060/serio3/input0", KERNEL=="event*", NAME="input/eventkeys"
Now, you have to modify your xorg.conf file (please back it up first by typing sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.good)
- Code: Select all
sudo gedit /etc/X11/xorg.conf
These are the relevant parts of the xorg.conf file. Leave everything else untouched. Keep the order of the sections as well.
- Code: Select all
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "AcerMediaKeys" "CorePointer"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection
Section "InputDevice"
Identifier "AcerMediaKeys"
Driver "evdev"
Option "Device" "/dev/input/eventkeys"
Option "SendCoreEvents" "true"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/eventtouchpad" #here you may need to customize
Option "Protocol" "event"
Option "LeftEdge" "1900"
Option "RightEdge" "5400"
Option "TopEdge" "1900"
Option "BottomEdge" "4000"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "HorizEdgeScroll" "0"
Option "SHMConfig" "True"
EndSection
Restart X or your system and voilà! you'll get:
-Synaptics touchpad with vertical scroll, configurable with gsynaptics
-Media keys bound to: play=button17, stop=button18, last=button19, next=button20 .This way, any media program that can capture key bindings will accept them as this.
-Your USB mouse working.
(You can always configure your .xbindkeysrc to the following:)
- Code: Select all
#Mutlimedia Play/pause:
"xvkbd -text "\[Control_L]\[Alt_L]\[p]""
m:0x0 + b:17
#Stop:
"/usr/bin/xvkbd -text "\[Control_L]\[Alt_L]\[s]""
m:0x0 + b:18
#Multimedia fwd/back:
"/usr/bin/xvkbd -text "\[Control_L]\[Alt_L]\[z]""
m:0x0 + b:19
"/usr/bin/xvkbd -text "\[Control_L]\[Alt_L]\[x]""
m:0x0 + b:20
Any questions, feel free to ask!
Thanks: FokkerCharlie, B00R4dL3y, deinstein, errenay and rivenought