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

Keyboard randomly locks up while PC is sleeping. #6822

Closed
1 of 3 tasks
fOmey opened this issue Sep 26, 2019 · 4 comments
Closed
1 of 3 tasks

Keyboard randomly locks up while PC is sleeping. #6822

fOmey opened this issue Sep 26, 2019 · 4 comments

Comments

@fOmey
Copy link

fOmey commented Sep 26, 2019

Bug Description

I use RGBLIGHT_SLEEP. I've noticed if the RGB lights turn back on while the PC is sleeping (usually overnight).. I know the keyboard is stuck in this "frozen" state.

If I look under devices & printers the keyboard is labeled as: "Unknown USB Device (Device Descriptor Request Failed)". Only fix being removing the USB & re-plugging it in.

Everything was working fine up until what seems like a recent upstream sync, but looking at the commits I can't notice anything that would cause this? Coincidence perhaps?

I have my is keyboard connected right directly into the back of my PC, no hubs are being used.

Any ideas how I can debug further? The lock ups seem to be very intermittent, I'm struggling to come up with anything.. can't seem to reproduce them either.

System Information

  • Keyboard: KDB75 REV2 board

  • Operating system: Windows 10

  • AVR GCC version: avr-gcc.exe (AVR_8_bit_GNU_Toolchain_3.6.1_1752) 5.4.0

  • QMK Firmware version: 0.7.26

    • AutoHotKey
    • Karabiner
    • Other:

EDIT:

The issue still persists, I've noticed if I wake the PC up with the mouse however.. the keyboard doesn't always lock up into the "Unknown USB Device (Device Descriptor Request Failed)" state. At least when this happens I can avoid having to remove the USB cable to restart the keyboard...

@drashna
Copy link
Member

drashna commented Oct 2, 2019

That's really odd. Given the controller and everything, that's ... not typical.

My guess would be faulty hardware. Be it the USB port, the USB cable, or a short on the PCB.

But if you disable rgblight sleep, does the issue persist?

Also, there is a config.h setting that disables sleep outright. It may be worth setting that and see if that helps

@fOmey
Copy link
Author

fOmey commented Oct 2, 2019

It is a strange issue, a very intermittent one also. It only happens every few days?

If it was a short of some kind, I'd imagine it would happen a lot more frequently.. I would be able to reproduce it, seems to be very set/specific circumstances that cause this to happen. Also while the PC is on the keyboard functions absolutely flawlessly.. zero issues, I don't think a short is the culprit.

It's as if the keyboard is detecting a false wake up signal, trying to initialize and breaking when its not receiving the expected result.. that's my guess.

I don't believe this to be related to RGB sleep at all.. I think it's just a side effect of the issue I described above that they're turned back on.

I'll test a brand new USB and see if the issue persists,

I've also modified some power settings on Windows to see if that has something to do with it.

@fOmey
Copy link
Author

fOmey commented Oct 4, 2019

Purchased a brand new USB cable shortly after my last message, everything seemed fine up until 2 minutes ago when the issue returned.

God dam it, really thought it had fixed it for a second!

Argh, i'm going to dismantle the board and inspect the PCB.. give it another really good isopropyl clean in hopes a miracle happens and the issue disappears.

EDIT: Testing yet another USB (I noticed the replacement is the same brand).. fingers crossed.

@fOmey
Copy link
Author

fOmey commented Oct 8, 2019

Well it's been 4 days and the issue has not reappeared since swapping the USB C cable out.

I've attached some images of the cable I was having issues with for record, just in case someone finds themselves in a similar situation in the future.. it was a generic braided USB C cable I sourced off eBay:

s-l500 (1)
s-l500

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

2 participants