From owner-freebsd-usb@freebsd.org Mon Sep 28 07:00:12 2015 Return-Path: Delivered-To: freebsd-usb@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 F3BA3A0B050 for ; Mon, 28 Sep 2015 07:00:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E063C1F4A for ; Mon, 28 Sep 2015 07:00:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t8S70B91016997 for ; Mon, 28 Sep 2015 07:00:11 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 203252] [patch] usbhidaction does not save the right PID in daemon mode Date: Mon, 28 Sep 2015 07:00:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: hselasky@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2015 07:00:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203252 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-usb@FreeBSD.org |hselasky@FreeBSD.org CC| |hselasky@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@freebsd.org Mon Sep 28 18:28:36 2015 Return-Path: Delivered-To: freebsd-usb@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 F1CEBA0B965 for ; Mon, 28 Sep 2015 18:28:36 +0000 (UTC) (envelope-from msmith@switchways.com) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) (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 CD11619AB for ; Mon, 28 Sep 2015 18:28:36 +0000 (UTC) (envelope-from msmith@switchways.com) Received: by pacfv12 with SMTP id fv12so185055191pac.2 for ; Mon, 28 Sep 2015 11:28:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:subject:from:message-id:date:user-agent :mime-version:content-type:content-transfer-encoding; bh=2+bUEJFtMS7P78m718gorwLGZTrCJlh8pnSArTGkobc=; b=TOuS9YUJYyS6hRoJJTpJ1e4X4Htc0g3fG6XWBYW8I8Fp6347lHP74tMaZS6GXRtaBo 1vie36V4N8z7XKC2zTg4B5D5wJxTAbU8veBdJCtv3scMAw2RonvoCIejwbbmCcp5l+S2 rzCUJa1qdLA6LgCeJD/V5W3eHH5C3ThVLqMrDTXH03q84nbCNbx1llcpjiSRYjjX6R5D Ci8nWv9Zmanl1UGGAKYcXa97fgEOQouN8OacnHEGWaEyXQnkZ20voHRJ399HpIsvoj6z rA+E0SijvdXML0e7SDBzMbj3AKmtAtvPttHs4zbEEClqRvIelLR2WWYRZKYgsNB4Zl90 GKsQ== X-Gm-Message-State: ALoCoQmkSaHmOVOpLe4UZlfu8frJyioThsfdarOBkNP0O13JAkV/0trfNASnXF3MJ6ZNA/bcWzKX X-Received: by 10.69.17.1 with SMTP id ga1mr27517241pbd.163.1443464909982; Mon, 28 Sep 2015 11:28:29 -0700 (PDT) Received: from [127.0.0.1] ([103.6.157.158]) by smtp.gmail.com with ESMTPSA id fb1sm20820087pab.9.2015.09.28.11.28.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Sep 2015 11:28:27 -0700 (PDT) To: freebsd-usb@freebsd.org Subject: Truck Owners List From: Mark Smith Message-ID: <560981E7.1090502@switchways.com> Date: Mon, 28 Sep 2015 14:07:35 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 150928-0, 09/28/2015), Outbound message X-Antivirus-Status: Clean X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2015 18:28:37 -0000 Hi, Would you be interested in acquiring an Email list of "Truck Owners" from USA? Each record in the list contains Contact Name (First, Middle, Last Name), Direct Mailing Address (Address, City, State, Zip Code), List Type, Auto Year, Auto Class, Auto Make, Auto Model, Auto Body, Auto Manufacturer, Auto Vin, Registration_Date, Source, IP Address, Gender, Age, Marital Status, Income and Opt-in Email Address. We also have data for Pick-up Truck Owners, RV Owners, Motorcycle Owners, Harley Davidson Owners, Boat Owners, Car Owners, High Net-worth Individuals, Luxury Brand Buyers and many more... All the contacts are opt-in verified, 100% permission based and can be used for unlimited multi-channel marketing. List includes only opt-in contacts and we update the list once in every 30-45 days to maintain the maximum quality. Please let me know your thoughts towards procuring the "Truck Owners Email List" . Please brief us on the type of emails you wish to target. Look forward to your prompt response. Thanks & Regards Mark Smith Research Analyst If this message is not relevant to you please forward to decision maker.We respect your privacy, if you do not wish to receive any further emails from our end, please reply with a subject “Leave Out”. --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From owner-freebsd-usb@freebsd.org Thu Oct 1 21:48:44 2015 Return-Path: Delivered-To: freebsd-usb@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 69A71A0D805 for ; Thu, 1 Oct 2015 21:48:44 +0000 (UTC) (envelope-from c333324@web1110.opentransfer.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4BD5C1F28 for ; Thu, 1 Oct 2015 21:48:44 +0000 (UTC) (envelope-from c333324@web1110.opentransfer.com) Received: by mailman.ysv.freebsd.org (Postfix) id 48CAAA0D804; Thu, 1 Oct 2015 21:48:44 +0000 (UTC) Delivered-To: usb@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 4853DA0D803 for ; Thu, 1 Oct 2015 21:48:44 +0000 (UTC) (envelope-from c333324@web1110.opentransfer.com) Received: from smh01.opentransfer.com (smh01.opentransfer.com [71.18.216.112]) by mx1.freebsd.org (Postfix) with ESMTP id 12E5F1F27 for ; Thu, 1 Oct 2015 21:48:43 +0000 (UTC) (envelope-from c333324@web1110.opentransfer.com) Received: by smh01.opentransfer.com (Postfix, from userid 8) id C84E37EB03A; Thu, 1 Oct 2015 17:07:37 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on smh01.opentransfer.com X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.2.5 Received: from web1110.opentransfer.com (web1110.opentransfer.com [173.83.247.219]) by smh01.opentransfer.com (Postfix) with ESMTP id 004FD7EB03A for ; Thu, 1 Oct 2015 17:07:36 -0400 (EDT) Received: from web1110.opentransfer.com (localhost [127.0.0.1]) by web1110.opentransfer.com (8.14.9/8.14.9) with ESMTP id t91L7iPZ026355 for ; Thu, 1 Oct 2015 17:07:44 -0400 X-opentransfer-URL: http://whitebeachpuertogalera.com/post.php Received: (from c333324@localhost) by web1110.opentransfer.com (8.14.9/8.14.9) id t91L7iWD026338; Thu, 1 Oct 2015 17:07:44 -0400 To: usb@freebsd.org Subject: Shipment delivery problem #00000354843 X-PHP-Script: whitebeachpuertogalera.com/post.php for 212.7.160.142 Date: Thu, 1 Oct 2015 17:07:44 -0400 From: "FedEx International Economy" Reply-To: "FedEx International Economy" Message-ID: X-Priority: 3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2015 21:48:44 -0000 Dear Customer, This is to confirm that one or more of your parcels has been shipped. You can review complete details of your order in the find attached. Warm regards, Dan Gill, FedEx Delivery Agent. From owner-freebsd-usb@freebsd.org Sat Oct 3 07:40:36 2015 Return-Path: Delivered-To: freebsd-usb@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 BF092A0EED2 for ; Sat, 3 Oct 2015 07:40:36 +0000 (UTC) (envelope-from btik-fbsd@scoubidou.com) Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [IPv6:2a01:e0c:1:1599::13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8D650139C for ; Sat, 3 Oct 2015 07:40:36 +0000 (UTC) (envelope-from btik-fbsd@scoubidou.com) Received: from max.scoubidou.com (unknown [82.237.209.39]) by smtp4-g21.free.fr (Postfix) with ESMTP id 5AC234C8038; Sat, 3 Oct 2015 09:40:25 +0200 (CEST) Received: from zetta.scoubidou.com (unknown [192.168.1.18]) by max.scoubidou.com (Postfix) with ESMTP id 6AAA5F28F; Sat, 3 Oct 2015 09:40:24 +0200 (CEST) To: freebsd-usb@FreeBSD.org From: =?UTF-8?Q?Maxime_Soul=c3=a9?= Subject: Feedback of Tecknet X9800 & M008 USB mice integration under X X-Enigmail-Draft-Status: N1110 Message-ID: <560F8668.5000103@scoubidou.com> Date: Sat, 3 Oct 2015 09:40:24 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Oct 2015 07:40:36 -0000 Hello, Since HPS committed "dynamic USB quirks at boot", I gave you a little howto to be able to use the Tecknet X9800 & M008 USB mice under X. Before continuing we have to know the profile of each mouse. For the Tecknet X9800 mouse, the 3 side buttons generate the following events: [LeftShift] [LeftControl] [LeftAlt] For the Tecknet M008, the 5 side buttons are: [LeftAlt][LeftControl][LeftShift] [Button 9] [Button 8] So we have to intercept LeftAlt, LeftControl and LeftShift "keyboard events" to translate them in X button clicks. HOWTO: In /boot/loader.conf, add the UQ_KBD_IGNORE to both mice (need Bug 203249 patch or r288273): # X9800 mouse hw.usb.quirk.0="0x04d9 0xfa50 0 0xffff UQ_KBD_IGNORE" # M008 mouse hw.usb.quirk.1="0x04d9 0xfc05 0 0xffff UQ_KBD_IGNORE" Then configure devd to dynamically intercept keyboard events and transform them in X button clicks. Create /usr/local/etc/devd/tecknet-mice.conf : attach 1000 { device-name "uhid[0-9]+"; match "vendor" "0x04d9"; match "product" "0xf(a50|c05)"; match "intsubclass" "0x01"; match "intprotocol" "0x01"; action "DISPLAY=:0.0 /usr/bin/usbhidaction -f $device-name \ -c /usr/local/etc/tecknet-mice-usbhidaction.conf \ -p /var/run/usbhidaction.$ugen.pid"; }; notify 1000 { match "system" "USB"; match "subsystem" "DEVICE"; match "type" "DETACH"; match "vendor" "0x04d9"; match "product" "0xf(a50|c05)"; action "[ -e /var/run/usbhidaction.$ugen.pid ] \ && kill `cat /var/run/usbhidaction.$ugen.pid`"; }; Create the /usr/local/etc/tecknet-mice-usbhidaction.conf as used above by usbhidaction: Keyboard:Keyboard_LeftShift 1 0 /usr/local/bin/xdotool mousedown 6 Keyboard:Keyboard_LeftShift 0 1 /usr/local/bin/xdotool mouseup 6 Keyboard:Keyboard_LeftControl 1 0 /usr/local/bin/xdotool mousedown 7 Keyboard:Keyboard_LeftControl 0 1 /usr/local/bin/xdotool mouseup 7 Keyboard:Keyboard_LeftAlt 1 0 /usr/local/bin/xdotool mousedown 10 Keyboard:Keyboard_LeftAlt 0 1 /usr/local/bin/xdotool mouseup 10 You have to install xdotool from ports or pkg. The number at the end of each line is the button click to simulate. So the result is the following: For the Tecknet X9800 mouse, the 3 side buttons are: [Button 6] [Button 7] [Button 10] For the Tecknet M008, the 5 side buttons are: [Button 10][Button 7][Button 6] [Button 9] [Button 8] Then one can use xmodmap to remap buttons to "real" buttons in the .xsession or equivalent. In my case, to support both mice without reconfiguring manually each time I start X, my .xsession contains: # In my window manager I configured: # Button 6 = move # Button 7 = resize # Button 8 = window manager menu # Tecknet X9800 mouse, + 3 buttons (resulting 10 and 7 not used) if devinfo -v | fgrep -q 'vendor=0x04d9 product=0xfa50'; then # Btn pressed = 1 2 3 4 5 6 7 8 9 10 echo 'pointer = 1 2 3 4 5 6 8 9 10 7' | xmodmap - # [6] # [7->8] [10->7] # Tecknet M008 mouse, + 5 buttons elif devinfo -v | fgrep -q 'vendor=0x04d9 product=0xfc05'; then # Btn pressed = 1 2 3 4 5 6 7 8 9 10 echo 'pointer = 1 2 3 4 5 10 9 7 8 6' | xmodmap - # [10->6][7->9][6->10] # [9->8] [8->7] fi I hope this can help current or future Tecknet mice owners :) Best regards, Max.