我最近从 CentOS 切换到 Fedora。一切都很好,除了声音不起作用。
[mc@dhcppc2 ~]$ speaker-test
回报
speaker-test 1.1.5
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 192 to 2097152
Period size range from 64 to 699051
Using max buffer size 2097152
Periods = 4
was set period_size = 524288
was set buffer_size = 2097152
0 - Front Left
Time per period = 10.948861
0 - Front Left
^Z
[1]+ Stopped speaker-test
另一个命令 aplay -l 返回
[mc@dhcppc2 ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC9221 A2 Analog [STAC9221 A2 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC9221 A2 Digital [STAC9221 A2 Digital]
Subdevices: 0/1
Subdevice #0: subdevice #0
ps -Cpulseaudio 给出以下输出
[mc@dhcppc2 ~]$ ps -C pulseaudio
PID TTY TIME CMD
1061 ? 00:00:00 pulseaudio
1436 ? 00:00:00 pulseaudio
关于硬件,以下命令会返回此值。
lscpu
[mc@dhcppc2 ~]$ lscpu
Architecture: i686
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 15
Model name: Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz
Stepping: 13
CPU MHz: 1390.073
CPU max MHz: 2000.0000
CPU min MHz: 1200.0000
BogoMIPS: 4000.04
L1d cache: 32K
L1i cache: 32K
L2 cache: 1024K
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts cpuid aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm
和这个
[mc@dhcppc2 ~]$ (lspci -nn | grep -i audio)
00:1b.0 Audio device [0403]: Intel Corporation NM10/ICH7 Family High Definition Audio Controller [8086:27d8] (rev 01)
还有一个
[mc@dhcppc2 ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 1a2c:2124 China Resource Semico Co., Ltd
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
答案1
我在聊天中询问发帖者他在配置选项卡中的个人资料设置pavucontrol
是什么。他说这是“数字立体声(IEC958)输出+模拟立体声输入”。
我建议将其更改为“模拟立体声双工”,这显然解决了问题。
我不确定为什么一个有效而另一个无效,但似乎声音中不良的默认设置经常是问题的根源。而“模拟立体声双工”是一种保守的选择,但似乎常常有效。
声卡默认设置的另一个常见问题是某些通道被静音或太低。这通常可以通过进入alsamixer
并取消静音或提高音量来解决。