mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-12 05:06:38 +06:00
7f475b590a
* Default OS_DETECTION_DEBOUNCE bumped from 200ms to 250ms * Add OS_DETECTION_SINGLE_REPORT to prevent undesired multiple reports * Prevents random stability issues on ARM MacBooks after switching via KVM * Works for every device I could test, including ARM MacBooks * Disabled by default to keep current behavior * Add Troubleshooting section on documentation * Tweak reset logic to prevent a freeze with some KVMs The USB stack on ARM MacBooks is more similar to that of iOS and, for some reason, it seems to like sending packets that influence the OS detection and results in a second OS_MACOS report being sent at a random period of time after plugging the keyboard back. This does not always happen and the consequences of this vary based on what the user is doing in the callback, but since this is not obvious and it's hard to debug, I've decided to add a flag for those affected by such issue. The stability issue I had in mine was a combination of factors and I found the actual cause being my own bad math when changing the default layer, but this change alone is also confirmed to fix it. Lastly, soem KVMs seem to leave the USB controlled in a suspended state when cold-booting Windows, meaning the keyboard would hang and the reset logic would not work. This tunes it so that it can get out of such state. Also retested for compatibility with my old KVM to ensure the logic works for both. |
||
---|---|---|
.. | ||
audio | ||
backlight | ||
bootmagic | ||
debounce | ||
encoder/tests | ||
keymap_extras | ||
led_matrix | ||
logging | ||
midi | ||
os_detection/tests | ||
painter | ||
pointing_device | ||
process_keycode | ||
rgb_matrix | ||
rgblight | ||
send_string | ||
sequencer | ||
split_common | ||
unicode | ||
wear_leveling | ||
action_code.h | ||
action_layer.c | ||
action_layer.h | ||
action_tapping.c | ||
action_tapping.h | ||
action_util.c | ||
action_util.h | ||
action.c | ||
action.h | ||
basic_profiling.h | ||
bitwise.c | ||
bitwise.h | ||
caps_word.c | ||
caps_word.h | ||
color.c | ||
color.h | ||
command.c | ||
command.h | ||
crc.c | ||
crc.h | ||
debounce.h | ||
deferred_exec.c | ||
deferred_exec.h | ||
digitizer.c | ||
digitizer.h | ||
dip_switch.c | ||
dip_switch.h | ||
dynamic_keymap.c | ||
dynamic_keymap.h | ||
eeconfig.c | ||
eeconfig.h | ||
encoder.c | ||
encoder.h | ||
haptic.c | ||
haptic.h | ||
joystick.c | ||
joystick.h | ||
keyboard.c | ||
keyboard.h | ||
keycode_config.c | ||
keycode_config.h | ||
keycode.h | ||
keycodes.h | ||
keymap_common.c | ||
keymap_common.h | ||
keymap_introspection.c | ||
keymap_introspection.h | ||
leader.c | ||
leader.h | ||
led_tables.c | ||
led_tables.h | ||
led.c | ||
led.h | ||
main.c | ||
matrix_common.c | ||
matrix.c | ||
matrix.h | ||
modifiers.h | ||
mousekey.c | ||
mousekey.h | ||
os_detection.c | ||
os_detection.h | ||
pointing_device_internal.h | ||
programmable_button.c | ||
programmable_button.h | ||
quantum_keycodes_legacy.h | ||
quantum_keycodes.h | ||
quantum.c | ||
quantum.h | ||
raw_hid.h | ||
repeat_key.c | ||
repeat_key.h | ||
ring_buffer.h | ||
secure.c | ||
secure.h | ||
steno_keycodes.h | ||
sync_timer.c | ||
sync_timer.h | ||
tri_layer.c | ||
tri_layer.h | ||
util.h | ||
variable_trace.c | ||
variable_trace.h | ||
via.c | ||
via.h | ||
virtser.h | ||
wpm.c | ||
wpm.h |