[转]Fedora 12 没有声音问题完美解决,适合F11,F12和以上

时间:2022-06-02 00:13:34
以下已经在F12上经过测试通过,完美解决,之前写的F10的解决方法没用了。。。。这个应该更具通用性
1.在terminal下,su取得root权限,然后输入
yum remove pulseaudio
卸载声音相关的软件,然后重启

重启后,进入terminal,su取得权限,然后输入
yum install pulseaudio alsa-plugins-pulseaudio pulseaudio-esound-compat 
pulseaudio-libs pulseaudio-libs-glib2 pulseaudio-module-zeroconf
pulseaudio-libs-zeroconf xmms-pulse pulseaudio-module-gconf wine-pulseaudio
xine-lib-pulseaudio pulseaudio-utils pulseaudio-module-bluetooth gst-mixer
padevchooser paman paprefs pavucontrol pavumeter
注意,我这里加了回车,复制粘贴时,请先复制到一个空文档,删掉之间的回车,然后在全部复制到终端执行,这时候会重新安装声音软件和插件。

=============以下分割线之间是可选的,我没有用到,但也解决了问题======================
[跳过这一步 如果你不需要 time-scheduling, 但是并不建议这样作]
下一步, 以root身份执行下面代码
Code:
gedit /etc/pulse/default.pa
把下面这一行,
Quote:
load-module module-hal-detect
用下面这一行取代 :
Quote:
load-module module-hal-detect tsched=0
存储并退出. 这会禁止 time-scheduling.

下一步, 以root运行
Code:
gedit /etc/pulse/daemon.conf
然后修改下面的行:
Quote:
; realtime-scheduling = no
为下面的部分
Quote:
realtime-scheduling = yes
同样的,修改下面这行:
Quote:
; default-fragment-size-msec = 25
为下面这样
Quote:
default-fragment-size-msec = 10
储存并退出gedit.

重启
==================================================
现在, 打开 System > Preferences > Advanced Volume Control (或者是 sound ) 并确定 PCM, Master, 和  PulseAudio devices 等所有设备 没有被静音,并且音量调到合适的程度。


下一步, 打开 Applications > Sound & Video > PulseAudio Device Chooser
确定 Default Server, Default Sink, and Default Source 全都选为default.


之后, 在 device chooser, 选择 "Volume Control" 选项 并查看每一个标签确定所有stream均没有被静音。


现在, 可以到 Configuration 标签中 找到 Internal Audio - Profiles ,同时可以打开一个mp3音乐,变换你的选择直到你听到音乐。一般默认的是听不到的。我选的是analog stereo Duplex。

下面是相关的解释,就不翻译了。
The wrong profile means no audio will come from your sound card at all. Example: I didn't hear any sound because my profile was set to digital and not analogue, because analogue is what my sound card supports.

If you are not hearing any audio at all then you need to check the last 3 routines we just went through. (The advanced volume controls for mutes, Defaults of the Device Chooser, volume control in the device chooser for wrong settings)

You're done! Now you can finally enjoy your audio in Fedora.