LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Hp multimedia hotkeys under Slackware 9.1? (https://www.linuxquestions.org/questions/linux-hardware-18/hp-multimedia-hotkeys-under-slackware-9-1-a-136930/)

njbrain 01-20-2004 09:30 PM

Hp multimedia hotkeys under Slackware 9.1?
 
With all the help you tech's have given me, I know it is possible for my multimedia hotkeys to work with Slackware Linux, but I just don't know how to do it.
Thanks, Noah

slakmagik 01-21-2004 12:04 AM

Not sure, really. Do 'xev' and hit your media keys. You'll see a bunch of output including a 'keycode'. Then look through /usr/X11R6/lib/X11/KeysymDB (and various other keysym files) and you'll see stuff like 'XF86AudioRaiseVolume'. So then you issue 'xmodmap -e "keycode NNN = XF86AudioRaiseVolume" ' and that should establish the keysym. So then, in your window manager, you can assign an action to the 'XF86AudioRaiseVolume' key (such as 'aumix -v +5'). And then you can add just 'keycode NNN = XF86AudioRaiseVolume' (without any quotes) to ~/.xmodmaprc and add the line 'xmodmap ~/.xmodmaprc' to your ~/.xinitrc. Then it'll all be automatic that when you hit the button, your volume will change.

There *has* to be an easier way and maybe some way for the sound card to just magically respond and I frigging *hate* X and its keycodes and fontpaths and all these hundreds of silly little tools. But that's how I'm getting my buttons to work. My little success of the night after months and months of confusion. If anybody has the *right* way to do it, I'd love to hear it.

And I'm not telling you to 'read the man pages' because the man pages on these particular tools and processes are awful. Read the description of .xmodmaprc in the xmodmap man page and tell me you're supposed to divine the format of the file and everything else I posted. *sigh*

IBall 01-21-2004 01:14 AM

There is a program that I use on my computer called hotkeys.

This has support for various keyboards, including a hp one - works with mine, don't know about yours.

If you follow the above link, there are downloads for various distros and the source.tar.gz.

I hope this helps
From Ian

njbrain 01-21-2004 07:54 AM

Hotkey won't install, and what the other guy said to do, won't work on my computer.


All times are GMT -5. The time now is 01:15 AM.