Author Topic: Media Keys for OSX/Mac  (Read 3605 times)

0 Members and 1 Guest are viewing this topic.

Offline tweis

  • Thread Starter
  • Posts: 15
  • Location: sanfrancisco
Media Keys for OSX/Mac
« 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)
kûl es-87 clears w/ pbt doubleshot

Offline Jixr

  • Posts: 864
  • Location: Ireland
Re: Media Keys for OSX/Mac
« Reply #1 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.

Offline tweis

  • Thread Starter
  • Posts: 15
  • Location: sanfrancisco
Re: Media Keys for OSX/Mac
« Reply #2 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?
kûl es-87 clears w/ pbt doubleshot

Offline Khers

  • Posts: 513
  • Schrödinger's box
Re: Media Keys for OSX/Mac
« Reply #3 on: Fri, 08 May 2015, 14:49:25 »
.
« Last Edit: Tue, 03 July 2018, 08:17:57 by Khers »

Offline Jixr

  • Posts: 864
  • Location: Ireland
Re: Media Keys for OSX/Mac
« Reply #4 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 )

Offline Tactile

  • Posts: 1439
  • Location: Portland, OR
Re: Media Keys for OSX/Mac
« Reply #5 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).
« Last Edit: Sat, 09 May 2015, 21:08:49 by Tactile »
REΛLFORCE

Offline hasu

  • Posts: 3491
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Media Keys for OSX/Mac
« Reply #6 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




Offline tweis

  • Thread Starter
  • Posts: 15
  • Location: sanfrancisco
Re: Media Keys for OSX/Mac
« Reply #7 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.
kûl es-87 clears w/ pbt doubleshot

Offline hasu

  • Posts: 3491
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Media Keys for OSX/Mac
« Reply #8 on: Fri, 03 July 2015, 16:16:48 »
Great. Thanks for the confirmation!