StreamMusic icon indicating copy to clipboard operation
StreamMusic copied to clipboard

mac 打开音流不播放会阻止电脑休眠

Open iamckun opened this issue 1 year ago • 1 comments

能不能在暂停音乐的时候别强制电脑在线

iamckun avatar Sep 28 '24 13:09 iamckun

好的,之后改一下。

目前需要关掉播放页面来关掉屏幕常亮(沿用手机版逻辑)

gitbobobo avatar Sep 28 '24 15:09 gitbobobo

1.3.2 正式版已发布

gitbobobo avatar Oct 04 '24 15:10 gitbobobo

macOS更新到15.3之后似乎又有了这个问题.

在暂停播放和关闭窗口后,系统显示因为音频输出被使用而阻止休眠.

希望能在新版中解决.

配图

Image Image

使用

pmset -g assertions | grep sleep

可以看到以下输出. 其中pid 166(coreaudiod)应该就是音流在使用

   pid 94(powerd): [0x00001f6c00018fb3] 00:52:16 PreventUserIdleSystemSleep named: "Powerd - Prevent sleep while display is on"  
   pid 166(coreaudiod): [0x00002b5a00019259] 00:01:22 PreventUserIdleSystemSleep named: "com.apple.audio.AppleUSBAudioEngine:EDIFIER:EDIFIER M230:EDI00000X04:2.context.preventuseridlesleep"

yuhenghuang avatar Feb 08 '25 05:02 yuhenghuang