geekhack

geekhack Community => Keyboards => Topic started by: tweis on Thu, 07 May 2015, 19:39:10

Title: Media Keys for OSX/Mac
Post by: tweis on Thu, 07 May 2015, 19:39:10
Has anyone successfully gotten the media/extra keys on a Mac to work with a programmable keyboard? I am talking about media control when the media player is in the background.

But not on the Winkeyless B.87 (ps2avrGB controller/fw). I was excited about the programability with the idea of being able to natively control Mac (OSX Mavericks/Yosemite) this. Volume, Play/Pause, and brightness (which really are just Pause/ScrLk) work fine. Next and Previous track don't work though. I have set the keys to Next/Prv Trk and to F7/F9. Neither of these work. Could this be like the Pause and ScrLk keys?

This is possible. I have verified that this works on both the WASD V2 87 and the KUL ES-87. Anyone have any ideas or know any way of "sniffing" what my KUL is doing?

(I know this can probably be accomplished with software, but lets leave that out at this point. It is only a bandaid, not a fix. For the sake of argument, let's say we don't have permissions on the computer to set scripts/software to do this)
Title: Re: Media Keys for OSX/Mac
Post by: Jixr on Fri, 08 May 2015, 14:24:11
I have, but really it depends on the keyboard, some programable ones are OSX friendly, some are not.

I at least have the media keys working ( volume, next, play/pause ) and the other buttons, not sure about eject, and screen brightness ( desktop setup so I can't test those )

But yes, there is also software fixes for this.
Title: Re: Media Keys for OSX/Mac
Post by: tweis on Fri, 08 May 2015, 14:27:25
I have, but really it depends on the keyboard, some programable ones are OSX friendly, some are not.

I at least have the media keys working ( volume, next, play/pause ) and the other buttons, not sure about eject, and screen brightness ( desktop setup so I can't test those )

But yes, there is also software fixes for this.
On what hardware / firmware?
Title: Re: Media Keys for OSX/Mac
Post by: Khers on Fri, 08 May 2015, 14:49:25
.
Title: Re: Media Keys for OSX/Mac
Post by: Jixr on Fri, 08 May 2015, 16:56:23
I don't think my duck mini worked, but my redscarf and nerd works. ( i may be getting those mixed up though )
Title: Re: Media Keys for OSX/Mac
Post by: Tactile on Fri, 08 May 2015, 17:14:41
I have a QFR connected to an iMac & most of the media keys work in iTunes with iTunes in the background. Volume up/down & mute, Play/Pause, Next Track, & Previous Track all work but Stop (FN F6) doesn't seem to do anything. (I just looked at the stock Apple keyboard & see there is no stop function, so that explains why it does nothing with the QFR)

And pressing Play/Pause will launch iTunes if it's not running (I just learned that).
Title: Re: Media Keys for OSX/Mac
Post by: hasu on Sat, 09 May 2015, 10:00:08
It seems OSX uses different HID usages from Windows, you have to know that exact usages.
You can use USB sniffer on OSX according to Google. If you can look into this would be helpful to support OSX media keys.
http://stackoverflow.com/questions/13827224/sniff-usb-traffic-on-a-mac

I think those usages are probably 0x00B3 and 0x00B4 of Consumer page from our discussions but it is not confirmed yet.
https://github.com/tmk/tmk_keyboard/issues/195



Title: Re: Media Keys for OSX/Mac
Post by: tweis on Fri, 03 July 2015, 13:15:38


It seems I think those usages are probably 0x00B3 and 0x00B4 of Consumer page from our discussions but it is not confirmed yet.
https://github.com/tmk/tmk_keyboard/issues/195

Hasu, this is exactly right. Rewind and fast forward are what you want instead of next/previous. I also set the vid/pid to mimic an apple USB keyboard just for safe measures.
Title: Re: Media Keys for OSX/Mac
Post by: hasu on Fri, 03 July 2015, 16:16:48
Great. Thanks for the confirmation!