屏幕关闭时播放声音

屏幕关闭时播放声音

我通过 HDMI 端口将计算机连接到屏幕,然后通过耳机听音乐。我注意到,当屏幕关闭时(例如,几分钟不活动后),扬声器开始播放音乐。这有点烦人。如果我离开一会儿,那么我办公桌周围的人就会被这种行为所打扰。有什么办法可以解决这个问题吗?预期的行为应该是屏幕关闭后声音继续通过 HDMI 端口传输。


$ pacmd list-sink-inputs
2 sink input(s) available.
    index: 129
        driver: <protocol-native.c>
        flags: START_CORKED 
        state: RUNNING
        sink: 68 <alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1>
        volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        muted: no
        current latency: 31.25 ms
        requested latency: 18.75 ms
        sample spec: float32le 2ch 48000Hz
        channel map: front-left,front-right
                     Stereo
        resample method: copy
        module: 12
        client: 34 <Firefox>
        properties:
                media.name = "AudioCallbackDriver"
                application.name = "Firefox"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.process.id = "29311"
                application.process.user = "hu"
                application.process.host = "hu-N85-N87-HJ-HJ1-HK1"
                application.process.binary = "firefox"
                application.language = "en_CA.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "0e2fd9e6cece498f8d4d706d8fb7dc80"
                application.process.session_id = "5"
                application.icon_name = "firefox"
                module-stream-restore.id = "sink-input-by-application-name:Firefox"
    index: 766
        driver: <protocol-native.c>
        flags: START_CORKED 
        state: RUNNING
        sink: 68 <alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1>
        volume: front-left: 52016 /  79% / -6.02 dB,   front-right: 52016 /  79% / -6.02 dB
                balance 0.00
        muted: no
        current latency: 116.17 ms
        requested latency: 75.00 ms
        sample spec: float32le 2ch 48000Hz
        channel map: front-left,front-right
                     Stereo
        resample method: copy
        module: 12
        client: 34 <Firefox>
        properties:
                media.name = "AudioStream"
                application.name = "Firefox"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.process.id = "29311"
                application.process.user = "hu"
                application.process.host = "hu-N85-N87-HJ-HJ1-HK1"
                application.process.binary = "firefox"
                application.language = "en_CA.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "0e2fd9e6cece498f8d4d706d8fb7dc80"
                application.process.session_id = "5"
                application.icon_name = "firefox"
                module-stream-restore.id = "sink-input-by-application-name:Firefox"

相关内容