LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2006, 08:27 AM   #1
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
DRI and runlevel 4


I have DRI working in runlevel 3 (the standard for Slackware). When I change initab to use runlevel 4 (straight to X), I lose DRI. Any ideas? As I said, works perfect in 3, not at all in 4
 
Old 01-12-2006, 08:42 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Not sure if slackware uses it but many Unix/Linux distros use SVR4 style init scripts.

Essentially you create the base init script (often in /etc/init.d - some distros have this as a symbolic link to where they really are). You then create links (usually symbolic) from /etc/init.d files to files in /etc/rc?.d (or similar location). The ? is for each run level so there would be a rc1.d, a rc2.d etc...

The link usually has the format of S##file or K##file where S means start and K means stop (kill) and the ## is the order in which it would do it (01 = first, 99 = last). The "file" is usually the same as the file name in init.d.

Check to see if you have such a S##file for startup for this application in your rc3.d. If so just copy it into your rc4.d and you should be good to go.
 
Old 01-12-2006, 08:49 AM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Slackware goes in a /etc/rc.d/rc.? system, no sym links. There is no rc.3, and all rc.4 does is call the session manager. No help. X is running fine, no errors in the log file, just that DRI isn't working.

I'm figuring that xorg.conf is called either way, so why won't DRI work in 4, but does in 3?

Last edited by cwwilson721; 01-12-2006 at 08:50 AM.
 
Old 01-12-2006, 09:06 AM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Decided to reset my initab back to 4, rebooted (wanted to see what the logs were saying, again), and lo and behold, DRI is fine...I hate that....Doing the windows fix ("If all else fails, reboot")
 
Old 01-12-2006, 09:11 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,610
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
Since distributions do vary somewhat in exactly how they set-up the runlevel files and where they put them, the place to begin is always /etc/inittab: the actual file which init refers to...
 
Old 01-12-2006, 09:28 AM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Read my post AGAIN. It's NOT the rc.? files. They only start the process. Everything BUT dri is fine, no matter what init level I chose, except 4. It seems to be more in parsing the xorg.conf file. Is there another xorg.conf type file running around in the system somewhere? Or when choosing 4, does xorg skip a file or two?

In Slackware, the default runlevel is 3. That calls rc.M, which is ALSO called before rc.4 in a runlevel 4 situation (I have special echo calls in my rc.? files to keep track of what is/what is not loading for my servers...Those little additions to my rc.? files has help alot in setting this thing up, so I know if different configs are loading things in a inconsistant manner). So I know the base calls are fine, it's just when the system is handed over to xorg, that I lose track.
 
Old 01-12-2006, 11:22 AM   #7
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You seem a little testy for a peson requesting help.

Sundial didn't say to look in the rc scripts. He was saying there may be some other init script involved. Since your issue is run level specific it isn't silly to focus on init/rc stuff. Though its not impossible I've not seen many conf files that care about what run level you're in.

Also for future reference rather than saying "no help" it might be more polite to say "thanks for your input but that wasn't the issue".

Please remember that all types post in this forum. We have no way of knowing what you already know so no offense is intended by telling you to try things you may already have tried if you haven't noted you did. It doesn't mean we think you're stupid - just means that's what we would do given the information provided by your post.
 
Old 01-12-2006, 11:36 AM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
I know. And that is why I expanded on it on my next post. I have already been thru the scripts, many times, and nothing in there points to the DRI issue. What I'm assuming, becuase I cannot even start to fathom it, is that after rc.4 is called, for the graphical login, that X may use a different conf file or something along those lines.

I have not delved into the inner workings of X very much. I know that on occasions, you can delete the xorg.conf file, and it will still boot (hence leading me to my thoughts that there may be a copy saved somewhere as an unknown name).

Anybody know about X? Does it do what the evidence is suggesting?

As for the scripts in the previous post, I do apologize for not making myself more clear. And the 'no good' statement is just me. I tend not to wax eloquent when the solution is no good. I may be too direct for you, but my time is not always best spent assuaging the egos of others. You will also find that when the solution works, I just say 'It worked'. That's just me. If you want the top of the line in politeness and manners, I'm not that person. I'm just direct and to the point.
 
  


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
What's the difference between runlevel 2 and runlevel 5 in Debian? davidas Linux - Newbie 2 01-05-2012 01:10 PM
Runlevel? bluethundr Linux - Newbie 7 09-29-2005 05:27 AM
runlevel 4 and rc.M blian Slackware 5 05-11-2004 01:27 PM
What does Runlevel mean, and why am I in 3? thalerz Linux - General 6 11-21-2003 12:35 PM
X does not start in Runlevel 4, but i Runlevel 3 Rabon Linux - General 3 11-18-2003 06:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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