LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-02-2008, 01:02 AM   #1
bapigoo9
Member
 
Registered: Aug 2008
Posts: 107

Rep: Reputation: 16
Xorg config, X not allowing new resolution, works without Xorg config file?


This post is just to help me to get the X configuration correct. I have already read several of the posts with similar Xorg config issues, and they helped...but I have some additional questions to try to understand what is going on.

Slackware 12 KDE 3.5

I have edited the Xorg config file to add the new resolution and the wheel mouse. Then restarted X and X did not allow this new resolution. Then, I deleted the Xorg config file, changed a setting on the KDE Control Center for the monitor, and restarted X. The new higher resolution worked and the wheel mouse worked. There are two other files there that I did not edit: Xorg.conf-fbdev and Xorg.conf-vesa. Does someone know what is going on (does KDE not need Xorg config)?
 
Old 12-02-2008, 01:37 AM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
It will look for xorg.conf in multiple places...

I am no Xorg master, but have been always successful getting it configured by the RTFM method (I mean that as encouragement - not sarcasm!).

So look at man xorg.conf for starters, X looks for this information in numerous places and after you deleted the /etc/X11/xorg.conf, it probably just defaulted to another which has fortunate defaults. I doubt KDE has much to do with it at that point.

For example (from man page):

Code:
       Xorg uses a configuration file called xorg.conf for its initial setup.  This configuration file
       is searched for in the following places when the server is started as a normal user:

           /etc/X11/<cmdline>
           /usr/etc/X11/<cmdline>
           /etc/X11/$XORGCONFIG
           /usr/etc/X11/$XORGCONFIG
           /etc/X11/xorg.conf-4
           /etc/X11/xorg.conf
           /etc/xorg.conf
           /usr/etc/X11/xorg.conf.<hostname>
           /usr/etc/X11/xorg.conf-4
           /usr/etc/X11/xorg.conf
           /usr/lib/X11/xorg.conf.<hostname>
           /usr/lib/X11/xorg.conf-4
           /usr/lib/X11/xorg.conf

       where <cmdline> is a relative path (with no ".." components) specified with the -config command
       line option, $XORGCONFIG is the relative path (with no ".." components) specified by that envi-
       ronment variable, and <hostname> is the machine's hostname as reported by  gethostname(__oslib-
       mansuffix__).

       When  the  Xorg  server  is started by the "root" user, the config file search locations are as
       follows:

           <cmdline>
           /etc/X11/<cmdline>
           /usr/etc/X11/<cmdline>
           $XORGCONFIG
           /etc/X11/$XORGCONFIG
           /usr/etc/X11/$XORGCONFIG
           $HOME/xorg.conf
           /etc/X11/xorg.conf-4
           /etc/X11/xorg.conf
           /etc/xorg.conf
           /usr/etc/X11/xorg.conf.<hostname>
           /usr/etc/X11/xorg.conf-4
           /usr/etc/X11/xorg.conf
           /usr/lib/X11/xorg.conf.<hostname>
           /usr/lib/X11/xorg.conf-4
           /usr/lib/X11/xorg.conf
Good luck!
 
Old 12-02-2008, 02:44 AM   #3
bapigoo9
Member
 
Registered: Aug 2008
Posts: 107

Original Poster
Rep: Reputation: 16
Perhaps I should have added that there is only one "xorg.conf" file in Slackware 12, and that after deleting it, there is no "xorg.conf" file, so even with the search path that you mentioned, X would not find an xorg.conf file. From other posts, a new xorg.conf file was supposed to be created and detected values filled in. But nothing happened, no new xorg.conf file was created ... but the mouse wheel worked, and the new resolution worked too.

Now, I am trying to understand why I do not need an xorg.conf file at all with Slackware 12 and KDE 3.5?
 
Old 12-02-2008, 03:24 AM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Quote:
Originally Posted by bapigoo9 View Post
Perhaps I should have added that there is only one "xorg.conf" file in Slackware 12...
Now, I am trying to understand why I do not need an xorg.conf file at all with Slackware 12 and KDE 3.5?
I am using SW 12.1, Xorg should not be much different, try this...

Code:
 cat /var/log/Xorg.0.log |less
I get the following in the first page or so of text:

(==) Using config file: "/etc/X11/xorg.conf"

I am not sure what it might say if it has no config file, but it might give a clue as to what it is using for defaults.

Sorry I missed your point in the OP.
 
Old 12-04-2008, 08:05 PM   #5
bapigoo9
Member
 
Registered: Aug 2008
Posts: 107

Original Poster
Rep: Reputation: 16
Quote:
/var/log/Xorg.0.log
The Xorg log was good to look at. Thank you for mentioning it. This is what I had when I did not use the Xorg config file:

(EE) Unable to locate config file
(II) loader magic 0x<hex number>
"built in default" screen automatically adding devices and enabling

It finds the Video Card chipset and loads drivers. It finds the Monitor and finds what settings are valid, including V and H sync rates.

It does not answer some new questions that come up, sort of puzzling at the moment. I'm sure there is an easy answer! Just can't think of it right now. If I pass a boot parameter: vga = 0x<new value>, Then it will not starx! It gives the error message: "Fatal server error can not run in framebuffer mode. Waiting for x server to begin accepting connections." And does not go into x.

I am able to get the New Resolution and the mouse wheel works (as originally mentioned), without the Xorg config file...and reading the Xorg log explains the auto detect. It works if I do not pass other vga options at boot time.
 
Old 12-05-2008, 12:52 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
New X can start without a xorg.conf file. You can run (as root):
Code:
Xorg -configure
for X to create a xorg.conf.new file and then
Code:
Xorg -config /root/xorg.conf.new
to use that configuration file. If you're happy with the results you can copy it to /etc/X11/xorg.conf, or you can tweak it further.

Regards
 
  


Reply



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
F10 ATI Redeon X1650 Pro Xorg Config File harley51 Fedora 1 11-28-2008 08:02 AM
xorg config file issues with dual monitors and oddly large fonts mastahnke Linux - Software 0 08-17-2005 12:15 AM
I have an XF86 config file for video, how do I turn it into XORG config lowpingnoob Linux - Newbie 18 06-12-2005 12:07 PM
replace 'xfree86' by 'xorg' in your xorg config file dindoung Linux - Newbie 2 02-26-2005 04:43 AM
xorg config help need salahuddin_66 Slackware 4 08-09-2004 07:00 AM

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

All times are GMT -5. The time now is 01:23 PM.

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