Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2020 08:59:25 +0200
From:      Jacques Foucry <jacques+freebsd@foucry.net>
To:        freebsd-questions@freebsd.org
Subject:   xorg, libinput, edev and i3wm
Message-ID:  <20200826065925.GB88637@mithril>

next in thread | raw e-mail | index | archive | help
Dear All,

I need your experize.

I run FreeBSD 12.1-RELEASE-p8 GENERIC, on a X280 Lenovo laptop and I can't
make the touchepad work properlly. Some options works, others don't.

Well, I will try to give all the informations:

/boot/loader.conf

hw.psm.trackpoint_support="1"
hw.psm.synaptics_support="1"


/etc/syscrtl.conf
hw.psm.synaptics_support="1"
kern.evdev.rcpt_mask=12

/etc/rc.conf
moused_enabled="NO"

setxkbmap -query                                                                                                                                                                                                                          ✔ 
rules:      evdev
model:      lenovo
layout:     us
variant:    altgr-intl
options:    terminate:ctrl_alt_bksp,misc:typo,compose:lwin,terminate:ctrl_alt_bksp,misc:typo,compose:lwin

more 90-touchpad.conf                                                                                                                                                                                                        ✔ 
Section "InputClass"
        Identifier "libinput Touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "AccelSpeed" "0.1"
        Option "Taping" "on"
        Option "NaturalScrolling" "off"
        Option "DisableWhileTapping" "on"
EndSection

Note: 90-touchpad.conf is the only custom X11 file

·/config/i3wm/config

bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
...
# Use xbackliht to adjust brightness
bindsym XF86MonBrightnessUp exec xbacklight -inc 5
bindsym $mod+$alt+Next exec xbacklight -inc 5
bindsym XF86MonBrightnessDown exec xbacklight -dec 5
bindsym $mod+$alt+Prev exec xbacklight -dec 5

With this configuration, scroll with 2 fingers works;
If I enable "NaturalScrolling" it works too;
but taping does not work;
the special keyboard keys does not work too (XF86AudioRaiseVolume, XF86AudioLowerVolume, XF86AudioMute, XF86AudioMicMute). 
Same with brightness key. 


To make thoses keys and touchpad works, I need to launch
"mate-keybings-properties" which is not optimal.

I try to remove mate complety, it does not change anything.

I have read on may website that evdev and libinput should be "automagical".
Sems does not work for me :-(


So I need you to find the correct configuration,

Thanks for your time and advices
-- 
Jacques Foucry



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200826065925.GB88637>