From owner-freebsd-current@freebsd.org Tue Mar 1 13:51:21 2016 Return-Path: Delivered-To: freebsd-current@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 F2FA1ABF296 for ; Tue, 1 Mar 2016 13:51:21 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from nm46-vm10.bullet.mail.bf1.yahoo.com (nm46-vm10.bullet.mail.bf1.yahoo.com [216.109.114.203]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B85D613D4 for ; Tue, 1 Mar 2016 13:51:21 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1456840274; bh=Eg9tMZJLoqEbis6UN/0LCxVBuAzcpbFgj2NEaF0FPd0=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=DPbwaca/8dSetwnsTu6SXt7F3ELQtoFwtqnEyw0NX/8wZ8V5qU5pd9ZKS6Bk4S8LNk9bgroSs6EZHipxfTZEqEHmb5ELgbp2l23DkNDoGI9Y4D2FOFVNc9k7CBKiyzZWitB31iKyCHP7gqgKqNICn+sIxlrkCOOVdEZjKLlovpv6JUF01zH+WsgMkSjitRgsixW2Zq2uisA967u8GJOZxC0uRs5wfAUFm7y9oFVzOX4gwHC0DsMh+xzGR0YFpvU5WL4HU9S7i8nUU8wzIGkQ4RoI+YqdtIV4f3DIBKKb3hGSr6aZDWP3RFqzuQtqZ4dLltA9XfXdTSKD6co7ZzlqrQ== Received: from [98.139.215.143] by nm46.bullet.mail.bf1.yahoo.com with NNFMP; 01 Mar 2016 13:51:14 -0000 Received: from [68.142.230.70] by tm14.bullet.mail.bf1.yahoo.com with NNFMP; 01 Mar 2016 13:51:14 -0000 Received: from [127.0.0.1] by smtp227.mail.bf1.yahoo.com with NNFMP; 01 Mar 2016 13:51:14 -0000 X-Yahoo-Newman-Id: 544311.2827.bm@smtp227.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: IzVyGTMVM1kMwY0ixrlD7fhFYFZW0IaQVLJDAJNrLeGkOQa WwXaIILlAh6fhR6RhaQSEYtT_jUPwy6O3SQVsZHDuej_A6QyS1zVme.HXp4X E92TEnch5sg_hA7w1TBKy9erTyxKTidvZhUFT4w.7VYhBIly77ZQAaJ_wegX dCaoNGfh_LpAe1Nt089054QXwumZrre80FsOn0Jh7yHblaLHyyd6nr71F6Vc uYQjsMoYdEqu8x2Sm1AX46F6eXLpGxdds4fioyBx79bt9baRFG_SiaFB4a5R 8BUhdGRcRDXrLqSnqppuxP8F9pY65LrtXZ54ZGD2qyDv7WPKXCXmPm6VLCvp 3L0zT11h9A.V8GXKJYnBRLYMyCaLJt0P12L2EIzl4teE5LmzzKNNd2Js39dW 48pc5KSjdxapI2FGVPScbt.huniivYGv.2Zo6g24DesEiV94UllK6Gmo._E8 TnZqu3uBREdEUou80zL._nwrggNo0x0aRO6Pn_sVbu08MqSGwGOm60myaSbI Rh_SQLIHsOvwuaxn.f_ByVoVTZMwZVzXIDQ-- X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- Subject: Re: Touchscreen support (was Re: new computer, strange usb messages at boot) To: "Sergey V. Dyatko" References: <20160220051951.GA47875@lrosenman-dell.lerctr.org> <20160220120401.GA91220@kib.kiev.ua> <20160220122416.GA1026@lrosenman-dell.lerctr.org> <2575cfd714188f7ffbc873cb5d87cc97@thebighonker.lerctr.org> <56CA6F67.4000001@yahoo.com> <56CAB4A7.8080604@selasky.org> <56CB39B0.3020307@yahoo.com> <56CB3C74.7050103@selasky.org> <20160301083006.671d3987@laptop.minsk.domain> Cc: Hans Petter Selasky , freebsd-current@freebsd.org From: Anthony Jenkins Message-ID: <56D59E51.4040409@yahoo.com> Date: Tue, 1 Mar 2016 08:51:13 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160301083006.671d3987@laptop.minsk.domain> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Tue, 01 Mar 2016 13:51:22 -0000 On 03/01/2016 12:30 AM, Sergey V. Dyatko wrote: > On Mon, 22 Feb 2016 17:51:00 +0100 > Hans Petter Selasky wrote:=20 > >> On 02/22/16 17:39, Anthony Jenkins wrote: >>> >>> On 02/22/2016 02:11 AM, Hans Petter Selasky wrote: =20 >>>> On 02/22/16 03:16, Anthony Jenkins wrote: =20 >>>>> Yes. I have an eGalax touchscreen and it's doing the same thing. T= he >>>>> number of items it's reporting is 256 (according to my preliminary >>>>> debugging), causing the warning. I think these things are a specia= l >>>>> subclass of HID for multitouch touchscreens which we don't support >>>>> (yet). =20 >>>> /usr/ports/multimedia/webcamd will most likely attach if invoked >>>> manually, to this device and provide an event device for you! >>>> >>>> --HPS =20 >>> Okay that's /amazing/, and not at all intuitive! I mean I'd expect >>> multimedia/webcamd to only attach to "video" devices, but lo and beho= ld >>> I get a /dev/input/event0 device which spits out gibberish when >>> cat(1)'ed and I touch the screen! >>> >>> My intentions were to port Linux's hid-multitouch device in whole to >>> FreeBSD (it's what attaches to my eGalax device and probably to OP's >>> touchscreen device) and add support for the device to moused(8), but >>> it's not very high on my priority list... >>> =20 >> Hi, >> >> If you apply these patches, will work with your X-org :-) >> >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D196678 >> > wow... > Thanks for your work :)=20 > > Yesterday I update -CURRENT on my lenovo z400 touch ( r296180), after > suspend-resume I spotted that is my usb mouse didn't work (touchpad wor= ks as > before) > I had the feeling that I read something about hid_get_item: Number of > items(256) truncated to 255 on ML, so I'm here.=20 > > What I do:=20 > laptop# webcamd -l > Available device(s): > .... > webcamd [-d ugen0.2] -N Synaptics-Large-Touch-Screen-SYNAPTICS -S unkno= wn -M 0 > ... > Show webcamd usage: > webcamd -h > laptop# webcamd -N Synaptics-Large-Touch-Screen-SYNAPTICS -S unknown -= M 0 > Attached to ugen0.2[0] > Creating /dev/input/event0 > > after that I reconnect my mouse and 'it works' (c)=20 > How I can do this automatically right? I got my touchscreen working with the multimedia/webcamd and x11-drivers/xf86-input-evdev ports and an entry in /usr/local/etc/devd/webcamd.conf for my eGalax USB touchscreen device.=20 In webcamd.conf, you can copy the section # Generic USB input devices. notify 100 { match "system" "USB"; match "subsystem" "INTERFACE"; match "type" "ATTACH"; match "intclass" "0x03"; # # Limit HID device attach to Wacom Devices # else webcamd might attach to your keyboard # and mouse # match "vendor" "0x056a"; action "/usr/local/etc/rc.d/webcamd start $cdev $interface"; }; to a new section, changing the 'match "vendor" line to match the USB VendorID of your input device and possibly adding a 'match "product" line= : $ sudo usbconfig -d ugen1.2 dump_device_desc | grep 'id\(Vendor\|Product\= )' idVendor =3D 0x0eef idProduct =3D 0xa119 # My eGalax Touchscreen device. notify 100 { match "system" "USB"; match "subsystem" "INTERFACE"; match "type" "ATTACH"; match "intclass" "0x03"; match "vendor" "0x0eef"; match "product" "0xa119"; action "/usr/local/etc/rc.d/webcamd start $cdev $interface"; }; replacing "ugen1.2" above with your "ugen0.2" as well as the vendor and product values. --=20 Anthony Jenkins