LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-04-2005, 10:59 PM   #1
mmarkvillanueva
Member
 
Registered: May 2005
Location: Philippines
Distribution: Slackware 10.0 : Linux 2.6.7
Posts: 66

Rep: Reputation: 15
Exclamation Sound problem after kernel upgrade


I'm having problems with my sound after upgrading the kernel from DISC 2. Below is the message about the alsa driver while booting...

Loading ALSA kernel modules.
Loading ALSA mixer settings: /usr/sbin/alsactl restore
/usr/sbin/alsactl: load_state:1134: No soundcards found...
Loading OSS compatibility modules for ALSA.

what i did isto run alsaconf, configure alsamixer and save changes using alsactl store. and then the sound is fixed, both root and non-root users can play music. However whenever I reboot, the changes are not permanent and once again the message regarding the failure in loading the ALSA kernel modules is displayed while booting. What i do is to repeat what I did before, running alsaconf, alsamixer and alsactl.

How do I make this things permanent? I'm sure that I've installed the Kernel 2.6.7 stuffs including the alsa driver for 2.6.7 and i've installed the old alsa mixer and old kernel stuffs (2.4.26).
 
Old 11-05-2005, 01:28 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,416
Blog Entries: 7

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
Re: Sound problem after kernel upgrade

Quote:
Originally posted by mmarkvillanueva
I'm sure that I've installed the Kernel 2.6.7 stuffs including the alsa driver for 2.6.7 and i've installed the old alsa mixer and old kernel stuffs (2.4.26).
If you're upgrading the kernel, you don't need the alsa-driver package. Make sure you're building the right module for your card as part of the kernel compile and you should be set. I repeat: Don't install the alsa-driver package, because it will overwrite the correct modules for your kernel.
 
Old 11-05-2005, 02:00 AM   #3
mmarkvillanueva
Member
 
Registered: May 2005
Location: Philippines
Distribution: Slackware 10.0 : Linux 2.6.7
Posts: 66

Original Poster
Rep: Reputation: 15
u sure? i didn't compile the kernel. I used the kernel-generric and kernel-module TGZ packages on DISC 2
 
Old 11-05-2005, 02:36 AM   #4
surfer63
LQ Newbie
 
Registered: Oct 2005
Location: Netherlands
Distribution: Slackware 10.2
Posts: 14

Rep: Reputation: 0
Hi,

If you install the packages form DISC2/testing, you also NEED to install the ALSA package from that SAME directory. Any other combination doesn't work.
 
Old 11-05-2005, 03:22 AM   #5
mmarkvillanueva
Member
 
Registered: May 2005
Location: Philippines
Distribution: Slackware 10.0 : Linux 2.6.7
Posts: 66

Original Poster
Rep: Reputation: 15
yep. that's exactly what i did. ei! and i did discover something, after logging in i just executed

sudo /usr/sbin/alsactl restore

and the sound automagically work. where can i add this command so that it will be automatically executed?
 
Old 11-05-2005, 03:26 AM   #6
mmarkvillanueva
Member
 
Registered: May 2005
Location: Philippines
Distribution: Slackware 10.0 : Linux 2.6.7
Posts: 66

Original Poster
Rep: Reputation: 15
i just want to add.. /etc/rc.d/rc.alsa is already executable
 
Old 11-05-2005, 05:27 AM   #7
surfer63
LQ Newbie
 
Registered: Oct 2005
Location: Netherlands
Distribution: Slackware 10.2
Posts: 14

Rep: Reputation: 0
I suppose you already tried the command "alsamixer" from a console/term/xterm, and after setting your preferences and quitting alsamixer use the command "alsactl store". (At least that did the job for my three slack boxes).
 
Old 11-05-2005, 06:11 AM   #8
mmarkvillanueva
Member
 
Registered: May 2005
Location: Philippines
Distribution: Slackware 10.0 : Linux 2.6.7
Posts: 66

Original Poster
Rep: Reputation: 15
yep! i've already done that. i have to find a way to make the changes permanently. remember after booting and logging, I just run sudo /usr/sbin/alsactl restore and the sound will work ok. But what I want to do is to prevent on doing this manually
 
Old 11-05-2005, 06:27 AM   #9
mmarkvillanueva
Member
 
Registered: May 2005
Location: Philippines
Distribution: Slackware 10.0 : Linux 2.6.7
Posts: 66

Original Poster
Rep: Reputation: 15
i've noticed somthing fishy in my /dev i've already made a symlink of /dev/ttyS0 to /dev/modem after rebooting, /dev/modem is already gone when ls! as well as /dev/dsp and /dev/mixer

but when i run sudo /usr/sbin/alsactl restore, /dev/dsp and /dev/mixer will then appear.

I guess the problem here is not sound card but the /dev/ on how to permenently store changes particularly on symlinks... any suggestions? do i have to post this problem into a new thread. what would be the subject? i'm confused. this is really fishy
 
Old 11-05-2005, 07:38 AM   #10
mmarkvillanueva
Member
 
Registered: May 2005
Location: Philippines
Distribution: Slackware 10.0 : Linux 2.6.7
Posts: 66

Original Poster
Rep: Reputation: 15
i've fixed the /dev problem by making a file /etc/udev/rules.d/10-custom-rules with the follwing contents:

KERNEL="ttyS0", SYMLINK="modem"
KERNEL="sound/dsp", SYMLINK="dsp"
KERNEL="sound/mixer", SYMLINK="mixer"
KERNEL="sound/audio", SYMLINK="audio"

i've get the idea from another forum. but the sound problem is not solved.
 
Old 11-05-2005, 08:16 AM   #11
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Is your /etc/rc.d/rc.hotplug executable ?
 
Old 11-05-2005, 09:23 AM   #12
mmarkvillanueva
Member
 
Registered: May 2005
Location: Philippines
Distribution: Slackware 10.0 : Linux 2.6.7
Posts: 66

Original Poster
Rep: Reputation: 15
yep /etc/rc.d/rc.hotplug is executable
 
Old 11-05-2005, 10:18 AM   #13
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Maybe delete /etc/asound.state and re-create it with alsamixer & alsactl store
 
Old 11-05-2005, 04:53 PM   #14
mmarkvillanueva
Member
 
Registered: May 2005
Location: Philippines
Distribution: Slackware 10.0 : Linux 2.6.7
Posts: 66

Original Poster
Rep: Reputation: 15
PROBLEM SOLVED.
the contents of my /etc/modules.conf is...

Code:
void@navi:~$ cat /etc/modules.conf

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.5 ---
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-cs4236
alias sound-slot-0 snd-cs4236
# --- END: Generated by ALSACONF, do not edit. ---

alias char-major-24 sm56
options sm56 country=1
alias /dev/ppp ppp_generic 
alias tty-ldisc-3 ppp_async 
alias tty-ldisc-14 ppp_synctty 
alias ppp-compress-21 bsd_comp 
alias ppp-compress-26 ppp_deflate 
alias ppp-compress-24 ppp_deflate
so I added this line in the OSS section of /etc/rc.d/rc.modules

Code:
/sbin/modprobe snd-cs4236
and it works! I waited for few hours and rebooted this machine several times before posting this reply to ensure that this really fixed the problem. not sure if this is the most efficient solution though.
 
Old 11-06-2005, 04:35 AM   #15
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
You said that you installed Kernel 2.6.7, however the 2.6 kernels serie
do not use /etc/modules.conf, instead they use /etc/modprobe.conf
 
  


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
Kernel upgrade, now no sound! robbow52 Debian 3 10-30-2005 11:52 AM
Sound problem after kernel upgrade from 2.4+ 2.6+ PinRojas Linux - Newbie 1 06-03-2005 02:40 PM
No sound after kernel upgrade Ratclaws Linux - Hardware 2 05-24-2005 03:50 AM
Another kernel upgrade sound problem Billy|B-A Slackware 12 03-01-2005 05:43 PM
no sound after kernel upgrade hejduk Linux - General 3 03-14-2002 05:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:05 AM.

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
Open Source Consulting | Domain Registration