From nobody Sat Sep 09 09:06:38 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RjRtd3WFZz4sqSh for ; Sat, 9 Sep 2023 09:06:49 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RjRtb6zmgz4Zd7; Sat, 9 Sep 2023 09:06:47 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of guru@unixarea.de designates 178.254.4.101 as permitted sender) smtp.mailfrom=guru@unixarea.de; dmarc=none Received: from [188.174.63.158] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qetvO-003XW5-Sj; Sat, 09 Sep 2023 11:06:43 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 38996d5H014834 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 9 Sep 2023 11:06:39 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 38996cuQ014833; Sat, 9 Sep 2023 11:06:38 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 9 Sep 2023 11:06:38 +0200 From: Matthias Apitz To: freebsd-current@freebsd.org Cc: Vladimir Kondratyev , Vladimir Kondratyev Subject: Re: Acer C720 Chromebook Cypress Trackpad Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: freebsd-current@freebsd.org, Vladimir Kondratyev , Vladimir Kondratyev References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.63.158 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.79 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:178.254.4.101]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; HAS_XOIP(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; BLOCKLISTDE_FAIL(0.00)[178.254.4.101:server fail,188.174.63.158:server fail]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; HAS_XAW(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[unixarea.de]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de] X-Rspamd-Queue-Id: 4RjRtb6zmgz4Zd7 Please don't use what I said in my yesterday posting (attached below only as reference). Loading the kmod chromebook_platform.ko makes the mouse pointer jumping without any reason back and for to other places when Xorg is running. I observed and do use now: - the cyapa EVDEV patches from December 2020, I've got from Vladimir at that time, are in head; - I use in ~/.xinitrc: device="Cypress APA I2C Trackpad" xinput set-prop "$device" "libinput Tapping Enabled" 1 xinput set-prop "$device" "libinput Natural Scrolling Enabled" 1 xinput set-prop "$device" "libinput Middle Emulation Enabled" 0 and in /etc/sysctl.conf # Cypress Trackpad: kern.evdev.rcpt_mask=3 debug.cyapa_enable_tapclick=3 debug.cyapa_tapclick_max_ticks=20 This gives the Trackpad working as described in cyapa(4), esp. with this layout for taps (not clicks!): Trackpad layout 2/3 1/3 +--------------------+------------+ | | Middle | | | Button | | Left | | | Button +------------+ | | Right | | | Button | +--------------------+............| | Thumb/Button Area | 15% +---------------------------------+ In the past (December 2020) exactly this configuration gave another layout: +------------------------------------+ | | | main area | | | | | +------------------------------------+ | button1 | button2 | button3 | ~10mm in high +------------------------------------+ which also was in sync with the freedesktop.org documentation: https://wayland.freedesktop.org/libinput/doc/latest/clickpad-softbuttons.html Why this has changed? And is there any chance to get the old layout back, as I'm used to it :-) Thanks matthias El día viernes, septiembre 08, 2023 a las 11:35:40a. m. +0200, Matthias Apitz escribió: > > It seems that something has changed in cyapa.ko how the (not existing) > three buttons of the trackpad are emulated. In FreeBSD 13.0-CURRENT r368166 > I used only the cyapa.ko module and some xinput commands in .xinitrc > to get button1, button2 and button3 as shown in the small "grafic" > below. This was not working anymore and it took me some hours of > testing, until I got it working again with loading the additional kmod > chromebook_platform.ko. Now the three buttons are there as expected. > > I add this here if someone runs into the same problem (or if someone has > comments on this): > > ... -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub