Sound not working


Forum: HD Install
Topic: Sound not working
started by: sankarv

Posted by sankarv on June 04 2007,05:28
Hi,


Im trying with DSL 2.1 on my PC (AMD SEMPRON 1.6 GHz) having VIA 82Cxxxx sound card (detected like this by DSL: Realtek AC97 audio). Im using DSL 2.1 since it has SATA support for my harddisk.I cannot hear sound. So i downloaded and installed 'sndconfig' using apt-get and then also it failed. It is reporting simply as 'An error occured'. Also i tried using ALSA for DSL 2.0 and 2.1 mydsl package. It is also failing. I dont know how to use modprobe. Please help configuring sound......


If sound is working i can have fully working DSL installed....

Posted by Juanito on June 04 2007,06:39
If you didn't do it already, it would be a good idea to go to the < ALSA site > and check if your card is supported. There is a VIA southbridge AC97 audio VIA82C686 using the ALSA snd-via82xx driver that sounds (sic) like it might work.

If your card is supported, you have the choice between using the sound drivers in 2.4.31 (OSS) or the ALSA drivers. If you want to use the ALSA drivers, I've found you need to remove any sound drivers, except "soundcore", that might be installed before you try the ALSA drivers. I believe the latest ALSA extension in the repository should work for you (gnu-utils also needs to be loaded?) and should load the required drivers automatically.

If you want to try the OSS drivers, you might want to check that DSL loaded the correct ones first. If you have the correct driver, you might also need to pass some parameters like the correct IRQ and DMA settings to use with the driver for your soundcard.

Posted by sankarv on June 08 2007,03:14
i booted dsl 2.1 in

dsl sata,alsa


it booted fine .


then i loaded gnuutils.dsl from repo..

then i  tried with all the alsa packages in the repository. they are installing fine but still sound cannot be heard even at very high volumes though alsamixer when run returns the error message "failed to load... default" something like that.


i think sound configuration is done using alsaconf.


it is available in only alsa4dslv2.dsl package .


i installed that and it is not displaying any via drivers. so it fails on running.


i also downloaded the "alsadrivers/alsaconf" package from the alsa site ( there are lot of files there and im confused what to download- i think these are the right ones) and tried to install them with gccxx.dsl(with libs) package. but it fails in ./configure step itself.


also in some places (during install as well as configure) it returns  "chown: not owned by root"

i dunno wat to do after this.


i tried running


sudo apt-get install alsa-utils


something like that. they are also failing




i also dunno the IRQ DMA parameters/ modprobe details.....



probably i can give information on the files which detects my sound card ( i dunno what are those files but can post if required provided giving me the path for those files in DSL live CD)  and possibly with that  it could be said what can be done for that...

Posted by Juanito on June 08 2007,05:46
Just to double-check - when you install the most recent alsa extension, I believe it is a two part process:

1. You install the extension
2. You select "install alsa" (or something like that) from the right-click menu

As well as installing the correct drivers, the second part creates a bunch of entries in /dev which allows your sound card to work.

Posted by sankarv on June 08 2007,05:50
ya i have selected mydsl entry alsa install after loading alsa and its installing it. i tried with all alsa extensions. it is creating entries in the dev as "/dev/dsp0", somethings like that.... but still i cant get sound working
Posted by Juanito on June 08 2007,09:18
It could be that your sound card is muted - if you use the alsamixer command from a terminal window, you should be able to check this from the volume/mute controls that appear.
Posted by sankarv on June 12 2007,03:58
Quote
i  tried with all the alsa packages in the repository. they are installing fine but still sound cannot be heard even at very high volumes though alsamixer when run returns the error message "failed to load... default" something like that.



i have said this too...



dont know what may be the reason for the error too. does sound anyway related with the kernel version???



i dont know the concept but my sound was working with ubuntu without any configuration ( it also uses alsa but with kernel 2.6.x).  possibly i may post required info detecting my sound card provided i need the path of that files which has info on my sound card.

Posted by Juanito on June 12 2007,04:04
Maybe you could post the output of "lsmod" after alsa is loaded and also the output from "lspci" (or "lsusb") relevant to your soundcard. I think the alsa sound card info is in /proc/asound or something like that.

Perhaps alsamixer is not included in the alsa extension - you could get it from the Knoppix 3.4 CD.

Posted by sankarv on June 12 2007,04:33
which alsa extension output i could post...



there are many packages here in repo..

alsa4dslv2only.dsl
alsadebs.dsl
ALSA 1.011Xxx.dsl
alsa.dsl

which i could use now from here for o/p as im using dsl 2.1 only now ......

Posted by Juanito on June 12 2007,05:19
I would suggest booting DSL with the "nosound" and without the "alsa" boot options. Once booted, use "lsmod" to check that there are no OSS (eg AC97 or similar) or snd-xxx modules loaded. If there are any sound modules loaded, remove them with "rmmod -f module_name" (sometimes you have to use the command more than once) - do not remove the soundcore module.

Next load the alsa.dsl extension from the system section of the repository and use the right-click menu to initialise it. Check using "lsmod" to see if the alsa modules are loaded, you should see something like this.
Code Sample
# lsmod
Module                  Size  Used by
snd_usb_audio          64448  0
snd_usb_lib            16512  1 snd_usb_audio
snd_rawmidi            23072  1 snd_usb_lib
snd_seq_device         10636  1 snd_rawmidi
snd_intel8x0           30528  0
snd_ac97_codec         72312  1 snd_intel8x0
snd_pcm_oss            47264  0
snd_mixer_oss          18304  1 snd_pcm_oss
snd_pcm                77316  4 snd_usb_audio,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              23556  1 snd_pcm
snd_page_alloc         11268  2 snd_intel8x0,snd_pcm
snd                    46820  9 snd_usb_audio,snd_rawmidi,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer
_oss,snd_pcm,snd_timer
soundcore              11104  1 snd


You could also check in /proc/asound (or whatever it is).

If everything looks OK up to this point, I would suggest getting hold of alsamixer to see what comes up.

Posted by sankarv on June 12 2007,16:24
iam using dsl 2.1 version.


i tried wat u said.


booted with

dsl nosound option


but on loading alsa.dsl it does not list any modules related to sound except soundcore.

alsa.dsl created 2 commands namely alsa_init and alsa_snddevices. on running alsa_init it returns some error. I then loaded alsa4dslv2.dsl.


it also returned

"alsamixer: function snd_ctl_open failed for default: No such device" on running alsamixer.

also there is no file or dir named /proc/asound foound here.

wat could be the problem...


i am alo posting the o/p of some listings:



Quote

bash-2.05b# lsmod  
Module                  Size  Used by    Not tainted
soundcore               3428   0  (autoclean)
mousedev                3832   0  (unused)
hid                    22788   0  (unused)
input                   3168   0  [mousedev hid]
af_packet              13608   0  (autoclean)
efs                     7436   0  (autoclean)
hfs                    77248   0  (autoclean)
minix                  19816   0  (autoclean)
xfs                   507012   0  (autoclean)
reiserfs              169584   0  (autoclean)
ext3                   64388   0  (autoclean)
jbd                    46804   0  (autoclean) [ext3]
ntfs                   50944   0  (autoclean)
msdos                   4684   0  (autoclean)
nls_iso8859-1           2844   3  (autoclean)
nls_cp437               4348   1  (autoclean)
via-rhine              12368   1
mii                     2240   0  [via-rhine]
crc32                   2816   0  [via-rhine]
serial                 52228   0  (autoclean)
ieee1394              183300   0
pcmcia_core            39840   0
ide-cd                 28768   0
rtc                     7036   0  (autoclean)
cloop                  39204   2
usb-storage            61952   0  (unused)
ehci-hcd               16456   0  (unused)
usb-uhci               21516   0  (unused)
usbcore                58016   1  [hid usb-storage ehci-hcd usb-uhci]
sata_via                2544   2
libata                 27536   0  [sata_via]
ide-scsi                9040   1
bash-2.05b#





Quote


bash-2.05b# lsusb
Bus 005 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 001: ID 0000:0000  
bash-2.05b#





Quote



bash-2.05b# lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc.: Unknown device 0204
0000:00:00.1 Host bridge: VIA Technologies, Inc.: Unknown device 1204
0000:00:00.2 Host bridge: VIA Technologies, Inc.: Unknown device 2204
0000:00:00.3 Host bridge: VIA Technologies, Inc.: Unknown device 3204
0000:00:00.4 Host bridge: VIA Technologies, Inc.: Unknown device 4204
0000:00:00.7 Host bridge: VIA Technologies, Inc.: Unknown device 7204
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800 South]
0000:00:0f.0 IDE interface: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80)
0000:00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
0000:00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
0000:00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [K8T800 South]
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78)
0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
0000:01:00.0 VGA compatible controller: VIA Technologies, Inc.: Unknown device 3108 (rev 01)
bash-2.05b#







Quote


bash-2.05b# lspnp
lspnp: /proc/bus/pnp not available
bash-2.05b#





This is the stdout  in bash on running alsaconf.

Quote



bash-2.05b# alsaconf        
modinfo: /lib/modules/2.4.31/kernel/sound/acore/snd.o is not owned by root
modinfo: snd: no module by that name found
modinfo: /lib/modules/2.4.31/kernel/sound/acore/snd.o is not owned by root
modinfo: snd: no module by that name found
modinfo: /lib/modules/2.4.31/kernel/sound/acore/snd.o is not owned by root
modinfo: snd: no module by that name found
modinfo: /lib/modules/2.4.31/kernel/sound/isa/snd-opl3sa2.o is not owned by root
modinfo: snd-opl3sa2: no module by that name found
modinfo: /lib/modules/2.4.31/kernel/sound/isa/cs423x/snd-cs4236.o is not owned by root
modinfo: snd-cs4236: no module by that name found
modinfo: /lib/modules/2.4.31/kernel/sound/isa/cs423x/snd-cs4232.o is not owned by root
modinfo: snd-cs4232: no module by that name found
modinfo: /lib/modules/2.4.31/kernel/sound/isa/cs423x/snd-cs4231.o is not owned by root
modinfo: snd-cs4231: no module by that name found
modinfo: /lib/modules/2.4.31/kernel/sound/isa/snd-es18xx.o is not owned by root
modinfo: snd-es18xx: no module by that name found
modinfo: /lib/modules/2.4.31/kernel/sound/isa/es1688/snd-es1688.o is not owned by root
modinfo: snd-es1688: no module by that name found
modinfo: /lib/modules/2.4.31/kernel/sound/isa/sb/snd-sb16.o is not owned by root
modinfo: snd-sb16: no module by that name found
modinfo: /lib/modules/2.4.31/kernel/sound/isa/sb/snd-sb8.o is not owned by root
modinfo: snd-sb8: no module by that name found
bash-2.05b#










is anything notable from these o/p s?

Posted by Juanito on June 13 2007,04:13
"lsmod" seems to confirm that no sound modules are loaded at boot and from "lspci", DSL seems to identify your soundcard correctly. The stdout messages seem strange though...

Maybe you could try the following from a terminal window as root to see if any error messages come up:
Code Sample
[boot with 'nosound" option]
# su dsl mydsl-load /path-to-file/gnu-utils.dsl
# su dsl mydsl-load /path-to-file/alsa.dsl
# /opt/alsa/alsasetup

Posted by sankarv on June 14 2007,16:59
i tried wat u said but running alsasetup also returned similar warnings as running alsaconf which i shown above.....
Posted by Juanito on June 14 2007,17:11
What sort of DSL installation do you have - I see you're using 2.1 but is it a frugal hd install, classic hd install, USB boot or what? The reason I ask is that from the module not owned by root messages, it seems like there may be a problem with the file permissions.

In emelFM, if you highlight /lib/modules/2.4.31/kernel/sound/acore/snd.o, what does it say about the file permisions - root/root, dsl/staff, or?

Posted by sankarv on June 20 2007,16:52
I have HD installation only. The files in /lib/modules/2.4.31/kernel/sound/acore directory are owned by root only. no clue ..... or is it possible to update kernel manually to 2.6 and then install alsa using apt, if so pls give me the exact commands used there if u know.....
Posted by stupid_idiot on June 20 2007,23:35
Possibly when module dependencies were calculated by depmod it rejected those modules that aren't owned by root - security risk.
There's some info here:
< http://linux.about.com/library/cmd/blcmdl8_depmod.htm >
(just search for "not owned by root")

You might try changing all ownerships to root and then rerunning depmod.
e.g.
sudo chown -R 0.0 /lib/modules/2.4.26
sudo depmod -a

And then try modprobing the alsa modules.

Posted by Juanito on June 21 2007,03:22
Quote
or is it possible to update kernel manually to 2.6

You could always try DSL-N rc4 (2.6.12) - the alsa modules are included already, but you will still need the alsa_mod extension from the DSL-N repository.

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