Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jan 2018 22:47:36 +0100
From:      Michael Gmelin <freebsd@grem.de>
To:        =?UTF-8?B?UmVuw6k=?= Ladan <r.c.ladan@gmail.com>
Cc:        Greg V <greg@unrelenting.technology>, freebsd-x11@freebsd.org
Subject:   Re: Running FreeBSD on the Lenovo Thinkpad T470s (success)
Message-ID:  <20180108224736.0b25321e@bsd64.grem.de>
In-Reply-To: <433bde69-3134-5a07-a613-37380cd03547@gmail.com>
References:  <20171230155857.3ba51994@bsd64.grem.de> <97dc9da5-30f6-0c8d-a3f9-662469974bb2@freebsd.org> <C5452FD8-558E-4305-B5AC-112321BE6B53@grem.de> <8f19b64f-255f-fd14-7b47-dfd149c76e12@unrelenting.technology> <e8e68e9e-d952-895a-7f12-db5aeed68149@gmail.com> <2575bfb8-555b-6f14-8d7d-053851e3e574@unrelenting.technology> <433bde69-3134-5a07-a613-37380cd03547@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 8 Jan 2018 22:38:55 +0100
Ren=C3=A9 Ladan <r.c.ladan@gmail.com> wrote:

> On 08-01-2018 22:08, Greg V wrote:
> >=20
> > On 01/09/2018 00:02, Ren=C3=A9 Ladan wrote: =20
> >> On 08-01-2018 21:28, Greg V via freebsd-x11 wrote: =20
> >>> On 01/08/2018 23:23, Michael Gmelin wrote: =20
> >>>>> On 8. Jan 2018, at 21:15, Ren=C3=A9 Ladan <rene@freebsd.org> wrote:
> >>>>> =20
> >>>>>> On 30-12-2017 15:58, Michael Gmelin wrote:
> >>>>>> Hi,
> >>>>>>
> >>>>>> I found some time to play with FreeBSD on a Lenovo Thinkpad
> >>>>>> T470s and I'm quite happy with the results, as all important
> >>>>>> features work, especially essentials like graphics, touchpad
> >>>>>> and suspend to RAM.
> >>>>>>
> >>>>>> The configuration is pretty straightforward, but a few things
> >>>>>> required
> >>>>>> research (like evdev, udev and libinput), that's why I
> >>>>>> documented my setup here, hoping that it might help others:
> >>>>>>
> >>>>>> https://blog.grem.de/pages/t470s.html
> >>>>>> =20
> >>>>> I followed your instructions to try to get the touchpad working
> >>>>> on my laptop (Acer E5-773G-78RN) but that didn't work.
> >>>>>
> >>>>> libinput-debug-events sees the touchpad (I think, event0) but it
> >>>>> doesn't
> >>>>> respond to it: =20
> >>>> Did you install a patched version of xorg (with UDEV enabled)
> >>>> and a custom kernel (device and option added)? What is the
> >>>> output of xinput? What is the output of evemu-record from
> >>>> devel/evemu? Feel free to email me all config- and log files
> >>>> off-list. =20
> >> Hmm, there is no option UDEV in 'make config' for xorg-server,
> >> only DEVD (default) and HAL? =20
> > You need my patch for that:
> > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222609 =20
> >>> If libinput doesn't list it, it's not time to mess with xorg
> >>> yet :)
> >>>
> >>> I guess EVDEV_SUPPORT is enabled since there's a "PixArt USB
> >>> Optical Mouse" (ums) device.
> >>> =20
> >> That PixArt thing is physical USB mouse, which always works ;) =20
> > Yeah, uh, if you didn't have EVDEV_SUPPORT, it would not show up as
> > an evdev device. =20
> >>> Is the psm module loaded? Is there anything in dmesg about psm? =20
> >> Not currently I think:
> >> rene@e17:~ % grep -i psm /root/dmesg-v-20180108
> >> psm0: unable to allocate IRQ
> >> rene@e17:~ % kldstat -v|grep psm
> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 439 acpi/psmcpnp
> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 438 isa/psmcpnp
> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 437 atkbdc/psm =20
> > atkbdc/psm is it, it's built into the kernel, that's fine.
> >=20
> > The "unable to allocate IRQ" looks like a problem=E2=80=A6
> >=20
> > https://lists.freebsd.org/pipermail/freebsd-stable/2015-February/081757=
.html
> >  =20
> Hmm, indeed.
>=20
> After applying the xorg-server patches correctly the touchpad still
> does not work (unplugging the mouse makes no difference).
>=20
> From /var/log/Xorg.0.log :
> [ 10976.795] (II) config/udev: Adding input device System mouse
> (/dev/input/event0)
> [ 10976.795] (**) System mouse: Applying InputClass "evdev pointer
> catchall" [ 10976.795] (**) System mouse: Applying InputClass
> "libinput pointer catchall"
> [ 10976.795] (II) LoadModule: "libinput"
> [ 10976.795] (II)
> Loading /usr/local/lib/xorg/modules/input/libinput_drv.so
> [ 10977.222] (II) Module libinput: vendor=3D"X.Org
> Foundation" [ 10977.222]    compiled for 1.18.4, module version =3D
> 0.25.0 [ 10977.222]    Module class: X.Org XInput Driver
> [ 10977.222]    ABI class: X.Org XInput driver, version 22.1
> [ 10977.222] (II) Using input driver 'libinput' for 'System
> mouse' [ 10977.222] (**) System mouse: always reports core events
> [ 10977.222] (**) Option "Device" "/dev/input/event0" [ 10977.223]
> (**) Option "_source" "server/udev" [ 10977.223] (II) input device
> 'System mouse', /dev/input/event0 is tagged by udev as: Mouse
> [ 10977.223] (II) input device 'System mouse', /dev/input/event0 is a
> pointer caps
> [ 10977.223] (**) Option "config_info" "udev:/dev/input/event0"
> [ 10977.223] (II) XINPUT: Adding extended input device "System mouse"
> (type: MOUSE, id 6)
> [ 10977.223] (**) Option "AccelerationScheme" "none"
> [ 10977.223] (**) System mouse: (accel) selected scheme none/0
> [ 10977.223] (**) System mouse: (accel) acceleration factor: 2.000
> [ 10977.223] (**) System mouse: (accel) acceleration threshold: 4
> [ 10977.224] (II) input device 'System mouse', /dev/input/event0 is
> tagged by udev as: Mouse
> [ 10977.224] (II) input device 'System mouse', /dev/input/event0 is a
> pointer caps
>=20
> So if I understand correctly X sees the device but cannot talk to it?
>=20

Did you do all the other checks outlined in my previous email and also
check the output of bin/evemu-record? Is this actually a synaptics
touchpad? Do you have any xorg configuration in place (besides
configuring the input class you shouldn't need any).

-m

p.s. Just to repeat:
# sysctl kern.features.evdev_support
kern.features.evdev_support: 1
# sysctl kern.evdev.rcpt_mask
kern.evdev.rcpt_mask: 12
# pkg info -R xorg-server | grep UDEV
    UDEV =3D "on";
#sysctl hw.psm.synaptics_support
sysctl hw.psm.synaptics_support: 1

--=20
Michael Gmelin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180108224736.0b25321e>