From owner-freebsd-current@freebsd.org Mon Apr 27 15:46:37 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8D5A92BCB4A for ; Mon, 27 Apr 2020 15:46:37 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (Client CN "mail.evolve.de", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 499pzc2hWPz4Cn5 for ; Mon, 27 Apr 2020 15:46:36 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id 94c0620d; Mon, 27 Apr 2020 15:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=20180501; bh=oq+Zqs7D G6hz2blqgk5JCT+EdV8=; b=RKAzl8FvpdnlLHa0fNMLlPkopkg2lRBLNtt5+eOd BveE5PkyUf4V6Wm/4Mwc8Y861KkYKvu0J05BHYdz2jvd1iOqvW68IpJGIDP0q53W V6vN+8/eFGL0OPAE3J2CV95uCMHmCdJuLsu4L8bakU4pr/hzTiZTfY5bLo+eYO8I 3P9s2aa/a8DXud7xdsxIDlYFDuH1CwmPgFUwuq4RqnXfHcunYD/WN41m2LwphkbX IC3DRz7vkoeibHLm0vWY7syU/VUdwahkSigHti0F0UNGcgCfdNX0+kYDdQpEGYWj ITIX4Y3QFf/ihgfzx+yghUH0GKCyNGF/VP8tiQRueqhVkA== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=20180501; b=iD vURg8Pa6gAsAn4bIUzyomGTCZYZXoay8mQiOo67ho2K8k4M22oTjZLHfwH36fbS4 HQvpSI3opZQHplTcfAnUbE73vEE5ov1R4Q6F2zvJqxqMVLFtXOZzlLRbkP/zlJ7m GEt0A2IlzucoBesFN8B/4dx6npawKMnEWlMgjDmYJNq8C6HEDCbVkSmKCKazS16i UBYd6F8vdaZldJFhrgjT53f/V0FXydqMUbmxVCreD985pkx6wV6LM7kvThFLKQaw naeqw8/ESAtqbdQhlm9FbHp7C4OIX20CibMoS8NqYRwtfg2k2gWHsEp90rn2E8rs mh9p7NLzbERx3nbfjjAQ== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 69a817b6 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Mon, 27 Apr 2020 15:46:30 +0000 (UTC) Date: Mon, 27 Apr 2020 17:45:59 +0200 From: Michael Gmelin To: Malcolm Matalka Cc: Michael Gmelin , Niclas Zeising , "freebsd-current\@freebsd.org" Subject: Re: Weird mouse behaviour Message-ID: <20200427174559.070c1b26@bsd64.grem.de> In-Reply-To: <864kt5nf2j.fsf@gmail.com> References: <86imhlv518.fsf@gmail.com> <6dfad31c-68f2-c38f-28ac-0696e73b41a9@daemonic.se> <865zdljqg9.fsf@gmail.com> <86zhaxi4ea.fsf@gmail.com> <20200427153417.764b1bd4@bsd64.grem.de> <864kt5nf2j.fsf@gmail.com> X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8miX?kZ~W~Lr5W7v?j0Sde\mwB&/ypo^}> +a'4xMc^^KroE~+v^&^#[B">soBo1y6(TW6#UZiC]o>C6`ej+i Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWJBwe5BQDl LASZU0/LTEWEfHbyj0Txi32+sKrp1Mv944X8/fm1rS+cAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAAB3RJTUUH3wESCxwC7OBhbgAAACFpVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIFRoZSBHSU1QbbCXAAAAAghJREFUOMu11DFvEzEUAGCfEhBVFzuq AKkLd0O6VrIQsLXVSZXoWE5N1K3DobBBA9fQpRWc8OkWouaIjedWKiyREOKs+3PY fvalCNjgLVHeF7/3bMtBzV8C/VsQ8tecEgCcDgrzjekwKZ7TwsJZd/ywEKwwP+ZM 8P3drTsAwWn2mpWuDDuYiK1bFs6De0KUUFw0tWxm+D4AIhuuvZqtyWYeO7jQ4Aea 7jUqI+ixhQoHex4WshEvSXdood7stlv4oSuFOC4tqGcr0NjEqXgV4mMJO38nld4+ xKNxRDon7khyKVqY7YR4d+Cg0OMrkWXZOM7YDkEfKiilCn1qYv4mighZiynuHHOA Wq9QJq+BIES7lMFUtcikMnkDGHUoncA+uHgrP0ctIEqfwLHzeSo+eUA66AqzwN6n 2ZHJhw6Qh/PoyC/QENyEyC/AyNjq74Bs+3UH0xYwzDUC4B97HgLocg1QLYgDDO1v f3UX9Y307Ew4AHh67YAFFsxEpkXwpXY3eIgMhAAE3R19L919nNnuD2wlPcDE3UeT L2ytEICQib9BXgS2fU8PrD82ToYO1OEmMSnYTjSqSv9wdC0tPYC+rQRQD9ESnldF CyqfmiYW+tlALt8gH2xrMdC/youbjzPXEun+/ReXsMCDyve3dZc09fn2Oas8oXGc Jj6/fOeK5UmSMPmf/jL+GD8BEj0k/Fn6IO4AAAAASUVORK5CYII= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 499pzc2hWPz4Cn5 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=grem.de header.s=20180501 header.b=RKAzl8Fv; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@grem.de designates 213.239.217.29 as permitted sender) smtp.mailfrom=freebsd@grem.de X-Spamd-Result: default: False [-2.56 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[grem.de:s=20180501]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:213.239.217.29/32]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grem.de]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[grem.de:+]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.56)[ip: (-6.20), ipnet: 213.239.192.0/18(-0.06), asn: 24940(-1.55), country: DE(-0.02)]; ASN(0.00)[asn:24940, ipnet:213.239.192.0/18, country:DE]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2020 15:46:37 -0000 On Mon, 27 Apr 2020 17:06:28 +0200 Malcolm Matalka wrote: > Michael Gmelin writes: > > > > > Could you share your setup by running > > > > pkg install ca_root_nss > > fetch \ > > https://raw.githubusercontent.com/grembo/xorg-udev-setup-check/master/xorg-udev-setup-check.sh > > ./xorg-udev-setup-check.sh -desk > > > > and mailing the resulting file to the list (or just me directly)? > > I ran this and emailed results to Michael. I fixed the issues it > brought up and, tada, it's working. > > One thing I'm not sure about is: how do I persist the changes? I have > done: > > xinput --set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping > Enabled" 1 > > xinput --set-prop "SynPS/2 Synaptics TouchPad" "libinput Accel Speed" > 0.3 > There are two fundamental ways: 1. Place a configuration file in /usr/local/etc/X11/xorg.conf.d 2. Add the xinput commands to ~/.xinitrc I usually go with option 2 these days whenever possible (unless it's something that can only be done in Xorg's configuration files). So a typical ~/.xinitrc would look like this: setxkbmap -model pc105 -layout de xmodmap $HOME/.Xmodmap xinput --set-prop "xyz" "0 0 0" xsetroot ... /path/to/my/windowmanager You can find the one I used a few years ago here as an example: https://blog.grem.de/pages/t470s.html#my-home-xinitrc That way it's also part of my home directory and I can easily take it to another machine. It also means I don't change Xorg's default configs directly, which makes updating easier. The best part is, that once I found the right tweak, I can simply copy and paste the command that fixed the issue in there and call it a day. And if anyone asks for help, I can consult my ~/.xinitrc and ask them to execute the commands to test if it fixes their ache - which is easier and often doesn't require to restart X. > But these names don't seem to directly correspond to names in man 4 > libinput. Why the difference? That's kind of an upstream question, but you can see at least where it's done it in the source of xf86-input-libinput[0]. Basically it's done that way for pragmatic reasons (unifying xf86 input section config vs xinput ABI would probably violate the Pareto principle). It's a bit confusing, but as most things that you can configure and their current configuration vales can be seen and tweaked by calling xinput on the command line, I barely visit that man page. One more reason why I tweak these things in ~/.xinitrc. > > I also noticed in xorg logs: > > [ 34.491] (EE) event6 - SynPS/2 Synaptics TouchPad: kernel bug: > Touch jump detected and discarded. See > https://wayland.freedesktop.org/libinput/doc/1.15.5/touchpad-jumping-cursors.html > for details [ 34.491] (EE) event6 - SynPS/2 Synaptics TouchPad: > WARNING: log rate limit exceeded (5 msgs per 7200000ms). Discarding That's to be expected and can be ignored, unless you notice any usability problems. Cheers, Michael [0] cd /usr/ports/x11-drivers/xf86-input-libinput make patch cd work/xf86-input-libinput* see src/xf86libinput.c and include/libinput-properties.h -- Michael Gmelin