升级以后声卡突然不能用了,找了好多方法,最后是重新装alsa驱动解决的。备份一下,以备以后有用。
1157 sudo gedit /etc/modprobe.d/alsa-base.conf
1160 cd alsa/alsa-driver-1.0.23/
1161 ls
1162 ./configure --with-cards=hda-intel
1163 make
1164 sudo make
1165 sudo make install
1166 cd ../alsa-lib-1.0.23/
1167 ./configure
1168 sudo make
1169 sudo make install
1170 cd ../alsa-utils-1.0.23/
1171 ./configure
1172 sudo make
1173 sudo make install
# autoloader aliasesinstall sound-slot-0 /sbin/modprobe snd-card-0install sound-slot-1 /sbin/modprobe snd-card-1install sound-slot-2 /sbin/modprobe snd-card-2install sound-slot-3 /sbin/modprobe snd-card-3install sound-slot-4 /sbin/modprobe snd-card-4install sound-slot-5 /sbin/modprobe snd-card-5install sound-slot-6 /sbin/modprobe snd-card-6install sound-slot-7 /sbin/modprobe snd-card-7# Cause optional modules to be loaded above generic modulesinstall snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }## Workaround at bug #499695 (reverted in Ubuntu see LP #319505)install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }#install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }# Cause optional modules to be loaded above sound card driver modulesinstall snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }# Prevent abnormal drivers from grabbing index 0options bt87x index=-2options cx88_alsa index=-2options saa7134-alsa index=-2options snd-atiixp-modem index=-2options snd-intel8x0m index=-2options snd-via82xx-modem index=-2options snd-usb-audio index=-2options snd-usb-us122l index=-2options snd-usb-usx2y index=-2options snd-usb-caiaq index=-2# Ubuntu #62691, enable MPU for snd-cmipcioptions snd-cmipci mpu_port=0x330 fm_port=0x388# Keep snd-pcsp from being loaded as first soundcardoptions snd-pcsp index=-2options snd_hda_intel model=6stack-dellalias char-major-116 sndalias snd-card-0 snd-hda_intel# OSS/Free portionalias char-major-14 ALC888alias sound-slot-0 snd-card-0# card #1alias sound-service-0-0 snd-mixer-ossalias sound-service-0-1 snd-seq-ossalias sound-service-0-3 snd-pcm-ossalias sound-service-0-8 snd-seq-ossalias sound-service-0-12 snd-pcm-ossalias snd-card-0 snd-hda-intelalias sound-slot-0 snd-hda-inteloptions snd-hda-intel model=dell-m44
发现一个新的问题,声音虽然有了但是出现声音抢占的问题,一个程序调用了声音信息,另一个就不可以用了。很讨厌,查询了一下 ,目前这个方法可以解决:
第一:sudo apt-get install libesd-alsa0
第二:sudo gedit /etc/asound.conf(新建的)
填入:
pcm.card0 {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 4096
periods 128
rate 44100
}
bindings {
0 0
1 1
}
}
(上面的文件可以在大多数声卡上正常运行…尽管我成功地测试了三个不同的声卡,但我还是不能确保它可以使所有声卡都能正常运行)第三:sudo gedit /etc/esound/esd.conf(已有的文件,做好备份)
改成:
[esd]
auto_spawn=1
spawn_options=-terminate -nobeeps -as 2 -d default
spawn_wait_ms=100
# default options are used in spawned and non-spawned mode
default_options=