LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 09-25-2004, 01:53 PM   #1
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Those who upgraded and have no sound (ALSA)


This is for those who reguraly uses swaret or slapt-get and got the sound broken since a few days.

Well guys, I've just updated my system (a few weeks without doing it) and I saw that ALSA broke up, what I saw is that the ALSA package comes compiled for 2.4.27 kernel, so instead of installing drivers to /lib/modules/2.4.26 it installs them to /lib/modules/2.4.27 (Don't try to move them, they're compiled for different version).
How to get over this? Well I'd recommend to compile the drivers manually (download the source from alsa-project.org, uncompress and type: ./configure && make && make install), be sure to remove the current alsa packages before
Those who compile their own 2.6 kernel should also compile them manually.
You could also upgrade your kernel to 2.4.27 and you'll be able to use these packages

Last choice, downgrade to a alsa package compiled for your kernel (like the ones that comes in slack's cds that are for 2.4.26) and add alsa to your update utility exclude list.

Last edited by gbonvehi; 09-25-2004 at 06:14 PM.
 
Old 09-29-2004, 06:24 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Original Poster
Rep: Reputation: 51
Well, i've just discovered that I compiled alsa-utils and didn't remove the old alsa-utils package I had. What happens if you remove it before is that you will loose the /etc/rc.d/rc.alsa file causing alsa mixer settings (what you store using alsactl) won't be loaded at startup.
To solve this, you can extract the file /etc/rc.d/rc.alsa from alsa-utils package and copy it to /etc/rc.d.
I'll paste here a copy of rc.alsa in case you don't want to get the package just to extract that file (remember to make it executable by typing: chmod +x /etc/rc.d/rc.alsa).

Code:
#!/bin/sh
# Load the mixer settings and OSS compatibility for ALSA.
# (the Advanced Linux Sound Architecture)

# A function to load the ALSA mixer settings:
load_alsa_mixer() {
  if [ -r /etc/asound.state ]; then
    echo "Loading ALSA mixer settings:  /usr/sbin/alsactl restore"
    /usr/sbin/alsactl restore
  else
    echo "ALSA warning:  No mixer settings found in /etc/asound.state."
    echo "  Sound may be muted.  Use 'alsamixer' to unmute your sound card,"
    echo "  and then 'alsactl store' to save the default ALSA mixer settings"
    echo "  to be loaded at boot."
  fi
}

# A function to load the ALSA OSS compat modules:
load_alsa_oss_modules() {
  if ! cat /proc/modules | grep -w snd-pcm-oss 1> /dev/null 2> /dev/null ; then
    echo "Loading OSS compatibility modules for ALSA."
    modprobe snd-pcm-oss
    modprobe snd-mixer-oss
  fi
}

# If hotplug or something else has loaded the ALSA modules, then
# simply load the mixer settings and make sure the OSS compat
# modules are loaded:
if [ -d /proc/asound ]; then
  load_alsa_mixer
  load_alsa_oss_modules
else
  # If there are ALSA modules defined in /etc/modules.conf, but
  # ALSA is not yet loaded, then load the modules now:
  DRIVERS=`modprobe -c | grep -E "^[[:space:]]*alias[[:space:]]+snd-card-[[:digit:]]" | awk '{ print $3 }'`
  if [ ! "$DRIVERS" = "" ]; then
    echo "Loading ALSA kernel modules."
    for module in $DRIVERS; do
      modprobe $module
    done
  fi
  # If ALSA is now up, then load the mixer settings and OSS modules:
  if [ -d /proc/asound ]; then
    load_alsa_mixer
    load_alsa_oss_modules
  fi
fi
Good luck!

Last edited by gbonvehi; 10-10-2004 at 06:59 PM.
 
Old 09-29-2004, 06:28 PM   #3
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Out of curiosity, if i have nvsound installed, do you know how i can get ALSA to work properly with it? =))
 
Old 09-29-2004, 06:30 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Original Poster
Rep: Reputation: 51
I really don't know, I don't own a nvidia based motherboard (I'm still happy with my SB Live Value! :P)
Search LQ forums, i'm pretty sure there's a answer inside
 
Old 09-29-2004, 06:36 PM   #5
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
ill keep doing that =)
bah, cant wait to get it working. Its the only thing left. =)
 
Old 03-31-2005, 02:48 AM   #6
rarevisitor_686
LQ Newbie
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 3

Rep: Reputation: 0
Sound withot ALSA:
http://www.linuxquestions.org/questi...5&pagenumber=2
 
Old 03-31-2005, 10:18 AM   #7
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
xushi, what benefit is there to using nvsound over what is in the kernel (Intel/SiS/nVidia/AMD/ALi AC97 Controller)?
 
Old 03-31-2005, 10:47 AM   #8
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
huh, i manually upgrade everything myself. I like to read the changelogs and stuff first to see what's going on.

I have an rsynced current on one of my partions. I've upgraded to a complete slack current yesterday and have had no problems with sound.
 
Old 03-31-2005, 11:02 AM   #9
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Original Poster
Rep: Reputation: 51
I know some people do that chbin, I made this thread because there was a "crack" in Slackware current where all people suddenly lost their sound when updating to it and were filling this forum with threads about it.

Last edited by gbonvehi; 03-31-2005 at 11:05 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgraded Kernel, No Sound Tip Slackware 4 01-14-2005 08:48 PM
Upgraded to 2.6.10: ALSA crashes kernel intens Linux - Hardware 0 01-02-2005 08:24 AM
Upgraded to Slack=current, now no sound! Slovak Slackware 15 11-25-2004 12:00 AM
upgraded kernel to 2.6.8.1 now no sound jpgillivan Linux - Laptop and Netbook 7 11-15-2004 06:09 AM
no sound - just upgraded kernel - HELP! tjay Linux - Hardware 2 06-17-2004 11:54 AM


All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration