LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: hjhee

[解决中]Gentoo没有声音

[复制链接]
发表于 2008-6-18 21:17:35 | 显示全部楼层
使用lsmod看看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-19 17:56:22 | 显示全部楼层
ubuntu@ubuntu:~$ lsmod
Module                  Size  Used by
xt_TCPMSS               5504  1
xt_tcpmss               3200  1
xt_tcpudp               4096  1
iptable_mangle          3712  1
pppoe                  14528  2
pppox                   4876  1 pppoe
ppp_generic            29588  6 pppoe,pppox
slhc                    7040  1 ppp_generic
ipv6                  267780  12
i915                   32512  2
drm                    82580  3 i915
af_packet              23812  2
rfcomm                 41744  2
l2cap                  25728  13 rfcomm
bluetooth              61156  4 rfcomm,l2cap
ppdev                  10372  0
lp                     12324  0
cpufreq_userspace       5284  0
cpufreq_stats           7104  0
cpufreq_powersave       2688  0
cpufreq_ondemand        9740  0
freq_table              5536  2 cpufreq_stats,cpufreq_ondemand
cpufreq_conservative     8712  0
video                  19856  0
output                  4736  1 video
sbs                    15112  0
sbshc                   7680  1 sbs
container               5632  0
dock                   11280  0
ac                      6916  0
iptable_filter          3840  0
ip_tables              14820  2 iptable_mangle,iptable_filter
x_tables               16132  4 xt_TCPMSS,xt_tcpmss,xt_tcpudp,ip_tables
snd_hda_intel         344728  3
snd_pcm_oss            42144  0
snd_mixer_oss          17920  1 snd_pcm_oss
snd_pcm                78596  2 snd_hda_intel,snd_pcm_oss
snd_page_alloc         11400  2 snd_hda_intel,snd_pcm
snd_hwdep              10500  1 snd_hda_intel
snd_seq_dummy           4868  0
snd_seq_oss            35584  0
snd_seq_midi            9376  0
snd_rawmidi            25760  1 snd_seq_midi
snd_seq_midi_event      8320  2 snd_seq_oss,snd_seq_midi
snd_seq                54224  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              24836  2 snd_pcm,snd_seq
snd_seq_device          9612  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
parport_pc             36260  1
psmouse                40336  0
evdev                  13056  3
snd                    56996  17 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
shpchp                 34452  0
parport                37832  3 ppdev,lp,parport_pc
serio_raw               7940  0
intel_agp              25492  1
iTCO_wdt               13092  0
pcspkr                  4224  0
button                  9232  0
agpgart                34760  3 drm,intel_agp
pci_hotplug            30880  1 shpchp
soundcore               8800  1 snd
iTCO_vendor_support     4868  1 iTCO_wdt
battery                14212  0
squashfs               49160  1
loop                   18948  2
unionfs                76752  1
nls_cp437               6656  1
isofs                  36388  1
ext2                   73352  0
mbcache                 9600  1 ext2
sg                     36880  0
sd_mod                 30720  2
sr_mod                 17956  1
cdrom                  37408  1 sr_mod
ata_piix               19588  2
pata_acpi               8320  0
r8169                  32900  0
ata_generic             8324  0
libata                159344  3 ata_piix,pata_acpi,ata_generic
scsi_mod              151436  4 sg,sd_mod,sr_mod,libata
ehci_hcd               37900  0
uhci_hcd               27024  0
usbcore               146028  3 ehci_hcd,uhci_hcd
thermal                16796  0
processor              36872  1 thermal
fan                     5636  0
fbcon                  42912  0
tileblit                3456  1 fbcon
font                    9472  1 fbcon
bitblit                 6784  1 fbcon
softcursor              3072  1 bitblit
fuse                   50580  3
回复 支持 反对

使用道具 举报

发表于 2008-6-19 21:31:55 | 显示全部楼层
ubuntu的liveCD启动的?怎么会这么多声卡驱动?
好象是这个snd_hda_intel,你在Gentoo列出来的不会是你上面贴的吧?你在/etc/modules.autoload.d/kernel-2.6 加入snd_hda_intel,启动时注意看是否加载成功,如果不能加载就是内核编译不对或者安装其他驱动导致的冲突。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-19 21:46:24 | 显示全部楼层
前面已经试过了
  1. Gentoo gentoo # dmesg | grep -i intel
  2. [    9.829109] Intel machine check architecture supported.
  3. [    9.829182] Intel machine check reporting enabled on CPU#0.
  4. [    9.848282] CPU0: Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz stepping 0d
  5. [    9.940120] Intel machine check architecture supported.
  6. [    9.940123] Intel machine check reporting enabled on CPU#1.
  7. [    9.940417] CPU1: Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz stepping 0d
  8. [   10.281157] intel_rng: FWH not detected
  9. [   10.281341] agpgart: Detected an Intel G33 Chipset.
  10. [   15.080288] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.02 (26-Jul-2007)
  11. [   15.390295]   #1: HDA Intel at 0xfea78000 irq 16
  12. [   17.513896] sysfs: duplicate filename 'snd_hda_intel' can not be created
  13. [   17.513920] kobject_add failed for snd_hda_intel with -EEXIST, don't try to register things with the same name in the same directory.
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-6-19 22:19:01 | 显示全部楼层
ich7不应该是realtek alc662吧,我的ich6r,识别为alc880(具体应该是alc861)。
你emerge -Cav alsa-drivers后再进/lib/modules/2.6.2X-gentoo-rX/目录直接删除alsa-driver目录,在/etc/modprobe.d/blacklist中加入snd_hda_intel模块试试,如下例:
longerz@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 video_buf
blacklist compat_ioctl32
blacklist ir_kbd_i2c
blacklist ir_common
blacklist videodev
blacklist v4l2_common
blacklist v4l1_compat
blacklist tuner
blacklist saa7134
回复 支持 反对

使用道具 举报

发表于 2008-6-20 22:34:09 | 显示全部楼层
完全按照gentoo 手册,编译alsa,没有声音 。
#lspci
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)

从外面看一切正常,但是播放cd的时候就是眉有声音。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-21 08:20:41 | 显示全部楼层
我本来没有装alsa-driver
不过重新编译了一次后我也有了
hda_codec: Unknown model for ALC662, trying auto-probe from BIOS...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-29 21:19:28 | 显示全部楼层
查明白了,是内核搞的鬼
  1. [AO_ALSA] 回放打开错误: No such file or directory
  2. open /dev/[sound/]dsp: No such file or directory
  3. [OpenAL] could not open device
  4. DVB card number must be between 1 and 4
复制代码

我改动了选项

  1. y OSS PCM (digital audio) API - Include plugin system
  2. y OSS Sequencer API
  3. n Virtual MIDI soundcard
  4. 20 Default time-out for HD-audio power-save mode
复制代码

后就没事了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

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

本版积分规则

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