Guest nortononsax Posted April 16, 2008 Report Share Posted April 16, 2008 I'm running Mandriva 2008.0 on a Dell Inspiron 6000, and want the volume buttons to work. I've got the mute button working, but the volume up and down buttons change the Master MONO in KMix, not just the Master Volume-- and that just doesn't do anything. Any ideas on how I can get these buttons set up with the correct function? Quote Link to comment Share on other sites More sharing options...
DaveG Posted April 17, 2008 Report Share Posted April 17, 2008 (edited) Well, I get the lovely broken 0% stuck-on-screen volume OSD with kmilo and klaptop, so I had to set things up myself. Here's what I did to get these 3 keys working on my Inspiron 5100: 1) Use xev to find the keycodes. Run the command, mouseover the box, and press the keys. 2) Make those keys known with xmodmap. Here's my $HOME/.Xmodmap file, though your codes may differ: ! Volume Up keycode 176=F20 ! Volume Down keycode 174=F21 ! Volume Mute keycode 160=F22 3) Add a little $HOME/.kde/Autostart script to set the keys. Make sure to mark it executable. Run it to ready the keys; KDE will then run it on start from now on. #! /bin/sh if [ -f $HOME/.Xmodmap ]; then /usr/bin/xmodmap $HOME/.Xmodmap fi 4) Go into KMix -> Settings -> Global Shortcuts and set your keys there. Voila. Working volume fn-keys made from scratch. :) Idealy, all this would work by default... but that ain't happening at this rate. Edited April 17, 2008 by DaveG Quote Link to comment Share on other sites More sharing options...
Just John Posted April 17, 2008 Report Share Posted April 17, 2008 I had almost the exact same problem. And I did a much easier solution. All I did was switch the main audio channel to "PCM" (right click kmix, select master channel, click PCM). DIdn't change anything right away, but I'm pretty sure that is what fixed it because my next restart the volume buttons changed the PCM instead of mono, and PCM is like your global wave sounds or whatever, so it works great. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.