I have a problem making my touchpad settings persistent. I have installed Elementary OS Luna 0.2 few weeks ago, I'm quite new to linux but know my way around the computer.
By default my Two Finger tap is set to right click, and I'd like to configure it to middle click. I'm able to set it right with command:
/usr/bin/xinput set-prop "ETPS/2 Elantech Touchpad" "Synaptics Tap Action" 2 3 0 0 1 2 3
I've set that command to run on startup in ~/.config/autostart/touchpad.desktop it's working fine when booting computer. But when I resume from standby the settings won't last. I heard I could setup /etc/pm/sleep.d/ script but for what I have read that it runs as a root user so I'd need to write a script which uses su and runs it as current user.
Ok maybe I could do that but I was hoping to have my configuration in one file so that if I ever need to make any other settings to my touchpad default, I wouldn't have to modify many different files.
I tried editing /etc/X11/xorg.conf.d/50-synaptics.conf
Section "InputClass" Identifier "touchpad catchall" Driver "synaptics" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Option "TapButton2" "2" Option "TapButton3" "3" EndSection Section "InputClass" Identifier "touchpad ignore duplicates" MatchIsTouchpad "on" MatchOS "Linux" MatchDevicePath "/dev/input/mouse*" Option "Ignore" "on" EndSection
But for some reason that wouldn't work either. Here's my Xorg.0.log from system start. I have currently disabled my ~/.config/autostart/touchpad.desktop script so I'd see if the xorg.conf.d method works.
[ 9.203] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event9) [ 9.203] (**) ETPS/2 Elantech Touchpad: Applying InputClass "evdev touchpad catchall" [ 9.203] (**) ETPS/2 Elantech Touchpad: Applying InputClass "touchpad catchall" [ 9.203] (**) ETPS/2 Elantech Touchpad: Applying InputClass "touchpad catchall" [ 9.203] (II) LoadModule: "synaptics" [ 9.203] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so [ 9.204] (II) Module synaptics: vendor="X.Org Foundation" [ 9.204] compiled for 1.11.3, module version = 1.6.2 [ 9.204] Module class: X.Org XInput Driver [ 9.204] ABI class: X.Org XInput driver, version 16.0 [ 9.204] (II) Using input driver 'synaptics' for 'ETPS/2 Elantech Touchpad' [ 9.204] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so [ 9.204] (**) ETPS/2 Elantech Touchpad: always reports core events [ 9.204] (**) Option "Device" "/dev/input/event9" [ 9.228] (--) synaptics: ETPS/2 Elantech Touchpad: x-axis range 0 - 2940 [ 9.228] (--) synaptics: ETPS/2 Elantech Touchpad: y-axis range 0 - 1400 [ 9.228] (--) synaptics: ETPS/2 Elantech Touchpad: pressure range 0 - 255 [ 9.228] (--) synaptics: ETPS/2 Elantech Touchpad: finger width range 0 - 15 [ 9.228] (--) synaptics: ETPS/2 Elantech Touchpad: buttons: left right double triple [ 9.228] (--) synaptics: ETPS/2 Elantech Touchpad: Vendor 0x2 Product 0xe [ 9.228] (**) Option "TapButton2" "2" [ 9.228] (**) Option "TapButton3" "3" [ 9.228] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found [ 9.228] (**) ETPS/2 Elantech Touchpad: always reports core events [ 9.240] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input9/event9" [ 9.240] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD, id 11) [ 9.240] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) MinSpeed is now constant deceleration 2.5 [ 9.240] (**) synaptics: ETPS/2 Elantech Touchpad: MaxSpeed is now 1.75 [ 9.240] (**) synaptics: ETPS/2 Elantech Touchpad: AccelFactor is now 0.061 [ 9.240] (**) ETPS/2 Elantech Touchpad: (accel) keeping acceleration scheme 1 [ 9.240] (**) ETPS/2 Elantech Touchpad: (accel) acceleration profile 1 [ 9.240] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000 [ 9.240] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4 [ 9.240] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found [ 9.240] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse0) [ 9.240] (**) ETPS/2 Elantech Touchpad: Ignoring device from InputClass "touchpad ignore duplicates"
And here's "synclient | grep TapButton" output:
:~$ synclient | grep TapButton
TapButton1 = 1
TapButton2 = 3
TapButton3 = 0