From owner-freebsd-mobile@freebsd.org Mon Jul 4 19:26:08 2016 Return-Path: Delivered-To: freebsd-mobile@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 DD5C6B91A9D for ; Mon, 4 Jul 2016 19:26:08 +0000 (UTC) (envelope-from mmatalka@gmail.com) Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (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 710B22697 for ; Mon, 4 Jul 2016 19:26:08 +0000 (UTC) (envelope-from mmatalka@gmail.com) Received: by mail-wm0-x244.google.com with SMTP id r201so23702895wme.0 for ; Mon, 04 Jul 2016 12:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=7vb842cUPSp6eiF0/ayKdOoAB2RsrYAgoAW/D9f4up4=; b=YBfB78Kwj7QMhNb5IefsT0v0SzHtNmXR600V/c7xVkm4pASxpxeJwkgyrte2DFYL7Z 4CFfcKOiaHjh1DkDUtnr1AdW8GCtaf8Vbs9tvMpeRMHnG1dvlvOgC/CX2Ne+2WK7polm jbFrK0VR0ki+dyq3S1Z8XNikgMAbCN4uWIVtvgeJVH8or1Ftx7FG5Ozt+gjIY5sQYVLG lvTtRY7hL5WlNz/AOb82Fsy0zvKXONhkQkNiSJNjLu2Nh63obGVRD9s+GQtutfRCwwT1 EBM13PGfbAwkUbTSBxn1a7CLrqT+P9DVj781SDKbi9gJFSSx6Q3X956ngTdSNhYugUgl dbKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=7vb842cUPSp6eiF0/ayKdOoAB2RsrYAgoAW/D9f4up4=; b=OpWzFFaM4BNSwNSy0wAbJKvprUckF2Y8470JL4lVr0Je5JQ1fZHReGFqpm3xoEZRHG W0qqi66CWvqPzKVQmmMabH+QbDJKMyeo6Uqu/FJhqXg7/OMTm/tgDQf0lT9GoXBH4LZS W+2tYQO+E6pr9qqRRPHCAvyTGFC8RcmyDOh/0qQsPKQ7he8XUeKMRkr8YCzRvlP4w8WC P6yMtaukSS/tgQIZG+6SzI2JgvoNgLMJ9eK1JFX2ANb1+d5GhZ8DmKMlJawhJ7xuQZ2O FYuO94fwwJ5fwsRwTAYcHx2gL9b65ajuUzbkLcJGH2zA6NvS8ZptMsXuhechlsCb77iA JP3g== X-Gm-Message-State: ALyK8tJgl7kgx+0O6TPUW4Vk2Bt2kHL5a8RXQr13rmyPRwV6mFjYoWl5ihwbym0azgQDpQ== X-Received: by 10.194.5.166 with SMTP id t6mr11903064wjt.58.1467660366789; Mon, 04 Jul 2016 12:26:06 -0700 (PDT) Received: from localhost ([37.153.108.22]) by smtp.gmail.com with ESMTPSA id t3sm3118993wmf.6.2016.07.04.12.26.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jul 2016 12:26:05 -0700 (PDT) From: Malcolm Matalka To: Matthias Apitz Cc: Vladimir Kondratyev , freebsd-mobile@freebsd.org Subject: Re: psm(4) support for Elantech touchpads References: <20160703185028.GA2151@c720-r292778-amd64> <6d9d3a0a34a740e76c644f4154c02576@localhost> <20160704091833.GA4073@c720-r292778-amd64> Date: Mon, 04 Jul 2016 19:26:04 +0000 In-Reply-To: <20160704091833.GA4073@c720-r292778-amd64> (Matthias Apitz's message of "Mon, 4 Jul 2016 11:18:33 +0200") Message-ID: <868txhyzlf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2016 19:26:09 -0000 Matthias Apitz writes: > > El d=C3=ADa Monday, July 04, 2016 a las 11:55:08AM +0300, Vladimir Kondra= tyev escribi=C3=B3: > >> After some investigations its turned out that some modern ElanTPs use=20 >> I2C interface not PS/2 >> so they can not be handled with my patch. Its necessary to port new=20 >> driver from Linux >> https://lwn.net/Articles/496137/ or from OpenBSD where it has name=20 >> imt(4) > > Thanks for your hint. I have to admit, that the idea it is an 'elan' > touchpad is at the moment only a guess. As I said, the Acer C720 was at > Acer.com for repair an issue with the touchpad and they changed the keybo= ard > and touchpad (this is an visible fact). ChromeOS was working with it but = the call in > our FreeBSD src/sys/dev/cyapa/cyapa.c: > > ... > static int > cyapa_probe(device_t dev) > { > struct cyapa_cap cap; > int addr; > int error; > > addr =3D smbus_get_addr(dev); > > /* > * 0x67 - cypress trackpad on the acer c720 > * (other devices might use other ids). > */ > > device_printf(dev, "cyapa_probe(): addr %02x\n", addr); > if (addr !=3D 0x67) > return (ENXIO); > ... > > > now returns 0x15 and not 0x67, and so the cyapa.ko does not attach anymore > not even when I change the test to 0x15, which leaded to the guess of Ela= n TP. > > I will try to make some NetBSD or OpenBSD USB boot key to first verify > what we do have here as hardware. Or any other idea to figure out, what > Acer now installed? I'm on an ASUS ZenBook UX305CA and have the same problem with the trackpad. I'm pretty sure it's an ElanTech as well, however the IRQ cannot be allocated. I'd like to help out but I have no idea how anything outside userspace works. Any suggestions for how to help? I'm so ignorant I'm not even sure how to go about porting something from another OS over. /Malcolm