LinuxSir.cn,穿越时空的Linuxsir!

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

声卡死活搞不定!大家快来帮我看看!

[复制链接]
发表于 2004-1-9 20:13:56 | 显示全部楼层 |阅读模式
先祝福大家新年好!

我的gentoo是:
$ uname -r
2.4.22-gentoo-r2

是从basic光盘起动,从stage1开始安装的。大概的顺序是stage1、stage2,然后emerge -k xfree,接着emerge gnome(在我破机上编译了13个小时),配置了一下,进入gnome了。

但是任务栏上的小喇叭是红色的斜叉,单击提示“Couldn't open mixer device /dev/sound/mixer”,我到/dev/sound下面看了,没有mixer设备:

$ ls /dev/sound*
ls: /dev/sound*: 没有那个文件或目录
 楼主| 发表于 2004-1-9 20:18:35 | 显示全部楼层
然后我打开“多媒体->音量控制”,提示“无法正常运行音量控制,要查看详细的出错信息请单击详细按钮。”。

我单击“详细按钮”,提示“无法打开音频设备/dev/mixer,请确认您拥有打开/dev/mixer设备的权限,并且您在编译内核是加入了声卡支持”。

(我想用lspci命令看看硬件信息,可是没有这个命令),但我确信我在内核中把声卡编译成模块了,声卡是CMI8738。

接着我把一般用户加入audio组:
# useradd lfx -G audio
useradd: user lfx exists
(命令应该没有错吧?)

重新起动X,甚至机子,故障现象依旧。
 楼主| 发表于 2004-1-9 20:20:57 | 显示全部楼层
我找到了声卡模块:

# ls /lib/modules/2.4.22-gentoo-r2/kernel/drivers/sound/cmpci.o
/lib/modules/2.4.22-gentoo-r2/kernel/drivers/sound/cmpci.o

试图加载:

# modprobe /lib/modules/2.4.22-gentoo-r2/kernel/drivers/sound/cmpci.o
modprobe: Can't locate module /lib/modules/2.4.22-gentoo-r2/kernel/drivers/sound/cmpci.o

我看了一下已经加载的:

# lsmod
Module                  Size  Used by    Not tainted
sg                     28652   0  (autoclean) (unused)
sr_mod                 13432   0  (autoclean) (unused)
sd_mod                 11404   0  (autoclean) (unused)
scsi_mod               96052   3  (autoclean) [sg sr_mod sd_mod]
floppy                 52540   0  (autoclean)
rtc                     7228   0  (autoclean)
3c59x                  27536   1

显然没有加载!
 楼主| 发表于 2004-1-9 20:25:50 | 显示全部楼层
看了论坛一些文章,还是搞不定:(

帮我看看吧,我先谢谢大家!
发表于 2004-1-9 20:43:03 | 显示全部楼层
insmod /lib/modules/2.4.22-gentoo-r2/kernel/drivers/sound/cmpci.o 可以吗?
首先dmesg看看有没有找到声卡的信息
确定内核认出声卡后,在声卡图标上左键单击不返回error说明可以工作,右键单击,去掉"mute(静音)"项:如果前一次声音有错,Gnome不会自动启动声音服务的。
发表于 2004-1-9 22:10:14 | 显示全部楼层
nano /etc/modules.d/i386
alias sound-slot-0 cmpci
发表于 2004-1-9 23:23:43 | 显示全部楼层
据说一个办法是用hotplug, emerge hotplug, rc-update add hotplug default.

如果不用hotplug,那么:
#echo cmpci >> /etc/modules.autoload.d/kernel-2.4

最后一种办法当然是直接把CMI编译到kernel里面了。
发表于 2004-1-10 08:27:46 | 显示全部楼层
./snddevices运行没?
alsa-device包里边的。
 楼主| 发表于 2004-1-10 09:20:48 | 显示全部楼层

难道内核没有认出我的声卡(cm8738)?

最初由 sfatsdu 发表
insmod /lib/modules/2.4.22-gentoo-r2/kernel/drivers/sound/cmpci.o 可以吗?
首先dmesg看看有没有找到声卡的信息
确定内核认出声卡后,在声卡图标上左键单击不返回error说明可以工作,右键单击,去掉"mute(静音)"项:如果前一次声音有错,Gnome不会自动启动声音服务的。


谢谢sfatsdu。下面是我的dmesg信息:

dmesg
Linux version 2.4.22-gentoo-r2 (root@mymachine) (gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)) #7 Wed Jan 7 19:44:44 CST 2004
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000010000000 (usable)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
256MB LOWMEM available.
ACPI: have wakeup address 0xc0001000
On node 0 totalpages: 65536
zone(0): 4096 pages.
zone(1): 61440 pages.
zone(2): 0 pages.
DMI not present.
ACPI: Unable to locate RSDP
Kernel command line: root=/dev/hda11
Initializing CPU#0
Detected 599.902 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1179.64 BogoMIPS
Memory: 256380k/262144k available (1697k kernel code, 5376k reserved, 275k data, 88k init, 0k highmem)
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU:     After generic, caps: 0383f9ff 00000000 00000000 00000000
CPU:             Common caps: 0383f9ff 00000000 00000000 00000000
CPU: Intel Pentium III (Coppermine) stepping 03
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
ACPI: Subsystem revision 20031002
PCI: PCI BIOS revision 2.10 entry at 0xfb0a0, last bus=1
PCI: Using configuration type 1
ACPI: System description tables not found
    ACPI-0084: *** Error: acpi_load_tables: Could not get RSDP, AE_NOT_FOUND
    ACPI-0134: *** Error: acpi_load_tables: Could not load tables: AE_NOT_FOUND
ACPI: Unable to load the System Description Tables
PCI: Probing PCI hardware
PCI: ACPI tables contain no PCI IRQ routing entries
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router VIA [1106/0596] at 00:07.0
Activating ISA DMA hang workarounds.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hda: ST320410A, ATA DISK drive
hdc: ATAPI CDROM 48X, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: 39102336 sectors (20020 MB) w/2048KiB Cache, CHS=2434/255/63
hdc: attached ide-cdrom driver.
hdc: ATAPI 24X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.12
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1 p4 < p5 p6 p7 p8 p9 p10 p11 >
usb.c: registered new driver hub
host/uhci.c: USB Universal Host Controller Interface driver v1.1
host/uhci.c: USB UHCI at I/O 0xe400, IRQ 10
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Measuring network checksumming speed
   basic     :   288.000 MB/sec
   simple    :   156.000 MB/sec
func 3Dnow! skipped: not supported by CPU
func AMD-MMX skipped: not supported by CPU
   SSE1+     :   348.000 MB/sec
csum: using csum function: SSE1+
   basic     :    92.000 MB/sec
   simple    :    88.000 MB/sec
func AMD-MMX skipped: not supported by CPU
   SSE1+     :   116.000 MB/sec
   SSE1      :   116.000 MB/sec
csum: using csum_copy function: SSE1+
FAT: bogus logical sector size 0
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,11)) ...
for (ide0(3,11))
ide0(3,11):Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 88k freed
Adding Swap: 489940k swap-space (priority -1)
PCI: Found IRQ 9 for device 00:0b.0
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
See Documentation/networking/vortex.txt
00:0b.0: 3Com PCI 3c905B Cyclone 100baseTx at 0xec00. Vers LK1.1.18-ac
00:10:4b:9a:78:b6, IRQ 9
  product code 4e4b rev 00.9 date 04-24-98
  Internal config register is 1800000, transceivers 0xa.
  8K byte-wide RAM 5:3 Rx:Tx split, autoselect/Autonegotiate interface.
  MII transceiver found at address 24, status 786d.
  Enabling bus-master transmits and whole-frame receives.
00:0b.0: scatter/gather enabled. h/w checksums enabled
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.19+htree+orlov, 19 August 2002 on ide0(3,7), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Real Time Clock Driver v1.10e
inserting floppy driver for 2.4.22-gentoo-r2
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
SCSI subsystem driver Revision: 1.00
spurious 8259A interrupt: IRQ7.
 楼主| 发表于 2004-1-10 09:21:56 | 显示全部楼层
最初由 sfatsdu 发表
insmod /lib/modules/2.4.22-gentoo-r2/kernel/drivers/sound/cmpci.o 可以吗?
首先dmesg看看有没有找到声卡的信息
确定内核认出声卡后,在声卡图标上左键单击不返回error说明可以工作,右键单击,去掉"mute(静音)"项:如果前一次声音有错,Gnome不会自动启动声音服务的。


我用了insmod,可是出错:

# insmod /lib/modules/2.4.22-gentoo-r2/kernel/drivers/sound/cmpci.o
/lib/modules/2.4.22-gentoo-r2/kernel/drivers/sound/cmpci.o: unresolved symbol unregister_sound_dsp
/lib/modules/2.4.22-gentoo-r2/kernel/drivers/sound/cmpci.o: unresolved symbol register_sound_dsp
/lib/modules/2.4.22-gentoo-r2/kernel/drivers/sound/cmpci.o: unresolved symbol register_sound_mixer
/lib/modules/2.4.22-gentoo-r2/kernel/drivers/sound/cmpci.o: unresolved symbol unregister_sound_mixer

怎么回事?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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