LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mac Volume Keys Don't Work in Kubuntu Edgy Eft (https://www.linuxquestions.org/questions/linux-hardware-18/mac-volume-keys-dont-work-in-kubuntu-edgy-eft-548753/)

bburgy 04-24-2007 10:19 PM

Mac Volume Keys Don't Work in Kubuntu Edgy Eft
 
Hi all,

I am currently running the x86 distribution of Kubuntu Edgy Eft, and I am having trouble getting KMix to understand the volume keys on my Apple keyboard. When I attempt to setup the global shortcuts, it does not detect when I press either the volume up, down, or mute keys.

I don't have a Mac. Instead I am using it as an ordinary USB keyboard on a PC.

I've tried configuring X to use the correct keyboard layout. For the most part, this works. Granted, the "help" key serves as insert, and "clear" works as num-lock. All of this is fine, and if possible, I'd like to keep it that way.

The eject key works (doesn't eject my cdrom, but it does at least get detected by KMix in the configure global shortcut section), but the volume keys seem to not.

I tried running xev, and it appears the volume keys are detected when I press them. Here is the output:

KeyRelease event, serial 28, synthetic NO, window 0x1c00001,
root 0x76, subw 0x0, time 649829748, (-337,853), root:(1401,1062),
state 0x10, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

FocusOut event, serial 31, synthetic NO, window 0x1c00001,
mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 31, synthetic NO, window 0x1c00001,
mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 31, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0

KeyRelease event, serial 31, synthetic NO, window 0x1c00001,
root 0x76, subw 0x0, time 649830420, (-337,853), root:(1401,1062),
state 0x10, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

FocusOut event, serial 31, synthetic NO, window 0x1c00001,
mode NotifyNormal, detail NotifyNonlinear

VisibilityNotify event, serial 31, synthetic NO, window 0x1c00001,
state VisibilityFullyObscured

This is what I expect to have happen... the keys seem to work fine. Not sure what's going on with KMix though...

I've also configured the keyboard in xorg.conf:
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "macintosh"
Option "XkbLayout" "macintosh_vndr/ch(en-altmeta)"
EndSection

That configuration, so I have learned, should provide functionality for the volume/eject keys, and swap the Alt and Apple keys (which it doesn't appear to do).

I have also setup in kcontrol that my keyboard is a PowerG5 keyboard, and then once again as a Macintosh keyboard. No luck there either.

Does any one have any suggestions?


Thanks!

Emerson 04-26-2007 07:30 AM

I'm not a KDE user and may not know the proper way how to work with DCOP and Co. You may call it dirty hack, but ... here's what I did: http://www.kde-forum.org/thread.php?threadid=15079


All times are GMT -5. The time now is 05:00 PM.