How to add ALSA to Puppy 1.0.4 HD install

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
jcoder24
Posts: 604
Joined: Fri 06 May 2005, 12:33
Location: Barbados

#31 Post by jcoder24 »

Quoted from http://www.murga.org/~puppy/viewtopic.php?t=4618
cheepgeek wrote:When I try to adjust volume in alsamixer I get this error:

alsamixer: relocation error: alsamixer: symbol snd_mixer_selem_get_play
back_dB, version ALSA 0.9 not defined in file libasound.so.2 with link time
reference

Any help would REALLY be appreciated!!!
I'm assuming the alsapup you downloaded came from this thread.

From the error is looks like a version incompatibility issue. If you used a version of the alsa.pup downloaded before Dec 11, try downloading and install the libasound.pup. Alternatively you can download the newly updated package.

User avatar
jcoder24
Posts: 604
Joined: Fri 06 May 2005, 12:33
Location: Barbados

#32 Post by jcoder24 »

Update.

The libasound.pup solved cheepgeek's problem. Other than the one major problem flash encountered when installing alsa initially, the testing seems to be going well. It would be nice if we can have some additionaly testers though.

Any takers?

Also, for those of you who have tested the package so far, do you have any suggestions?

jc

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#33 Post by Flash »

jcoder24 wrote:Flash

The installation doesn't require a reboot or xwin restart.

The icon should be puppy's wizard icon, so I hope that the right program ran. Maybe I should remove the menu entry?
I'm not clear on what you're saying. :?
As for the system freezing I'm at a loss. If only we had some logs. It would be nice to see what happens with a 'clean' pupxxx file.
What about installing the dotpup in a 1.0.7(a) CD booted with option 4 (no hard drive)? That's how I usually test new programs before I install them, but not your alsa dotpup. I installed it straight to a pup001 file. :shock:

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#34 Post by Flash »

jcoder, I booted 1.0.7(a) CD with option 4 (no hard drive), got online, downloaded your alsa dotpup package, clicked it and got the first screen shot you see below. I didn't restart but simply clicked OK then clicked on the "alsacfg" gear icon which showed up, leading to the second screen shot. The top two choices in the second screenshot are from a Hauppauge TV tuner card. Apparently alsacfg thinks it's a sound card. :?

As shown in the third screen shot, I flipped a coin and chose to modify /etc/modules.conf. At the very end of the install sequence the text said "unable to install alsa something or other" but went away quickly so I couldn't get a screen shot of it. My sound is working though, so how do I tell if alsa is actually installed and acting as my sound driver?
Attachments
choosing_modify.png
(3.62 KiB) Downloaded 2060 times
running_alsaconfig.png
(5.54 KiB) Downloaded 2111 times
installing_alsa.png
(35.04 KiB) Downloaded 2092 times

User avatar
jcoder24
Posts: 604
Joined: Fri 06 May 2005, 12:33
Location: Barbados

#35 Post by jcoder24 »

Flash wrote:At the very end of the install sequence the text said "unable to install alsa something or other" but went away quickly so I couldn't get a screen shot of it.

Prob the message saying something like "no alsa state found" (not in puppy now so I can't verify). Nothing to worry about since there wouldn't be any previous alsa states.
Flash wrote:My sound is working though, so how do I tell if alsa is actually installed and acting as my sound driver?
/etc/rc.d/rc.alsa status

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#36 Post by Flash »

jcoder24 wrote:
Flash wrote:At the very end of the install sequence the text said "unable to install alsa something or other" but went away quickly so I couldn't get a screen shot of it.

Prob the message saying something like "no alsa state found" (not in puppy now so I can't verify). Nothing to worry about since there wouldn't be any previous alsa states.
No, it definitely started out "unable to install alsa..."
Flash wrote:My sound is working though, so how do I tell if alsa is actually installed and acting as my sound driver?
/etc/rc.d/rc.alsa status
/etc is a symlink to /root/.etc (is that because I booted with option 4?), where there is no /rc.d/rc.alsa status, but there is a /rc.d/rc.alsa.

User avatar
jcoder24
Posts: 604
Joined: Fri 06 May 2005, 12:33
Location: Barbados

#37 Post by jcoder24 »

Flash wrote:/etc is a symlink to /root/.etc (is that because I booted with option 4?)
/etc is always a symlink to /root/.etc
where there is no /rc.d/rc.alsa status, but there is a /rc.d/rc.alsa.
status is the option being passed to the script /etc/rc.d/rc.alsa (or /root/.etc/rc.d/rc.alsa).

If /etc/rc.d/rc.alsa does not exists then alsa wouldn't load. In that case, try searching the system for rc.alsa find / -depth -name rc.alsa.

PS I've successfully installed the alsa dotpup with an option 4 boot. The only 'negative' message displayed is "No state present for card AudioPCI"

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#38 Post by Flash »

Ah, I was supposed to run "rc.alsa" and ask for status? :oops: I'll try when I can find time to mess with Puppy again.

menno
Posts: 80
Joined: Thu 03 Nov 2005, 23:21
Location: Bedum (Nederland)
Contact:

alsa

#39 Post by menno »

Flash did you try lsmod ? I saw that my old sound driver was not remove by the script (I did have the time to look why not , sorry) so I had to remove by hand and rerun the alsa script . Than it worked .

User avatar
jcoder24
Posts: 604
Joined: Fri 06 May 2005, 12:33
Location: Barbados

#40 Post by jcoder24 »

menno

Can you post a pre-alsa lsmod for your system? I'll like to see if I can get the alsacfg script to automagically rmmod your oss drivers.

jc

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#41 Post by Flash »

OK, I did everything exactly as described in my previous post above, but this time I thought to use ctrl-s to stop the next-to-last alsacfg dialog window and take a screenshot of it (see below), but ctrl-s wouldn't stop the very last window, which of course blinks off too quickly for me to read all of it. Oddly, even though the next-to-last window seems to say alsa wasn't installed, what I can read of the last window seems to say alsa was installed ok.

I also ran lsmod before:
# lsmod
Module Size Used by Not tainted
keybdev 1860 0 (unused)
mousedev 4020 1
hid 20804 0 (unused)
usbmouse 1880 0 (unused)
input 3360 0 [keybdev mousedev hid usbmouse]
parport_pc 15108 0
parport 23880 0 [parport_pc]
sr_mod 14488 0 (unused)
ide-cd 29504 0
cdrom 27744 0 [sr_mod ide-cd]
unionfs 157488 1
nls_iso8859-1 2812 0 (autoclean)
sd_mod 11404 0 (unused)
ds 6580 1
usb-uhci 21936 0 (autoclean) (unused)
usbcore 59596 1 (autoclean) [hid usbmouse usb-uhci]
i810_audio 23292 0 (autoclean) (unused)
ac97_codec 12020 0 (autoclean) [i810_audio]
soundcore 3588 2 (autoclean) [i810_audio]
yenta_socket 10436 1 (autoclean)
pcmcia_core 40228 0 (autoclean) [ds yenta_socket]
tulip 39200 1 (autoclean)
crc32 2896 0 (autoclean) [tulip]
e100 47604 0 (autoclean) (unused)
scsi_mod 93972 2 [sr_mod sd_mod]
# lsmod
and after alsa was installed:
# lsmod
Module Size Used by Not tainted
snd 33732 0 (autoclean)
snd-page-alloc 5268 0 (autoclean) [snd]
keybdev 1860 0 (unused)
mousedev 4020 1
hid 20804 0 (unused)
usbmouse 1880 0 (unused)
input 3360 0 [keybdev mousedev hid usbmouse]
parport_pc 15108 0
parport 23880 0 [parport_pc]
sr_mod 14488 0 (unused)
ide-cd 29504 0
cdrom 27744 0 [sr_mod ide-cd]
unionfs 157488 1
nls_iso8859-1 2812 0 (autoclean)
sd_mod 11404 0 (unused)
ds 6580 1
usb-uhci 21936 0 (autoclean) (unused)
usbcore 59596 1 (autoclean) [hid usbmouse usb-uhci]
i810_audio 23292 0 (autoclean) (unused)
ac97_codec 12020 0 (autoclean) [i810_audio]
soundcore 3588 2 (autoclean) [snd i810_audio]
yenta_socket 10436 1 (autoclean)
pcmcia_core 40228 0 (autoclean) [ds yenta_socket]
tulip 39200 1 (autoclean)
crc32 2896 0 (autoclean) [tulip]
e100 47604 0 (autoclean) (unused)
scsi_mod 93972 2 [sr_mod sd_mod]
#
(Sorry the column format was not retained when I copied from Beaver and pasted into the forum.)

Finally, I ran /etc/rc.d/rc.alsa status, which returned:
ALSA sound driver loaded
Attachments
alsacfg_error.png
(7.1 KiB) Downloaded 2024 times

User avatar
jcoder24
Posts: 604
Joined: Fri 06 May 2005, 12:33
Location: Barbados

#42 Post by jcoder24 »

flash

That usu happens when the oss modules are not removed before loading the alsa modules.

To manually uninstall your oss modules run the following.

Code: Select all

rmmod i810_audio ac97_codec 
Rerunning alsacfg should then complete successfully.

I've submitted a post in the Users ( For the regulars ) section requesting lsmod samples so I can modify the alsacfg to better determine and uninstall the oss modules.

jc

menno
Posts: 80
Joined: Thu 03 Nov 2005, 23:21
Location: Bedum (Nederland)
Contact:

remove

#43 Post by menno »

I use

Code: Select all

modprobe -r i810_audio
. This remove also the assosiated modules . I cann't find what the difference is in rmmode and modprobe -r .

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#44 Post by Flash »

jcoder, menno, I tried 'em both and both gave the same result: "device or resource busy." :( I'm not using the sound for anything so what's going on? Neither Top View nor KP Manage Running Processes list anything that looks like a sound driver.

ARAN
Posts: 113
Joined: Fri 21 Oct 2005, 12:47

#45 Post by ARAN »

hello !

can somebody tell me which sound card should i configure in alsacfg.

i have the choice between 4 auto detected sound cards.
i am not really sure if there are really good auto detected becouse the hardware probe say i have a "Via Technologies - AC97 Compatible Controller"
and the alsa conf script say i have a via modem as a sound card.


Thats here is what the hardware probe say.
===== parse_pci_devices =====
No info found about the device 17fe.2220 (ETHERNET)!
Please send a snapshot of this window to ##########
Also read Modules HOWTO.
1106:3108 (3,0) 0 [ (null) - (null) ] DISPLAY (null)
1022:1103 (6,0) 0 [ (null) - (null) ] BRIDGE (null)
1022:1102 (6,0) 0 [ (null) - (null) ] BRIDGE (null)
1022:1101 (6,0) 0 [ (null) - (null) ] BRIDGE (null)
1022:1100 (6,0) 0 [ (null) - (null) ] BRIDGE (null)
1106:3065 (2,0) 11 [ Via - VT6102 Rhine II ] ETHERNET via-rhine
1106:3068 (7,128) 0 [ (null) - (null) ] COMM PORT (null)

1106:3059 (4,1) 11 [ Via Technologies - AC97 Compatible Controller ] AUDIO viaudiocombo

1106: 571 (1,1) 0 [ (null) - (null) ] EIDE (null)
1106:3177 (6,1) 0 [ (null) - (null) ] BRIDGE (null)
1106:3104 (12,3) 11 [ VIA Technologies - ] USB ehci-hcd
1106:3038 (12,3) 11 [ VIA Technologies - VT 82C586B Apollo ] USB usb-uhci
1106:3038 (12,3) 11 [ VIA Technologies - VT 82C586B Apollo ] USB usb-uhci
1106:3038 (12,3) 11 [ VIA Technologies - VT 82C586B Apollo ] USB usb-uhci
104c:802e (12,0) 0 [ (null) - (null) ] SERIAL (null)
104c:ac8e (6,7) 11 [ Texas Instruments - PCI7420 CardBus Controller ] CARDBUS yenta_socket
104c:ac8e (6,7) 11 [ Texas Instruments - PCI7420 CardBus Controller ] CARDBUS yenta_socket
17fe:2220 (2,0) 1 [ (null) - (null) ] ETHERNET (null)
1106:b188 (6,4) 0 [ (null) - (null) ] BRIDGE (null)
1106:7204 (6,0) 0 [ (null) - (null) ] BRIDGE (null)
1106:4204 (6,0) 0 [ (null) - (null) ] BRIDGE (null)
1106:3204 (6,0) 0 [ (null) - (null) ] BRIDGE (null)
1106:2204 (6,0) 0 [ (null) - (null) ] BRIDGE (null)
1106:1204 (6,0) 0 [ (null) - (null) ] BRIDGE (null)
1106: 204 (6,0) 0 [ (null) - (null) ] BRIDGE (null)
ad that here is what alsaconf say.
Attachments
SoundCards.png
(8.73 KiB) Downloaded 2104 times

ARAN
Posts: 113
Joined: Fri 21 Oct 2005, 12:47

#46 Post by ARAN »

I have now tryed the second selection of the auto detection which have the same number 1106:3059 as the audio module showed in the hardware probe

1106:3059 (4,1) 11 [ Via Technologies - AC97 Compatible Controller ] AUDIO viaudiocombo

If i play now a mp3 File i here allways only the first two seconds of the sound and that in a endless loop.

does anybody know what i have to do ?
Thanks in advance.

P.S. thats here what lsmod show
# lsmod | grep sound
soundcore 3588 4 (autoclean) [snd]

User avatar
jcoder24
Posts: 604
Joined: Fri 06 May 2005, 12:33
Location: Barbados

#47 Post by jcoder24 »

Flash wrote:jcoder, menno, I tried 'em both and both gave the same result: "device or resource busy." :( I'm not using the sound for anything so what's going on? Neither Top View nor KP Manage Running Processes list anything that looks like a sound driver.
try removing them one at a time

Code: Select all

rmmod i810_audio 
rmmod ac97_codec
if you get the same busy message, reverse the order

Code: Select all

rmmod ac97_codec
rmmod i810_audio 
When you issue lsmod after the alsa modules have been loaded you will see about six or so modules prefixed by "snd_". If not, then alsa hasn't been loaded. Also the following code would also confirm if alsa has been loaded successfully.

Code: Select all

/etc/rc.d/rc.alsa status

User avatar
jcoder24
Posts: 604
Joined: Fri 06 May 2005, 12:33
Location: Barbados

#48 Post by jcoder24 »

ARAN wrote:If i play now a mp3 File i here allways only the first two seconds of the sound and that in a endless loop.

does anybody know what i have to do ?
Thanks in advance.
This one is rather strange, but here are a few questions to see if we can determine a cause:

What pupgets/dotpups do you have installed in puppy?

Which program(s) are you using to play the mp3?

Does all of your mp3s play the same way?

What does lsmod look like with alsa installed?

If you try a new pupxxx file do you get the same problem?

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#49 Post by Flash »

jcoder24 wrote:... try removing them one at a time

Code: Select all

rmmod i810_audio 
rmmod ac97_codec
Got no error when I ran those, one at a time in that order, in rxvt. Tried XS tone generator; not a peep. Downloaded your alsa dotpup and installed it. All sound working perfectly now!
When you issue lsmod after the alsa modules have been loaded you will see about six or so modules prefixed by "snd_". If not, then alsa hasn't been loaded.
Here's the result of lsmod:

Code: Select all

# lsmod
Module                  Size  Used by    Not tainted
snd-pcm-oss            36832   0  (autoclean)
snd-mixer-oss          12344   0  (autoclean) [snd-pcm-oss]
snd-intel8x0           18660   0 
snd-ac97-codec         67424   0  [snd-intel8x0]
snd-pcm                55560   0  [snd-pcm-oss snd-intel8x0 snd-ac97-codec]
snd-timer              13860   0  [snd-pcm]
snd                    33732   0  [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac                             97-codec snd-pcm snd-timer]
snd-page-alloc          5268   0  [snd-mixer-oss snd-intel8x0 snd-pcm snd-timer                              snd]
keybdev                 1860   0  (unused)
mousedev                4020   1 
hid                    20804   0  (unused)
usbmouse                1880   0  (unused)
input                   3360   0  [keybdev mousedev hid usbmouse]
parport_pc             15108   0 
parport                23880   0  [parport_pc]
sr_mod                 14488   0  (unused)
ide-cd                 29504   0 
cdrom                  27744   0  [sr_mod ide-cd]
unionfs               157488   1 
nls_iso8859-1           2812   0  (autoclean)
sd_mod                 11404   0  (unused)
ds                      6580   1 
usb-uhci               21936   0  (autoclean) (unused)
usbcore                59596   1  (autoclean) [hid usbmouse usb-uhci]
soundcore               3588   4  (autoclean) [snd]
yenta_socket           10436   1  (autoclean)
pcmcia_core            40228   0  (autoclean) [ds yenta_socket]
tulip                  39200   1  (autoclean)
crc32                   2896   0  (autoclean) [tulip]
e100                   47604   0  (autoclean) (unused)
scsi_mod               93972   2  [sr_mod sd_mod]
# 
Also the following code would also confirm if alsa has been loaded successfully:

Code: Select all

/etc/rc.d/rc.alsa status
Returns:

Code: Select all

ALSA sound driver loaded
Now, on to try Skype and Gizmo.

Thanks, jcoder :D

(Edit: Skype works fine.)

User avatar
jcoder24
Posts: 604
Joined: Fri 06 May 2005, 12:33
Location: Barbados

#50 Post by jcoder24 »

Updated the alsacfg package to detect and remove (hopefully) all oss modules in the correct order. Once testing is completed I'll merge the changes with the main alsa package and upload it.

I would like people who had problems with alsacfg removing the oss modules to try this update and post their results.

I've tested the changes with my soundcard and all of the lsmod samples provided here and elsewhere.

If you already have alsa running or don't want to mess with your current setup, test with a new pupxxx file.

Thanks to all those who submitted samples.

Post Reply