LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing X verbosity level (https://www.linuxquestions.org/questions/linux-newbie-8/changing-x-verbosity-level-657671/)

atunguyd 07-23-2008 07:30 AM

Changing X verbosity level
 
Ok although I am somewhat experienced in Linux I am posting this in the Newbie forums cause I know it is a newbie question and I will slap myself when i see the answer.

I am fiddling around with modelines and I need to change my X log verbosity level. Now i know how to do this from the command line with startx X but in fedora 8 my X is starting automatically. Where is this done and how can I change the verbosity level?

Thanks

tredegar 07-23-2008 12:57 PM

I am not used to fedora, so take this advice carefully (mostly with regards to choosing the right runlevel):

You could stop X starting at boot by booting to runlevel3 in most distros (not debian or (k)ubuntu)

See /etc/inittab and change the default runlevel from 5 to 3 (maybe different for fedora?) and reboot.
Probably easier though (and no reboots): in a proper terminal (<CRTL><ALT><F1>) login as yourself.
su - to root then just

init 3

X will be shut down.
exit so you are back as yourself.

Then you can startx with any parameters you wish, and see any messages in the terminal.

The X environment is usually to be found on virtual TTY 7
<CRTL><ALT><F7> to switch to it, and <CRTL><ALT><F1> to switch back.
Of course you can also access the other terminals with <CRTL><ALT><F2-6>

When messing with this sort of thing I usually have

<CRTL><ALT><F1> running as myself
<CRTL><ALT><F2> running as root
<CRTL><ALT><F7> my X display (or not, depending).

Once you have it sorted, just reboot, or init 5 as root

X generally logs the startup events, and warnings / errors to /var/log/Xorg.0.log
That file is worth looking at.

There's no need for auto-flagellation.

unSpawn 07-23-2008 02:04 PM

Quote:

Originally Posted by tredegar (Post 3223979)
Then you can startx with any parameters you wish, and see any messages in the terminal.

...and if you view "startx" you see it sources server and client resource files and "man X(server|org)" has the switches you could put in them to make it log more verbose (like "-logverbose") .

atunguyd 07-24-2008 01:28 AM

Thanks for that - i know I could change runlevels then manually run startx -verbose 5 but i was hoping there was a way for GDM to launch X with this option. If not then i will go the route described above


All times are GMT -5. The time now is 12:13 AM.