View previous topic :: View next topic |
Author |
Message |
Jmaxxz Apprentice
Joined: 16 Sep 2006 Posts: 166
|
Posted: Fri Oct 06, 2006 9:49 pm Post subject: mapping buttons [solved] |
|
|
How do I make my volume up, down, and mute buttons work in linux? I tried using the control center in kde, but that did not work. Any suggestions?
Last edited by Jmaxxz on Fri Oct 06, 2006 10:22 pm; edited 1 time in total |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Fri Oct 06, 2006 9:51 pm Post subject: |
|
|
You'll probably need to read up on xmodmap. I think it can do what you need. _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
Jmaxxz Apprentice
Joined: 16 Sep 2006 Posts: 166
|
Posted: Fri Oct 06, 2006 9:58 pm Post subject: |
|
|
tried xmodmap to get the imputs and my volume key returned nothing |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Fri Oct 06, 2006 10:05 pm Post subject: |
|
|
Try using xev to find the keycodes. If it doesn't show anything when you hit that key, then I guess you are out of luck.
I assume you've searched both the forums and google for your particular keyboard to see if anyone else has managed to do what you want... _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
jonnevers Veteran
Joined: 02 Jan 2003 Posts: 1594 Location: Gentoo64 land
|
Posted: Fri Oct 06, 2006 10:08 pm Post subject: |
|
|
yabbadabbadont wrote: | Try using xev to find the keycodes. If it doesn't show anything when you hit that key, then I guess you are out of luck.
I assume you've searched both the forums and google for your particular keyboard to see if anyone else has managed to do what you want... |
xev is a very good way to see what a key (keyboard or mouse) is producing.
you can try using the 'evdev' drivers
I used lineakd to get the multimedia keys on my keyboard to work |
|
Back to top |
|
|
Jmaxxz Apprentice
Joined: 16 Sep 2006 Posts: 166
|
Posted: Fri Oct 06, 2006 10:08 pm Post subject: |
|
|
It's a laptop...googling my specific keyboard would be kindof hard |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Fri Oct 06, 2006 10:10 pm Post subject: |
|
|
Jmaxxz wrote: | It's a laptop...googling my specific keyboard would be kindof hard |
Then google your specific laptop. Jeesh. _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
Jmaxxz Apprentice
Joined: 16 Sep 2006 Posts: 166
|
Posted: Fri Oct 06, 2006 10:21 pm Post subject: |
|
|
GOT IT!!!!
Code: | xmodmap -e "keycode 176 = XF86AudioRaiseVolume"
xmodmap -e "keycode 174 = XF86AudioLowerVolume"
xmodmap -e "keycode 160 = XF86AudioMute" |
|
|
Back to top |
|
|
|