From owner-freebsd-current@freebsd.org Sat Jun 2 00:14:11 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 27920F71650 for ; Sat, 2 Jun 2018 00:14:11 +0000 (UTC) (envelope-from dsifriend@gmail.com) Received: from mail-vk0-x243.google.com (mail-vk0-x243.google.com [IPv6:2607:f8b0:400c:c05::243]) (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 B286D7E787 for ; Sat, 2 Jun 2018 00:14:10 +0000 (UTC) (envelope-from dsifriend@gmail.com) Received: by mail-vk0-x243.google.com with SMTP id s187-v6so4763571vke.9 for ; Fri, 01 Jun 2018 17:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-language; bh=VgSxdU9FWfFLBFRwmxzii5qek5CrF5AQZwvNCY1KyMA=; b=p7hKOQ+Fu1tFojAjHyzloZt/nCJc9dcrhTI2vHjm1pKDENJozMItpYvB7JoMJi1hM2 hBg1aEQ+GKwaISTKxeoVIzoR0KwDlcXmtLEc0tVGYywaywDy0CIw/GgGuWzVvyN3qSbm 4+Fivq0DSF5kBZR5ebRrDVIRwdsNxGkjzk5/lTAFWl4LlfFINXQ+YJ4thUckebWo+0WS z/yUOqA67983DtEWvdIQknO1kzds54DXMcnLtFdhnKKsHMKiuvz9Br0Phm3j6VaRfT+q l1aOLKMcuYvJcLirQAdpPL5MnnTr/uBCXHYQHTNR58SQcdbq81A89SbFCMuHPoLu8RXA BpCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language; bh=VgSxdU9FWfFLBFRwmxzii5qek5CrF5AQZwvNCY1KyMA=; b=pphVibVFPeJgGzE5tZux+H2lIkt/HlcRGHrpU5pcHCW/t/TEC+G5NY6vRwTmhk1jt1 4YP7ZWNxzpE7BcmSsgubPvPegmFO1v1lfdqH0e6BqYkAppZT1gyo+3ZVYW+byt6PxdFO +gP2526lWjDS+xxEi/WKQ5LanN/WHL3Xq1D7sIFDPTuxkPOsnq0GCqYWkWaUCTNIWGD8 iMufDBCPpwQuncheqlWVglXxoAmJjZJgsw/AXiaULxUJwPfCwB2MW4OzgiNE3rPvpHWI Kg6bXGXq+hTVK/BGwFfgSqqHt37i/T+oZnWQYYKupvUbVJE9muw9RckTYaaU1EFZ8FpX Og6A== X-Gm-Message-State: ALKqPwc+PLMBF0vnO9USQsD7a8W0R6gcHY69dX2tsUDCTSd9dT0Jfdn9 ps9d6SXb8MVMLinRJ45rkds= X-Google-Smtp-Source: ADUXVKIlmRSfc/bx7xWIJOX63xBgKyf6WW+OZ5jT5ROHfc5F7FiTpdU06/PBP9+o8b8I4Jx+nqTJMg== X-Received: by 2002:a1f:3195:: with SMTP id x143-v6mr7770671vkx.6.1527898450123; Fri, 01 Jun 2018 17:14:10 -0700 (PDT) Received: from [192.168.1.120] ([24.171.250.32]) by smtp.gmail.com with ESMTPSA id 103-v6sm7384176uav.19.2018.06.01.17.14.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jun 2018 17:14:09 -0700 (PDT) From: Albert Subject: Elantech Touchpad Woes - Support for Elantech touchpads over i2c/SMBus still possibly missing To: freebsd-current@freebsd.org Message-ID: <9af6cfd7-114a-1613-9b65-37090a0f17fe@gmail.com> Date: Fri, 1 Jun 2018 20:14:06 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 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: Sat, 02 Jun 2018 00:14:11 -0000 Hi all, I'd like to start out by saying that I'm a newcomer to FreeBSD, but I've been running Linux for years now and I'm still having a few issues transitioning. Despite that. I've been having a blast setting things up for myself, and I'm hopeful I can get this resolved soon enough. I'm trying to get FreeBSD running on my laptop, an "Acer Chromebook 14" (EDGAR), and although I've managed to overcome most of the problems I've faced along the way (needing to upgrade to a UEFI, misnamed wireless modules, video drivers not working on RELEASE nor STABLE), I just can't seem to get the touchpad on this thing to work. For reference, EDGAR is an Intel Celeron N3160 SoC. Pretty much the only thing in it that isn't Intel are the case, the keyboard, the webcam and the touchpad. On Linux, the touchpad appears in _/proc_ as I: Bus=0018 Vendor=04f3 Product=0055 Version=0000 N: Name="Elan Touchpad" P: Phys= S: Sysfs=/devices/pci0000:00/808622C1:05/i2c-1/i2c-ELAN0000:00/input/input5 U: Uniq= H: Handlers=mouse0 event4 B: PROP=5 B: EV=b B: KEY=e520 10000 0 0 0 0 B: ABS=663800013000003 It seems _dmesg_ confirms this: [   18.416171] input: Elan Touchpad as /devices/pci0000:00/808622C1:05/i2c-1/i2c-ELAN0000:00/input/input5 and it can be seen from _lsmod_ as *elan_i2c*. The source for the corresponding driver can be found here: Google ChromeOS Git. Now on FreeBSD, it's as though it didn't even exist. Without applying any of the changes I've tried to get it working, here's the (verbose) output to _dmesg_ on FreeBSD: (vdmesg-nochanges ). With the knowledge I have so far, this is to be expected, as it seems FreeBSD requires the *ig4* module to work with *i2c* devices. Loading it at boot does seem to make the buses visible, but the touchpad still doesn't appear (or not properly, I don't know all these codes): (vdmesg-ig4 ). The obvious solution is to enable support for elantech devices with _hw.psm.elantech_support_, but nada: (vdmesg-elantech ). The only difference is _sysctl_ shows that option is enabled. Aside from that, it seems I'm not the only one who's had this sort of issue before, so support has been worked on and is claimed to be working. Loading the recommended cyapa and chromebook_platform modules at boot does not fix this issue: (vdmesg-chromebook ). The reason appears, at least to me, to be that the cyapa driver isn't a proper elan driver. These are /different/ devices. I'm determined to get this working /somehow/, so any help would be appreciated. It feels like there's a solution here somewhere and I'm either too dumb to find it or it's just not there quite yet. If it's the latter, I'm willing to put some work into porting the right driver with a little guidance. (I have plenty of experience with C but none of this driver stuff.) - Albert PS. External mice are working perfectly, so it's nothing to do with the base install.