a bit of reading.. say, http://gentoo-wiki.com/HOWTO_Use_Multimedia_Keys ?Michiel_H wrote:
This just seems a bit strange to me. I'd like to fix it. Where would you suggest I start?
I am not aware of ways to find which program is using the particular key shortcut outside of KDE package. And you could run xev(emerge xev) and press the "raise volume" button and see what that button is recognized into, and maybe define it with xmodmap.Michiel_H wrote:It's not solved yet. But after removing the global shortcuts from KMix and restarting the PC, the XF86AudioLowerVolume and XF86AudioMute keysims are no longer being intercepted by KMix, and they work correctly. It seems some other program is intercepting the XF86AudioRaiseVolume keysim and doing nothing with it. How can I find out which program that is?
Clarification: The "Configure Shortcuts" dialog does recognize the "raise volume" button as XF86AudioRaiseVolume, so the problem is somewhere within KDE, I'd say.
Code: Select all
KeyPress event, serial 31, synthetic NO, window 0x3600001,
root 0x155, subw 0x0, time 33699243, (873,-792), root:(877,179),
state 0x0, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
XKeysymToKeycode returns keycode: 175
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: FalseperhapsMichiel_H wrote: KDE must keep a file with this information somewhere.
Code: Select all
find ~/.kde/share/config -print0 | xargs -0 cat | grep XF86AudioRaiseVolumeCode: Select all
amixer sset PCM 2+
you have to be careful with kmilo on some machines... for some reason it will assume one of the volume buttons is being held down and won't let you change the volume... but i think this only affects dell machines. ymmv.peper0 wrote:I've had some problems with volume control too. After many tries I noticed that KMilo is responsible for handling these keys... Maybe that help you (kcontrol, KDE components -> Service Manager -> startup services)?
banned from #gentoo since sept 2017Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
Double threadMark Clegg wrote:Similar things happening here...
At some point in the past, the volume buttons both worked, but the mute button didn't. Now, (after many updates, so I'm not sure which) the mute button works, but the volume buttons don't.
Pressing any of them, results in KDE displaying it's on screen message (OSD), but the volume buttons will only toggle the display between 0 and 11% (and don't affect the volume).
The keys are producing the correct keysyms XF86Audio... etc, as proved by the OSD messages (and testing with xev).
I believe the core problem is that the wrong audio channels are being selected by whatever application is catching these keys.
Just out of curiosity - what sound card are you using? I'm using snd_hda_intel, which I believe at the hardware level, doesn't have a concept of "Master" channel, although you can select this via KMix. Maybe whatever process is catching the keys doesn't use KMix's setting for the Master channel?

... which is why I posted a link in that thread back to this one.oc666 wrote:Double thread
How did you changed the "PCM" channel to "Front"? (I think this is my problem)wadelius wrote:...I changed XF86AudioMute to XF86AudioPlay and the "PCM" channel to "Front"...
How could I do this to all users?wadelius wrote:I followed the Howto I provided a link to. There you create (or modify if it exists) a .xbindkeysrc file in your home directory and insert your keybindings in it. What you should do is change PCM to Front or whatever your channel is called in the .xbindkeysrc file. The howto says you should insert:
"amixer sset PCM 5-"
XF86AudioLowerVolume
"amixer sset PCM 5+"
XF86AudioRaiseVolume
"amixer set PCM toggle"
XF86AudioMute
But I inserted:
"amixer sset Front 5-"
XF86AudioLowerVolume
"amixer sset Front 5+"
XF86AudioRaiseVolume
"amixer set Front toggle"
XF86AudioPlay
So it is amixer that does the actual changing of the settings, so you need to have that installed. Just type the commands (for example "amixer sser Front 5-") and see if they work. I have tried both sset and set and both work. I think the channel "Front" can have other names, to get the names of your channels just type amixer in the terminal. It will give you details on all the channels amixer can change. Just follow the instructions in the Howto and make sure to run "xmodmap {full path}/.Xmodmap" and "xbindkeys" on startup.
//
Jonathan
I get exactly the same behaviour.Mark Clegg wrote:Similar things happening here...
At some point in the past, the volume buttons both worked, but the mute button didn't. Now, (after many updates, so I'm not sure which) the mute button works, but the volume buttons don't.
Pressing any of them, results in KDE displaying it's on screen message (OSD), but the volume buttons will only toggle the display between 0 and 11% (and don't affect the volume).
The keys are producing the correct keysyms XF86Audio... etc, as proved by the OSD messages (and testing with xev).
I believe the core problem is that the wrong audio channels are being selected by whatever application is catching these keys.
Just out of curiosity - what sound card are you using? I'm using snd_hda_intel, which I believe at the hardware level, doesn't have a concept of "Master" channel, although you can select this via KMix. Maybe whatever process is catching the keys doesn't use KMix's setting for the Master channel?
