Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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):
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.
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%)
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
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.
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:
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...
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:
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.
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.
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.
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?
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.
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.
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.