ejci / Chrome-Audio-EQ

Audio EQ for Chrome
GNU General Public License v2.0
107 stars 40 forks source link

PreventUserIdleSystemSleep on Macs #8

Open plweil opened 10 years ago

plweil commented 10 years ago

This extension appears to turn on PreventUserIdleSystemSleep on Macs, which prevents the computer from sleeping when the user has been idle for a certain number of minutes. In my own test on a Mac Pro running Mavericks, turning this extension on and off changes the PreventUserIdleSystemSleep setting to 1 and 0, respectively, when you run "pmset -g assertions" in Terminal. Is this by design? Is it avoidable?

ejci commented 10 years ago

Its definitely not by design. It looks like Chrome is setting PreventUserIdleSystemSleep when there is javascript audio context... I will try to investigate and do something about it. Thanks for letting me know and for your detailed bug report. I really appreciate it.

encounter commented 9 years ago

Chrome Beta 41 now implements AudioContext suspend()/resume(), which was added to the AudioContext spec. Suspending the context when it's not being used should fix this issue.