From nobody Fri Sep 08 09:35:40 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 4RhrZT6yG3z4sFry for ; Fri, 8 Sep 2023 09:35:45 +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 4RhrZT0Vzsz3gfP for ; Fri, 8 Sep 2023 09:35:44 +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 [212.222.85.178] (helo=pureos) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qeXtu-004qri-BS for freebsd-current@freebsd.org; Fri, 08 Sep 2023 11:35:42 +0200 Date: Fri, 8 Sep 2023 11:35:40 +0200 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: Acer C720 Chromebook Cypress Trackpad Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: freebsd-current@freebsd.org 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 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: 212.222.85.178 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.57 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; NEURAL_HAM_SHORT(-0.87)[-0.874]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:178.254.4.101]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[unixarea.de]; BLOCKLISTDE_FAIL(0.00)[212.222.85.178:server fail,178.254.4.101:server fail]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; HAS_XOIP(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de] X-Rspamd-Queue-Id: 4RhrZT0Vzsz3gfP 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): $ cat ~/.xinitrc ... # Trackpad section # # old (pre 14-CURRENT) section: # # device="Cypress APA I2C Trackpad" # # xinput set-prop "$device" "libinput Tapping Enabled" 1 # # for those who like "natural" scrolling: # # xinput set-prop "$device" "libinput Natural Scrolling Enabled" 1 # # this gives three buttons in the lower part of the TP: # # xinput set-prop "$device" "libinput Middle Emulation Enabled" 0 # # 14.0-CURRENT, September 2023 section: # we also load now in /boot/loader.conf not only the cyapa.ko, # but also chromebook_platform.ko; and access to the device has # slightly changed to id=11 and id=12, resp. # xinput set-prop 11 "libinput Natural Scrolling Enabled" 1 xinput set-prop 12 "libinput Natural Scrolling Enabled" 1 xinput set-prop 11 "libinput Tapping Enabled" 1 xinput set-prop 12 "libinput Tapping Enabled" 1 # Trackpad layout: # # +------------------------------------+ # | | # | main area | # | | # | | # +------------------------------------+ # | button1 | button2 | button3 | ~10mm in high # +------------------------------------+ # # see also: # https://wayland.freedesktop.org/libinput/doc/latest/clickpad-softbuttons.html # # end of Trackpad section ... matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub