From owner-freebsd-mobile@freebsd.org Thu Sep 10 13:14:26 2015 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 14421A00497 for ; Thu, 10 Sep 2015 13:14:26 +0000 (UTC) (envelope-from wulf@cicgroup.ru) Received: from corp.infotel.ru (corp.infotel.ru [195.170.219.3]) by mx1.freebsd.org (Postfix) with ESMTP id BFA2C13A4 for ; Thu, 10 Sep 2015 13:14:25 +0000 (UTC) (envelope-from wulf@cicgroup.ru) Received: from corp (corp.infotel.ru [195.170.219.3]) by corp.infotel.ru (Postfix) with ESMTP id B2D021EAC7 for ; Thu, 10 Sep 2015 16:04:56 +0300 (MSK) X-Virus-Scanned: amavisd-new at corp.infotel.ru Received: from corp.infotel.ru ([195.170.219.3]) by corp (corp.infotel.ru [195.170.219.3]) (amavisd-new, port 10024) with ESMTP id GksYgXBWIsm5 for ; Thu, 10 Sep 2015 16:04:55 +0300 (MSK) Received: from mail.cicgroup.ru (unknown [195.170.219.74]) by corp.infotel.ru (Postfix) with ESMTP id 433811EAC0 for ; Thu, 10 Sep 2015 16:04:55 +0300 (MSK) Received: from mail.cicgroup.ru (localhost [127.0.0.1]) by mail.cicgroup.ru (Postfix) with ESMTP id 1A3D735E250 for ; Thu, 10 Sep 2015 13:53:36 +0300 (MSK) X-Virus-Scanned: amavisd-new at cicgroup.ru Received: from mail.cicgroup.ru ([127.0.0.1]) by mail.cicgroup.ru (mail.cicgroup.ru [127.0.0.1]) (amavisd-new, port 10024) with SMTP id hJQfZBfoTugu for ; Thu, 10 Sep 2015 13:53:26 +0300 (MSK) Received: from localhost (localhost [127.0.0.1]) by mail.cicgroup.ru (Postfix) with ESMTPA id A209735E24D for ; Thu, 10 Sep 2015 13:53:26 +0300 (MSK) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 10 Sep 2015 13:53:26 +0300 From: Vladimir Kondratyev To: freebsd-mobile@freebsd.org Subject: psm(4) support for Elantech touchpads Message-ID: <39d6b1e666dd04b59d4bfff5431fe36e@localhost> X-Sender: wulf@cicgroup.ru User-Agent: Roundcube Webmail/1.1.2 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2015 13:14:26 -0000 Hello Some time ago I bought Acer Aspire S7-191 ultrabook and was able to run FreeBSD on it. However, builtin Elantech clickpad turned out to be almost unusable due to bad support of gestures in PS/2 mouse emulation mode. So I had to port OpenBSD Linux derived absolute mode driver and connect it to FreeBSD synaptics gesture processor. Resulting patch for 11-CURRENT can be downloaded here: http://mail.cicgroup.ru/elantech-touchpad-r287559.diff It still requires some work but I find it quite usable. It supports and was tested on hardware versions 2..4 Elantech touchpads (namely ASUS EEEPC 1015PN, ASUS K53E and Acer Aspire S7-191) Usage: cd /usr/src fetch http://mail.cicgroup.ru/elantech-touchpad-r287559.diff patch -p1 < elantech-touchpad-r287559.diff make kernel echo "hw.psm.elantech_support=1" >> /boot/loader.conf reboot You should see following boot messages if touchpad has been recognized by psm(4) driver: psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Elantech Touchpad, device ID 0 Patch adds some sysctls under hw.psm.elantech node. They mean exactly the same as hw.psm.synaptics ones Comments and suggestions are welcome.