LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 07-02-2010, 06:44 AM   #1
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Question about the scripts for X startup


For Mepis 8.5:

Where in what script can I add the -logverbose 5 parameter so it will be used in every X startup?

I often find myself diagnosing problems in various obscure display systems with the nvidia driver. Important extra info goes in the log if the nvidia driver sees a logverbose option.

I have discovered that I can switch to text mode (ctrl-alt-F1), log in as root, and then stop and restart X with
Code:
/etc/init.d kdm stop
startx -- -logverbose 5
But I would rather have the -logverbose 5 in the default startup of X.

I don't understand all the significance of starting X with startx rather than with /etc/init.d/kdm start. I know that the later brings me to a GUI login screen, while the former brings me directly to a desktop logged in as the same user that gave the startx command. But for this topic, the relevant difference is that startx processes the logverbose switch while /etc/init.d/kdm start doesn't.

I don't understand advanced bash scripting well enough to read the startx script and figure out what it does with its parameters, nor well enough to read the init scripts to figure out where X is really started.

Last edited by johnsfine; 07-02-2010 at 06:50 AM.
 
Old 07-02-2010, 11:13 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

I fired up my (older, 7.x) copy of MEPIS, and I couldn't find any obvious way to customize X server startup, either.

Then I found this:
Quote:
http://wiki.archlinux.org/index.php/Xorg

Note: If you start X with kdm, the startx script does not seem to be executed. X options must be appended to the variable "ServerArgsLocal" or "ServerCmd" in the /usr/share/config/kdm/kdmrc file. By default kdm options are:
Code:
  ServerArgsLocal=-nolisten tcp
  ServerCmd=/usr/bin/X
'Hope that helps .. PSM
 
Old 07-03-2010, 07:41 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Original Poster
Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Thanks. That looks like it is exactly the info I will need:
Find the kdmrc file and find/modify one of those two lines in the kdmrc file.

I'm at the wrong computer, so I can't try it now.

When I am able to try it, I'll report back here with some details succeed or fail.
 
Old 07-03-2010, 10:07 AM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Original Poster
Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
It worked. Thanks again.

I found the file. In Mepis 8.5 it is
/etc/kde4/kdm/kdmrc

In that file I found the line
Code:
ServerArgsLocal=-dpi 96 -nolisten tcp
I changed that to

Code:
ServerArgsLocal=-dpi 96 -nolisten tcp -logverbose 9
Now a normal boot of Mepis puts the extra detail into
/var/log/Xorg.o.log

Based on the nvidia README file, I thought that driver had only two levels of detail: low detail for logverbose 4 or less and high detail for 5 or more. But there is some extra info that seems to be from that driver that comes out with logverbose 9 that I hadn't gotten at logverbose 5. I still can't diagnose the current problem I'm having with the display on this system (see my other recent thread) but this change will simplify the process of experimenting on this computer and on other systems where I often diagnose similar display issues.
 
1 members found this post helpful.
  


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
Changing startup to load an image instead of showing kernel/startup information. orangesky Programming 1 05-25-2010 02:29 AM
Copy an internal hard drive as backup? Restore an internal drive? Peufelon Linux - Hardware 2 06-15-2008 03:28 PM
Display "Details during Startup" RHEL4 backroger Linux - Enterprise 4 03-26-2005 01:31 PM
My Redhat Linux 9 machine won't startup but gives a startup error" njugs79 Linux - Newbie 2 03-23-2005 12:50 AM
Installation of internal HP DAT 40i DDS internal tape drive netkepala Linux - Hardware 3 11-08-2004 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

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