Date: Thu, 17 Dec 2009 16:04:30 +0300 From: jackal <me@jackal.in> To: Hans Petter Selasky <hselasky@c2i.net>, freebsd-usb@freebsd.org Subject: Re: logitech vx nano mouse buttons Message-ID: <200912171604.30794.me@jackal.in> In-Reply-To: <200912171343.22970.hselasky@c2i.net> References: <200912161556.52923.me@jackal.in> <200912171432.20725.me@jackal.in> <200912171343.22970.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, On Thursday 17 December 2009 15:43:21 Hans Petter Selasky wrote: > 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 > > > > > > > > > > <hselasky@c2i.net> 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. > Yes, backward/forward button mapping is not 1:1. These buttons works with Option "ButtonMapping" "1 2 3 6 7" as expected. But the problem is with 'wheel left/right' buttons. These buttons doesn't generate button events, so xev can't see these buttons. 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 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 There's no ums_intr_callback:294 events. What you mean by phrase 'do log2 of the buttons value'? What is the 'log2'? -- Kind regards, Eugeny.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912171604.30794.me>