LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2006, 02:19 PM   #1
Oela
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Rep: Reputation: 0
Slackware 11 sound problems


What I'm struggling with is to configure my sound at start up. I have to run alsaconf everytime at startup to get my sound up and running. After running alsaconf I went to /etc/modules.conf to see if something happend there and found that alsaconf generated the following

Code:
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.11 ---
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-hda-intel
alias sound-slot-0 snd-hda-intel
# --- END: Generated by ALSACONF, do not edit. ---
For some reason I have another file there "modules.conf.new" but that doesn't have that above code in. So don't know if it's running this new script instead, and I don't want to delete it, as I'm not sure what the effect will be.

I went to have a look at /etc/rc.d/rc.modules to see if there weren't perhaps modprobe's that I can include there (for the sound) and found 2 other similar files there, "rc.modules-2.4.33.3" and "rc.modules-2.4.33.3.new" So now I'm not sure if I can just delete these other 2 files.

What I also find strange is that Linux completely freezes when I try to log out/reboot/turn off the computer (I have to physically restart the PC). What can cause this?

I also noted at startup that it says :

Code:
INIT: Entering runlevel: 4
INIT: cannot execute "/etc/rc.d/rc.M"
I haven't edited that file, but I have changed the default runlevel in /etc/inittab
where another similar file "inittab.new" was generated. Once again I don't know what to do about this!

Can someone help me out here?
 
Old 11-04-2006, 10:24 AM   #2
Samoth
Member
 
Registered: Apr 2005
Distribution: Exherbo
Posts: 474
Blog Entries: 1

Rep: Reputation: 32
Is it possible that /etc/rc.d/rc.M is not set as executable? Also, try running the script manually and see if there is some syntax problem.
 
Old 11-04-2006, 11:14 AM   #3
Oela
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Original Poster
Rep: Reputation: 0
I have a feeling that, that might be the problem, because the following commands are in rc.M

Code:
# Load ALSA (sound) defaults:
if [ -x /etc/rc.d/rc.alsa ]; then
  . /etc/rc.d/rc.alsa
fi
which is where my sound is configured? So how do I manually check if it's an executeable, or how can I just sort of reset it?
 
Old 11-04-2006, 11:42 AM   #4
Samoth
Member
 
Registered: Apr 2005
Distribution: Exherbo
Posts: 474
Blog Entries: 1

Rep: Reputation: 32
you can run
Code:
ls -l <filename>
and look for a "x" in it. For example,
Code:
ls -l fork
resulted in this for me:
Code:
-rwxr-xr-x 1 thomas thomas 8462 Nov  2 16:09 fork
. Anybody have a guide for file permissions? I remember seeing one somewhere but can't rememeber, probably on www.linuxjournal.com somewhere.

post your
Code:
ls -l /etc/rc.d/rc.*
and I'll try explaining everything.
 
Old 11-05-2006, 12:29 AM   #5
Oela
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Ok so I run

Code:
ls -l /etc/rc.d/rc.*
from the command line, with the following result

Quote:

lrwxrwxrwx 1 root root 4 2006-11-03 22:03 /etc/rc.d/rc.0 -> rc.6*
-rwxr-xr-x 1 root root 1160 2006-09-25 10:33 /etc/rc.d/rc.4*
-rwxr-xr-x 1 root root 6782 2006-09-25 10:33 /etc/rc.d/rc.6*
-rwxr-xr-x 1 root root 2322 2006-09-25 10:33 /etc/rc.d/rc.K*
-rw-r--r-- 1 root root 10022 2006-11-03 16:52 /etc/rc.d/rc.M
-rwxr-xr-x 1 root root 14408 2006-09-25 10:33 /etc/rc.d/rc.S*
-rwxr-xr-x 1 root root 466 2004-11-05 10:20 /etc/rc.d/rc.acpid*
-rwxr-xr-x 1 root root 1614 2006-08-05 04:50 /etc/rc.d/rc.alsa*
-rw-r--r-- 1 root root 1032 2003-02-02 05:47 /etc/rc.d/rc.atalk
-rwxr-xr-x 1 root root 4178 2006-05-04 01:31 /etc/rc.d/rc.bind*
-rwxr-xr-x 1 root root 3942 2006-08-17 07:19 /etc/rc.d/rc.cups*
-rwxr-xr-x 1 root root 512 2006-08-08 06:02 /etc/rc.d/rc.dnsmasq*
-rwxr-xr-x 1 root root 119 2004-05-30 06:19 /etc/rc.d/rc.font.new*
-rwxr-xr-x 1 root root 1156 2006-11-03 23:59 /etc/rc.d/rc.gpm*
-rwxr-xr-x 1 root root 2243 2006-09-21 01:50 /etc/rc.d/rc.hotplug*
-rw-r--r-- 1 root root 401 2003-03-05 23:28 /etc/rc.d/rc.httpd
-rwxr-xr-x 1 root root 8325 2006-09-21 04:48 /etc/rc.d/rc.inet1*
-rw-r--r-- 1 root root 3543 2006-11-03 22:04 /etc/rc.d/rc.inet1.conf
-rwxr-xr-x 1 root root 4477 2006-09-21 04:44 /etc/rc.d/rc.inet2*
-rwxr-xr-x 1 root root 497 2003-09-12 05:27 /etc/rc.d/rc.inetd*
-rwxr-xr-x 1 root root 1924 2003-09-14 01:10 /etc/rc.d/rc.ip_forward*
-rwxr-xr-x 1 root root 272 2006-09-25 10:33 /etc/rc.d/rc.local*
lrwxrwxrwx 1 root root 19 2006-11-03 14:19 /etc/rc.d/rc.modules -> rc.modules-2.4.33.3*
-rwxr-xr-x 1 root root 25574 2006-11-03 16:28 /etc/rc.d/rc.modules-2.4.33.3*
-rwxr-xr-x 1 root root 25553 2006-09-01 10:31 /etc/rc.d/rc.modules-2.4.33.3.new*
-rw-r--r-- 1 root root 2300 2006-09-02 04:15 /etc/rc.d/rc.mysqld
-rwxr-xr-x 1 root root 2444 2006-09-21 05:05 /etc/rc.d/rc.nfsd*
-rwxr-xr-x 1 root root 5090 2006-08-16 22:48 /etc/rc.d/rc.pcmcia*
-rwxr-xr-x 1 root root 2000 2006-09-22 00:07 /etc/rc.d/rc.rpc*
-rwxr-xr-x 1 root root 791 2006-09-02 08:14 /etc/rc.d/rc.samba*
-rw-r--r-- 1 root root 1169 2006-05-27 22:24 /etc/rc.d/rc.saslauthd
-rwxr-xr-x 1 root root 967 2006-09-25 10:33 /etc/rc.d/rc.scanluns*
-rwxr-xr-x 1 root root 687 2002-06-04 23:09 /etc/rc.d/rc.sendmail*
-rw-r--r-- 1 root root 2895 2006-09-25 10:47 /etc/rc.d/rc.serial
-rwxr-xr-x 1 root root 1222 2006-09-28 23:17 /etc/rc.d/rc.sshd*
-rwxr-xr-x 1 root root 860 2004-05-03 00:07 /etc/rc.d/rc.syslog*
-rwxr-xr-x 1 root root 1740 2006-09-25 10:33 /etc/rc.d/rc.sysvinit*
-rwxr-xr-x 1 root root 4711 2006-09-14 02:11 /etc/rc.d/rc.udev*
-rwxr-xr-x 1 root root 9453 2006-08-16 22:20 /etc/rc.d/rc.wireless*
-rw------- 1 root root 7320 2006-08-16 22:20 /etc/rc.d/rc.wireless.conf
-rwxr-xr-x 1 root root 2323 2005-08-01 01:56 /etc/rc.d/rc.yp*
So I suppose rc.M is not an executable, how do I make it one?
 
Old 11-05-2006, 04:33 PM   #6
Samoth
Member
 
Registered: Apr 2005
Distribution: Exherbo
Posts: 474
Blog Entries: 1

Rep: Reputation: 32
Well, for one, read up on "chmod", it is a great tool.

Something like this will work:
Code:
chmod a+x /etc/rc.d/rc.M
That said "add executable permissions to the existing permisssions on /etc/rc.d/rc.M"

Hope this helps.
 
Old 11-06-2006, 03:57 AM   #7
Oela
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Code:
chmod 755 /etc/rc.d/rc.M
That did the trick, thanks!

I have another problem though, when I try to exit/logout/end current session from KDE, linux completely freezes and I have to restart it manually. What can cause this and how do I fix it?
 
Old 11-06-2006, 06:05 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 267Reputation: 267Reputation: 267
Quote:
I have another problem though, when I try to exit/logout/end current session from KDE, linux completely freezes and I have to restart it manually. What can cause this and how do I fix it?
It's probably not Linux freezing, but probably X. Try doing a ctrl-alt-backspace and see if that kills X when it freezes. If that works, check your xorg config and make sure everything is setup right, matches video card, mouse, keyboard, etc.
 
Old 11-07-2006, 12:38 AM   #9
Oela
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Hmmm... well ctrl+alt+del did not kill X when it freezed. I had a look at my xorg.conf and everything seems fine there aswell. Any other suggestions?
 
Old 11-07-2006, 01:51 AM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 267Reputation: 267Reputation: 267
Quote:
Originally Posted by Oela
Hmmm... well ctrl+alt+del did not kill X when it freezed. I had a look at my xorg.conf and everything seems fine there aswell. Any other suggestions?
If you read my first response, I said ctrl-alt-backspace, not ctrl-alt-del
 
Old 11-07-2006, 03:50 AM   #11
Oela
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Sorry, my bad! It was a typing error, I meant ctrl+alt+backspace , which did not help, X-server still completely hangs.
 
  


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
sound problems slackware 10.1 canislupine Slackware 13 12-13-2005 01:21 PM
Slackware sound problems. tankertuff Slackware 12 09-19-2005 08:46 AM
slackware 9.1 sound problems softcore26 Slackware 4 01-12-2004 02:36 PM
Slackware 8.1 Via Sound Problems GinoCod Linux - Hardware 5 11-07-2002 06:26 PM
slackware sound problems cerberus Linux - General 32 04-14-2002 05:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:42 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