SpiralLinux / SpiralLinux-project

SpiralLinux project
https://spirallinux.github.io/
134 stars 5 forks source link

Switch from Synaptics to libinput #142

Closed CicadaSeventeen closed 9 months ago

CicadaSeventeen commented 1 year ago

I try xfce on my two laptop and find that reverse scroll direction does not work. While reverse scroll direction of mouse or like Thinkpad red Trackpoint works. Similar problem exist in Xubuntu 22.04 and your GeckoLinux, but not at debian 11.5 xfce. Maybe it is because of you forget a package.

CicadaSeventeen commented 1 year ago

I find it is a known gtk3 bug. https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1368402 Then it is time to find out how debian workaround it.

CicadaSeventeen commented 1 year ago

Bingo. Removing xserver-xorg-input-synaptics and then this bug will disappear.

In fact now lubinput is so strong that it can drive most input device. Debian actually only pre-install three packages: xserver-xorg-input-libinput xserver-xorg-input-all and xserver-xorg-input-wacom. If more xserver-xorg-input-xxx is installed, maybe system will prefer to use them and then cause bugs.

CicadaSeventeen commented 1 year ago

Fedora, Linux Mint, LMDE, Ubuntu, debian(xfce)... all use libinput only. Manjaro and openSUSE use more, but still not using mouse mulitouch synaptics or other drivers for mouse or touchpad. Xubuntu have similar bug as SpiralLinux because it do preinstall other packages here. Besides, debian metapackage xserver-xorg-input-all only contains packages below: image So I suggest to drop other packages since most distros do so, especially debian-series distros.

CicadaSeventeen commented 1 year ago

@geckolinux

geckolinux commented 1 year ago

Sorry @CicadaSeventeen for the slow reply.

Very nice find! During the initial development I tested with and without xserver-xorg-input-synaptics on my Thinkpad T440s, and things like disabling the touchpad while typing and 2-finger scrolling didn't work with xserver-xorg-input-libinput. But after testing today it looks like your theory is correct:

If more xserver-xorg-input-xxx is installed, maybe system will prefer to use them and then cause bugs.

Specifically, it looks like the problematic packages are:

It should be noted that there will be different GUI control options in Plasma and XFCE for touchpads under libinput:

Synaptics

Screenshot_2022-10-16_21-36-03


libinput

Screenshot_2022-10-16_21-44-20


Synaptics

Screenshot_20221016_211200


libinput

Screenshot_20221016_205654


But despite the lack of configuration, it looks like libinput has decent default settings, although less configurable in some desktop environements. And as you say, it looks like the best for handling most hardware by default.

This will be changed in the next release.

CicadaSeventeen commented 1 year ago

On my thinpad p15v, the package that make problem is xorg-xserver-input-synaptics

geckolinux commented 1 year ago

Specifically, it looks like the problematic packages are:

  • xserver-xorg-input-mouse
  • xserver-xorg-input-multitouch
  • xserver-xorg-input-mutouch

On my thinpad p15v, the package that make problem is xorg-xserver-input-synaptics

Yes, I meant that those three packages are what prevents it from working properly with libinput when xorg-xserver-input-synaptics is removed.

geckolinux commented 9 months ago

Implemented in https://github.com/SpiralLinux/SpiralLinux-project/releases/tag/12.231001