LinuxSir.cn,穿越时空的Linuxsir!

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

ALSA自动保存恢复声音设置

[复制链接]
发表于 2009-1-3 23:22:44 | 显示全部楼层 |阅读模式
昨天刚从 Arch 换到 gentoo,ALSA是用的  alsa-driver 这个驱动,内核中去掉了 alsa 的支持。
按照手册中说的安装了 alsa-utils,可是不能自动的保存和恢复音量设置。手册中说:
[PHP]代码 3.3: 将ALSA加入到启动运行级

# rc-update add alsasound boot
* alsasound added to runlevel boot
* rc-update complete.[/PHP]

我这里把 alsasound 加入boot启动级别是不好用的,而加到 default 级别却可以很好的工作,能够自动保存和恢复音量设置。

是不是手册这里写错了,还是我的系统哪里设置有问题?

另外还有一个问题就是:我发现现在 kernel-2.6.28 和 xorg-server 1.5.3 的配合好像有问题,第一次登录X可以正常工作,可注销或者 Ctrl+Alt+Backspace退出X后键盘会失去响应,鼠标工作正常。我按照网上的各种解决方案试过都不行,最后不得已用回到了 kernel-2.6.27。
不过我记得在 Arch 中我用的就是 2.6.28的内核和 1.5.3的X没什么问题。
发表于 2009-1-4 10:46:18 | 显示全部楼层
我也想知道~~
回复 支持 反对

使用道具 举报

发表于 2009-1-4 11:26:42 | 显示全部楼层
修改:
/etc/config.d/alsasound

里面的设置。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-4 12:42:01 | 显示全部楼层
Post by shellworld;1933740
修改:
/etc/config.d/alsasound

里面的设置。


不是这里的问题,我是照着手册上做的:

[PHP]
# ENABLE_OSS_EMUL:
# Do you want to enable in-kernel oss emulation?
# no - Do not load oss emul drivers
# yes - Load oss emul drivers if they're found

ENABLE_OSS_EMUL="yes"

# RESTORE_ON_START:
# Do you want to restore your mixer settings?  If not, your cards will be
# muted.
# no - Do not restore state
# yes - Restore state

RESTORE_ON_START="yes"

# SAVE_ON_STOP:
# Do you want to save changes made to your mixer volumes when alsasound
# stops?
# no - Do not save state
# yes - Save state

SAVE_ON_STOP="yes"

# LOAD_ON_START:
# Do you want to load sound modules when alsasound starts?
# no - Do not load modules
# yes - Load modules
LOAD_ON_START="yes"

# UNLOAD_ON_STOP:
# Do you want to unload sound modules when alsasound stops?
# no - Do not unload modules
# yes - Unload modules
UNLOAD_ON_STOP="yes"

# KILLPROC_ON_STOP
# Do you want to kill any processes using ALSA when alsasound stops?
# If you are using ALSA modules, leave as yes.
# no - Do not terminate ALSA processes
# yes - Kill running processes using ALSA
KILLPROC_ON_STOP="yes"

[/PHP]
回复 支持 反对

使用道具 举报

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

本版积分规则

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