Compaq Easy Access Buttons

frank pirrone fpirrone at localnet.com
Sun Jul 28 19:58:37 EDT 2002


Justin Bennett wrote:

> frank pirrone wrote:
>
> >Justin Bennett wrote:
> >
> >
> >
> >>frank pirrone wrote:
> >>
> >>
> >>
> >>>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
> >>>
> >>>
> >>>
> >>>--
> >>>This message has been scanned for viruses and
> >>>dangerous content by Dynabrade using Mailscanner,
> >>>and is believed to be clean.
> >>>
> >>>
> >>>
> >>>
> >>Ok I just saw those referenced on a web page prob meaningless. I see
> >>many people bind them to F14 and F15 or something then setup Xmms to
> >>adjust based on that. I have the KDE mixer running  as an applet on the
> >>task bar. I can't find a configuration for it to set any function keys
> >>to raise and lower the volume. I'd like to have them controll the master
> >>if possible.
> >>
> >>
> >>
> >>
> >
> >Correct, there appears to be no way to bind keycodes to that mixers controls.
> >Don't know what sound drivers you are running, but ALSA has a nice keyboard
> >controllable mixer.  Also, if you used a console mixer, you could shell out
> >(ctrl-alt-F2 or whatever) to adjust the setting then shell back into your x
> >session (ctrl-alt-F7) to resume gameplay.  However, this doesn't sound like what
> >you want to do.
> >
> >I can't imagine all the Quakers on this list are ignoring this thread.  Surely
> >someone has messed with these extra keyboard buttons to control some system/game
> >parameters.
> >
> >Frank
> >
> >
> >--
> >This message has been scanned for viruses and
> >dangerous content by Dynabrade using Mailscanner,
> >and is believed to be clean.
> >
> >
> Not a big deal, just wondering if there was an easy way to control the
> mixer volume. My old comapq laptop the keypad controlled the hardware
> volume of the line out so it worked no matter what with no config. Can
> you set the keycodes to run a command? Like lets say I wanted the
> internet button to run mozilla?
>
> Thanks for all the help.

Never tried to do this, and don't know if it's possible.  One last suggestion (I did
do a quick though quite narrow and focused search on google/linux and couldn't find
any references to successfully using these volume buttons; a number of posters said
they couldn't get it to work):  If this is something you'd like to do primarily in
Quake or another game, if that game supports keycode binding to a function (like
volume) that might open some possibilities for those buttons.

Otherwise, my experience in these areas is quite thin.

Frank




More information about the nflug mailing list