LinuxSir.cn,穿越时空的Linuxsir!

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

SuSe 10.3安装完后,没有声音,播放MP3没声音,看电影有图像没声音

[复制链接]
发表于 2008-3-15 15:11:31 | 显示全部楼层 |阅读模式
右下角有声音控制器图标显示,还能调节音量,但就是没有声音。

用系统自带的RealPlay 10.0.9.809(Gold)播放器播放RMVB格式电影有图像没有声音;BanShee播放器放MP3也没有声音。

硬件信息里面显示:
MCP67 High Definition Audio
• 已配置为声卡编号
• 驱动程序 snd-hda-intel

不知道为什么。。。。就是没声音。
发表于 2008-3-15 17:53:48 | 显示全部楼层
右键点声卡图标,看是不是被静音了

update到最新,然后测试一下声卡。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-17 09:58:40 | 显示全部楼层
参考ubuntu论坛的帖子,已经解决问题了。。。呵呵。现在都有声音了。。
回复 支持 反对

使用道具 举报

发表于 2008-3-17 10:21:52 | 显示全部楼层
Post by freeask;1827392
参考ubuntu论坛的帖子,已经解决问题了。。。呵呵。现在都有声音了。。


给个方法或者链接吧,帮助别人
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-18 17:04:49 | 显示全部楼层
这是我安装成功后记录下来的笔记:以下方法可行:
1  下载 alsa-driver-1.0.14rc4.tar.bz2 包
2  解开.下载ha_realtek_parch_files.zip,解压,把里面的patch_realtek.c文件覆盖到:
   第一步解压出来的文件夹下面的alsa-kernel/pci/hda/patch_realtek.c


其实是 把 realtek的驱动加上了 ALC268 的支持。然后编译:

configure --with-cards=hda-intel
make
sudo make install

重启系统,发现终于可以了,也不再只是外音了,通过音效控制aslamixer , 可以在外音和 耳机之间切换了。
参考网址:
http://forum.ubuntu.org.cn/viewtopic.php?t=66531
http://www.91linux.com/html/article/media/20071022/7730.html
http://benyouhui.it168.com/viewt ... p;extra=&page=1



=-========-----------------------------------------------

另外的方法: 你可以试试这个方法, 不知能解决不.

先在终端中执行:
代码:
alsamixer

记下"Chip: "中后半段的名称, 然后到这里: http://www.mjmwired.net/kernel/D ... 。。结果是:
834                ALC268
835                  3stack        3-stack model
836                  toshiba        Toshiba A205
837                  acer                Acer laptops
838                  auto                auto-config reading BIOS (default)
然后执行:
代码:
sudo gedit /etc/modprobe.d/alsa-base

在最后一行添加:
引用:
options snd-hda-intel single_cmd=1 model=acer这里输入刚才搜索到的下面左边的字符

逐个试试, 直到有声音. 如果已经有上面这行的话, 就直接修改一下了.
我的这个系统没有 alsa-base这个文件,只有 sound文件,其内容如下:

options snd-hda-intel enable=1 index=0
# M71A.ehJ1cYVLS6B:MCP67 High Definition Audio
alias snd-card-0 snd-hda-intel
options snd-cmipci mpu_port=0x330 fm_port=0x388
options snd-hda-intel model=laptop-eapd

现修改 最后一句:model=acer
然后新建一个alsa-base文件,添加最后一句


-------------------------------------------------------------
Update to the Latest Version of ALSA
{i} These instructions do not interfere with the Ubuntu package structure or other kernel modules - in other words, the changes seem drastic however they are simply adding greater functionality to an existing kernel module (Please read the Caveats section!)

    * Install the required tools

sudo apt-get install build-essential ncurses-dev gettext

    * Install your kernel headers

sudo apt-get install linux-headers-`uname -r`

    * Download the latest version of alsa from Alsa project (driver, lib, and utils) to a directory (eg. ~/downloads). In the following we assume that the latest version is 1.0.14. Please change this in accordance with the one you downloaded from the Alsa project site.
    * alsa-driver
    * alsa-lib
    * alsa-utils
    * Setup installation directories

sudo mkdir -p /usr/src/alsa
cd /usr/src/alsa
sudo cp ~/downloads/alsa* .
sudo tar xjf alsa-driver*.bz2
sudo tar xjf alsa-lib*.tar.bz2
sudo tar xjf alsa-utils*.tar.bz2

    * Compile and install alsa-driver

cd alsa-driver-1.0.14
sudo ./configure --with-cards=hda-intel
sudo make
sudo make install

    * Compile and install alsa-lib

cd ../alsa-lib-1.0.14a
sudo ./configure
sudo make
sudo make install

    * Compile and install alsa-utils

cd ../alsa-utils-1.0.14
sudo ./configure
sudo make
sudo make install

Note that you must have the curses library installed to be able to compile alsa-utils. You can install it with this command from a terminal: sudo apt-get install libncurses5-dev

    * Reboot
--------------------
后来作一下工作终于把4520声卡驱动的问题解决了,开机的时候有了声音。
1。 Edit your /etc/modules.conf or conf.modules depending on the distribution
        (Please refer to the attached modules.conf)
         
        snd-xxxx is the card ID.

        -- Azalia controller --ALC880 ALC882 ALC260 ALC262 ALC883 ALC885 ALC888
           --- Intel ICH6 ICH7 ---------
               snd-hda-intel
           --- ATI chipset -----
               snd-atiixp

        -- AC97 controller --ALC655 ALC650 ALC250 ALC255
           --- Intel ICH6 ICH7 , SiS 7012 and NVidia----------
               snd-intel8x0
           --- Via8233 Via686a  -------------------------------   
               snd-via82xx
           --- ATI Chipset  -------------------------------
               snd-atiixp

        Copy and paste this to the bottom of your /etc/modules.conf or /etc/modprobe.conf file.
        # ALSA portion
          alias char-major-116 snd
          alias snd-card-0 snd-xxxx     
        # OSS/Free portion
          alias char-major-14 soundcore
          alias sound-slot-0 snd-card-0
        # card #1
          alias sound-service-0-0 snd-mixer-oss
          alias sound-service-0-1 snd-seq-oss
          alias sound-service-0-3 snd-pcm-oss
          alias sound-service-0-8 snd-seq-oss
          alias sound-service-0-12 snd-pcm-oss
2,在yast中点击硬件,然后音效,对声卡编辑,选中第一行点编辑,然后在model 值中键入acer,点完成,最后重启机器,有声音了。真高兴阿,呵呵。

-------------------------------------------------------------
解决了音箱和耳机同时发音的问题
2007-9-20 周四, 20:22
[  心情: Amused ]

我的笔记本为联想昭阳E390A,装完Ubuntu7.04后,插上耳机后,耳机和音箱同时发声。
为了解决这个故障,我花了近一天的时间,终于问题解决了。关键问题是我没有找到文件
ALSA-Configuration.txt。这个文件里有声卡类型与model(模块)的对照表。

下面是操作的正确步骤:

1、安装所需的工具

$ sudo apt-get install build-essential ncurses-dev gettext

2、安装内核头文件

$ sudo apt-get install linux-headers-`uname -r`

3、下载声卡驱动程序、库文件、工具,下面是目前最新的驱动程序,下载网址:

驱动程序:ftp://ftp.alsa-project.org/pub/d ... r-1.0.15rc2.tar.bz2
库文件:ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.15rc2.tar.bz2
工具:ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.15rc1.tar.bz2

4、解压、安装声卡驱动程序

$ tar xvvjf alsa-driver-1.0.15rc2.tar.bz2
$ cd alsa-driver-1.0.15rc2
$ ./configure --with-cards=hda-intel
$ make
$ sudo make install

5、解压、安装库文件

$ tar xvvjf alsa-lib-1.0.15rc2.tar.bz2
$ cd alsa-lib-1.0.15rc2
$ ./configure
$ make
$ sudo make install

6、解压、安装工具

在安装工具之前,先安装库libncurses5-dev

$ sudo apt-get install libncurses5-dev

$ tar xvvjf alsa-utils-1.0.15rc1.tar.bz2
$ cd alsa-utils-1.0.15rc1
$ ./configure
$ make
$ sudo make install

7、确定声卡的声卡的代码(codec),使用下面的命令:

$ cat /proc/asound/card0/codec#* | grep Codec

Codec: Realtek ALC883 #这是我的声卡
Codec: Motorola Si3054 #这是我的Moden

8、这一步最关键了,我在这里走了好多弯路。在文件中
ALSA-Configuration.txt查找声卡的代码,找到对应的model。
这个ALSA-Configuration.txt其实就在你下载的驱动程序包中。
路径为:alsa-driver-1.0.15rc2/alsa-kernel/Documentation/ALSA-Configuration.txt

你也可以使用下面的命令来查找:

~$ find . -name "ALSA-Configuration.txt" -print

例如:我的声卡为ALC833

ALC883/888
3stack-dig 3-jack with SPDIF I/O
6stack-dig 6-jack digital with SPDIF I/O
3stack-6ch 3-jack 6-channel
3stack-6ch-dig 3-jack 6-channel with SPDIF I/O
6stack-dig-demo 6-jack digital for Intel demo board
acer Acer laptops (Travelmate 3012WTMi, Aspire 5600, etc)
acer-aspire Acer Aspire 9810
medion Medion Laptops
medion-md2 Medion MD2
targa-dig Targa/MSI
targa-2ch-dig Targs/MSI with 2-channel
laptop-eapd 3-jack with SPDIF I/O and EAPD (Clevo M540JE, M550JE)
lenovo-101e Lenovo 101E
lenovo-nb0763 Lenovo NB0763
lenovo-ms7195-dig Lenovo MS7195
haier-w66 Haier W66
6stack-hp HP machines with 6stack (Nettle boards)
3stack-hp HP machines with 3stack (Lucknow, Samba boards)
auto auto-config reading BIOS (default)

在这里选择最合适的model,我的是联想的笔记本E390A,因此我选用了lenovo-101e。

9、修改/etc/modprobe.d/alsa-base,加入你选中的model。

$ sudo gedit /etc/modprobe.d/alsa-base

加入下面的代码:

options snd-hda-intel model=你选中的model

例如我选的是:lenovo-101e,因此我加入的代码为:

options snd-hda-intel model=lenovo-101e

10、重启计算机,看看效果。


说明:第一次选不对没关系,可以都试一试,实在不行使用auto。修改后要重启。
---------------------------------------------------------------------------------------------------------------------------------------------------
声音的解决
具体步骤如下:
1。去 http://www.alsa-project.org/alsa ... -1.0.14rc4.tar.tarr
http://www.alsa-project.org/alsa/ftp/lib/ 下载alsa-lib-1.0.14rc4.tar.tar
http://www.alsa-project.org/alsa/ftp/utils/ 下载alsa-utils-1.0.14rc4.tar.tar

2。
代码:
sudo apt-get install build-essential ncurses-dev linux-headers-`uname -r`

代码:
sudo mkdir -p /usr/src/alsa
cd /usr/src/alsa
sudo cp /下载的三个压缩包路径/* ./
sudo tar xjf alsa-driver-1.0.14rc4.tar.bz2
sudo tar xjf alsa-lib-1.0.14rc4.tar.bz2
sudo tar xjf alsa-utils-1.0.14rc4.tar.bz2

编译和安装alsa-driver
代码:
cd alsa-driver-1.0.14rc4
sudo ./configure --with-cards=hda-intel
sudo make
sudo make install

编译和安装alsa-lib
代码:
cd ../alsa-lib-1.0.14rc4
sudo ./configure
sudo make
sudo make install

编译和安装alsa-utils
代码:
cd ../alsa-utils-1.0.14rc4
sudo ./configure
sudo make
sudo make install

重启

PS:我UTILS提示没编译成功 不过我重启后 把EXTERNAL AMPLIFILER选中后就有美妙的声音了。。。
我很理解声卡识别出来了 没声音的痛苦 这个问题也折磨了我好久 我6。06 6。10都没这个问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-18 17:08:15 | 显示全部楼层
对了,顺便说一句,上面的笔记很多都是在论坛里面摘抄的,但是忘记出处了。。。。。汗,大家将就着看吧,,,或许就弄出声音来了。。。。linux这东西真奇妙。。。。
回复 支持 反对

使用道具 举报

发表于 2008-5-2 10:31:47 | 显示全部楼层
我的是X-FI的声卡,到现在还是没有办法弄出声音来。听说是还没有驱动。哈哈
回复 支持 反对

使用道具 举报

发表于 2008-5-2 11:01:11 | 显示全部楼层
Post by playboy-007;1844795
我的是X-FI的声卡,到现在还是没有办法弄出声音来。听说是还没有驱动。哈哈


creative 官方有驱动
http://cn.creative.com/support/downloads/
回复 支持 反对

使用道具 举报

发表于 2008-5-3 11:17:26 | 显示全部楼层
有时候我的suse也没声音,然后我就把电脑关了,电源关了,过后开机就又有声了, 没次都这样解决的,奇怪的是重起机子不管用,必须把电脑彻底关上。
回复 支持 反对

使用道具 举报

发表于 2008-5-3 17:35:17 | 显示全部楼层
真怪啊,我还没有碰到过这么怪的事。
回复 支持 反对

使用道具 举报

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

本版积分规则

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