-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
b0xx R2 with HayBox wakes Linux from suspend/sleep #69
Comments
Maybe a different udev event (other than "add") is triggering the wake-up? You can log udev events with I'm not sure I can really do anything about it from the firmware side. It's odd that you didn't have this issue on the B0XX firmware, because that should have the exact same endpoints. |
Thanks for the tip and prompt response. First off, I don't expect support on this, so feel free to discard this comment and carry on, I'm just documenting what I tried. Thanks again for your work on this open source project. I'm not super familiar with this area but I tried a number of things. As you suggested I watched I tried making a broader rule with this:
I then tried testing the rule with
(I realize now those are likely the wrong paths to be supplying to udevadm test) The output included:
I identified that my b0xx was plugged into: This led me to inspect the
I forget if I had manually intervened with some of these to disable them during my testing, but what I can say is that the only thing which solved the issue for me was disabling wakeup on the single
Of course, this also disables my keyboard connected to the same device from waking up my pc. It's strange that neither Random note, this command was also helpful in walking through the parent devices:
|
Hmm that's weird. Maybe the device is not directly triggering a wake-up but is triggering it through some other layer of software. Not sure how that would work though. Only other thing I can think to try right now is maybe comparing the udev events against the stock B0XX firmware to see if there's any noticeable differences. |
Just wanted to note that I'm noticing the same issue on Windows 11, the immediate wake from suspend/sleep. I attempted to prevent the device from being allowed to wake the computer through Windows Device Manger, similar to my attempts with the udev rule in Linux, but to no avail. My solution in both OSs is to unplug my R2 b0xx. |
Windows is really bad with that. By default it lets pretty much any USB device or network interface wake the machine up (even from hibernation!) and it's really annoying to disable it for all the right device. You can use some (iirc) FWIW I haven't experienced this issue with RP2040-based HayBox devices which I leave plugged into my PC pretty much constantly. Can't particularly recall if I experienced it with AVR-based devices either though. |
I've got some interesting findings. So when I run
I tried disabling several combinations of devices, and also tested with a different keyboard as well. Only these two solutions stopped the pc from being immediately woken from sleep:
Pretty bizarre |
I have a b0xx revision 2 that I recently flashed HayBox onto. Which has been great, thank you. I normally leave my b0xx plugged in with usb-c to my pc running Debian Linux. Something I've noticed after flashing HayBox is that with the b0xx plugged in, if I put the pc into suspend/sleep, the pc will wake up again after a couple seconds. I did not observe this behavior when I had stock b0xx firmware. My current solution is to unplug the b0xx before entering suspend.
One solution I tried to circumvent this was preventing the specific device from being able to wakeup the pc.
/etc/udev/rules.d/90-usb-wakeup.rules
I got the vendor & product ids from the output of
lsusb
:The rule to disable wakeup appears to be working for my Logitech mouse, but not the b0xx unfortunately. The wakeup of the pc after a couple seconds of entering suspend persists.
Let me know if there's logs or any additional info I could provide.
The text was updated successfully, but these errors were encountered: