From owner-freebsd-usb@FreeBSD.ORG Thu Dec 17 12:41:28 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1FB3106568D for ; Thu, 17 Dec 2009 12:41:28 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 334AB8FC18 for ; Thu, 17 Dec 2009 12:41:27 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=gNqzSLAoAAAA:8 a=Br9LfDWDAAAA:8 a=sMCrCVZrAAAA:8 a=0I6II25TttnizltgJ3cA:9 a=ThDDuQqoBHiTwxponst4yaend7kA:4 a=aTOJHhGpzTEA:10 a=TRW-o2S9CEoA:10 a=9aOQ2cSd83gA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1342495591; Thu, 17 Dec 2009 13:41:25 +0100 From: Hans Petter Selasky To: me@jackal.in Date: Thu, 17 Dec 2009 13:43:21 +0100 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <200912161556.52923.me@jackal.in> <200912162338.11041.hselasky@c2i.net> <200912171432.20725.me@jackal.in> In-Reply-To: <200912171432.20725.me@jackal.in> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200912171343.22970.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: logitech vx nano mouse buttons X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 12:41:28 -0000 On Thursday 17 December 2009 12:32:19 jackal wrote: > Hello, > > On Thursday 17 December 2009 01:38:09 Hans Petter Selasky wrote: > > On Wednesday 16 December 2009 21:50:09 jackal wrote: > > > Hello, > > > > > > On Wednesday 16 December 2009 22:44:41 Paul Schmehl wrote: > > > > --On Wednesday, December 16, 2009 11:44:21 -0600 Hans Petter Selasky > > > > > > > > wrote: > > > > > On Wednesday 16 December 2009 13:56:52 jackal wrote: > > > > >> Hello, > > > > >> > > > > >> I'm using logitech vx nano mouse at freebsd 8-stable. > > > > >> Everything works fine, except wheel left/right buttons. > > > > >> `cat /dev/ums0' doesn't show anything when pressing this buttons. > > > > >> Any other buttons works fine, including navigation buttons. > > > > >> Is there a way to get this buttons work? > > > > > > > > Have you googled for the answer? > > > > > > > > http://wiki.eeeuser.com/configure_logitech_vx_nano > > > > > > > > http://bbs.archlinux.org/viewtopic.php?id=41805 > > > > > > > > http://crunchbanglinux.org/forums/topic/504/solved-help-setting-up-si > > > >de -w he el-buttons/ > > > > > > > > Section "InputDevice" > > > > Identifier "VX Nano" > > > > Driver "evdev" > > > > Option "Name" "Logitech USB Receiver" > > > > Option "Protocol" "evdev" > > > > Option "Buttons" "9" > > > > Option "SendCoreEvents" > > > > Option "ZAxisMapping" "4 5" > > > > Option "WAxisMapping" "8 9" > > > > EndSection > > > > > > > > Obviously the driver will be different on FreeBSD, but the > > > > WAxisMapping is the one that controls the side buttons. > > > > > > Ofcourse, I googled it, and I tried this configuration. But > > > ..AxisMapping is just button-to-axis mapping. xev doesn't see this > > > buttons. > > > Any Xorg driver should work with ums0 device (as I understand), so I > > > tried to `cat /dev/ums0' without X server and moused. > > > > Can you enable ums debugging: > > > > sysctl hw.usb.ums.debug=15 > > ####### left button press > Dec 17 12:46:16 dell kernel: ums_intr_callback:210: sc=0xc61dc800 actlen=8 > Dec 17 12:46:16 dell kernel: ums_intr_callback:228: data = 01 00 00 00 00 > 00 00 00 Dec 17 12:46:16 dell kernel: ums_intr_callback:294: x:0 y:0 z:0 > t:0 w:0 buttons:0x00000004 > > ####### left button release > Dec 17 12:46:16 dell kernel: ums_intr_callback:210: sc=0xc61dc800 actlen=8 > Dec 17 12:46:16 dell kernel: ums_intr_callback:228: data = 00 00 00 00 00 > 00 00 00 Dec 17 12:46:16 dell kernel: ums_intr_callback:294: x:0 y:0 z:0 > t:0 w:0 buttons:0x00000000 > > ####### backward button press > Dec 17 12:46:18 dell kernel: ums_intr_callback:210: sc=0xc61dc800 actlen=8 > Dec 17 12:46:18 dell kernel: ums_intr_callback:228: data = 08 00 00 00 00 > 00 00 00 Dec 17 12:46:18 dell kernel: ums_intr_callback:294: x:0 y:0 z:0 > t:0 w:0 buttons:0x00000008 > > ####### backward button release > Dec 17 12:46:18 dell kernel: ums_intr_callback:210: sc=0xc61dc800 actlen=8 > Dec 17 12:46:18 dell kernel: ums_intr_callback:228: data = 00 00 00 00 00 > 00 00 00 Dec 17 12:46:18 dell kernel: ums_intr_callback:294: x:0 y:0 z:0 > t:0 w:0 buttons:0x00000000 > > ####### forward button press > Dec 17 12:46:19 dell kernel: ums_intr_callback:210: sc=0xc61dc800 actlen=8 > Dec 17 12:46:19 dell kernel: ums_intr_callback:228: data = 10 00 00 00 00 > 00 00 00 Dec 17 12:46:19 dell kernel: ums_intr_callback:294: x:0 y:0 z:0 > t:0 w:0 buttons:0x00000010 > > ####### forward button release > Dec 17 12:46:19 dell kernel: ums_intr_callback:210: sc=0xc61dc800 actlen=8 > Dec 17 12:46:19 dell kernel: ums_intr_callback:228: data = 00 00 00 00 00 > 00 00 00 Dec 17 12:46:19 dell kernel: ums_intr_callback:294: x:0 y:0 z:0 > t:0 w:0 buttons:0x00000000 > > ####### wheel up > Dec 17 14:21:07 dell kernel: ums_intr_callback:210: sc=0xc61dc800 actlen=8 > Dec 17 14:21:07 dell kernel: ums_intr_callback:228: data = 00 00 00 00 00 > 00 01 00 Dec 17 14:21:07 dell kernel: ums_intr_callback:294: x:0 y:0 z:-1 > t:0 w:0 buttons:0x00000000 > > ####### wheel down > Dec 17 14:21:11 dell kernel: ums_intr_callback:210: sc=0xc61dc800 actlen=8 > Dec 17 14:21:11 dell kernel: ums_intr_callback:228: data = 00 00 00 00 00 > 00 ff 00 Dec 17 14:21:11 dell kernel: ums_intr_callback:294: x:0 y:0 z:1 > t:0 w:0 buttons:0x00000000 > > ####### wheel left > Dec 17 12:46:20 dell kernel: ums_intr_callback:210: sc=0xc61dc800 actlen=8 > Dec 17 12:46:20 dell kernel: ums_intr_callback:228: data = 00 00 00 00 00 > 00 00 ff > > ####### wheel right > Dec 17 12:46:22 dell kernel: ums_intr_callback:210: sc=0xc61dc800 actlen=8 > Dec 17 12:46:22 dell kernel: ums_intr_callback:228: data = 00 00 00 00 00 > 00 00 01 > > Wheel left/right buttons doesn't have 'release' events. Seems like it's > fourth axis... When holding one of this buttons, an event is generated > continuously. If you do log2 of the buttons value you get the button # pressed. Looks like the mapping is not 1:1. Try to add a button map to the X11 config file. --HPS