Compaq Easy Access Buttons

frank pirrone fpirrone at localnet.com
Sat Jul 27 20:42:44 EDT 2002


Justin Bennett wrote:

> frank pirrone wrote:
>
> >Justin Bennett wrote:
> >
> >
> >
> >>Ok I know there is a way to snag what keycodes my laptop throws when you
> >>push the easy access buttons then in the xconfig somewhere there is a
> >>way to bind these to commands. I really don't care about the internet or
> >>mail or any of that crap, but my volume controlls don't work. I have to
> >>use the software controlls in the mixer, kinda hard to do in quake. Any
> >>help would be apreciated.
> >>
> >>Justin
> >>
> >>
> >
> >Justin,
> >
> >You're looking for xev to display the x events, then bind in
> >/etc/X11/Xmodmap.  Here's a piece of the file as an example.
> >
> >! global Xmodmap file -- used by both xdm and xinit (startx)
> >
> >! keycode and keysym remapping should generally be used only if the X
> >! server does not use the XKEYBOARD extension (i.e., there is a uncommented
> >
> >! line "XkbDisable" in the keyboard section of /etc/X11/XF86Config)
> >
> >! i386 and alpha
> >! keycode 22 = BackSpace
> >! keycode 107 = Delete
> >
> >Frank
> >
> >
> >--
> >This message has been scanned for viruses and
> >dangerous content by Dynabrade using Mailscanner,
> >and is believed to be clean.
> >
> >
> Ok I have code 174 and 176 for the down and up respectively. This is my
> Xmodmap from /;etc/X11, doesn't work though. Any ideas?
>
> > !
> > ! global Xmodmap file -- used by both xdm and xinit (startx)
> >
> > ! keycode and keysym remapping should generally be used only if the X
> > ! server does not use the XKEYBOARD extension (i.e., there is a
> > uncommented
> > ! line "XkbDisable" in the keyboard section of /etc/X11/XF86Config)
> >
> > ! i386 and alpha
> > ! keycode 22 = BackSpace
> > ! keycode 107 = Delete
> >
> > ! powerpc
> > ! keycode 59 = BackSpace
> > ! keycode 125 = Delete
> >
> > ! sparc
> > ! keycode 50 = BackSpace
> > ! keycode 73 = Delete
> >
> > ! Euro sign support
> > ! keycode 26 = e E currency
> > ! keycode 54 = c C cent
> > ! keycode 113 = Mode_switch Mode_switch Multi_key
> >
> > keycode 174 = VolDown
> > keycode 176 = VolUp
> > ~

My guess is that VolDown and VolUp are meaningless to the X Window server.
What do you expect it to control?

Now, if you set those codes to Left and Right and have an appropriate mixer
running and set to the correct volume channel, pressing those buttons should
raise and lower the channel gain.

What I can't tell is that this would occur during game play.

Frank





More information about the nflug mailing list