LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Slackware 11 sound problems (http://www.linuxquestions.org/questions/linux-newbie-8/slackware-11-sound-problems-498361/)

Oela 11-03-2006 02:19 PM

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?

Samoth 11-04-2006 10:24 AM

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.

Oela 11-04-2006 11:14 AM

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?

Samoth 11-04-2006 11:42 AM

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.

Oela 11-05-2006 12:29 AM

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?

Samoth 11-05-2006 04:33 PM

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.

Oela 11-06-2006 03:57 AM

Code:

chmod 755 /etc/rc.d/rc.M
That did the trick, thanks! :D

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?

trickykid 11-06-2006 06:05 AM

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.

Oela 11-07-2006 12:38 AM

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?

trickykid 11-07-2006 01:51 AM

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 ;)

Oela 11-07-2006 03:50 AM

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


All times are GMT -5. The time now is 09:08 AM.