-
-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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] Slave half RGB keeps on after computer was powered off #22269
Comments
Use the QMK repo, not the vial repo. Can't reporduce this locally with similarly specced board (bastardkb dilemma), so high chance that this is a vial specific bug. |
May not be related but i have the same issue with my Sofle. A couple of days ago i update merged master into my personal repo witout changing anything major. The issue arose somewhere between end of July and 3 days ago, or if the cause is the same, 1 month ago. Will probably look into it this weekend. Using a RP2040 |
Hmm, so far i have not found the cause the issue. The OLED sleep sync appears to be broken aswell. Will probably look into what the RT-OS does when suspending and look into if the Aug 27 Breaking Change was the cause. |
@drashna @BionicRiddle Thanks for taking a look. Will try the qmk repo. |
Soo... After messing around a few hours i found the offending commit/issue ( #21287 ). Go into tmk_core/protocol/chibios/chibios.c and change this line:
to this:
See if that changes anything for you. I won't bother looking into why that was causing the issue as i would like to avoid messing with the USB standard. Perhaps @purdeaandrei knows? |
In theory, that shouldn't matter, as suspend is never called on the slave side, and rgb matrix syncs the suspend state, so it should be turning off the rgb. Though, I think I did miss this part:
Unfortunately, this just causes issues for split boards, in general. Especially if you're not using VBUS detection for master/slave detection (the default is split usb detect, not vbus detection on ARM). And if you're using a blackpill, you'd have to mod the controller to add support for this. Enabling |
What if you change that line to this instead: if (suspend_wakeup_condition() && (USB_DRIVER.status & USB_GETSTATUS_REMOTE_WAKEUP_ENABLED)) { The issue is that |
Yea, that dit it... It feels a bit like a curse, to be honest. I've submitted a new #22457 and will go throught it and check, then submitt a PR. |
Even when the PC was turned off, I got a key input and controlled the other circuit such as the LED light. |
Describe the Bug
The
left
half is theslave
while theright
half ismater
.RGB_DISABLE_WHEN_USB_SUSPENDED
enabledKeyboard Used
https://github.com/klesh/vial-qmk/tree/vial/keyboards/pskeeb3_cherry_hotswap
Link to product page (if applicable)
No response
Operating System
Window11
qmk doctor Output
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
No response
Additional Context
I would like some input, and pointers to help me debug the problem.
The text was updated successfully, but these errors were encountered: