From owner-freebsd-x11@freebsd.org Mon Jan 8 21:38:59 2018 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C7EDE644E6 for ; Mon, 8 Jan 2018 21:38:59 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B2C276756 for ; Mon, 8 Jan 2018 21:38:59 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id t8so16742424wmc.3 for ; Mon, 08 Jan 2018 13:38:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=L6116F5L7zk5WO2zIOJuuc7+C9Trs9NDsoN1BFTrakk=; b=EGBz2pi6Py/jt5oa76VOtuvwsO7mnP0X0b97aeI/eABagzZRjFIaoB2I4YfRiZ74f1 QMy9TBdwz9utmkCCEkR1GSB7X0ggU61A50zdyUhWZz+fJYg9ws7OG7mmZPLSZEaxqznX ZYIQCW8+3VNOAOoCVJhzWWEoDaMTuhyKEyggQJfPmrTknzC5/tiV4b8N5/7CXhdidLWU rftjziW9prMKhggzJ9ipoLHgvk6rawZysM+1z5mZgGfDHt3eIU6a2+sRSg8px0XF42C2 y48ZnHVQpvXGYubJcjwnaN0WRCMaxAjhNnwBdb38e5E/ImpGWsefncOvMaMB6mOWtQYN /uww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=L6116F5L7zk5WO2zIOJuuc7+C9Trs9NDsoN1BFTrakk=; b=nqCO+wQnMXwVJcDAgzPfnnXbQqghh7NoyZ7kESEyANBDhO2zgFuuUBIZY2g3bQ06Xx 5Dr8/u+wyUe6giWv4FlszM8P7nD/5sLFNEDeMvk+44xilS7A1vSMwoaGbLmlZdQN5Snv UMs+ABDCiVM8KTQiX8pATkTrTjs6kGfNJLa9j/bLP9GE9xITSUwMXWFWE+NhjR8G3I/h FjymduRDSawYdcrOI3rvz4DlE1xwa6muW2SgygUQ4q0DtPbDII6U8DJM1puTABdrZ6rV moVxOTypWD9QECPgZ9WLSN41uY2Bv7anETTv2Ef33BHki2EBz+l2DsDn8h5/yrtYAvWh aebQ== X-Gm-Message-State: AKGB3mL9QHpnDddvkqSAXuvNrfhP9+YuEYWx13H/jiT4CLObUZJDVIIQ OHt/WQIobf+KLdos0fw98wkYn5YO X-Google-Smtp-Source: ACJfBotoZsm6k7RtsA/sS0mA+XzRu8ggAtPiAEv88TM9eCrnpfXqkXBgWI1bW4dvRrSURL9f5mVIyA== X-Received: by 10.80.139.180 with SMTP id m49mr18364809edm.303.1515447536978; Mon, 08 Jan 2018 13:38:56 -0800 (PST) Received: from ?IPv6:2001:980:d7ed:1:3265:ecff:fe8f:d3ec? ([2001:980:d7ed:1:3265:ecff:fe8f:d3ec]) by smtp.gmail.com with ESMTPSA id x28sm8335101edd.0.2018.01.08.13.38.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jan 2018 13:38:56 -0800 (PST) Subject: Re: Running FreeBSD on the Lenovo Thinkpad T470s (success) To: Greg V , freebsd-x11@freebsd.org References: <20171230155857.3ba51994@bsd64.grem.de> <97dc9da5-30f6-0c8d-a3f9-662469974bb2@freebsd.org> <8f19b64f-255f-fd14-7b47-dfd149c76e12@unrelenting.technology> <2575bfb8-555b-6f14-8d7d-053851e3e574@unrelenting.technology> From: =?UTF-8?Q?Ren=c3=a9_Ladan?= Message-ID: <433bde69-3134-5a07-a613-37380cd03547@gmail.com> Date: Mon, 8 Jan 2018 22:38:55 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <2575bfb8-555b-6f14-8d7d-053851e3e574@unrelenting.technology> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2018 21:38:59 -0000 On 08-01-2018 22:08, Greg V wrote: > > On 01/09/2018 00:02, René Ladan wrote: >> On 08-01-2018 21:28, Greg V via freebsd-x11 wrote: >>> On 01/08/2018 23:23, Michael Gmelin wrote: >>>>> On 8. Jan 2018, at 21:15, René Ladan wrote: >>>>> >>>>>> 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 >>>>>> >>>>> 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: >>>> 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. >> Hmm, there is no option UDEV in 'make config' for xorg-server, only DEVD >> (default) and HAL? > You need my patch for that: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609 >>> 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. >>> >> That PixArt thing is physical USB mouse, which always works ;) > Yeah, uh, if you didn't have EVDEV_SUPPORT, it would not show up as an > evdev device. >>> Is the psm module loaded? Is there anything in dmesg about psm? >> Not currently I think: >> rene@e17:~ % grep -i psm /root/dmesg-v-20180108 >> psm0: unable to allocate IRQ >> rene@e17:~ % kldstat -v|grep psm >>         439 acpi/psmcpnp >>         438 isa/psmcpnp >>         437 atkbdc/psm > atkbdc/psm is it, it's built into the kernel, that's fine. > > The "unable to allocate IRQ" looks like a problem… > > https://lists.freebsd.org/pipermail/freebsd-stable/2015-February/081757.html > Hmm, indeed. After applying the xorg-server patches correctly the touchpad still does not work (unplugging the mouse makes no difference). >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="X.Org Foundation" [ 10977.222] compiled for 1.18.4, module version = 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 So if I understand correctly X sees the device but cannot talk to it? René