LinuxSir.cn,穿越时空的Linuxsir!

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

笔记本双声卡USB+自带SIS声卡 切换的问题?

[复制链接]
发表于 2007-7-18 21:24:43 | 显示全部楼层 |阅读模式
如题,两个声卡怎么才可以任意切换,笔记本声卡有点坏了,一直用USB声卡,但是在Mandriva里怎么自由切换声卡设备,在 UBUNTU 里切换太简单了,

请各位大哥或者高手路过时帮忙回答一下,就差这个东西就可以砍掉WINDOWS了,网银,网络电话都搞定了,其他游戏再慢慢的搞,清大家支持一下
发表于 2008-11-25 01:16:35 | 显示全部楼层
网银,怎么搞定的?
另外我的也是笔记本双声卡。一个ac97,一个usb声卡pcm2702芯片。在mac os 下是可以自动切换的。我一拔掉usb声卡就自动用ac97,一插上就用usb的声卡。另外好像linux下好每个程序单独设置。比较麻烦的。缺乏一致性才是linux的弱点。
回复 支持 反对

使用道具 举报

发表于 2008-11-25 01:26:39 | 显示全部楼层
这边好像有解决方案:
http://forums.gentoo.org/viewtopic-t-375470.html
I bought a pair of usb speakers and wanted alsa to automatically switch to the usb-audio card when the device is plugged into the usb port. First, make sure you have usb-audio configured. Plugin the speakers and cat /proc/asound/cards. You should see your usb-audio device. Then put the following 代码:

#!/bin/sh
CARDNUM=`sed -n 's/\(^[0-9]\).*/\1/p' < /proc/asound/cards | tail -n 1`
cat<<EOF > /etc/asound.conf
pcm.!default {
  type hw
  card $CARDNUM
}
ctl.!default {
   type hw
   card $CARDNUM
}
EOF


in /etc/dev.d/sound/alsa-default.dev (name is unimportant, but must end in .dev). Make it executable. Whenever there is a sound hotplug event, the default alsa card will be the last one listed in /proc/asound/cards. This also works when the speakers are unplugged (returns to card 0).
不知道可行否
回复 支持 反对

使用道具 举报

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

本版积分规则

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