LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   control kmix with multimedia keys (https://www.linuxquestions.org/questions/linux-newbie-8/control-kmix-with-multimedia-keys-523875/)

Michael_aust 01-29-2007 05:45 PM

control kmix with multimedia keys
 
Under Opensuse 10.2 I was able to control kmix via my multimedia keys (volume up, down, mute) with kmilo. However under Debian I cannot get this to function.

I have kmilo installed and running and nvram is loaded and writable by users.

Does anyone know ho kmilo is enabled in debian?

If not, then how about using xbindkeys to control kmix via dcop. I am having trouble with this approach, I cannot find anywhere the dcop commands for control kmix. The ones I have found do not work. Anyone have any solutions.

Thanks in advance

Michael

nx5000 01-30-2007 10:29 AM

I control aumix through xbindkeys:

.xbindkeysrc

"aumix -v-10"
m:0x0 + c:174

"aumix -v+10"
m:0x0 + c:176

"mute"
m:0x0 + c:160

The codes depends on your scancodes, you should have the codes in /var/log/messages when you press these buttons.


I have no clue for the dcop interaction

nx5000 01-30-2007 10:33 AM

http://forum.hardware.fr/hfr/OSAlter...et_42064_1.htm

I hope you understand french ;)

read INC; VOL_CUR=`dcop kmix Mixer0 masterVolume`; VOL=`expr $VOL_CUR + $INC`; dcop kmix Mixer0 setMasterVolume $VOL

Michael_aust 01-30-2007 05:09 PM

nx5000: Thanks for that. I ran google translator on the french page but it wasnt much help. The dcop stuff worked, but I could not figure out how to get it to incrment the volume increase.

I am going to use the xbindkeys to control aumix method. I have set it up on my desktop and it works well. It seems to be the easiest solution out of everything, so I will use this.

Thanks for the help, its appreciated, cheers.

Michael.


All times are GMT -5. The time now is 06:36 PM.