omriharel / deej

Set app volumes with real sliders! deej is an Arduino & Go project to let you build your own hardware mixer for Windows and Linux
https://deej.rocks
MIT License
4.79k stars 445 forks source link

Deej prevents computer from sleeping? #17

Closed Kickbut101 closed 4 years ago

Kickbut101 commented 4 years ago

I have since using Deej noticed my computer no longer stays asleep when I put it to sleep.

I originally thought it was my USB 3.0 controller (and in fact the hardware ID 1 was pointing to that) but have since resolved that. Now when I go to sleep I get a lastwake notification with an "Unknown" and the only way I get it to go away is if I unplug my deej arduino before sleep. Then my computer stays asleep just fine.

I assume the constant polling of the knobs/potentiometers sends signals back to the PC and keeps the computer from successfully staying asleep.

Any suggestions/advice?

omriharel commented 4 years ago

Hey @Kickbut101, thanks for writing!

I'm looking into this. I think the best way that we could figure this out is by getting more inputs from our community of users (as I personally don't use sleep, at least not that I'm aware of). I went ahead and asked about this in our Discord server, and I'll update you as answers start coming in.

I'll also be on the lookout on my own PC, because I'm fairly sure it does come back from sleep after it's been idle for a while.

Just to be sure we're on the same page, would you mind describing your current power settings and sleep scheme? What's your daily routine with regards to putting your computer to sleep? Do you do it manually or via a timer? The more details we have, the easier it might be to reproduce.

Thanks!

Kickbut101 commented 4 years ago

It's really easy to test. Just try putting your computer to sleep. If it immediately comes back on you are experiencing the same issue I am.

Heres (probably) the part you care about in sleep settings; image

My routine is that I occasionally want to put my computer to sleep instead of shutting it down, I manually do it.

omriharel commented 4 years ago

Hey @Kickbut101,

So I tried doing what you suggested, and put my PC to sleep while deej was running. It did not wake immediately. After a few minutes I woke it manually, and deej even continued to work as if the connection was never interrupted (which honestly surprised me).

I still can't rule out that this isn't an issue with deej, but it does appear to be at least somewhat hardware-related. I don't know if that helps, but I'm using the "Balanced" power plan on Windows. Also, I examined my settings compared to those you're showing and the only ones that I have set differently are "Put the computer to sleep: Never" and "Allow wake timers: Enable".

omriharel commented 4 years ago

Hi again @Kickbut101, following our conversation in the project's Discord I'm going to close this since we haven't been able to isolate anything to a setup other than yours - if you come across any news on that front, please feel free to re-open this issue so we can continue following up on it.

Thanks!