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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-03-2006, 02:19 PM
|
#1
|
|
LQ Newbie
Registered: Nov 2006
Posts: 6
Rep:
|
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?
|
|
|
|
11-04-2006, 10:24 AM
|
#2
|
|
Member
Registered: Apr 2005
Distribution: Ubuntu dapper(2.6.17.4-custom), Gentoo 2006.1 amd64(2.6.17-r8-custombuild)
Posts: 472
Rep:
|
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.
|
|
|
|
11-04-2006, 11:14 AM
|
#3
|
|
LQ Newbie
Registered: Nov 2006
Posts: 6
Original Poster
Rep:
|
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?
|
|
|
|
11-04-2006, 11:42 AM
|
#4
|
|
Member
Registered: Apr 2005
Distribution: Ubuntu dapper(2.6.17.4-custom), Gentoo 2006.1 amd64(2.6.17-r8-custombuild)
Posts: 472
Rep:
|
you can run and look for a "x" in it. For example, 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.
|
|
|
|
11-05-2006, 12:29 AM
|
#5
|
|
LQ Newbie
Registered: Nov 2006
Posts: 6
Original Poster
Rep:
|
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?
|
|
|
|
11-05-2006, 04:33 PM
|
#6
|
|
Member
Registered: Apr 2005
Distribution: Ubuntu dapper(2.6.17.4-custom), Gentoo 2006.1 amd64(2.6.17-r8-custombuild)
Posts: 472
Rep:
|
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.
|
|
|
|
11-06-2006, 03:57 AM
|
#7
|
|
LQ Newbie
Registered: Nov 2006
Posts: 6
Original Poster
Rep:
|
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?
|
|
|
|
11-06-2006, 06:05 AM
|
#8
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
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.
|
|
|
|
11-07-2006, 12:38 AM
|
#9
|
|
LQ Newbie
Registered: Nov 2006
Posts: 6
Original Poster
Rep:
|
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?
|
|
|
|
11-07-2006, 01:51 AM
|
#10
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
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 
|
|
|
|
11-07-2006, 03:50 AM
|
#11
|
|
LQ Newbie
Registered: Nov 2006
Posts: 6
Original Poster
Rep:
|
Sorry, my bad! It was a typing error, I meant ctrl+alt+backspace , which did not help, X-server still completely hangs. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:10 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|