From owner-freebsd-x11@freebsd.org Sat Dec 5 16:36:32 2020 Return-Path: Delivered-To: freebsd-x11@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 6C5614A10D0 for ; Sat, 5 Dec 2020 16:36:32 +0000 (UTC) (envelope-from vladimir@kondratyev.su) Received: from corp.infotel.ru (corp.infotel.ru [195.170.219.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4CpFZl3cnmz4RFT for ; Sat, 5 Dec 2020 16:36:31 +0000 (UTC) (envelope-from vladimir@kondratyev.su) Received: from corp (corp.infotel.ru [195.170.219.3]) by corp.infotel.ru (Postfix) with ESMTP id A229E157F44; Sat, 5 Dec 2020 19:36:27 +0300 (MSK) X-Virus-Scanned: amavisd-new at corp.infotel.ru Received: from corp.infotel.ru ([195.170.219.3]) by corp (corp.infotel.ru [195.170.219.3]) (amavisd-new, port 10024) with ESMTP id ENoErK2z-jxG; Sat, 5 Dec 2020 19:36:23 +0300 (MSK) Received: from mail.cicgroup.ru (unknown [195.170.219.74]) by corp.infotel.ru (Postfix) with ESMTP id A594C157F3A; Sat, 5 Dec 2020 19:36:23 +0300 (MSK) Received: from mail.cicgroup.ru (localhost [127.0.0.1]) by mail.cicgroup.ru (Postfix) with ESMTP id 6342C42211F; Sat, 5 Dec 2020 19:32:38 +0300 (MSK) X-Virus-Scanned: amavisd-new at cicgroup.ru Received: from mail.cicgroup.ru ([127.0.0.1]) by mail.cicgroup.ru (mail.cicgroup.ru [127.0.0.1]) (amavisd-new, port 10024) with SMTP id kYEBDeUCbdwc; Sat, 5 Dec 2020 19:32:35 +0300 (MSK) Received: from [192.168.0.30] (gateway [10.0.2.2]) by mail.cicgroup.ru (Postfix) with ESMTPA id C5A5E42211C; Sat, 5 Dec 2020 19:32:35 +0300 (MSK) Subject: Re: Xorg (latest from ports) and no mouse movement To: gljennjohn@gmail.com Cc: freebsd-x11@freebsd.org References: <20201205114354.GA3814@c720-r342378> <20201205115850.GA4689@c720-r342378> <56a68baa-fec7-6610-5d24-6159b75927ab@kondratyev.su> <20201205161020.141efcf5@ernst.home> From: Vladimir Kondratyev Message-ID: Date: Sat, 5 Dec 2020 19:35:56 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201205161020.141efcf5@ernst.home> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4CpFZl3cnmz4RFT X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of vladimir@kondratyev.su has no SPF policy when checking 195.170.219.3) smtp.mailfrom=vladimir@kondratyev.su X-Spamd-Result: default: False [-1.98 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[195.170.219.3:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[kondratyev.su]; AUTH_NA(1.00)[]; SPAMHAUS_ZRD(0.00)[195.170.219.3:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.981]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8299, ipnet:195.170.192.0/19, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-x11] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2020 16:36:32 -0000 On 05.12.2020 19:10, Gary Jennejohn wrote: > On Sat, 5 Dec 2020 16:45:00 +0300 > Vladimir Kondratyev wrote: >=20 >> On 05.12.2020 14:58, Matthias Apitz wrote: >>> El d__a s__bado, diciembre 05, 2020 a las 12:43:54p. m. +0100, Matthi= as Apitz escribi__: >>> =20 >>>> >>>> Hello, >>>> >>>> I'm setting up a new system on amd64 CURRENT (r368166) with ports fr= om >>>> November 30, compiled all with poudriere. >>>> >>>> The Xorg is started with 'startx' and .xserverrc has: >>>> >>>> exec X -retro -logverbose 6 >>>> >>>> and .xinitrc says only (to simplify the problem): >>>> >>>> xterm -fn 10x20 >>>> >>>> X11 comes up, starts the xterm but no mouse movement is working. >>>> >>>> Without X11 the mouse moves fine by the moused as: >>>> >>>> /usr/sbin/moused -p /dev/cyapa0 -t ps/2 >>>> >>>> About the mouse the Xorg log has: =20 >>> >>> Additional information: attaching an USB mouse works fine, i.e. the >>> problem is only with the touchpad. >>> >>> matthias >>> =20 >>>> root@c720-r368166:~ # grep mouse /var/log/Xorg.0.log >>>> [ 6260.470] (II) config/udev: Adding input device System mouse (/de= v/input/event0) >>>> [ 6260.470] (**) System mouse: Applying InputClass "evdev pointer c= atchall" >>>> [ 6260.470] (**) System mouse: Applying InputClass "libinput pointe= r catchall" >>>> [ 6260.474] (II) Using input driver 'libinput' for 'System mouse' >>>> [ 6260.474] Option "name" "System mouse" >>>> [ 6260.475] (**) System mouse: always reports core events >>>> [ 6260.479] (II) event0 - System mouse: is tagged by udev as: Mous= e >>>> [ 6260.479] (II) event0 - System mouse: device is a pointer >>>> [ 6260.480] (II) event0 - System mouse: device removed >>>> [ 6260.480] (II) XINPUT: Adding extended input device "System mouse= " (type: MOUSE, id 6) >>>> [ 6260.481] (**) System mouse: (accel) selected scheme none/0 >>>> [ 6260.481] (**) System mouse: (accel) acceleration factor: 2.000 >>>> [ 6260.481] (**) System mouse: (accel) acceleration threshold: 4 >>>> [ 6260.482] (II) event0 - System mouse: is tagged by udev as: Mous= e >>>> [ 6260.482] (II) event0 - System mouse: device is a pointer >>>> [ 6278.765] (II) event0 - System mouse: device removed >>>> >>>> What is missing? >>>> =20 >> Try attached untested patch. >=20 > Shouldn't this line in the patch >=20 > /* Postpone start of the polling thread until sleep is available */ > if (config_intrhook_establish(&sc->intr_hook) !=3D 0) { > + evdev_free(sc->evdev); > mtx_destroy(&sc->mutex); > return (ENOMEM); > } >=20 > also have #ifdef EVDEV_SUPPORT .. #endif around it? >=20 Yes, it should. Really, there are more wrong places in this quickly written piece of code, =D0=B5.g. missing division by zero check, but basically it should w= ork.