no sound at all, sc found..


Forum: Multimedia
Topic: no sound at all, sc found..
started by: bravo-uniform-golf

Posted by bravo-uniform-golf on June 03 2006,12:27
hi,

Im having a problem... my DSL finds the installed sound card (an isa with OPTi 16 chip) and loads its drivers (mad16)...
using sndconfig I hear on my speakers that voice sample, but with XMMS I cant play any kind of music file... I mean, the song is playing but I cnat hear nothing! btw, I used Mplayer also, but it seems I managed to f**** him sumhow :s now it wont open...
so, Im asking u, is there any else music player except xmmms and mplayer to run on DSL? or could u tell me how to uninstall completely mplayer and/or wots the problem with xmms?

thanks a lot

Posted by piccolo on June 03 2006,22:00
-Using Dmix application, make sure your PCM mixer volume and MASTER mixer volume are also set to 100%.
And make sure your speakers are plugged into the speaker out jack and not the line out jack on your soundcard.
-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.
-Remember that the audio configuration done by sndconfig utility is lost when the computer reboot.
You can to do the audio configuration permanent so:
Next to execute the sndconfig utility you will find in the /etc/modutils/sndconfig file one line like to:  

options mad16 io=0x530 irq=7 dma=0 dma16=1 mpu_io=0x330 mpu_irq=9

You must add this line to the /opt/bootlocal.sh file but changing "options" by "insmod" so:

insmod mad16 io=0x530 irq=7 dma=0 dma16=1 mpu_io=0x330 mpu_irq=9

Posted by bravo-uniform-golf on June 04 2006,13:06
since im a noob, ill ask
in dmxi sound manager, where is that PCM and master volumes? I can choose only left and right speaker volume...
I tried to make 1000Hz tone with xmms but it gives me an error...
I am running OSS output plugin on xmms...
now even sndconfig wont run :s dunno y..
and how do I change that sndconfig file? I can only view it but cant make any modifications... sry ppl, but this is my 2nd time im working on a linux environment...

Posted by piccolo on June 05 2006,19:13
Fortunately, also I have a ISA Plug and Play sound card with chipset OPTI 82C931 working with the mad16 driver on DSL.
Unfortunately, the DSL sound autoconfiguration fails with ISA plug and Play. Manual configuration is required or to use "sndconfig" utility.
It is normal that sndconfig utility do fail several times until inexplicably runs. If at least one time sndconfig it could play a sound sample then the correct sound configuration still remains on the /etc/modutils/sndconfig file.

Follow exactly this steps:

1. Open the /etc/modutils/sndconfig file using "beaver" text editor.
You must see on this file one line like to:

options mad16 io=0x530 irq=7 dma=0 dma16=1 mpu_io=0x330 mpu_irq=9

This line is useful later on 3 step.
2. The file that you must modify is /opt/bootlocal.sh
In Linux to modify configuration files (as bootlocal.sh) "root" permission is required, so

Open Aterminal and write following commands:

sudo su
beaver

That launch the beaver text editor with root permission.
Using beaver open the /opt/bootlocal.sh file.

3- Add following lines to /opt/bootlocal.sh file but on the last line replacing the values for "irq", "dma", "dma16", "mpu_io", and "mpu_irq" parameters by the values that you have seen on /etc/modutils/sndconfig file (first step). You directly can to do copy and paste that line but remember to replace "options" by "insmod" as you can see below.

rmmod mad16
rmmod gameport
rmmod ad1848
rmmod uart401
rmmod sb_lib
rmmod sound
rmmod soundcore
insmod soundcore
insmod sound
insmod sb_lib
insmod uart401
insmod ad1848
insmod gameport
insmod mad16 io=0x530 irq=7 dma=0 dma16=1 mpu_io=0x330 mpu_irq=9

4- Save changes, reboot the computer and test play tone://1000

Posted by w0lfinator on July 10 2006,04:13
ok..i am having this same problem..but i cannot find sndconfig. I opened all the way into modutils, but there is no sndconfig there. (just these options: 0keep, actions, aliases, apm, autofs, linux-wlan-ng, ndiswrapper, paths, and ppp)
Posted by piccolo on July 10 2006,10:40
The "sndconfig" is a Debian utility that you must download from internet.

Procedure:

1. You need enable APT (if was not enable before):
Apps >> Tools >> Enable Apt

2. Open ATerminal and write commands:

dsl@box:~$ sudo su

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

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

root@box:/home/dsl# apt-get install sndconfig

4. Execute the utility:

root@box:/home/dsl# sndconfig

The utility automatically do the configuration and play a sound sample.

Posted by w0lfinator on July 10 2006,20:45
the computer i have dsl on..is not connected to the internet..when i type in "apt-get update" it says command not found
Posted by piccolo on July 11 2006,09:13
Then you must try manual configuration, which can be from a bit more difficult to impossible.
What is your sound chipset? Knowing this information I can learn you another configuration method that require neither "sndconfig" utility nor internet connection.

If the sound card is Sound Blaster compatible the following procedure could solve the problem.

1. Open Aterminal and write:
sudo su
cat /proc/interrupts

Below a example of the output from "cat /proc/interrupts" command.  

      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, 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 (irq). The assigned irqs are being values used actually by the system.
In this example, free irqs are: 4, 6, 7, 9, 10, 13.  (The free irqs are values not used by the system yet)
The free irq are possibles values that you can assign to "irq" parameter that you will use in the next step.

2. Having that information and according to the result from our before step you must do one (only one) from this six commands:

modprobe sb io=0x220 irq=4 dma=1 dma16=5 mpu_io=0x330
else:
modprobe sb io=0x220 irq=6 dma=1 dma16=5 mpu_io=0x330
else:
modprobe sb io=0x220 irq=7 dma=1 dma16=5 mpu_io=0x330
else:
modprobe sb io=0x220 irq=9 dma=1 dma16=5 mpu_io=0x330
else:
modprobe sb io=0x220 irq=10 dma=1 dma16=5 mpu_io=0x330
else:
modprobe sb io=0x220 irq=13 dma=1 dma16=5 mpu_io=0x330

Note that for irq parameter, the values was free irq according to our example. You will use the irq specific for your system values given by the output from "cat /proc/interrupts" command.  

3. Then, try this play sound test without audio file:

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

If you can't hear the tone then it worked.

After this explanation you will love the "sndconfig" utility.

Posted by w0lfinator on July 12 2006,15:30
ok..that didnt work. I guess I don't have soundblaster. Unfortunately I don't know what my sound card is, I bought this on Ebay. It is a Fujitsu E362 Lifebook, I can't find what sound card it comes with either online.
Posted by piccolo on July 13 2006,09:43
Sorry, I can't know your sound controller from that information.
During the DSL boot, before the desktop is launched there are many messages. Then you should read: SOUNDCARD =.....
What read you after SOUNDCARD? This is the driver assigned by DSL. DSL make not mistake in the driver choice, but DSL can make mistake when assigns "irq" and "dma" parameters to driver.
The sound problems are very frequent on old computers that use ISA Plug and Play sound cards but I guess you bought recently the computer then the problem also could be the following:
In Linux there are two driver families or types: ALSA and OSS.
DSL use OSS as sound system by default. The newer sound controller could not have a OSS driver since that OSS is an older sound system than ALSA. However you can install ALSA from a MyDSL extension. You need internet connection but also you can download the ALSA MyDSL extension file using another computer and next copy the file from some media onto your Fujitsu E362 Lifebook.
Quote
ok..that didnt work. I guess I don't have soundblaster.

Only one test is not conclusive.
Any message after the modprobe command?

Really it should a miracle if the sound run after only one test, due this method is an iterative process of test and error. Before I did not mention to add not more complexity to the explanations that also you should try different values for "dma1" and "dma16" parameters.
The possibles values are: 0,1,2,3 and 5
The values must be differents between they. (dma1 different of dma16)
Also the "mpu_irq" parameter need other free irq value different of "irq" parameter. Values that you know from "cat /proc/interrupts" command.

The iterative process is so:

sudo modprobe sb io=0x220 irq="here a free irq value" dma="one of 0,1,2,3,5" dma16="one of 0,1,2,3,5" mpu_io=0x330 mpu_irq="here a free irq value"

If modprobe fails then:

sudo rmmod sb

Next, repeat "modprobe" command but only changing values for dma or dma 16 or both parameters so:

sudo modprobe sb io=0x220 irq="here a free irq value" dma="one of 0,1,2,3,5" dma16="one of 0,1,2,3,5" mpu_io=0x330 mpu_irq="here a free irq value"

If modprobe fails again then:

sudo rmmod sb

...etc

Posted by spmcg on July 13 2006,13:19
Hey, thanks, this worked a treat for me.  I have a Compaq Armada 1520 and just loaded DSL.  I also did not have sndconfig, but did the modprobe command, using irq=4, all other settings as in your first post and it worked!  
:laugh:

One question - will this "stick" or do I need to do this every time.

Now all I have to do is figure out how to connect to my wireless network! :angry:

Posted by piccolo on July 13 2006,14:53
Finally I hear that some one have success after many time!
Thanks for feedback spmcg
Right, that sound settings are lost when you reboot your computer. This is the final part of the puzzle.
But you can solve this problem easily, so:

Open Aterminal and write:

sudo su
beaver

That open beaver text editor with root permission.
Next, using beaver open /opt/bootlocal.sh file and add the line:

modprobe sb io=0x220 irq=4 dma=1 dma16=5 mpu_io=0x330

Save the changes.

Regarding to internet connection, ask in the Networking Forum (do a search on wireless first to see if the toppic has already been discussed) is the place to look.

Posted by angelv on July 17 2006,13:20
Hi,

in case in can be of use (or at least just as encouragement) to anyone, I wanted to let you know that I got sound working beautifully in my Thinkpad 600E with DSL (which I installed a couple of days ago, and so far I'm liking it quite a lot).

Basically I did the following (a re-mix of previous posts):

1. Disable the Fastboot option in the BIOS. This wasn't the exact name on the BIOS, but I cannot remember it now, perhaps QuickBoot, or something similar, but it is obvious which one it is, once you get in the Config menu.

2. My kernel options (in file menu.lst inside /boot/grub directory) are:

kernel /boot/linux24 root=/dev/hda1 vga=790 host=thinkpad toram lang=uk frugal restore=hda2 pnpbios=off mydsl=hda2

The relevant one here should be pnpbios=off

3. Then I installed sndconfig and played with the settings until I got the correct values for the sound card, looked at what other modules were being loaded, and then added this to my /opt/bootlocal.sh file:

# to get the sound working
modprobe sound
modprobe opl3 io=0x388
modprobe cs4232 io=0x530 irq=5 dma=1 dma2=0 mpuio=0x330 mpuirq=5

(these options came from the file /etc/modutils/sndconfig that the program sndconfig created)

With this sound is working fine, and since I backup the /opt directory, I have sound without doing anything after every reboot.

Perhaps not all the steps are strictly necessary, but as they say: "Don't fix it if it is working..."

Cheers,
Angel de Vicente

Posted by piccolo on July 18 2006,14:30
Many thanks Angel Vicente. Certainly it is encouragement.
Time ago I have recommended to look the /etc/modutils/sndconfig file to know the values for the parameters of the modprobe command. I agree is a strategy very useful.
However in many cases the people don't have or can't connect to internet with DSL to download the "sndconfig" utility becoming difficult to help they.
Perhaps a solution could be to include in the Mirrors another ISO DSL with the "sndconfig" utility so the users that have ISA PnP sound cards should to download this file.  
Another solution that I have been suggesting is to see the result from "cat /proc/interrupts" command to know free irq's. The command to see the free dma's is "cat /proc/dma". However seem that the last command don't reveal all the used dma's. Then an iterative process of test and error using the "modprobe" command is required doing too much difficult the work to the Linux newbies users.
More ideas are ever welcomed!

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