Issue metadata
Sign in to add a comment
|
System doesn't suspend if ChromeVox is active |
||||||||||||||||||||||||
Issue descriptionChrome Version: 57 stable and beta - 58.0.3029.78 Chrome OS Platform: Tested on HP Chromebook14 G3 Steps To Reproduce: (1) Set up Idle Settings in User Settings for the device to Sleep after 1 min of inactivity (2) Log in on a Chromebook and enable Chromevox (3) Wait one minute of inactivity to pass Expected Result: The device goes into Sleep mode Actual Result: Nothing happens and the device stays active How frequently does this problem reproduce? Always What is the impact to the user, and is there a workaround? If so, what is it? No known workaround Logs and additional info in the drive folder: https://drive.google.com/drive/folders/0B0-4QrI1tbXfb291Z0ZBUTFReE0?usp=sharing
,
May 4 2017
,
May 4 2017
+folks whom are assigned to ChromeVox bugs and our powerd wizard. I think this might be expected behavior? The log there seems reasonable, powerd will not suspend if it determines audio is active. If ChromeVox being active implies audio is always active this is WAI. If ChromeVox is expected to not have audio always active, than this may be a bug in ChromeVox?
,
May 5 2017
My guess from #1 would be that ChromeVox is holding one or more audio streams open even when it's not playing audio. I don't know if this is intentional or not (maybe there's latency associated with opening streams on-demand), but blocking suspend is undesirable.
,
May 5 2017
Note also that this likely happens independently of whether a shorter idle delay is set via policy or not.
,
May 5 2017
chinyue, maybe we should have chromevox open a special stream type (as soon as we have stream types enabled). Then we could modify the power manager/cras interface to only prevent suspend for non-system like streams. ChromeVox should probably close the stream though, it's not free w.r.t. power or cpu cycles
,
May 5 2017
We do have stream types enabled now so we can define an ACCESSIBILITY type for this use case.
,
Jun 19 2017
Hi all, Are there any updates on this issue. Is there something else we can help with through the Tech case? Thanks!
,
Jun 19 2017
It sounds like the next steps are: a) Someone on the CRAS team adding a new a11y stream type, and me updating powerd to disregard it. b) Someone on the ChromeVox team independently fixing it to not hold streams open unnecessarily.
,
Jun 20 2017
When ChromeVox is enabled, there are two sources of audio: * From the ChromeVox extension, via the web audio api: https://cs.chromium.org/chromium/src/chrome/browser/resources/chromeos/chromevox/cvox2/background/earcon_engine.js * From the TTS extension, via NaCl / PPAPI Do we know which one is causing it? Maybe try killing just one or the other? If it's TTS, then this is affecting more than just ChromeVox. There's already code to shut down the audio stream after a timeout, it's not clear why that wouldn't be working. If it's ChromeVox's use of the web audio API, any pointers on how we're supposed to be shutting that stream down? No audio should be playing when we're not directly triggering a sound. The filters are expensive to load so it wouldn't make sense to disconnect all of the sources.
,
Jun 20 2017
Uploaded https://chromium-review.googlesource.com/#/c/540982/ for review to add ACCESSIBILITY stream type.
,
Jun 20 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/adhd/+/a2dbfc3e3a058fa20712ccae6e7dc7738e2669b1 commit a2dbfc3e3a058fa20712ccae6e7dc7738e2669b1 Author: Chinyue Chen <chinyue@google.com> Date: Tue Jun 20 20:38:10 2017 CRAS: Add ACCESSIBILITY stream type. Also add a compile-time check to prevent mismatch of stream type enum and use case verbs. BUG= chromium:718051 TEST=make check Change-Id: I808e926b73512e230632158565c298cbafa4d9a5 Reviewed-on: https://chromium-review.googlesource.com/540982 Commit-Ready: Chinyue Chen <chinyue@chromium.org> Tested-by: Chinyue Chen <chinyue@chromium.org> Reviewed-by: Dan Erat <derat@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org> [modify] https://crrev.com/a2dbfc3e3a058fa20712ccae6e7dc7738e2669b1/cras/src/server/cras_alsa_ucm.c [modify] https://crrev.com/a2dbfc3e3a058fa20712ccae6e7dc7738e2669b1/cras/src/common/cras_types.h
,
Jun 20 2017
To be clear, we *do* want sleep to be prevented if ChromeVox is speaking. We should make the fix in ChromeVox or text to speech as indicated by Dominic once we figure out where we're hanging onto an audio stream.
,
Jun 21 2017
Per #9, re-assign to derat@ for next step. Thanks!
,
Jun 21 2017
Sorry, but #13 indicates that we actually don't want to ignore ChromeVox streams for power management. Can you help answer Dominic's questions from #10?
,
Aug 10 2017
,
May 3 2018
,
Dec 7
Hello! This bug is receiving this notice because there has been no acknowledgment of its existence in quite a bit of time. - If you are currently working on this bug, please provide an update. - If you are currently affected by this bug, please update with your current symptoms and relevant logs. If there has been no updates provided by EOD Wednesday, 12/12/18 (5pm EST), this bug will be archived and can be re-opened at any time deemed necessary. Thank you!
,
Dec 13
Due to lack of action this bug has been Archived. If work is still being done on this issue or you are still experiencing this issue please feel free to re-open with the appropriate information. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by vkasatkin@google.com
, May 4 2017Components: UI>Accessibility>ChromeVox
Labels: Hotlist-Enterprise M-57 M-58
Owner: bhthompson@chromium.org