-
-
Notifications
You must be signed in to change notification settings - Fork 40.4k
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
[Bug] DZ60 on M1 Macbook Pro often unresponsive after sleep #17316
Comments
As I read your comment on #5585, the behavior I experienced with my different keyboard, Choco60 Rev.2, connected via Apple Studio Display, has similar issue, not responding until I re-plug keyboard when I disconnect and connect Thunderbolt cable from/to MacBook Pro (M1). |
Having a similar thing happen with Sesame Ergo (atmega32a) and 13" m1 mbp |
So I solved my problem with Choco60 Rev.2. Turns out it was related to the USB detection and split keyboard detection. First, Choco60 Rev.2 is, as I mentioned, a split keyboard and need to detect which side is connected to USB (master) or not when it is connected. It is actually done by that for waiting 2,000ms to detect USB or it default to the side is not connected to USB (slave.) This is enabled by While debugging my problem, I also found that the better solution for this slow USB detection is set So, I am feeling, yet set |
I added the I'm still experiencing the same issue, but now I can't even trigger the Mac wake with the keyboard, I have to use the mouse. Previously I could wake the Mac, but the keyboard didn't work. Now it just full-on doesn't work until I replug it. |
Checked this with a Windows machine and everything works just fine there, however when i plug the keyboard into my m1 mac it doesn't work. Replugging it in doesn't help 99% of the time. Keyboards with blackpill work just fine though. Here are my # MCU name
MCU = atmega32a
# Processor frequency
F_CPU = 16000000
# Bootloader selection
BOOTLOADER = usbasploader
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
NO_USB_STARTUP_CHECK = yes
SLEEP_LED_ENABLE = no
WAIT_FOR_USB = yes
LAYOUTS = alice alice_split_bs |
Interesting. Are there any significant differences between the two controllers? |
IIRC,
and
These are mutually exclusive. You want one or the other, not both. |
Yeah, I've tried all combinations of those. Nothing helps - works on windows, doesn't on m1 mac. |
To throw in my $0.02: I'm seeing the same issue on an 14" M1 MBP with an FC660C and Hasu's controller (running QMK). The stock Leopold controller worked after waking up, however the QMK-based firmware didn't. Unfortunately I did not test the stock TMK firmware, but this suggests a deeper issue than just the DZ60 firmware to me. |
Interesting. Looks like Hasu's controller uses atmega32u4. I also remember having a similar issue on my Seigaiha with atmega328p - sadly can't test it as I've accidentally plugged it with a wrong cable and burned something. I'll eventually try to flash my Sesame with zmk to see if this issue persists. |
Okay, I tested 200ms of USB_SUSPEND_WAKEUP_DELAY (in config.h) on my firmware and it works like a charm. The keyboard comes back with no issues at all. |
isn't 200 the default value of |
Seems to be 0. Maybe we should change it to 200 though?
|
Hm, right here it's listed as 200 https://github.com/qmk/qmk_firmware/blob/master/docs/config_options.md |
Seems to have fixed it as well! |
I finally got around to trying this fix and it indeed seems to have worked! |
Since I got the M1 MacBook Pro (16-inch, 2021), I'm having issues waking the computer from sleep.
After a while, but not always, the keyboard will be able to wake the mac only once, but the keyboard input won't work on the password input screen or anywhere else. Before, I could also play with the backlight magic keys while the machine was off, and now it only works occasionally. It's a surefire way to see if I will be able to type or not.
In order for the keyboard to work, I have to unplug and replug it every time.
Possibly related issue:
#5585 (comment)
System Information
Keyboard: DZ60
Revision (if applicable): V2 (USB-C)
Operating system: MacOS 12.4
qmk doctor
output:The text was updated successfully, but these errors were encountered: