You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

DOT68

Beginner

  • "DOT68" started this thread

Posts: 4

Location: Germany

  • Send private message

1

Thursday, February 24th 2005, 10:32am

Multimedia keyboard and extra keys

Hi,

Question 1:
I am new to Linux and looking for a way to control and change volume with extra keys on my Multimedia keyboard.
Volume in- and decrease was no problem with aumix, but with the mute funktion I have some big problems. Right now I am trying to build a script to restore the volume after disabling mute.

In this forum there is a thread, where other users reported that KMix had taken control of volume keys.
Can anybody explain to me. how I can take advantage of this "feature"?
Seems to me that this is what I am looking for... :-)


Question 2:
X11 has only 35 F-keys. How can I increase this number? Or is it possible to declare new key names?
---

cu/2, Andreas

2

Thursday, February 24th 2005, 8:29pm

RE: Multimedia keyboard and extra keys

1. Multimedia keys are threathed by X11 as Function Keys. In KDE, it is possible to execute a command when a key of key-combination is pressed. So you can execute a choosen command when you press a multimedia key.

AFAIK, there is a mute-function in KMix. So you can toggle that function if you press a function key. If KMix doesn't this self, you can make a script that toggles this button (using DCOP).

2. {number of normal buttons on a keybord} - {number of functions keys} + 35 (number of addressable function keys) = 105 - 12 + 35 = 128, and that is a power of 2. So, maybe it is a limitation of (serial) keyboards.

DOT68

Beginner

  • "DOT68" started this thread

Posts: 4

Location: Germany

  • Send private message

3

Friday, February 25th 2005, 12:16pm

Until now I had my MM keys as Function keys defined in de-latin1-nodeadkeys2.map.
Maybe not the best way but the only one for me to have them linked as Function keys to commands with KHotkey.

There seems to be another way to let X load them as Function keys from ~. (Manually I can do it with xmodmap ~/.Xmodmap).
What is the name of the file which is loaded on any KDE startup to map the keys?


Mart_k, you wrote:
> AFAIK, there is a mute-function in KMix. So you can toggle that function if you press a function key.
> If KMix doesn't this self, you can make a script that toggles this button (using DCOP).

I checked some books and tried to find help in the internet, but I didn't stumble over informations to KMIx nor can I write such a script (I want to change that).
Where can I find such informations?
---

cu/2, Andreas

4

Friday, February 25th 2005, 2:49pm

Quoted

Originally posted by DOT68
Until now I had my MM keys as Function keys defined in de-latin1-nodeadkeys2.map.
Maybe not the best way but the only one for me to have them linked as Function keys to commands with KHotkey.

There seems to be another way to let X load them as Function keys from ~. (Manually I can do it with xmodmap ~/.Xmodmap).
What is the name of the file which is loaded on any KDE startup to map the keys?
Since KDE 3.3, everything in ~/.kde/env is executed when you startup KDE. So that is a good place to run xmodmap. (You may have to make that subdirectory)


Quoted

I checked some books and tried to find help in the internet, but I didn't stumble over informations to KMIx nor can I write such a script (I want to change that).
Where can I find such informations?
I made such a function before, but that was on another computer, so I coundn't paste the function. The command is:

Source code

1
dcop kmix Mixer0 setMute 0 $( [ "$(dcop kmix Mixer0 mute 0)" = "true" ] && echo "false" || echo "true" )
KMix must be running, otherwise it does nothing.

DOT68

Beginner

  • "DOT68" started this thread

Posts: 4

Location: Germany

  • Send private message

5

Saturday, February 26th 2005, 12:13pm

Hello again,

when I clicked on the english manual of KMix I found the desired hints for dcop commands. 8o
The german help doesn't have the translation by now.

Yesterday I managed to implement the MM keys in KDE as script in ~/.kde/Autostart.
:O I first tried to create ~/.xinitrc to do this, I forget the first script line #'! /bin/bash or so and as a result I couldn't log in any more as user...

Mute:
KMix has (in KDE 3.3) a hotkey function for mute, as I found out, ...
but KMix don't want run automaticly. :(
Thanks for the command nethertheless.
---

cu/2, Andreas