Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media controls broken on Macbook Pro 2016 Touch Bar #431

Closed
brendankemp opened this issue Nov 16, 2016 · 10 comments
Closed

Media controls broken on Macbook Pro 2016 Touch Bar #431

brendankemp opened this issue Nov 16, 2016 · 10 comments

Comments

@brendankemp
Copy link

While Karabiner-Elements is running, the media controls (volume up/down, play/pause, etc.) on the new Touch Bar don't respond.

I tried opening up the JSON file and removing all of the mappings defined by default in "fn_function_keys". That didn't work.

I'm running macOS Sierra 10.12.1. Here is my karabiner.json file:

{
    "profiles": [
        {
            "devices": [],
            "fn_function_keys": {
                "f1": "vk_consumer_brightness_down",
                "f10": "mute",
                "f11": "volume_down",
                "f12": "volume_up",
                "f2": "vk_consumer_brightness_up",
                "f3": "vk_mission_control",
                "f4": "vk_launchpad",
                "f5": "vk_consumer_illumination_down",
                "f6": "vk_consumer_illumination_up",
                "f7": "vk_consumer_previous",
                "f8": "vk_consumer_play",
                "f9": "vk_consumer_next"
            },
            "name": "Default profile",
            "selected": true,
            "simple_modifications": {
                "caps_lock": "left_control",
                "right_option": "escape"
            }
        }
    ]
}
@brendankemp
Copy link
Author

Here's my log fwiw (karabiner.json parse error is from when I was experimenting with that file):

[2016-11-16 09:09:44.166] [info] [grabber] version 0.90.64
[2016-11-16 09:09:44.786] [info] [grabber] matching device:
[2016-11-16 09:09:44.798] [info] [grabber]   vendor_id: 0x5ac
[2016-11-16 09:09:44.798] [info] [grabber]   product_id: 0x8600
[2016-11-16 09:09:44.798] [info] [grabber]   registry_entry_id: 4294968880
[2016-11-16 09:09:44.806] [info] [grabber] matching device:
[2016-11-16 09:09:44.806] [info] [grabber]   product: Apple Internal Keyboard / Trackpad
[2016-11-16 09:09:44.806] [info] [grabber]   vendor_id: 0x5ac
[2016-11-16 09:09:44.806] [info] [grabber]   product_id: 0x278
[2016-11-16 09:09:44.806] [info] [grabber]   location_id: 0x1000000
[2016-11-16 09:09:44.806] [info] [grabber]   registry_entry_id: 4294968233
[2016-11-16 09:09:45.849] [info] [grabber] karabiner_event_dispatcher is launched. (pid:9256)
[2016-11-16 09:09:45.849] [info] [grabber] current_console_user_id: 501
[2016-11-16 09:09:45.856] [info] [grabber] karabiner_event_dispatcher is terminated. (pid:9256)
[2016-11-16 09:09:46.946] [info] [grabber] karabiner_event_dispatcher is launched. (pid:9260)
[2016-11-16 09:09:46.989] [info] [grabber] karabiner_event_dispatcher is connected (pid:9260)
[2016-11-16 09:09:46.989] [info] [grabber] karabiner_event_dispatcher client is created.
[2016-11-16 09:10:00.762] [info] [console_user_server] version 0.90.64
[2016-11-16 09:10:01.873] [info] [grabber] karabiner_console_user_server is connected (pid:9283)
[2016-11-16 09:10:01.873] [info] [console_user_server] grabber_client_ is connected
[2016-11-16 09:10:01.873] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 09:10:01.875] [info] [grabber] event_tap_manager grabbed mouse events
[2016-11-16 09:10:02.051] [info] [grabber] Apple Internal Keyboard / Trackpad is grabbed
[2016-11-16 09:10:02.051] [info] [grabber] (vendor_id:0x5ac, product_id:0x8600) is grabbed
[2016-11-16 09:10:02.911] [info] [grabber] system_preferences_values_updated
[2016-11-16 09:10:02.911] [info] [console_user_server] system_preferences::values is updated.
[2016-11-16 09:10:03.278] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 09:10:10.632] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 09:10:15.972] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 09:36:10.400] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 09:36:12.640] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 09:36:23.245] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 10:46:02.760] [info] [grabber] version 0.90.64
[2016-11-16 10:46:03.567] [info] [grabber] matching device:
[2016-11-16 10:46:03.574] [info] [grabber]   product: Apple Internal Keyboard / Trackpad
[2016-11-16 10:46:03.574] [info] [grabber]   vendor_id: 0x5ac
[2016-11-16 10:46:03.574] [info] [grabber]   product_id: 0x278
[2016-11-16 10:46:03.574] [info] [grabber]   location_id: 0x1000000
[2016-11-16 10:46:03.585] [info] [grabber]   registry_entry_id: 4294968233
[2016-11-16 10:46:04.630] [info] [grabber] karabiner_event_dispatcher is launched. (pid:258)
[2016-11-16 10:46:05.130] [info] [grabber] matching device:
[2016-11-16 10:46:05.130] [info] [grabber]   vendor_id: 0x5ac
[2016-11-16 10:46:05.130] [info] [grabber]   product_id: 0x8600
[2016-11-16 10:46:05.130] [info] [grabber]   registry_entry_id: 4294968870
[2016-11-16 10:46:06.625] [info] [grabber] current_console_user_id: 501
[2016-11-16 10:46:06.626] [info] [grabber] karabiner_event_dispatcher is terminated. (pid:258)
[2016-11-16 10:46:07.761] [info] [grabber] karabiner_event_dispatcher is launched. (pid:366)
[2016-11-16 10:46:08.457] [info] [event_dispatcher] version 0.90.64
[2016-11-16 10:46:08.459] [info] [event_dispatcher] IOServiceOpen is succeeded @ void hid_system_client::matched_callback(io_iterator_t)
[2016-11-16 10:46:08.475] [info] [grabber] karabiner_event_dispatcher is connected (pid:366)
[2016-11-16 10:46:08.475] [info] [grabber] karabiner_event_dispatcher client is created.
[2016-11-16 10:46:08.590] [info] [event_dispatcher] receiver is started
[2016-11-16 10:46:21.928] [info] [console_user_server] version 0.90.64
[2016-11-16 10:46:23.697] [info] [grabber] karabiner_console_user_server is connected (pid:570)
[2016-11-16 10:46:23.697] [info] [console_user_server] grabber_client_ is connected
[2016-11-16 10:46:23.703] [info] [grabber] event_tap_manager grabbed mouse events
[2016-11-16 10:46:23.744] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 10:46:23.876] [info] [grabber] (vendor_id:0x5ac, product_id:0x8600) is grabbed
[2016-11-16 10:46:23.877] [info] [grabber] Apple Internal Keyboard / Trackpad is grabbed
[2016-11-16 10:46:24.777] [info] [grabber] system_preferences_values_updated
[2016-11-16 10:46:24.777] [info] [console_user_server] system_preferences::values is updated.
[2016-11-16 10:49:02.107] [info] [grabber] pid:570 is exited
[2016-11-16 10:49:02.107] [info] [grabber] Connected devices are ungrabbed
[2016-11-16 10:49:02.107] [info] [grabber] event_tap_manager ungrabbed mouse events
[2016-11-16 10:50:15.935] [info] [console_user_server] version 0.90.64
[2016-11-16 10:50:17.017] [info] [grabber] karabiner_console_user_server is connected (pid:906)
[2016-11-16 10:50:17.017] [info] [grabber] event_tap_manager grabbed mouse events
[2016-11-16 10:50:17.017] [info] [console_user_server] grabber_client_ is connected
[2016-11-16 10:50:17.018] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 10:50:17.188] [info] [grabber] (vendor_id:0x5ac, product_id:0x8600) is grabbed
[2016-11-16 10:50:17.189] [info] [grabber] Apple Internal Keyboard / Trackpad is grabbed
[2016-11-16 10:50:18.084] [info] [grabber] system_preferences_values_updated
[2016-11-16 10:50:18.084] [info] [console_user_server] system_preferences::values is updated.
[2016-11-16 10:52:12.682] [warning] [console_user_server] parse error in /Users/dean/.karabiner.d/configuration/karabiner.json: parse error - unexpected '/'; expected string literal
[2016-11-16 10:52:37.661] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 10:52:57.215] [info] [grabber] pid:906 is exited
[2016-11-16 10:52:57.216] [info] [grabber] Connected devices are ungrabbed
[2016-11-16 10:52:57.216] [info] [grabber] event_tap_manager ungrabbed mouse events
[2016-11-16 10:52:59.583] [info] [console_user_server] version 0.90.64
[2016-11-16 10:53:00.659] [info] [grabber] karabiner_console_user_server is connected (pid:1052)
[2016-11-16 10:53:00.659] [info] [grabber] event_tap_manager grabbed mouse events
[2016-11-16 10:53:00.659] [info] [console_user_server] grabber_client_ is connected
[2016-11-16 10:53:00.660] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 10:53:00.835] [info] [grabber] (vendor_id:0x5ac, product_id:0x8600) is grabbed
[2016-11-16 10:53:00.836] [info] [grabber] Apple Internal Keyboard / Trackpad is grabbed
[2016-11-16 10:53:01.733] [info] [grabber] system_preferences_values_updated
[2016-11-16 10:53:01.733] [info] [console_user_server] system_preferences::values is updated.
[2016-11-16 10:53:14.877] [warning] [console_user_server] parse error in /Users/dean/.karabiner.d/configuration/karabiner.json: parse error - unexpected '/'; expected string literal
[2016-11-16 10:53:21.783] [info] [grabber] pid:1052 is exited
[2016-11-16 10:53:21.784] [info] [grabber] Connected devices are ungrabbed
[2016-11-16 10:53:21.784] [info] [grabber] event_tap_manager ungrabbed mouse events
[2016-11-16 10:53:23.765] [info] [console_user_server] version 0.90.64
[2016-11-16 10:53:24.839] [info] [grabber] karabiner_console_user_server is connected (pid:1068)
[2016-11-16 10:53:24.839] [info] [grabber] event_tap_manager grabbed mouse events
[2016-11-16 10:53:24.839] [info] [console_user_server] grabber_client_ is connected
[2016-11-16 10:53:24.840] [warning] [console_user_server] parse error in /Users/dean/.karabiner.d/configuration/karabiner.json: parse error - unexpected '/'; expected string literal
[2016-11-16 10:53:24.840] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 10:53:24.999] [info] [grabber] (vendor_id:0x5ac, product_id:0x8600) is grabbed
[2016-11-16 10:53:25.000] [info] [grabber] Apple Internal Keyboard / Trackpad is grabbed
[2016-11-16 10:53:25.897] [info] [grabber] system_preferences_values_updated
[2016-11-16 10:53:25.897] [info] [console_user_server] system_preferences::values is updated.
[2016-11-16 10:53:30.561] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 10:53:30.562] [warning] [grabber] We cannot grab Apple Internal Keyboard / Trackpad while a key is repeating.
[2016-11-16 10:53:35.018] [info] [grabber] pid:1068 is exited
[2016-11-16 10:53:35.019] [info] [grabber] Connected devices are ungrabbed
[2016-11-16 10:53:35.019] [info] [grabber] event_tap_manager ungrabbed mouse events
[2016-11-16 10:53:37.297] [info] [console_user_server] version 0.90.64
[2016-11-16 10:53:38.369] [info] [grabber] karabiner_console_user_server is connected (pid:1084)
[2016-11-16 10:53:38.369] [info] [console_user_server] grabber_client_ is connected
[2016-11-16 10:53:38.370] [info] [grabber] event_tap_manager grabbed mouse events
[2016-11-16 10:53:38.370] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 10:53:38.546] [info] [grabber] (vendor_id:0x5ac, product_id:0x8600) is grabbed
[2016-11-16 10:53:38.547] [info] [grabber] Apple Internal Keyboard / Trackpad is grabbed
[2016-11-16 10:53:39.442] [info] [grabber] system_preferences_values_updated
[2016-11-16 10:53:39.442] [info] [console_user_server] system_preferences::values is updated.
[2016-11-16 10:54:27.816] [info] [grabber] pid:1084 is exited
[2016-11-16 10:54:27.817] [info] [grabber] Connected devices are ungrabbed
[2016-11-16 10:54:27.817] [info] [grabber] event_tap_manager ungrabbed mouse events
[2016-11-16 10:58:10.075] [info] [console_user_server] version 0.90.64
[2016-11-16 10:58:11.150] [info] [grabber] karabiner_console_user_server is connected (pid:1205)
[2016-11-16 10:58:11.150] [info] [console_user_server] grabber_client_ is connected
[2016-11-16 10:58:11.151] [info] [grabber] event_tap_manager grabbed mouse events
[2016-11-16 10:58:11.151] [info] [console_user_server] core_configuration_ was loaded.
[2016-11-16 10:58:11.312] [info] [grabber] (vendor_id:0x5ac, product_id:0x8600) is grabbed
[2016-11-16 10:58:11.313] [info] [grabber] Apple Internal Keyboard / Trackpad is grabbed
[2016-11-16 10:58:12.219] [info] [grabber] system_preferences_values_updated
[2016-11-16 10:58:12.219] [info] [console_user_server] system_preferences::values is updated.
[2016-11-16 11:05:40.309] [info] [console_user_server] core_configuration_ was loaded.

@dbryand
Copy link

dbryand commented Nov 17, 2016

FYI, I made this work by unchecking the "No product name" box here:

screen shot 2016-11-17 at 10 58 10 am

@brendankemp
Copy link
Author

@dbryand that works for me too, thank you.

@chrismccord
Copy link

I can confirm that @dbryand's post about unchecking the "No product name" fixes it for me as well, but one thing that is still broken for the touchbar mbp is holding the fn key which is supposed to show the "standard" function row. When karabiner is running, nothing happens. For me this isn't a problem because I never use function keys, but it will likely bite others. Thanks @dbryand and thank you @tekezo for the continued fantastic work.

@bysameng
Copy link

bysameng commented Nov 20, 2016

I had this problem, but restarting fixed the issue with the fn keys.
I'm successfully remapping fn->ctrl and ctrl->fn

Before, even though the fn-key switching was working, the actual function keys weren't working when I tapped them. After disabling the "No product name" device, everything works correctly on my end!

My remaps are functional
I can hold FN to use the function keys
Expanded control strip works perfectly

EDIT: upon further investigation, it doesn't work after a restart. Until you close and reopen the lid of the computer! I reproduced this a couple of times and karabiner-elements is working well for me

@tekezo
Copy link
Member

tekezo commented Nov 25, 2016

Thank you for feedback!
I've changed to ignore the Touch Bar by default at v0.90.66.

@tekezo tekezo closed this as completed Nov 25, 2016
@ccsasuke
Copy link

ccsasuke commented Dec 7, 2016

This seems to me a temporary fix.. What should I do if I want to map the esc (on the touch bar) to something else while keeping the media control keys to work?
Thanks.

@kevinmost
Copy link

Hmm, I'm seeing the issue that ssameng reports on v0.90.86. After a fresh restart, the Fn key doesn't change the Touch Bar to the F1-F12 keys unless you close the lid and reopen it. Probably not the worst bug, but it threw me for a loop for a bit.

@mmynsted
Copy link

mmynsted commented Jan 28, 2018

There is not yet a fix for this right?

@dnibh
Copy link

dnibh commented Jul 3, 2018

There is a good solution here.
You have to apply the one from @mutantcornholio and @kasecato

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants