在Input Devices选项卡端口设置为Line In,我将其更改为Front Microphone,但它总是Line In在重新启动后返回。
我怎样才能永久更改它?
我猜原因是系统启动时,麦克风没有插在前面,所以默认切换到后面。
一些额外的信息:
$ pactl list sources https://gist.github.com/3914307
$ cat /etc/pulse/default.pa https://gist.github.com/3914316
$ arecord -L https://gist.github.com/3915130
$ pactl list sources https://gist.github.com/e6fa252686b4e4529032
在查看您的粘贴箱并咨询#pulseaudio 中的人员后,我们将执行此操作。打开终端并键入pactl list sources以验证 Line In 是活动端口。
Source #1
State: SUSPENDED
Name: alsa_input.pci-0000_00_07.0.analog-stereo
Description: Built-in Audio Analog Stereo
--SNIP--
Ports:
analog-input-microphone-front: Front Microphone (priority: 8500, not available)
analog-input-microphone-rear: Rear Microphone (priority: 8200, not available)
analog-input-linein: Line In (priority: 8100, available)
Active Port: analog-input-linein
Formats:
pcm
Run Code Online (Sandbox Code Playgroud)
一旦得到验证,我们将检查以确保我们能够使用 pacmd 命令设置端口。再次pacmd "set-source-port 1 analog-input-microphone-front"
运行pactl list sources以验证前面板现在是否处于活动状态。
Source #1
State: SUSPENDED
Name: alsa_input.pci-0000_00_07.0.analog-stereo
--SNIP--
Ports:
analog-input-microphone-front: Front Microphone (priority: 8500, not available)
analog-input-microphone-rear: Rear Microphone (priority: 8200, not available)
analog-input-linein: Line In (priority: 8100, available)
Active Port: analog-input-microphone-front
Formats:
pcm
Run Code Online (Sandbox Code Playgroud)
如果一切顺利,我们现在可以将其放在/etc/pulse/default.pa文件的末尾:
set-source-port 1 analog-input-microphone-front
Run Code Online (Sandbox Code Playgroud)
不过,作为一个有趣的问题,您应该知道 PulseAudio 应该为您管理这个。自动插入时它应该切换到前面板麦克风(前提是硬件支持设备检测)。