xmms & mp3 & no sound


Forum: Multimedia
Topic: xmms & mp3 & no sound
started by: cmk77

Posted by cmk77 on May 10 2006,06:52
I'm trying to play an mp3 with xmms, is this supposed to work or does it require myDSL extensions? This is what I get:
Code Sample

$xmms file.mp3
libasound.so.2: cannot open shared object file: No such file or directory
/usr/lib/xmms/Input/libcdread.so: undefined symbol: playlist_generate_shuffle_li
st
libmikmod.so.2: cannot open shared object file: No such file or directory
libGL.so.1: cannot open shared object file: No such file or directory

It looks as if xmms is indeed playing, but there's no sound. Any ideas? (My pc has intel onboard sound)

Posted by piccolo on May 10 2006,09:09
Quote
is this supposed to work or does it require myDSL extensions?

Yes, it would have to work. MyDSL extensions is not required to play a mp3 using the XMMS player. At least until where i do know.
Try play using mplayer

Posted by tuxedo on May 10 2006,10:29
i've had the same problem with an intel sound card, chipset AC'97 (i810 drivers). I couldn't have to work with OSS. so i tried to install alsa with the dsl package, the sound card was detected, but i coul'd'nt access to alsamixer to unmute the driver.Probably on a clean reinstall of alsa (on hard disk) it should work. Maybe it could be useful to have, somewhere in the wiki, a tutorial for each problematic sound card when someone has made it work, either on a hard disk install, or frugall install, ok from live cd.
Posted by cmk77 on May 10 2006,12:28
Yes, I have the same one. I would expect some like
Code Sample

CONFIG_SND_AC97_CODEC=m
CONFID_SND_INTEL8x0=m

in the kernel config, but no such luck...
Does anyone have it working with OSS?

Posted by piccolo on May 10 2006,22:32
Tuxedo and cmk77
The utility sndconfig can configure the i810 sound chipset, so:

1. Is a Debian utility then you need enable APT to download it (if was not enable before):
Apps >> Tools >> Enable Apt

2. Open ATerminal and write commands:

sudo su

root@box:/home/dsl# apt-get update

3. After the process is finished, download the Debian utility package.

apt-get install sndconfig

4. Execute the utility so:

sndconfig

The configuration is automatic and play a sound sample if it success.

IMPORTANT: If automatic configuration fails then you try the manual configuration, so:  

sndconfig --noprobe

Choose the i810 AC97 driver and then choose between the different resource assignation combinations (irq, dma, port). There are several combinations by defect then the choise is easy.
If fails the try other combination and so on.

Posted by cmk77 on May 12 2006,06:47
Thanks piccolo, I'll give it a shot. (By the way, the missing libs have nothing to do with it, I get the same on a machine with via sound chipset which does work.)
Posted by tuxedo on May 12 2006,08:26
Thanks Picolo,

I've tried to install sndconfig a few time ago...it's on a laptop where i haven't an internet connexion and for now i boot toram from the live cd...so i got the dsl-dpkg packages, installed it, along with the gnu-utils.dsl, and tried a dpkg -i sndconfig.deb (which i got on a debian repository)...
well i had no luck: it failed, coz it couldn't open package info file in /var/lib/dpkg/status. i tried to boot with the write option, tried to creat tha file , but it didn't help.
well, never mind i 've got a nice sound  with dsl  from an old Pentium 2 with a soundblaster card.

Posted by cmk77 on May 12 2006,10:32
I have a 56Kb/s modem. In practice I'm getting 5KB/s so I guess
Code Sample

$apt-get update
$apt-get install sndconfig

would probably take a hours... Or am I being too pessimistic?

Posted by piccolo on May 12 2006,11:59
Please cmk77, be optimist!
Posted by piccolo on May 12 2006,12:03
Tuxedo and cmk77

OTHER ALTERNATIVE

1. Remove ALL sound modules (IMPORTANT:REMOVE ALL SOUND MODULES), so:

sudo su
rmmod sound
rmmod soundcore

There are more modules than above. There exists an order, if a module can't be remove then other module must be remove before. Finally the last module is soundcore ever. If you can't remove "soundcore" module, then still you have not removed all the sound modules.
NOTE: the result from lsmod command shows all installed modules so you can know about other sound modules not above listed.

2. Execute command:

cat /proc/interrupts

Below a example of result from "cat /proc/interrupts"  

         CPU0      
0:    10784844          XT-PIC  timer
1:       27945          XT-PIC  keyboard
2:           0          XT-PIC  cascade
3:      310046          XT-PIC  orinoco_cs
8:           1          XT-PIC  rtc
11:          0          XT-PIC  Texas Instruments PCI1251A, Texas Instruments PCI1251A (#2), usb-uhci
12:    1380425          XT-PIC  PS/2 Mouse
14:      74469          XT-PIC  ide0
15:       2202          XT-PIC  ide1
NMI:         0
LOC:         0
ERR:         0
MIS:         0

First column is the assigned interrupts (assigned irqs).
In this example, free irqs are: 6, 7, 9, 10, 13.
That will be useful for 4 step

3. Open the /etc/modules.conf file and look for a line like to:

options i810_audio io=<io value> irq=<irq value> dma=<dma value> dma2=<dma2 value> mpuio=<mpuio value> mpuirq=<mpuirq value>

4. Do following 3 commands inserting on the last command the same values on /etc/modules.conf, but changing (if necessary) the <irq value> and <mpuirq value> by any free irq value from 2 step. Both two values must be differents.

insmod soundcore
insmod sound
insmod i810_audio io=<io value> irq=<irq value> dma=<dma value> dma2=<dma2 value> mpuio=<mpuio value> mpuirq=<mpuirq value>

If not errors then the module was installed correctly.

Posted by tuxedo on May 12 2006,13:28
OK, thanks a lot , it worked for me, i'll put it in bootlocal.sh.
In fact i think the problem came from the shared irq, but, moreover, the module snd was not loaded at boot.

Posted by tuxedo on May 12 2006,16:25
Here is what i've put in my bootlocal.sh:
(maybe it could be useful to others)

rmmod i810_audio
rmmod ac97_code
rmmod soundcore
insmod soundcore
insmod sound
insmod ac97_codec
insmod i810_audio irc 10

Posted by piccolo on May 13 2006,10:32
Good Tuxedo, I'm glad it worked. Now you can help cmk77.
I believe the problem most frequent related to audio on DSL is as you says the share interruption and it could be fixed by change or add something on the program that does the autoconfiguration during the boot. Ask for this could be posted in DSL Ideas and Suggestions Forum. Meanwhile we must use this alternatives.
I'm searching for the most general method to write a howto to fix this problems but I wait for more feedback about different sound chipsets from other guys. Perhaps my last method is the best. What is your opinion?
Quote
the module snd was not loaded at boot.
Fortunately because the 'snd' module is un ALSA module and must not be loaded (now you is using OSS). The intent to load the 'snd' module is a residual ALSA configuration from when you installed ALSA to hard disk.
Remember you when I said you: 'try to install ALSA but booting DSL from LiveCD, not from hard disk installation'?
That was the reason.

Posted by kerry on May 13 2006,12:50
Good job.
Posted by tuxedo on May 13 2006,17:16
hi Piccolo,

yes i've mixed up, it was not snd, but sound module, and i'm running oss :), now it works and i can gladly listen to music on my laptop.
Well about howtos, i think i would be a good thing to put, for each sound card which need some tweaking (changing irq, or else), the method wich works...for instance with that sound car, it works with oss, so the method you mentioned in your last post works

Posted by cmk77 on May 16 2006,06:49
piccolo, your second alternative is by far the most attractive, simple and no downloading. However, it does not work for me in DSL-2.2:
- in /etc/modules.conf there's no line "insmod i810_audio ..."
- when I try to insmod i810_audio with a different (free) irq I get a warning saying the parameter irq=<irqvalue> is ignored

Posted by piccolo on May 16 2006,09:27
Quote
/etc/modules.conf there's no line "insmod i810_audio ..."

Sorry, I had mistake on that line. I edited again that post to correct it with this line:
Quote
options i810_audio io=<io value> irq=<irq value> dma=<dma value> dma2=<dma2 value> mpuio=<mpuio value> mpuirq=<mpuirq value>

If still you do not find that line on /etc/modules.conf file then perhaps you have a different sound chipset. Please, send me a copy of your /etc/modules.conf file.

Posted by cmk77 on May 17 2006,07:02
I'm booting DSL-2.2 from the cd, open aterm and type:
Code Sample

$ lsmod | grep i810
i810_audio            25208   0
ac97_codec            11916   0  [i810_audio]
soundcore               3428   2  [i810_audio]

But it doesn't show up in modules.conf:
Code Sample

$ grep i810 /etc/modules.conf
$

I do have the i810 chipset, in dmesg I see something like "i810: Intel ICH5 found..."
I will first update to 2.4, maybe that will help, the Notes say 'improved sound features', besides i'm looking forward to tcc :) Thanks for your help, I'll let you know how it goes.

Posted by piccolo on May 17 2006,11:42
You have reason, that line is not. The /etc/modules.conf file has information about resource assignations for the sound chipset only on a DSL hard disk installation. (The Tuxedo case)
I wonder if Tuxedo needed really the information from /etc/modules.conf file. According to his post seem that Tuxedo inserted the i810_audio module not specifying any resource assignation (using the resource assignation by defect)

Try to do the same, exactly so:

sudo su
rmmod i810_audio
rmmod ac97_code
rmmod sound
rmmod soundcore
insmod soundcore
insmod sound
insmod ac97_codec
insmod i810_audio

Posted by tuxedo on May 17 2006,12:01
Hi,

Yes, it worked that way for me, i just had to specify a free IRQ to the i810 module In fact i launched it with default parameters, just specifying irq 10. I, too have not found the complete line of i810 modules in /etc/modules.conf,
my grep i810 /etc/modules.conf aloso returned nothing.
but lsmod returned, as for cmk77:
$ lsmod | grep i810
i810_audio            25208   0
ac97_codec            11916   0  [i810_audio]
soundcore               3428   2  [i810_audio]

Hope it helps

Posted by piccolo on May 17 2006,14:45
Thanks for the new input Tuxedo.
Before you wrote that the last line was:
Quote
insmod i810_audio irc 10

Please Tuxedo, would make clear if the correct syntax really was this:
Code Sample
insmod i810_audio irq=10

Posted by tuxedo on May 17 2006,15:05
well, in fact what i typed was exactly:
insmod i810_audio irq 10 (without =...sorry for the type mismatch in my previous post).
But my guess is that irq 10 was ignored, so it came to the same thing as typing: insmod i810_audio
so i think that the complete sequence in your last post, piccolo, should work for cmk77.

Posted by tuxedo on May 17 2006,18:56
i've checked, a simple insmod i810_audio works.
Posted by cmk77 on May 23 2006,07:41
I updated to DSL-2.4, still no sound, so I tried the sequence with removing and re-inserting the relevant modules but no luck either.
Posted by piccolo on May 23 2006,10:28
Please, post the result from lsmod command.
Posted by cmk77 on May 24 2006,07:32
This is the lsmod output
Code Sample

Module                  Size  Used by    Not tainted
nls_cp437               4348   0 (autoclean)
i810_audio             25176   1
ac97_codec             12140   0 [i810_audio]
sound                  55276   0 (unused)
soundcore               3428   4 [i810_audio sound]
apm                     9768   1 (autoclean)
af_packet              13608   0 (autoclean)
efs                     7436   0 (autoclean)
hfs                    77248   0 (autoclean)
minix                  19816   0 (autoclean)
nls_iso8859-1           2844   6 (autoclean)
ntfs                   50944   0 (autoclean)
xfs                   507012   0 (autoclean)
reiserfs              169584   0 (autoclean)
ext3                   64388   0 (autoclean)
jbd                    46804   0 (autoclean)  [ext3]
agpgart                44388   0 (unused)
e100                   51128   0
hw_random               2700   0 (unused)
serial                 52228   0 (autoclean)
ieee1394              183300   0
mousedev                3832   1
hid                    22788   0 (unused)
input                   3168   0 [mousedev hid]
pcmcia_core            39840   0
ide-cd                 28768   0
rtc                     7036   0 (autoclean)
cloop                  39204   2
usb-storage            61952   0
usb-uhci               21516   0 (unused)
usbcore                58016   1 [hid usb-storage usb-uhci]
ide-scsi                9040   1

Strange thing: the sound module is not being used. What is this module normally used for?

Posted by piccolo on May 24 2006,11:43
Quote
Strange thing: the sound module is not being used. What is this module normally used for?

A good question. The result from "lsmod | grep i810" command for Tuxedo with audio working:

i810_audio            25208   0
ac97_codec          11916   0  [i810_audio]
soundcore              3428   2  [i810_audio]

Then I guess the "sound"  module is not used by the i810_audio module but do not know if "sound" module was loaded also on the Tuxedo computer because the lsmod command was conditioned by "grep 810".
-----------------------------------------------------------------------------------------
However the "i810_audio" module was loaded then the sound should work.
When you did the "insmod i810_audio" command. Warning Messages?
What message when you does the test play a sound?

If not messages, then try:

-Increment the volume level settings using Dmix and check that the output was not set to "mute".
-I recommend you, to avoid other error sources, test play sound so:

Using XMMS, chosse "Play Location" and write "tone://1000" (without quotation marks).
That should generate a 1000 hertz tone.

Posted by cmk77 on June 02 2006,08:11
No warning messages when insmod i810_audio
All volume settings at 67% using wmix
no sound for tone://1000

I'm giving up, i'll try puppy or feather instead. Thanks for suggestions and for showing interest!

Posted by piccolo on June 02 2006,10:07
Not warning messages when the driver module was inserted. But warning message when XMMS play "tone://1000"?
What values was assigned for the "irq", "mpu_irq", "dma" and "dma16" parameters? (results from "cat /proc/interrupts" and "cat /proc/dma" commands).

Posted by tedmoore99 on June 03 2006,00:43
Picollo:
Still trying to help all of the "soundless," well you can count me out.  I installed vmware for windows and then installed the dsl-2.4-vmx version.  After messing with it awhile, I got the sound to work.  So I guess I will put my faithful Compaq Armada 1750 laptop away, and enjoy my "virtual" dsl computer.
Again, thanks for all of your help!
--Ted

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.