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 |
下一步, 以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 |
重启
==================================================
现在, 打开 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.