LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-18-2004, 05:47 AM   #1
malbery
Member
 
Registered: Aug 2004
Distribution: Debian sarge 2.6.8-2-k7
Posts: 60

Rep: Reputation: 15
sound card: no sound


Hi,

I am having problems playing sound in Debian. Any help you can offer me is greatly appreciated.

I've tried a few things:

The sound works under windows -> I am using the correct socket.
The speakers are on with the volume high. They work if I plug them into my DiscMan.
KDE VolumeControl shows my volume high, and none muted.

Playing a (loud & noisy) mp3 using kaboodle, it happily progresses through the mp3, but results in no sound being played. It also outputs no errors to the teminal window (apart from icons not being loaded).
The same happens using noatun.
The same happens using juk.
Control Center > Sound System > General > "Test Sound" results in no playback either. Control Center > Sound System > General > "Enable the sound system" is checked. Control Center > Sound System > Hardware > "Select the audio device" is still set to "Autodetect".

This command does not produce static:

cat /dev/urandom > /dev/dsp

Experimentally, I did the following (producing no results):

Code:
ln -s /dev/dsp /dev/sound
 chmod 666 /dev/dsp
 chmod 666 /dev/sound
lsmod lists the sound module:

Code:
# lsmod
Module                  Size  Used by    Not tainted
nls_iso8859-1           2876   1  (autoclean)
isofs                  27092   1  (autoclean)
apm                     9996   1  (autoclean)
mousedev                4148   1
keybdev                 2212   0  (unused)
hid                    21764   0  (unused)
input                   3520   0  [mousedev keybdev hid]
af_packet              13416   1  (autoclean)
ehci-hcd               18156   0  (unused)
usb-uhci               23184   0  (unused)
usbcore                63020   1  [hid ehci-hcd usb-uhci]
via82cxxx_audio        21308   1
ac97_codec             13396   0  [via82cxxx_audio]
uart401                 6756   0  [via82cxxx_audio]
sound                  58088   0  [via82cxxx_audio uart401]
soundcore               3972   4  [via82cxxx_audio sound]
ide-scsi               10224   0
scsi_mod               94596   1  [ide-scsi]
via-rhine              12912   1
mii                     2432   0  [via-rhine]
crc32                   2880   0  [via-rhine]
ide-cd                 32160   1
cdrom                  28672   0  [ide-cd]
rtc                     7048   0  (autoclean)
ext3                   81352   1  (autoclean)
jbd                    42148   1  (autoclean) [ext3]
ide-detect               288   0  (autoclean) (unused)
via82cxxx              10696   1  (autoclean)
ide-disk               16800   2  (autoclean)
ide-core              109692   3  (autoclean) [ide-scsi ide-cd ide-detect via82cxxx ide-disk]
unix                   15340 136  (autoclean)
I've not done anything explicit to configure the sound driver / module. Perhaps a module is required in order to get it to play? I don't know enough about this.

Finally, dmesg shows some (resolved?) IRQ conflicts, and at the end "ignoring drain playback error".

What should I try next?

Code:
Linux version 2.4.26-1-k7 (horms@tabatha) (gcc version 3.3.4 (Debian 1:3.3.4-3)) #1 Thu Jul 22 13:24:02 JST 2004
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fffc000 (usable)
 BIOS-e820: 000000001fffc000 - 000000001ffff000 (ACPI data)
 BIOS-e820: 000000001ffff000 - 0000000020000000 (ACPI NVS)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
511MB LOWMEM available.
On node 0 totalpages: 131068
zone(0): 4096 pages.
zone(1): 126972 pages.
zone(2): 0 pages.
ACPI: RSDP (v000 ASUS                                      ) @ 0x000f62a0
ACPI: RSDT (v001 ASUS   A7V8X-X  0x42302e31 MSFT 0x31313031) @ 0x1fffc000
ACPI: FADT (v001 ASUS   A7V8X-X  0x42302e31 MSFT 0x31313031) @ 0x1fffc0b2
ACPI: BOOT (v001 ASUS   A7V8X-X  0x42302e31 MSFT 0x31313031) @ 0x1fffc030
ACPI: MADT (v001 ASUS   A7V8X-X  0x42302e31 MSFT 0x31313031) @ 0x1fffc058
ACPI: DSDT (v001   ASUS A7V8X-X  0x00001000 MSFT 0x0100000b) @ 0x00000000
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 Pentium(tm) Pro APIC version 16
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
Kernel command line: root=/dev/hda8 ro 
Found and enabled local APIC!
Initializing CPU#0
Detected 2083.159 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 4154.98 BogoMIPS
Memory: 511488k/524272k available (1207k kernel code, 12396k reserved, 459k data, 112k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0383fbff c1c3fbff 00000000 00000000
CPU:             Common caps: 0383fbff c1c3fbff 00000000 00000000
CPU: AMD Athlon(TM) XP 2600+ stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 2083.1399 MHz.
..... host bus clock speed is 333.3024 MHz.
cpu: 0, clocks: 3333024, slice: 1666512
CPU0<T0:3333024,T1:1666512,D:0,S:1666512,C:3333024>
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
ACPI: Subsystem revision 20040326
ACPI: Interpreter disabled.
PCI: PCI BIOS revision 2.10 entry at 0xf1990, last bus=1
PCI: Using configuration type 1
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/3177] at 00:11.0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
spurious 8259A interrupt: IRQ7.
COMX: driver version 0.85 (C) 1995-1999 ITConsult-Pro Co. <info@itc.hu>
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 4140 blocks [1 disk] into ram disk... | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - done.
Freeing initrd memory: 4140k freed
VFS: Mounted root (cramfs filesystem).
Freeing unused kernel memory: 112k freed
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide: late registration of driver.
VP_IDE: IDE controller at PCI slot 00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci00:11.1
    ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:DMA
hda: SAMSUNG SP1604N, ATA DISK drive
blk: queue e082a140, I/O limit 4095Mb (mask 0xffffffff)
hdc: Maxtor 6Y120L0, ATA DISK drive
hdd: HL-DT-STDVD-ROM GDR8161B, ATAPI CD/DVD-ROM drive
blk: queue e082a594, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: 312581808 sectors (160042 MB) w/2048KiB Cache, CHS=19457/255/63, UDMA(100)
hdc: attached ide-disk driver.
hdc: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=238216/16/63, UDMA(133)
Partition check:
 /dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 p9 > p3 p4
 /dev/ide/host0/bus1/target0/lun0: [PTBL] [14946/255/63] p1 p2 < p5 p6 p7 p8 >
Journalled Block Device driver loaded
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Adding Swap: 979924k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,8), internal journal
Real Time Clock Driver v1.10f
hdd: attached ide-cdrom driver.
hdd: ATAPI 48X DVD-ROM drive, 256kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
irda_init()
via-rhine.c:v1.10-LK1.1.19  July-12-2003  Written by Donald Becker
  http://www.scyld.com/network/via-rhine.html
PCI: Assigned IRQ 5 for device 00:12.0
eth0: VIA VT6102 Rhine-II at 0xb400, 00:0c:6e:86:98:50, IRQ 5.
eth0: MII PHY found at address 1, status 0x786d advertising 01e1 Link 45e1.
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Via 686a/8233/8235 audio driver 1.9.1-ac3
PCI: Found IRQ 4 for device 00:11.5
IRQ routing conflict for 00:11.5, have irq 3, want irq 4
via82cxxx: Six channel audio available
PCI: Setting latency timer of device 00:11.5 to 64
via82cxxx: timeout while reading AC97 codec (0xAA0000)
ac97_codec: AC97 Audio codec, id: ADS112 (Unknown)
via82cxxx: board #1 at 0xE000, IRQ 3
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 13:28:28 Jul 22 2004
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 3 for device 00:10.0
IRQ routing conflict for 00:10.0, have irq 10, want irq 3
IRQ routing conflict for 00:10.1, have irq 10, want irq 3
IRQ routing conflict for 00:10.2, have irq 10, want irq 3
IRQ routing conflict for 00:10.3, have irq 10, want irq 3
usb-uhci.c: USB UHCI at I/O 0xd800, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 3 for device 00:10.1
IRQ routing conflict for 00:10.0, have irq 10, want irq 3
IRQ routing conflict for 00:10.1, have irq 10, want irq 3
IRQ routing conflict for 00:10.2, have irq 10, want irq 3
IRQ routing conflict for 00:10.3, have irq 10, want irq 3
usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 3 for device 00:10.2
IRQ routing conflict for 00:10.0, have irq 10, want irq 3
IRQ routing conflict for 00:10.1, have irq 10, want irq 3
IRQ routing conflict for 00:10.2, have irq 10, want irq 3
IRQ routing conflict for 00:10.3, have irq 10, want irq 3
usb-uhci.c: USB UHCI at I/O 0xd000, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
PCI: Found IRQ 3 for device 00:10.3
IRQ routing conflict for 00:10.0, have irq 10, want irq 3
IRQ routing conflict for 00:10.1, have irq 10, want irq 3
IRQ routing conflict for 00:10.2, have irq 10, want irq 3
IRQ routing conflict for 00:10.3, have irq 10, want irq 3
ehci_hcd 00:10.3: VIA Technologies, Inc. USB 2.0
ehci_hcd 00:10.3: irq 10, pci mem e0882000
usb.c: new USB bus registered, assigned bus number 4
ehci_hcd 00:10.3: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 6 ports detected
hub.c: connect-debounce failed, port 2 disabled
irda_init()
hub.c: new USB device 00:10.0-2, assigned address 2
usb.c: USB device 2 (vend/prod 0x4b8/0x30b) is not claimed by any active driver.
eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.
usb.c: registered new driver hiddev
usb.c: registered new driver hid
input: USB HID v1.00 Keyboard [EPSON EPSON Presentation Remote] on usb1:2.0
input: USB HID v1.00 Mouse [EPSON EPSON Presentation Remote] on usb1:2.1
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
via_audio: ignoring drain playback error -11
via_audio: ignoring drain playback error -11
PS The sound is onboard and called AD1980 SoundMax. My motherboard is an Asus, and I have searched the Asus HCL section of this website.

Last edited by malbery; 08-18-2004 at 06:01 AM.
 
Old 08-18-2004, 06:07 AM   #2
fredgt
Member
 
Registered: Feb 2004
Location: Belgium
Distribution: Suse 9.1 Pro / Gentoo
Posts: 114

Rep: Reputation: 15
have you tried alsamixer or alsamixer gui. These are the original volume controle utilities of the alsa drivers.
I've got the same motherboard (ASUS A7V8X-X)
When you try alsamixer you have 4 <VIA DXS> channels. Unmute them and put them all on 100%. (Also try check that the MASTER channels PCM and SURROUND are not muted or on 0%)
 
Old 08-18-2004, 06:19 AM   #3
malbery
Member
 
Registered: Aug 2004
Distribution: Debian sarge 2.6.8-2-k7
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
I've got the same motherboard (ASUS A7V8X-X)
Greeeat! It can work at least.


Hmm. I installed the alsamixer package. It runs an immediately exits with a message box: "alsamixer: function snd_ctl_open failed for default: No such file or directory". Am I missing packages?

There's a lot of alsa packages available. Don't I need some of them in order to have it recognise my card properly? Or is that already happening?

...

I installed alsa-utils. Now I have alsamixer too. And something called speaker-test. They don't help much though:

Code:
$ alsamixer

alsamixer: function snd_ctl_open failed for default: No such device
$ speaker-test

speaker-test 1.0.5

Playback device is plughw:0,0
Stream parameters are 48000Hz, S16_LE, 1 channels
Sine wave rate is 440.0000Hz
Playback open error: No such device

Last edited by malbery; 08-18-2004 at 06:29 AM.
 
Old 08-18-2004, 07:42 AM   #4
fredgt
Member
 
Registered: Feb 2004
Location: Belgium
Distribution: Suse 9.1 Pro / Gentoo
Posts: 114

Rep: Reputation: 15
I think you are missing some kernel modules that should be loaded.
This is my lsmod(only the one's having something to do with sound). The names of the modules can be different because i'm using a Mandrake kernel. 2.6.3-15MDK.


Module Size Used by

snd-seq-oss 31232 0
snd-seq-midi-event 7552 1 snd-seq-oss
snd-seq 51024 4 snd-seq-oss,snd-seq-midi-event
snd-pcm-oss 51812 0
snd-mixer-oss 17952 1 snd-pcm-oss
snd-via82xx 24160 1
snd-pcm 93156 2 snd-pcm-oss,snd-via82xx
snd-timer 24484 2 snd-seq,snd-pcm
snd-ac97-codec 58148 1 snd-via82xx
gameport 4480 1 snd-via82xx
snd-page-alloc 11972 2 snd-via82xx,snd-pcm
snd-mpu401-uart 7072 1 snd-via82xx
snd-rawmidi 23616 1 snd-mpu401-uart
snd-seq-device 8008 3 snd-seq-oss,snd-seq,snd-rawmidi
snd 52484 14 snd-seq-oss,snd-seq-midi-event,snd-seq,snd-pcm-oss,snd-mixer-oss,snd-via82xx,snd-pcm,snd-timer,snd-ac97-codec,snd-mpu401-uart,snd-rawmidi,snd-seq-device
soundcore 9248 1 snd

ext3 110408 1
jbd 54360 1 ext3
 
Old 08-18-2004, 08:03 AM   #5
malbery
Member
 
Registered: Aug 2004
Distribution: Debian sarge 2.6.8-2-k7
Posts: 60

Original Poster
Rep: Reputation: 15
Ok, I am clearly missing some modules!

I found a page listing some of the modules it your list: http://www.alsa-project.org/alsa-doc...module=via82xx but I'd rather stick to something the package system can deliver me.

Can you check what rpms you installed? Any featuring alsa? And did you need to get alsa sources and build your module, or anything like that?

thanks!

Last edited by malbery; 08-18-2004 at 08:05 AM.
 
Old 08-19-2004, 08:26 AM   #6
malbery
Member
 
Registered: Aug 2004
Distribution: Debian sarge 2.6.8-2-k7
Posts: 60

Original Poster
Rep: Reputation: 15
fredgt,

Ok, some progress. I read on another thread that alsa is better supported by kernel 2.6. Too true! After a quick atp-get of the latest kernel image, and reboot:

Code:
# lsmod | grep snd
snd_via82xx            29604  0
snd_ac97_codec         69572  1 snd_via82xx
snd_pcm_oss            54312  0
snd_mixer_oss          19904  1 snd_pcm_oss
snd_pcm                97508  2 snd_via82xx,snd_pcm_oss
snd_timer              25540  1 snd_pcm
snd_page_alloc         11720  2 snd_via82xx,snd_pcm
snd_mpu401_uart         8000  1 snd_via82xx
snd_rawmidi            25408  1 snd_mpu401_uart
snd_seq_device          8264  1 snd_rawmidi
snd                    56932  9 snd_via82xx,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
gameport                4736  2 snd_via82xx,analog
soundcore              10400  3 snd,via82cxxx_audio,sound
So now I have the right modules. But I still have problems:

Code:
$ alsamixer

alsamixer: function snd_ctl_open failed for default: No such device
Running alsaconf lists my card, and says configuration is done. A failure is displayed in the terminal window (and annoying cleared from the screen). Performing "alsa start" manually shows up the problem:

Code:
$ /etc/init.d/alsa start
Restoring ALSA mixer settings ... failed:
       You may want to run 'alsactl restore' manually to view any errors.
$ alsactl restore
alsactl: load_state:1134: No soundcards found...
What next? Any suggestions?
 
Old 08-19-2004, 08:52 AM   #7
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Have you looked at the /etc/init.d/alsa file in a text editor? Maybe all the sound cards are commented, or incorrectly set.
 
Old 08-19-2004, 09:36 AM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by malbery
fredgt,

Ok, some progress. I read on another thread that alsa is better supported by kernel 2.6. Too true! After a quick atp-get of the latest kernel image, and reboot:

Code:
# lsmod | grep snd
soundcore              10400  3 snd,via82cxxx_audio,sound
So now I have the right modules. But I still have problems:


What next? Any suggestions?
You still have the OSS modules being loaded from somewhere. Do you have discover and hotplug installed? If so you will need to go into I think /etc/hotplug/blacklist_something file and put the modules sound and via82cxxx_audio in there to prevent them from being loaded. It may be as simple as editing the /etc/modules file and removing them from there if they are in the file. And do not forget to run the alsaconf as root to setup the card once you have sorted out the OSS modules.
 
Old 08-19-2004, 11:38 AM   #9
malbery
Member
 
Registered: Aug 2004
Distribution: Debian sarge 2.6.8-2-k7
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks for the help. (Incidentally motub, I did have a peak at the alsaconf script. But scripting is a bit beyond me at this point).

HappyTux - so Alsa and Oss aren't compatible? I looked using modconf and I have four modules from kernel/sounds/oss but also others in places like kernel/source/core/oss. Is it just sound and via82cxxx_audio that I should be worrying about?

I think I located the file you referred to. /etc/hotplug/blacklist. (and I do have hotplug and discover installed). I added these two lines to the file:

Code:
sound
via82cxxx_audio
Then I rebooted. Unfortunately I encountered a problem. X no longer starts, and drops me out to the text-base login. I had a scout through dmesg and didn't spot anything out of place. I looked in /var/log/XFree86.0.log (or a similar name) and found three (EE) lines saying something about mice. The gist of it being that it couldn't access my ps mouse and "as a core device" X failed to start.

I figured this was most likely related to my blacklist edit. So I commented out my additions, and rebooted. I still have the same problem though. X fails to start citing my mouse as the problem.

Well, I'm in Windows now, and my mouse is working. Any ideas what this problem is? Sorry to be leading you away from the problem at hand.

Thanks for your time HappyTux.

PS I can get log files from sarge onto my windows partition. So I can post configuration files up here, etc.

Last edited by malbery; 08-19-2004 at 11:41 AM.
 
Old 08-19-2004, 11:57 AM   #10
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Well I see you have a ps/2 mouse from the boot messages so modprobe psmouse and modprobe mousedev to get the required support loaded then start the X server and add the module names to the file /etc/modules on a line by themselves.
 
Old 08-20-2004, 02:17 AM   #11
malbery
Member
 
Registered: Aug 2004
Distribution: Debian sarge 2.6.8-2-k7
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks HappyTux, I have X running again. Not sure how it happened though.

I added those two lines back into /etc/hotplug/blacklist. As far as I can tell it had no effect. lsmod still lists sound and via82cxxx_audio.

I'm still not sure why it is only these two modules that need to be deactivated.
Quote:
HappyTux - so Alsa and Oss aren't compatible? I looked using modconf and I have four modules from kernel/sounds/oss but also others in places like kernel/source/core/oss. Is it just sound and via82cxxx_audio that I should be worrying about?
Just in case, here is the full lsmod:
Code:
# lsmod
Module                  Size  Used by
snd_mixer_oss          19904  0
ipv6                  253024  8
smbfs                  69112  2
af_packet              22408  2
snd_via82xx            29604  0
snd_ac97_codec         69572  1 snd_via82xx
snd_pcm                97508  1 snd_via82xx
snd_timer              25540  1 snd_pcm
snd_page_alloc         11720  2 snd_via82xx,snd_pcm
gameport                4736  1 snd_via82xx
snd_mpu401_uart         8000  1 snd_via82xx
snd_rawmidi            25408  1 snd_mpu401_uart
snd_seq_device          8264  1 snd_rawmidi
snd                    56932  8 snd_mixer_oss,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
uhci_hcd               32592  0
pci_hotplug            34352  0
via_agp                 8768  1
agpgart                33960  1 via_agp
parport_pc             34944  0
parport                41544  1 parport_pc
ehci_hcd               31300  0
usbcore               113952  4 uhci_hcd,ehci_hcd
via82cxxx_audio        30152  0
uart401                11844  1 via82cxxx_audio
sound                  83372  2 via82cxxx_audio,uart401
soundcore              10400  3 snd,via82cxxx_audio,sound
ac97_codec             18700  1 via82cxxx_audio
via_rhine              21512  0
mii                     5184  1 via_rhine
crc32                   4352  1 via_rhine
via_ircc               26448  0
irda                  196096  1 via_ircc
nls_cp437               5760  6
tsdev                   7360  0
evdev                   9536  0
capability              4616  0
commoncap               7232  1 capability
mousedev               10444  2
psmouse                20232  0
ide_cd                 43204  0
cdrom                  39904  1 ide_cd
genrtc                  9672  0
vfat                   14656  3
fat                    46656  1 vfat
ext2                   72296  1
ext3                  126760  1
jbd                    61592  1 ext3
mbcache                 9220  2 ext2,ext3
ide_disk               19264  7
ide_generic             1472  0
via82cxxx              14044  1
ide_core              141592  4 ide_cd,ide_disk,ide_generic,via82cxxx
sd_mod                 21696  0
ata_piix                8004  0
libata                 41412  1 ata_piix
scsi_mod              124556  2 sd_mod,libata
unix                   28528  282
font                    8448  0
vesafb                  6688  0
cfbcopyarea             3776  1 vesafb
cfbimgblt               3072  1 vesafb
cfbfillrect             3712  1 vesafb
I have these packages installed with the name oss in them: alsa-oss, gstreamer0.8-oss, libsdl1.2debian-oss. Would it help to remove them?
 
Old 08-20-2004, 02:37 AM   #12
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Those packages you have installed should be fine and have nothing to do with the problem it is discover and hotplug doing it. Here is what it looks like for my modules loaded when working correctly.

Code:
[HappyTux:/home/stephen]# lsmod
Module                  Size  Used by
nvidia               4819316  12
apm                    17636  2
snd_via82xx            19556  1
snd_ac97_codec         66116  1 snd_via82xx
snd_pcm_oss            49448  0
snd_mixer_oss          17440  2 snd_pcm_oss
snd_pcm                83240  2 snd_via82xx,snd_pcm_oss
snd_timer              20100  1 snd_pcm
snd_page_alloc          9032  2 snd_via82xx,snd_pcm
snd_mpu401_uart         5792  1 snd_via82xx
snd_rawmidi            19460  1 snd_mpu401_uart
snd_seq_device          6440  1 snd_rawmidi
snd                    45636  9 snd_via82xx,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               6848  2 snd
And now that I look at mine I see that you still have the uart401 module still being loaded you may want to add that to the blacklist. You need to not have these modules loaded because they will take over the sound card before the alsa modules have a chance to do it therefore totally messing up the sound. Try this as root so I can see where the modules are getting loaded from.

Code:
[HappyTux:/home/stephen]# grep -i via82cxxx_audio /etc/*
/etc/modules:#via82cxxx_audio
And post the results here so I can see it.
 
Old 08-20-2004, 08:17 AM   #13
malbery
Member
 
Registered: Aug 2004
Distribution: Debian sarge 2.6.8-2-k7
Posts: 60

Original Poster
Rep: Reputation: 15
Does this help?
Code:
$ grep -i via82cxxx_audio /etc/*
$ grep -R -i via82cxxx_audio /etc/*
/etc/hotplug/blacklist.d/alsa-base:via82cxxx_audio
/etc/hotplug/blacklist:via82cxxx_audio
I'm not convinced hotplug is blacklisting anything:
Code:
$ tail /etc/hotplug/blacklist
wdt977
wdt
wdt_pci

sound
via82cxxx_audio
uart401
These three modules are still in the lsmod output:
Code:
via82cxxx_audio        30152  0
uart401                11844  1 via82cxxx_audio
sound                  83372  2 via82cxxx_audio,uart401
"alsa start" still the same problem:
Code:
# /etc/init.d/alsa start
Restoring ALSA mixer settings ... failed:
       You may want to run 'alsactl restore' manually to view any errors.
Thanks for your help HappyTux
 
Old 08-20-2004, 08:47 AM   #14
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
I almost think this one has me baffled unless you remove both hotplug and discover or just discover to stop it from loading the modules maybe I think I am out of ideas. You do not need either package for the system to work you will just have to add your own module names to /etc/modules for them to load if you add new hardware this is what I do. One more idea though and it is a dirty hack to do but you can just delete the offending modules from the kernel tree for your running kernel there is no way they will ever get loaded then.

Code:
[HappyTux:/home/stephen]# apt-cache policy discover
discover:
  Installed: (none)
  Candidate: 2.0.4-5
  Version Table:
     2.0.4-5 0
        990 http://ftp.de.debian.org testing/main Packages
        600 http://ftp.de.debian.org unstable/main Packages
[HappyTux:/home/stephen]# apt-cache policy hotplug
hotplug:
  Installed: (none)
  Candidate: 0.0.20040329-14
  Version Table:
     0.0.20040329-14 0
        990 http://ftp.de.debian.org testing/main Packages
        600 http://ftp.de.debian.org unstable/main Packages
 
Old 08-20-2004, 11:18 AM   #15
malbery
Member
 
Registered: Aug 2004
Distribution: Debian sarge 2.6.8-2-k7
Posts: 60

Original Poster
Rep: Reputation: 15
Thumbs up

That's it!
Quote:
[HappyTux:/home/stephen]# apt-cache policy <b>discover</b>
Sorry, I'd made the mistake of assuming that the discover1 package was discover.
Code:
# apt-get install discover
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  discover-data libdiscover2
The following packages will be REMOVED:
  discover1 discover1-data libdiscover1
The following NEW packages will be installed:
  discover discover-data libdiscover2
0 upgraded, 3 newly installed, 3 to remove and 0 not upgraded.
alsaconf went smoothly. And now my sound works!

Thank you very much HappyTux. My system is so much more valuable with working sound. (And a thanks too to fredgt for getting the ball rolling)

Last edited by malbery; 08-20-2004 at 11:21 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No sound coming from my sound blaster audigy 2 ZS platinum sound card msab Linux - Hardware 9 12-05-2010 05:10 AM
Sound card Issues in Suse 9.3 with a ??Conexant?? Sound card in Gateway laptop hackerarchangel Linux - Hardware 3 12-30-2005 11:35 PM
sound card help ESS1978 Sound Card - maestro driver fatrandy13 Linux - Hardware 1 05-03-2005 01:43 AM
keep onboard sound card enabled when a second sound card has been added ViralHex Linux - Hardware 0 06-08-2004 01:06 PM
Diabling onboard sound card and enabling pci slot sound card abhatia Linux - Hardware 4 01-12-2004 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration