笔记本双声卡USB+自带SIS声卡 切换的问题?
时间:2007-07-19
来源:互联网
如题,两个声卡怎么才可以任意切换,笔记本声卡有点坏了,一直用USB声卡,但是在Mandriva里怎么自由切换声卡设备,在 UBUNTU 里切换太简单了,
请各位大哥或者高手路过时帮忙回答一下,就差这个东西就可以砍掉WINDOWS了,网银,网络电话都搞定了,其他游戏再慢慢的搞,清大家支持一下
请各位大哥或者高手路过时帮忙回答一下,就差这个东西就可以砍掉WINDOWS了,网银,网络电话都搞定了,其他游戏再慢慢的搞,清大家支持一下
作者: dmymk 发布时间: 2007-07-19
网银,怎么搞定的?
另外我的也是笔记本双声卡。一个ac97,一个usb声卡pcm2702芯片。在mac os 下是可以自动切换的。我一拔掉usb声卡就自动用ac97,一插上就用usb的声卡。另外好像linux下好每个程序单独设置。比较麻烦的。缺乏一致性才是linux的弱点。
另外我的也是笔记本双声卡。一个ac97,一个usb声卡pcm2702芯片。在mac os 下是可以自动切换的。我一拔掉usb声卡就自动用ac97,一插上就用usb的声卡。另外好像linux下好每个程序单独设置。比较麻烦的。缺乏一致性才是linux的弱点。
作者: chenzhijin1980 发布时间: 2008-11-25
这边好像有解决方案:
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).
不知道可行否
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).
不知道可行否
作者: chenzhijin1980 发布时间: 2008-11-25
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28