Check out this thread and see if it will work for you.
http://www.linuxquestions.org/questi...388#post536388
Some other info I saved for how me and nef got it working for him.
Under KDE3 mapping Special keys, Hotkeys, Multimedia Keys
You really gave me a challenge. But I finially got what I think will work for you. Thanks to these web sites:
http://sdb.suselinux.hu/en/sdb/html/extrakeys.html
http://www.linuxgazette.com/issue67/evans.html
http://www.mail-archive.com/expert@...m/msg48067.html
https://me.in-berlin.de/~peter/gnu-.../tastatur.shtml
http://ypwong.org/hotkeys/
http://www.ignavus.net/software.html
Part 1 Mapping Keys to Scripts. (I have this working fine)
1. Need to create 5 executable scripts to. One for volume up, one for volume down, and mute.
Contents for volume up named ' volumeup '
#!/bin/sh
aumix -v +5 -S
Contents of volume down named ' volumeudn '
#!/bin/sh
aumix -v -5 -S
Contents of volume down named ' volumemute '
#!/bin/sh
aumix -v0
cp /opt/volumemute1 /opt/volumemute
Contents of volume down named ' volumeumute1 '
#!/bin/sh
aumix -v75
cp /opt/volumemute2 /opt/volumemute
Contents of volume down named ' volumeumute2 '
#!/bin/sh
aumix -v0
cp /opt/volumemute1 /opt/volumemute
Save all files under my /opt directory. Make sure scripts have full read, write , & executable permissions for all users.
2. Now create a file under ~/.kde/share/config called ' khotkeysrc ' ' ~ ' character reprosents your home directory if you did not know. Typeing ' cd ~ ' will take to your home directory of the user you are login as.
Contents of ' ~/.kde/share/config/khotkeysrc '
[Main]
Num_Sections=3
Version=1
[Section1]
MenuEntry=false
Name=volumeudn
Run=/opt/volumeudn
Shortcut=F11
[Section2]
MenuEntry=false
Name=volumeup
Run=/opt/volumeup
Shortcut=F12
[Section3]
MenuEntry=false
Name=volumemute
Run=/opt/volumemute
Shortcut=F10
Save file.
3. execute this command in ~/kde/share/config directory
' dcop khotkeys khotkeys reread_configuration '
Note: sometimes may require a restart of X server.
4. Start playing some music and try your F10, F11 and F12 keys. If volume goes up and down (note don't press the keys real fast, pause a 1/2 second between keypresses of F10, F11 or F12).
Note: It may be necessary to run the volumemute1 script when you first bootup so volume is at 75% or what ever value you perfer. This script can be run from rc.local.
This is what nef did for his system.
Part 2 Mapping Special key to Key ( This I have not done. )
5. Now to map your volume buttons to F11 & F12. I have not done this part but following info from the earlier post on X. Make a backup copy of your /etc/X11/Xmodmap. Now edit /etc/X11/Xmodmap and setup like the following. Replace the ' ** ' with the keycode you recieved from ' xev ' program.
! /etc/X11/Xmodmap
! mapping volume keys
keycode ** = F11
keycode ** = F12
6. Save and exit
7. Execute the following command ' xmodmap /etc/X11/Xmodmap '
Brian1
Hope this helps. Let me know how this worked for you or what else you did to get it working on your system.