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

QMK keyboards (Moonlander, Planck) not detected after OS wakeup on OSX Ventura #17876

Open
3 tasks
lovettbarron opened this issue Aug 2, 2022 · 8 comments
Open
3 tasks

Comments

@lovettbarron
Copy link

Posting this here as advised on a reddit thread.

Impacts: Intel and M1 Macs with OSX Ventura Beta (1 and 2)

Description

The ZSA Moonlander and Planck (which are running QMK) won't be registered as keyboards if left plugged into a mac machine with the new OSX Ventura beta installed that has slept. The easy fix is just replug the keyboard. The keyboard WILL trigger a wake from sleep, but keyboard events won't be registered after that. The keyboard is receiving power the whole time and was recently flashed. It works as expected on other computers and on an IOS device.

This doesn't seem to be the case for the standard apple keyboards as an aside (I ran a small test), so wondering if it has something to do with the OSX configuration stage (the left shift identification).

The problem is consistent across two macs: a 2018 mac mini (with a hub and plugged in directly via usb-a) and an m1 mac air (plugged in directly via usb-c)

System Information

Keyboard: ZSA Moonlander, ZSA Planck
Revision (if applicable):
Operating system: OSX Ventura Beta 1 and 2
qmk doctor output: Wasn't able to generate but will edit if I can get it set up

(Paste output here)

Any keyboard related software installed?

  • AutoHotKey (Windows)
  • Karabiner (macOS)
  • Other:

Additional Context

Mac Mini and Air are both totally fresh installs

@lovettbarron
Copy link
Author

I should mention: I don't think this is a qmk bug — rather just an FYI on Ventura. My guess is it has something to do with the usb peripheral permission revamp they've implemented.

@drashna
Copy link
Member

drashna commented Aug 8, 2022

It might help to add #define NO_USB_STARTUP_CHECK in your config.h file. This disables some of the startup checks, and may allow the board to work better. But it won't sleep/idle.

Also, I get this sometimes, even on Big Sur.

@paulds-explore
Copy link

I am using a ymdk/sp64 on an M1 (12.6). #define NO_USB_STARTUP_CHECK and #define USB_SUSPEND_WAKEUP_DELAY 500 are in my config. Wake from sleep works if the PC is woken using the mouse or built-in keyboard/trackpad. However, if you press a key on the sp64 to wake the machine, it seems to lock up - requiring the USB cable to be unplugged and reconnected again before keypresses are registered again.

I think this issue will impact many boards.

@KenVanHoeylandt
Copy link

KenVanHoeylandt commented Oct 15, 2022

Wake from sleep works if the PC is woken using the mouse or built-in keyboard/trackpad. However, if you press a key on the sp64 to wake the machine, it seems to lock up - requiring the USB cable to be unplugged and reconnected again before keypresses are registered again.

I have the same behaviour on an M1 Pro with macOS Monterey (12.6):
When using the touchpad, I can safely wake up the laptop and then use my keyboard.
If I use the keyboard to wake it up, the keyboard hangs and even the reset button has no effect. Only USB re-plugging fixes it.

I didn't have this issue on an Intel i9 MacBook Pro from 2019 with Monterey.

My keyboard is a Sofle Choc, using a modified Sofle firmware.

@andrebrait
Copy link
Contributor

I can work my M1 Pro MacBook with my GMMK Pro just fine, using QMK.
Currently on macOS 12.6.

@KenVanHoeylandt one note, 12.6 introduced some sleep-related bugs, including ones with the USB-C port. If you're using a USB-C monitor, try switching it to the HDMI port on the MacBook itself and see if that works and you can wake the MacBook from the QMK keyboard again.

@KenVanHoeylandt
Copy link

KenVanHoeylandt commented Oct 19, 2022

@andrebrait Thanks for the tip. My monitor is connected through the HDMI port directly on my laptop. The Sofle keyboard is connected through USB C though.

@paulds-explore
Copy link

paulds-explore commented Nov 24, 2022 via email

@benfrain
Copy link

benfrain commented Sep 23, 2023

Same issue with a ZSA Voyager running 13.5.1, or 13.6

seakayone added a commit to seakayone/vial-qmk that referenced this issue Sep 26, 2024
Keyboard was not recognized when MacOS Sequoia went to sleep, a reboot was necessary.

https://github.com/qmk/qmk_firmware/blob/master/docs/config_options.md

Similar issues on QMK bug board:
* qmk/qmk_firmware#17876
* qmk/qmk_firmware#24334
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants