Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Touchpad driver conflict - libinput vs. synaptics
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3239
Location: de

PostPosted: Tue Mar 26, 2019 3:58 pm    Post subject: Touchpad driver conflict - libinput vs. synaptics Reply with quote

Hi,

I have some trouble with my touchpad. Some weeks ago I decided to switch from evdev to libinput. As touchpad driver I used synaptics. Unfortunately I wasn't able to configure the libinput driver to get a similar behaviour like my synpatics settings. So I tried to use both drivers parallel. Synpatics for the touchpad, libinput for the rest (keyboard, mouse, etc)

I didn't figure out yet, how to priorize the drivers. And so it seems, X loads the drivers arbitrarily. Sometimes the libinput driver is used for the touchpad, sometimes the synaptics driver.

/etc/X11/xorg.conf.d/40-libinput.conf:
Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "AutoRepeat"    "500 30"
        Option "XkbLayout"  "de"
        Option "XkbVariant" "deadtilde"
        Option "CoreKeyboard"
EndSection


and
/etc/X11/xorg.conf.d/50-synaptics.conf:

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "synaptics"
        Option      "TapButton1"        "1"
        Option      "TapButton2"        "2"
        Option      "TapButton3"        "3"
        Option      "FingerLow"         "15"
        Option      "FingerHigh"        "20"
        Option      "VertScrollDelta"   "50"
        Option      "HorizScrollDelta"   "50"
        Option      "RTCornerButton"    "2"
        Option      "RBCornerButton"    "3"
        Option      "VertEdgeScroll"    "true"
        Option      "HorizEdgeScroll"   "true"
        Option      "MinSpeed"      "0.2"
        Option      "MaxSpeed"      "1"
        Option      "AccelFactor"   "0.5"
        Option      "SHMConfig"         "off"
EndSection


Before the Identifier in the synaptics.conf was Identifier "evdev touchpad catchall". So I tought maybe I have to overwrite the section from /usr/share/X11/xorg.conf.d/40-libinput.conf and changed the the Identifier to "libinput touchpad catchall". Didn't work. Next I tried to rename 50-synaptics.conf to 30-synaptics.conf. Didn't help too.

The Logfile tells me:
/var/log/Xorg.0.log:
[  2298.903] (II) config/udev: Adding input device PS/2 Synaptics TouchPad (/dev/input/event7)
[  2298.903] (**) PS/2 Synaptics TouchPad: Applying InputClass "evdev pointer catchall"
[  2298.903] (**) PS/2 Synaptics TouchPad: Applying InputClass "libinput pointer catchall"
[  2298.903] (II) Using input driver 'libinput' for 'PS/2 Synaptics TouchPad'
[  2298.903] (**) PS/2 Synaptics TouchPad: always reports core events
[  2298.903] (**) Option "Device" "/dev/input/event7"
[  2298.903] (**) Option "_source" "server/udev"
[  2298.904] (II) event7  - PS/2 Synaptics TouchPad: is tagged by udev as: Mouse
[  2298.904] (II) event7  - PS/2 Synaptics TouchPad: device is a pointer
[  2298.904] (II) event7  - PS/2 Synaptics TouchPad: device removed
[  2298.921] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio2/input/input12/event7"
[  2298.921] (II) XINPUT: Adding extended input device "PS/2 Synaptics TouchPad" (type: MOUSE, id 12)
[  2298.921] (**) Option "AccelerationScheme" "none"
[  2298.921] (**) PS/2 Synaptics TouchPad: (accel) selected scheme none/0
[  2298.921] (**) PS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
[  2298.921] (**) PS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
[  2298.922] (II) event7  - PS/2 Synaptics TouchPad: is tagged by udev as: Mouse
[  2298.922] (II) event7  - PS/2 Synaptics TouchPad: device is a pointer
[  2298.923] (II) config/udev: Adding input device PS/2 Synaptics TouchPad (/dev/input/mouse0)
[  2298.923] (II) No input driver specified, ignoring this device.
[  2298.923] (II) This device may have been added with another device file.


And of course xinput tells me:
Code:
Device 'PS/2 Synaptics TouchPad':
   Device Enabled (154):   1
   Coordinate Transformation Matrix (156):   1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
   libinput Natural Scrolling Enabled (292):   0
   libinput Natural Scrolling Enabled Default (293):   0
   libinput Scroll Methods Available (294):   0, 0, 1
   libinput Scroll Method Enabled (295):   0, 0, 1



How can I prevent libinput to catch my touchpad?
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3239
Location: de

PostPosted: Sat Mar 30, 2019 7:18 pm    Post subject: Reply with quote

Went back to evdev, but experienced the same problem.

Then I found this:
Quote:
/usr/share/X11/xorg.conf.d/ is the "packaged" configuration directory; all
files ending with ".conf" in this directory are used by the X server
unless there is an identically-named file in the local sysadmin directory.
The local sysadmin config directory is /etc/X11/xorg.conf.d/ - all files
ending with ".conf" in this directory are parsed.

There are several default config files in /usr/share/X11/xorg.conf.d/:
* 10-evdev.conf
a "catchall" file for input devices using the evdev driver; this
should work for most hardware in the absence of a better driver
* 50-synaptics.conf
overrides the earlier 10-evdev.conf file and uses the synaptics
driver for all touchpads

I'm still testing, if that works. Until now it looks good.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum