Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Dec 2020 19:35:56 +0300
From:      Vladimir Kondratyev <vladimir@kondratyev.su>
To:        gljennjohn@gmail.com
Cc:        freebsd-x11@freebsd.org
Subject:   Re: Xorg (latest from ports) and no mouse movement
Message-ID:  <e4d9a21a-fe88-e654-b72b-d0e2294c6a19@kondratyev.su>
In-Reply-To: <20201205161020.141efcf5@ernst.home>
References:  <20201205114354.GA3814@c720-r342378> <20201205115850.GA4689@c720-r342378> <56a68baa-fec7-6610-5d24-6159b75927ab@kondratyev.su> <20201205161020.141efcf5@ernst.home>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05.12.2020 19:10, Gary Jennejohn wrote:
> On Sat, 5 Dec 2020 16:45:00 +0300
> Vladimir Kondratyev <vladimir@kondratyev.su> 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e4d9a21a-fe88-e654-b72b-d0e2294c6a19>