更改终端当前的声音输出

更改终端当前的声音输出

我正在尝试将输出从 HDMI 端口更改为耳机,反之亦然。到目前为止,我尝试过:

pactl list sinks | egrep -A2 "Port|Sink"

这让我:

   Sink #0
    State: RUNNING
    Name: alsa_output.pci-0000_01_00.1.hdmi-surround
--
    Ports:
        hdmi-output-0: HDMI / DisplayPort (priority: 5900, available)
    Active Port: hdmi-output-0
    Formats:
        pcm
--
Sink #2
    State: SUSPENDED
    Name: alsa_output.pci-0000_00_1b.0.analog-stereo
--
    Ports:
        analog-output-lineout: Line Out (priority: 9900, not available)
        analog-output-headphones: Headphones (priority: 9000, available)
    Active Port: analog-output-headphones
    Formats:
        pcm

为了切换到耳机,我执行:

pactl set-sink-port 2 analog-output-headphones

命令已执行但没有任何反应。有什么想法吗?

(我目前使用的是 ZorinOS 发行版)

相关内容