Xorg (latest from ports) and no mouse movement
Michael Gmelin
freebsd at grem.de
Wed Dec 16 16:40:37 UTC 2020
On Wed, 16 Dec 2020 14:55:44 +0100
Matthias Apitz <guru at unixarea.de> wrote:
> El día miércoles, diciembre 16, 2020 a las 02:55:44p. m. +0300,
> Vladimir Kondratyev escribió:
>
> > On 16.12.2020 14:28, Matthias Apitz wrote:
> > > El día jueves, diciembre 10, 2020 a las 09:03:02p. m. +0300,
> > > Vladimir Kondratyev escribió:
> > >>> In /etc/sysctl.conf I have for cyapa TP
> > >>>
> > >>> debug.cyapa_enable_tapclick=3
> > >>> debug.cyapa_tapclick_max_ticks=20
> > >>>
> > >>> Maybe this could be related.
> > >>>
> > >> What types of press did you try? Taps or clicks?
> > >
> > > Only short taps.
> > >
> > AFAIK, libinput disables taps by default. Try to add following
> > snippet to your xorg.conf:
>
> I do not have (and never had on this laptop) any xorg.conf file. I
> added the options to an existing file:
>
> # diff /usr/local/share/X11/xorg.conf.d/40-libinput.conf*
>
> 37,39d36
> < Option "Tapping" "on"
> < Option "NaturalScrolling" "on"
> < Option "ClickMethod" "clickfinger"
> >
Hi Matthias,
Instead of modifying the X config file that came from the package or
adding your own custom xorg config files, you can use `xinput` to
modify these properties while X is running and, once you're happy,
automate that for startup in your ~/.xinitrc (I do this with all my
customizations, so that all configuration stays in my home directory).
You can list available devices using xinput, example:
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ System mouse id=6 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=9 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=10 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ System keyboard multiplexer id=7 [slave keyboard (3)]
↳ AT keyboard id=8 [slave keyboard (3)]
In my case, the device is"SynPS/2 Synaptics TouchPad".
Using this, I can the drill into available properties:
$ xinput list-props "SynPS/2 Synaptics TouchPad"
Device 'SynPS/2 Synaptics TouchPad':
Device Enabled (138): 1
Coordinate Transformation Matrix (139): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (293): 0
libinput Tapping Enabled Default (294): 0
libinput Tapping Drag Enabled (295): 1
libinput Tapping Drag Enabled Default (296): 1
libinput Tapping Drag Lock Enabled (297): 0
libinput Tapping Drag Lock Enabled Default (298): 0
libinput Tapping Button Mapping Enabled (299): 1, 0
libinput Tapping Button Mapping Default (300): 1, 0
libinput Natural Scrolling Enabled (261): 0
libinput Natural Scrolling Enabled Default (262): 0
libinput Disable While Typing Enabled (301): 0
libinput Disable While Typing Enabled Default (302): 1
libinput Scroll Methods Available (263): 1, 1, 0
libinput Scroll Method Enabled (264): 1, 0, 0
libinput Scroll Method Enabled Default (265): 1, 0, 0
libinput Click Methods Available (303): 1, 1
libinput Click Method Enabled (304): 1, 0
libinput Click Method Enabled Default (305): 1, 0
libinput Middle Emulation Enabled (268): 1
libinput Middle Emulation Enabled Default (269): 0
libinput Accel Speed (270): 0.000000
libinput Accel Speed Default (271): 0.000000
libinput Left Handed Enabled (275): 0
libinput Left Handed Enabled Default (276): 0
libinput Send Events Modes Available (277): 1, 1
libinput Send Events Mode Enabled (278): 0, 0
libinput Send Events Mode Enabled Default (279): 0, 0
Device Node (280): "/dev/input/event3"
Device Product ID (281): 2, 7
libinput Drag Lock Buttons (282): <no items>
libinput Horizontal Scroll Enabled (283): 1
On my touchpad, using the command
$ xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1
enables tapping on my touchpad.
To make this change permanent, I then add the following lines to
my ~/.xinitrc file (obviously before starting the window manager,
probably nearby potentially existing calls to configure keymap with
setxkbmap):
device="SynPS/2 Synaptics TouchPad"
xinput set-prop "$device" "libinput Tapping Enabled" 1
# for those who like "natural" scrolling:
xinput set-prop "$device" "libinput Natural Scrolling Enabled" 1
# etc.
You'll need to replace "SynPS/2 Synaptics TouchPad" with the
correct device name you determined using xinput above ("Cyapa
something").
Cheers,
Michael
--
Michael Gmelin
More information about the freebsd-x11
mailing list