-
-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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] detected_host_os() not detecting MacOS #24682
Comments
The OS Detection documentation describes how to collect debugging data. I understand you are describing a regression where the detection used to work. Even so, maybe that data would help here. |
I haven't seen it break on my end. However, I do check for macOS and iOS, as sometimes it does detect as iOS on my mac. Additionally, it might be worth printing out the detected os to console: |
@drashna Before the merge it says "MacOS Detected" but after it says "iOS Detected". I think because your code swaps ctl/gui in either case, you didn't notice a difference. |
Could also be an OS update realigning with the iOS implementation. |
I have an Intel based hackentosh running the latest version of Sequoia. And it does report macOS. But occasionally, yes, it does report iOS. It's why I have it set for both. |
Aah, I see. Currently, it's not properly filtering macOS, because Apple changed some stuff a while back (that or the updated USB endpoint code is more efficient and picks up more data, skewing the results. It does show up as iOS on master/develop, for me, but I have some custom bodges for detection. However, this is part of what it means by "best guess". Though, if you could, try this, and see if it helps: |
@drashna Yes, that does fix it for me! |
glad to hear it! Though, could you collect the debug information, as mentioned in this comment: #24682 (comment) |
@getreuer Here is the output without @drashna 's fixes: Mac:
Linux:
|
For the Mac, was this on apple silicon? Or an intel mac? (and sequoia/15.x)? |
@drashna It's an M3 Mac on MacOS Sonoma |
Thank you for sharing that, @dlip! I'm no expert on USB, but noticed this bit of news that seems potentially relevant: Apple released update 14.4.1 in March 2024 to fix several problems with USB hubs. I wonder if that modified the fingerprint.
|
@getreuer Not sure if its useful info, but I did have it plugged into a usb hub. I tried plugging it in directly but it still detected as ios |
Describe the Bug
I use os detection to automatically switch between ctrl+v cmd+v depending on linux or mac using
detected_host_os()
https://github.com/dlip/qmk_firmware/blob/dlip/keyboards/tenshi/keymaps/engram/keymap.c#L276
It broke (doesn't detect OS_MACOS) in this revision: 305e7ba
Keyboard Used
tenshi
Link to product page (if applicable)
https://github.com/dlip/qmk_firmware/blob/dlip/keyboards/tenshi
Operating System
MacOS
qmk doctor Output
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: