pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.76k stars 837 forks source link

Internal keyboard cannot grabbed after USB keyboard removed. #1412

Closed Deguang closed 6 years ago

Deguang commented 6 years ago

image

[2018-05-22 14:53:24.516] [info] [grabber] matching device:
[2018-05-22 14:53:24.517] [info] [grabber]   product: USB-HID Keyboard
[2018-05-22 14:53:24.517] [info] [grabber]   vendor_id: 1241
[2018-05-22 14:53:24.517] [info] [grabber]   product_id: 521
[2018-05-22 14:53:24.517] [info] [grabber]   location_id: 0x14100000
[2018-05-22 14:53:24.517] [info] [grabber]   registry_entry_id: 4294990212
[2018-05-22 14:53:24.517] [info] [grabber]   is_keyboard: true
[2018-05-22 14:53:24.517] [info] [grabber]   is_pointing_device: false
[2018-05-22 14:53:24.519] [info] [grabber] USB-HID Keyboard (device_id:115) is detected.
[2018-05-22 14:53:24.522] [info] [grabber] Apple Internal Keyboard / Trackpad (device_id:96) is ignored.
[2018-05-22 14:53:24.523] [info] [grabber] matching device:
[2018-05-22 14:53:24.523] [info] [grabber]   product: USB-HID Keyboard
[2018-05-22 14:53:24.523] [info] [grabber]   vendor_id: 1241
[2018-05-22 14:53:24.523] [info] [grabber]   product_id: 521
[2018-05-22 14:53:24.523] [info] [grabber]   location_id: 0x14100000
[2018-05-22 14:53:24.523] [info] [grabber]   registry_entry_id: 4294990217
[2018-05-22 14:53:24.523] [info] [grabber]   is_keyboard: true
[2018-05-22 14:53:24.523] [info] [grabber]   is_pointing_device: false
[2018-05-22 14:53:24.525] [info] [grabber] USB-HID Keyboard (device_id:116) is detected.
[2018-05-22 14:53:24.536] [info] [grabber] Apple Internal Keyboard / Trackpad (device_id:96) is ignored.
[2018-05-22 14:53:24.638] [info] [grabber] USB-HID Keyboard (device_id:116) is grabbed
[2018-05-22 14:53:24.641] [info] [grabber] USB-HID Keyboard (device_id:115) is grabbed
[2018-05-22 14:53:58.011] [info] [grabber] removal device:
[2018-05-22 14:53:58.011] [info] [grabber]   vendor_id: 1241
[2018-05-22 14:53:58.011] [info] [grabber]   product_id: 521
[2018-05-22 14:53:58.011] [info] [grabber]   location_id: 0x14100000
[2018-05-22 14:53:58.011] [info] [grabber] USB-HID Keyboard (device_id:116) is removed.
[2018-05-22 14:53:58.020] [info] [grabber] Apple Internal Keyboard / Trackpad (device_id:96) is ignored.

There's a rule to disable the build-in keyboard while USB-HID keyboard connected. Sometimes: while mac is sleeping, removed USB-HID keyboard, build-in keyboard cannot be grabbed; Then connected USB-HID keyboard to login, remove USB keyboard again, the build-in keyboard still ignored.


macOs High Sierra 10.13.4 Karabiner-Elements version 12.0.7(12.0.0 have the same problem) USB keyboard: IKBC poker2

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.