GNU bug report logs - #35450
Libinput touchpad driver not taking precedence over synaptics

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN>; dated Sat, 27 Apr 2019 15:20:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Aug 2019 07:45:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 11 03:45:11 2019
Received: from localhost ([127.0.0.1]:44681 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hwiXK-0007VZ-SX
	for submit <at> debbugs.gnu.org; Sun, 11 Aug 2019 03:45:11 -0400
Received: from lists.gnu.org ([209.51.188.17]:50395)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pelzflorian@HIDDEN>) id 1hwiXH-0007VR-VX
 for submit <at> debbugs.gnu.org; Sun, 11 Aug 2019 03:45:04 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:58174)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <pelzflorian@HIDDEN>) id 1hwiXG-0001Mc-Io
 for bug-guix@HIDDEN; Sun, 11 Aug 2019 03:45:03 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <pelzflorian@HIDDEN>) id 1hwiXF-00015t-BR
 for bug-guix@HIDDEN; Sun, 11 Aug 2019 03:45:02 -0400
Received: from pelzflorian.de ([5.45.111.108]:47260 helo=mail.pelzflorian.de)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <pelzflorian@HIDDEN>)
 id 1hwiXE-00012L-Sg
 for bug-guix@HIDDEN; Sun, 11 Aug 2019 03:45:01 -0400
Received: from pelzflorian.localdomain (unknown [5.45.111.108])
 by mail.pelzflorian.de (Postfix) with ESMTPSA id 41AC73600E9
 for <bug-guix@HIDDEN>; Sun, 11 Aug 2019 09:44:58 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de;
 s=mail; t=1565509498;
 bh=zHyrny1I/J/1gTHa0mZaxPp2+eTnUfLNMF0Ca//Ctg4=;
 h=Date:From:To:Subject:References:In-Reply-To;
 b=H4jWQ3cbiw1hJtahk1OeYPHa7eOkKVgmJMKNmdeGdjVFqVYOZhl85iRUJJbxmNOsZ
 CTz4RuGGzI5m8Zt1iGFBOICrgLPk6OHG4Bj2kE4FjHbmR+Tcdcl5gtYOmlOi3tOmmH
 hypplS08lu7cqrEwWUjyF8Nt3xF9aTNt6hkQzBfI=
Date: Sun, 11 Aug 2019 09:44:58 +0200
From: "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN>
To: bug-guix@HIDDEN
Subject: Re: Libinput touchpad driver not taking precedence over synaptics
Message-ID: <20190811074457.kseqksnvuxmc2724@HIDDEN>
References: <20190427151916.dv7gkpiyde3edh36@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <20190427151916.dv7gkpiyde3edh36@HIDDEN>
User-Agent: NeoMutt/20180716
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 5.45.111.108
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

On Sat, Apr 27, 2019 at 05:19:16PM +0200, pelzflorian (Florian Pelz) wrot=
e:
> On my Macbook the buggy synaptics driver gets used.  The definition of
> %default-xorg-modules indicates libinputs is meant to be the default.
> [=E2=80=A6]

Apparently the reason synaptics is preferred over libinput upstream is
that upstream does not expect users to install the synaptics driver
(or wacom driver) unless they have trouble with libinput.

https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput has:
> commit 59e5db025307404fbfbc82f2fb3fe91d6a3005d7
> Author: Stefan Dirsch <sndirsch@HIDDEN>
> Date:   Thu May 19 17:35:57 2016 +0200
>=20
>     conf: rename to 70-synaptics.conf
>    =20
>     Bump up the synaptics driver to 70, so it get's preferred over libi=
nput, which
>     was dropped down to 60. The synaptics driver is more of a leaf pack=
age
>     than libinput (which covers a multitude of device types) and can be=
 removed by
>     default. When specifically installed by the user, the synaptics dri=
ver should
>     override the system default.
>    =20
>     Similar to what was done for wacom configuration file.
>    =20
>     https://bugzilla.suse.com/show_bug.cgi?id=3D979554
>    =20
>     Signed-off-by: Stefan Dirsch <sndirsch@HIDDEN>
>     Signed-off-by: Peter Hutterer <peter.hutterer@HIDDEN>

https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics has:
> commit 0f7c5ed02d4f2de34c6fb1fc3f4debceef08d0d7
> Author: Peter Hutterer <peter.hutterer@HIDDEN>
> Date:   Tue Aug 30 12:42:58 2016 +1000
>=20
>     conf: drop libinput to below the other drivers
>    =20
>     This is the continuation of 3f569ec493e, dropping libinput below th=
e remaining
>     drivers. Wacom and synaptics already sort higher anyway (see wacom =
commit
>     0da5cd54 and synaptics commit 59e5db025). evdev remains the catchal=
l
>     basic fallback driver and is overwritten by libinput. The two drive=
rs affected
>     by this patch are joystick and vmmouse.
>    =20
>     joystick is a niche driver and drives devices libinput doesn't hand=
le anyway
>     so there is no need to override. If a user installs it, presumably =
it is to
>     use it.
>    =20
>     vmmouse is a niche driver and does not assign itself anymore for ne=
wer kernel
>     drivers (see vmmouse commit 576e8123 from Oct 2014). So if vmmouse =
is
>     installed it can safely sort higher than libinput.
>    =20
>     Note: this is upstream behavior, distributions have to work out the=
 wanted
>     behavior themselves by renaming the config snippets accordingly.
>    =20
>     Signed-off-by: Peter Hutterer <peter.hutterer@HIDDEN>
>     Reviewed-by: Hans de Goede <hdegoede@HIDDEN>

Therefore the best course of action might be to remove synaptics from
Guix=E2=80=99 defaults for xorg.conf.d instead of changing the numbering.

Regards,
Florian




Information forwarded to bug-guix@HIDDEN:
bug#35450; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Apr 2019 15:19:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 27 11:19:30 2019
Received: from localhost ([127.0.0.1]:35748 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hKP6v-0005hN-RC
	for submit <at> debbugs.gnu.org; Sat, 27 Apr 2019 11:19:30 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35685)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pelzflorian@HIDDEN>) id 1hKP6t-0005h8-NS
 for submit <at> debbugs.gnu.org; Sat, 27 Apr 2019 11:19:28 -0400
Received: from lists.gnu.org ([209.51.188.17]:36944)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <pelzflorian@HIDDEN>)
 id 1hKP6o-0003WN-Jo
 for submit <at> debbugs.gnu.org; Sat, 27 Apr 2019 11:19:22 -0400
Received: from eggs.gnu.org ([209.51.188.92]:50066)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <pelzflorian@HIDDEN>) id 1hKP6n-0007Ub-Da
 for bug-guix@HIDDEN; Sat, 27 Apr 2019 11:19:22 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <pelzflorian@HIDDEN>) id 1hKP6m-0003V9-6O
 for bug-guix@HIDDEN; Sat, 27 Apr 2019 11:19:21 -0400
Received: from pelzflorian.de ([5.45.111.108]:37962 helo=mail.pelzflorian.de)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <pelzflorian@HIDDEN>)
 id 1hKP6l-0003Tp-L7
 for bug-guix@HIDDEN; Sat, 27 Apr 2019 11:19:20 -0400
Received: from pelzflorian.localdomain (unknown [5.45.111.108])
 by mail.pelzflorian.de (Postfix) with ESMTPSA id 4EA6B360038
 for <bug-guix@HIDDEN>; Sat, 27 Apr 2019 17:19:17 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de;
 s=mail; t=1556378357;
 bh=dANKfh+jv7jac0fhB6i844GfKdJSmNC7moA+Fm8nlmQ=;
 h=Date:From:To:Subject;
 b=kmD5oJqswM2CsG/6Xv/7hrXENJr0KIWPg9Ejnzs8m73ne+2aSUNIFuDWkleKjHRwA
 shx4wQv6in1FC5HPbWaD9JKNlDMBFUfzD3Oh7QBsOwMIiWszjLsGKyQYJ7YyJodpbl
 kyClRiY8ykKfKhybshz6+KsIj+qTSMsuOzRfVEms=
Date: Sat, 27 Apr 2019 17:19:16 +0200
From: "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN>
To: bug-guix@HIDDEN
Subject: Libinput touchpad driver not taking precedence over synaptics
Message-ID: <20190427151916.dv7gkpiyde3edh36@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
User-Agent: NeoMutt/20180716
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 5.45.111.108
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

On my Macbook the buggy synaptics driver gets used.  The definition of
%default-xorg-modules indicates libinputs is meant to be the default.

The bug appears to be described on the Arch wiki, I quote
<https://wiki.archlinux.org/index.php/Libinput#Via_Xorg_configuration_fil=
e>:

=E2=80=9CTip: If you have libinput and synaptics installed in parallel wi=
th
default configuration (i.e. no files in /etc/X11/xorg.conf.d for
either), synaptics will take precedence due to its higher numeric
order 70- in the default installation directory. To avoid this, you
can symlink the default libinput configuration (40-libinput.conf) to
/etc/X11/xorg.conf.d/ where directory search order precedence over
70-synaptics.conf will take place instead: [=E2=80=A6]=E2=80=9D

The description on the Arch wiki matches the contents of
/gnu/store/q585is6vky5hldb4j878ihqn60j1214a-xorg.conf.d/70-synaptics.conf

Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
[=E2=80=A6]
EndSection

and of
/gnu/store/q585is6vky5hldb4j878ihqn60j1214a-xorg.conf.d/40-libinput.conf

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

and of /var/log/Xorg.0.log:

[   810.978] (II) config/udev: Adding input device bcm5974 (/dev/input/ev=
ent12)
[   810.978] (**) bcm5974: Applying InputClass "evdev touchpad catchall"
[   810.978] (**) bcm5974: Applying InputClass "libinput touchpad catchal=
l"
[   810.978] (**) bcm5974: Applying InputClass "touchpad catchall"
[   810.979] (**) bcm5974: Applying InputClass "Default clickpad buttons"
[   810.979] (**) bcm5974: Applying InputClass "Disable clickpad buttons =
on Apple touchpads"
[   810.979] (II) LoadModule: "synaptics"

Perhaps you could change the numbering.

Regards,
Florian




Acknowledgement sent to "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#35450; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.