[声音配置] 安装好debian sid之后完全没有声音

安装 alsa-utils
配置命令 "alsactl init "

wiki.debian.org/SoundConfiguration

[code]root@oc:/home/shu# alsactl init
alsactl: sysfs_init:48: sysfs path ‘/sys’ is invalid

Found hardware: “HDA-Intel” “Intel Haswell HDMI” "HDA:80862807,80860101,
Hardware is initialized using a generic method
[/code]run vlc

[00000000022b7fd8] pulse audio output error: PulseAudio server connection failure: Connection refused [00000000022c89b8] dbus interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally without any error message [00000000022c89b8] core interface error: no suitable interface module [00000000021bd158] core libvlc error: interface "dbus,none" initialization failed [00000000021bd158] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave [00000000022b7fd8] alsa audio output error: cannot open ALSA device "default": No such file or directory [00000000022b7fd8] core audio output error: module not functional [00007f7515983dd8] core decoder error: failed to create audio output [00007f74ec001ed8] dbus_screensaver inhibit error: cannot connect to session bus: /usr/bin/dbus-launch terminated abnormally without any error message [00007f74f0043828] freetype spu text error: Breaking unbreakable line QObject::~QObject: Timers cannot be stopped from another thread run speaker-test to test

[code]shu@oc:/mnt/videos$ speaker-test

speaker-test 1.1.1

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory
shu@oc:/mnt/videos$ [/code]vlc --audio pilse

shu@oc:~$ vlc --audio pilse /mnt/videos/D士下山.Monk.Comes.Down.The.Mountain.2015.HD720P.X264.AAC.Mandarin.CHS-ENG.Mp4Ba.mp4 VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89) [00000000025e2c78] dbus interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally without any error message [00000000025e2c78] core interface error: no suitable interface module [00000000024cc158] core libvlc error: interface "dbus,none" initialization failed [00000000024cc158] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [00007f6544000e58] filesystem access error: cannot open file /home/shu/pilse (No such file or directory) [00007f6550000958] core input error: open of `file:///home/shu/pilse' failed [00007f653c0024a8] dbus_screensaver inhibit error: cannot connect to session bus: /usr/bin/dbus-launch terminated abnormally without any error message [00007f652c043828] freetype spu text error: Breaking unbreakable line QObject::~QObject: Timers cannot be stopped from another thread shu@oc:~$
这里vlc播放视频有声音,但是之前打开的网页html5没有声音
运行命令 alsamixer

┌───────────────────────────────────────────── AlsaMixer v1.1.1 ─────────────────────────────────────────────┐ │ Card: HDA Intel HDMI F1: Help │ │ Chip: Intel Haswell HDMI F2: System information │ │ View: F3: Playback F4:[Capture] F5: All F6: Select sound card │ │ Item: Esc: Exit │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ This sound device does not have any capture controls. │ │ │

已经安装了alsa-utils 和 pulseaudio,
现在运行"speaker-test" 会有杂音
然后重启了一下,startx失败了
安装 pulseaudio 的时候 看到这样一段话

[quote]如果你没有运行GNOME, KDE或者Xfce,并且你的~/.xinitrc文件并未引用/etc/X11/xinit/xinitrc.d目录下的文件内容,为了让PulseAudio自动启动,你可以这样做:
~/.xinitrc
/usr/bin/start-pulseaudio-x11
[/quote]

把~/.xinitrc删掉可以startx了,声音正常,之前写了一个启动声音的配置引起的startx失败

从安装过程来看 应该需要安装两个包 alsa-utils 和 PulseAudio
参照debian wiki
wiki.debian.org/SoundConfiguration

把~/.xinitrc删掉可以startx了,声音正常,之前写了一个启动声音的配置引起的startx失败