LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1389|回复: 1

一种诡异的声音保存问题的解决

[复制链接]
发表于 2007-10-27 20:51:40 | 显示全部楼层 |阅读模式
Post by mascot
我与joyfun一样的问题,也是每次进系统都需要重新打开alsamixer消除静音,声音无法保存,这个原因决不是简单的 rc-update add alsasound default 能够解决的,因为我这样作了,还是无法保存。楼主之所以用rc-update add alsasound default 成功是因为楼主及多数人的 alsa是用alsasound启动的,而我与joyfun的alsa是udev启动的,进入系统后,在用户登陆之前的那段输出明白无误地写明了这一点,手册上说得也很明白,我们这种情况是kernel-level autoconfiguration,现在的udev都有这个功能,udev的启动在alsasound之前,当alsasound运行的时候,发现alsa的各模块已经被udev装载,它扑了个空,根本没有起作用,所以,当系统退出的时候,alsasound也无法保存声音设置。对于这个问题,我暂时没有找到解决方法。

官方手册上只是提了一下,对此没有详细叙述:
http://www.gentoo.org/doc/en/alsa-guide.xml?style=printable
我也遇到过类似的问题,之前每次都要rmmod sndXXX,再重新加载才行。我的做法是将相关的模块加入到/etc/modprobe.d/blacklist中(可能有多个模块),然后通过asound脚本或者/etc/modules.autoload.d/kernel-2.6加载。 参考:
longzz@Gentoo ~ $ cat /etc/modprobe.d/blacklist
# This file lists modules which will not be loaded by udev,
# not at coldplugging and not on hotplug events.

# Add your own entries to this file
# in the format "blacklist <name of module>"

# Some examples:
# evbug is a debug tool and should be loaded explicitly
blacklist evbug

# Autoloading eth1394 most of the time re-orders your network
# interfaces, and with buggy kernel 2.6.21, udev persistent-net
# is not able to rename these devices, so you get eth?_rename devices
# plus an exceeded 30sec boot timeout
blacklist eth1394

# You probably want this to not get the console beep loud on every tab
#blacklist pcspkr

# these drivers are very simple, the HID drivers are usually preferred
#blacklist usbmouse
#blacklist usbkbd

# Sometimes loading a framebuffer driver at boot gets the console black
#install pci:v*d*sv*sd*bc03sc*i* /bin/true
blacklist snd_hda_intel
blacklist nvidia
blacklist videobuf_core
blacklist compat_ioctl32
blacklist ir_kbd_i2c
blacklist ir_common
blacklist videodev
blacklist v412_common
blacklist v412_compat
blacklist saa7134
发表于 2007-10-28 12:50:01 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表