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 02-01-2008, 02:43 AM   #1
darthfoolish
Member
 
Registered: May 2006
Posts: 52

Rep: Reputation: 15
How to change X startup parameters?


Hi.

I know that editing /etc/inittab (fc8) changes my default runlevel.

But what file contains the parameters for X?

At the moment I have in /etc/rc.local a line that kills X and another that starts it again the way I want it.

Obviously, this is suboptimal, so I would like to change how X is launched at source.

Can anyone help please?
 
Old 02-01-2008, 06:34 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
The configuration file is /etc/X11/xorg.conf

Since you provide no details what so ever about your video card or anything else further help starts with you. The more information you can provide is helpful, the video card in question is a good start. What you have added to the /etc/rc.d/rc.local file (/etc/rc.local is a symbolic link to this file BTW).

The typed command /sbin/lspci -v will provide your hardware details, please post the revelant portion about you VGA compatible controller
 
Old 02-01-2008, 12:13 PM   #3
darthfoolish
Member
 
Registered: May 2006
Posts: 52

Original Poster
Rep: Reputation: 15
No, that's not what I'm looking for. I've already had a wrestling match with xorg.conf and sort of won.

What I'm looking for is what actually launches X, so you don't need any details of my video card.

If I have my default runlevel at 3, X will not start, I would have to type startx at the command prompt.

If I have it at 5, X starts automatically. But I don't see what it is about /etc/inittab that causes X to launch. So there must be a file somewhere else that has a line in it with 'startx' or 'usr/bin/X' or something like that

What I have at the moment is a kludge to start x with the parameters I want.

When I boot my machine with my kludge commands commented out, and do ps ax|grep Xorg

I see the following

/usr/bin/Xorg -br -s off -dpms -v -nolock -logfile /etc/rhgb/temp/xorg.log -extension XFree86-DRI :9 vt8

and I've no idea where some of these parameters came from, particularly the logfile part. When I first installed the system, the log was at /etc/X11/Xorg.0.log, then I must have done something that caused it to be specified elsewhere.

As said above, I now have a line in rc.local that kills this process, and another with startx. This works for me, but clearly it is not ideal.

If you really want to know, my video card is a Geforce FX 5200
 
Old 02-05-2008, 02:35 AM   #4
darthfoolish
Member
 
Registered: May 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Bump.

I can't believe no-one here knows the answer.
 
Old 02-05-2008, 03:39 AM   #5
Lepakko
Member
 
Registered: Feb 2008
Location: Mannheim, Germany
Distribution: Debian Etch
Posts: 44

Rep: Reputation: 16
Quote:
Originally Posted by darthfoolish View Post
If I have my default runlevel at 3, X will not start, I would have to type startx at the command prompt.

If I have it at 5, X starts automatically. But I don't see what it is about /etc/inittab that causes X to launch. So there must be a file somewhere else that has a line in it with 'startx' or 'usr/bin/X' or something like that
It sounds to me you're looking for the directory /etc/rc3.d (or /etc/init.d/rc3.d in some systems). All the init scripts (the scripts that can be started in boot time) are located in /etc/init.d, and the directories /etc/rc?.d have links to these scripts, determining which scripts are started in which order on which runlevel. S in the beginning of the name means the script will be run, K means it won't. The number after the letter determines the order in which the scripts will be run.

You probably want to look at the script named something like /etc/init.d/x11-common or such and see if you find the X parameters there.
 
Old 02-05-2008, 06:03 AM   #6
darthfoolish
Member
 
Registered: May 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Nope, theres nothing in any of those directories that obviously has anything to do with X starting.

These are all services aren't they? Is X usually run as a service?
 
Old 02-05-2008, 07:06 AM   #7
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Quote:
Originally Posted by darthfoolish View Post
Nope, theres nothing in any of those directories that obviously has anything to do with X starting.
I think xdm, kdm or gdm will be what you are looking for. These are the different 'display managers' which give you the graphical login. They are responsible for starting the X server, and typically give you a choice of window managers/users to select from.
 
Old 02-05-2008, 09:20 AM   #8
darthfoolish
Member
 
Registered: May 2006
Posts: 52

Original Poster
Rep: Reputation: 15
There are no instances of gdm, kdm or xdm running (should there be after login?)

I don't see anything in /etc/init.d pertaining to these either.
 
Old 02-05-2008, 05:55 PM   #9
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
If you are killing X in /etc/rc.local that seems to imply that X is running when you log in. So something has to start up to handle the login - usually this is the display manager (DM). This keeps running, so you can log out/in again without restarting X. I only recall x/k/gdm but there are probably others.

The only alternative I've seen is that the user logs in at the console and then starts the X server from the command line or from some login script like .bash_profile.

Exactly how X gets set up depends on the version of linux. e.g. Debian has a link from /usr/bin/x-window-manager to the actual wm that gets started.

What version of linux are you using?
 
Old 02-07-2008, 06:37 AM   #10
darthfoolish
Member
 
Registered: May 2006
Posts: 52

Original Poster
Rep: Reputation: 15
It's fedora core 8
 
Old 02-07-2008, 08:24 AM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
On my system (PCLOS), it starts with a link in rc5.d which goes to a script in init.d named "dm". This either starts X directly or starts a window manager. "dm" quickly calls /etc/X11/prefdm. Among other things, this checks the variable $DISPLAYMANAGER to see what has been set.

Start in rc5.d and follow the breadcrumbs. (Easier to say than to do.....)
 
  


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
Set or change Kernel Parameters AQG Solaris / OpenSolaris 18 08-22-2007 09:05 AM
Can I change the system parameters in /etc/systems online UltraSoul Solaris / OpenSolaris 2 02-07-2007 04:46 PM
how i can change the one of linux kernel schedular parameters? neha soni Linux - Kernel 2 02-03-2007 12:48 PM
Possible to change ethernet MAC address using kernel parameters? rollo Linux - Networking 2 02-23-2006 06:16 PM
how do I pass special parameters to the kernel at startup? Falafel Fedora 4 01-19-2004 07:49 PM

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

All times are GMT -5. The time now is 11:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration