Re: 2nd and 3rd mouse buttons in XF4.0.2
On Wed, Mar 14, 2001 at 11:04:19AM -0600, Michael Hope wrote:
>
>
> On Tue, 13 Mar 2001, Grant Miller wrote:
>
> > On Sun, Mar 11, 2001 at 02:15:15PM -0600, Michael Hope wrote:
> > > > I'm trying to get a 2nd and 3rd mouse button working in XFree 4.0.2. I'm
> > > > running kernel 2.4.2-pre3 from bitkeeper's sources. I have the following
> > > > relevant options in my kerenl conifg:
> > > >
> > > > CONFIG_USB=y
> > > > CONFIG_USB_HID=y
> > > > CONFIG_INPUT_KEYBDEV=y
> > > > CONFIG_INPUT_MOUSEDEV=y
> > > > CONFIG_INPUT_EVDEV=y
> > > > CONFIG_INPUT_ADBHID=y
> > > >
> > > >
> > > > /etc/sysctl.conf:
> > > >
> > > > dev.mac_hid.mouse_button2_keycode = 101
> > > > dev.mac_hid.mouse_button3_keycode = 109
> > > > dev.mac_hid.mouse_button_emulation = 1
> > >
> > > I did a grep for 101 and 109 across linux/include/input.h - 101
> > > is the lineffed key (?) and 109 is the pagedown key. Personally I use
> > >
> > > echo 1 > /proc/sys/dev/mac_hid/mouse_button_emulation
> > > echo 87 > /proc/sys/dev/mac_hid/mouse_button2_keycode
> > > echo 88 > /proc/sys/dev/mac_hid/mouse_button3_keycode
> > >
> >
> >
> > I tried those numbers and 67 (F9) and 68 (F10) and that didn't work. I
> > press on those keys and I don't get a response from X. I ran xev (X event
> > viewer) and there were no events reported when I pressed on F9 or F10.
>
> Hmm. Something else is going on then. 67 and 68 work fine for me. Do
> the echo lines above do anything?
>
Yup,
root@dune:~% echo 1 > /proc/sys/dev/mac_hid/mouse_button_emulation
root@dune:~% echo 67 > /proc/sys/dev/mac_hid/mouse_button2_keycode
root@dune:~% echo 68 > /proc/sys/dev/mac_hid/mouse_button3_keycode
root@dune:~%
root@dune:~% cat /proc/sys/dev/mac_hid/mouse_button_emulation
1
root@dune:~% cat /proc/sys/dev/mac_hid/mouse_button2_keycode
67
root@dune:~% cat /proc/sys/dev/mac_hid/mouse_button3_keycode
68
Still no 2nd or 3rd mouse button in X.
--Grant Miller grant at unixguru dot org
I don't have to take this abuse from you -- I've got hundreds of
people waiting to abuse me.
-- Bill Murray, "Ghostbusters"
Reply to: