Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg.conf missing
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rekonrad
Apprentice
Apprentice


Joined: 01 Jun 2003
Posts: 201
Location: Winnipeg, MB

PostPosted: Fri Jun 29, 2012 4:27 pm    Post subject: xorg.conf missing Reply with quote

I have tried to emerge / configure X according to http://www.gentoo.org/doc/en/xorg-config.xml but there is no xorg.conf at /etc/X11 ! Perhaps I missing something but I don't think so. Cheers
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Fri Jun 29, 2012 4:47 pm    Post subject: Reply with quote

Where in that guide do you see the need for a xorg.conf file? The instructions use the xorg.conf.d directory (and files therein) and even then that's more a "second choice". X is recently sufficiently mature to detect and use settings automatically without users needing to configure it explicitly.
_________________
Please add "[solved]" to the initial topic title when it is solved.
Back to top
View user's profile Send private message
rekonrad
Apprentice
Apprentice


Joined: 01 Jun 2003
Posts: 201
Location: Winnipeg, MB

PostPosted: Fri Jun 29, 2012 5:00 pm    Post subject: Xorg.conf missing Reply with quote

I failed to mention that I am trying to get my nvidia card
to work and so I'm also following the gentoo-nvidia guide
which asks for editing of that file.
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Fri Jun 29, 2012 5:18 pm    Post subject: Reply with quote

This is my xorg.conf, you can copy paste it as /etc/X11/xorg.conf
Code:
Section "Device"
        Identifier      "Device0"
        Driver          "nvidia"
        VendorName      "NVIDIA Corporation"
EndSection
Section "Files"
        ModulePath      "/usr/lib64/xorg/modules"
        ModulePath      "/usr/lib64/opengl/xorg-x11/extensions"
EndSection


EDIT: BTW, the Section Files is not absolutely needed for your xorg to work but xorg.log will display disgraceful warning messages if these ModulePath entries are not set.
_________________
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Fri Jun 29, 2012 6:52 pm    Post subject: Reply with quote

The xorg.conf may be created with the "X -configure" command.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Fri Jun 29, 2012 7:00 pm    Post subject: Reply with quote

ultraincognito wrote:
The xorg.conf may be created with the "X -configure" command.

Don't do that. It's outdated.

aCOSwt has it right, except I find loading stuff that won't be used just to get rid of harmless warning messages to be totally silly. You need the Device section, and that's it.
Back to top
View user's profile Send private message
Killerchronic
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2007
Posts: 91
Location: UK

PostPosted: Wed Jul 11, 2012 5:37 pm    Post subject: Reply with quote

aCOSwt wrote:
This is my xorg.conf, you can copy paste it as /etc/X11/xorg.conf
Code:
Section "Device"
        Identifier      "Device0"
        Driver          "nvidia"
        VendorName      "NVIDIA Corporation"
EndSection
Section "Files"
        ModulePath      "/usr/lib64/xorg/modules"
        ModulePath      "/usr/lib64/opengl/xorg-x11/extensions"
EndSection


EDIT: BTW, the Section Files is not absolutely needed for your xorg to work but xorg.log will display disgraceful warning messages if these ModulePath entries are not set.


Swear the documentation surrounding gentoo is getting slowly worse, esp with the changes that have happened it puts alot of google information incorrect or the syntax just slightly wrong.

Thanks for this, i've been hunting on and off all afternoon for what/how to create an xorg.conf that conforms to the latest style. Adding those few lines and starting x worked a treat.
Back to top
View user's profile Send private message
bigbangnet
Apprentice
Apprentice


Joined: 11 Jun 2007
Posts: 174

PostPosted: Mon Jul 16, 2012 5:40 pm    Post subject: Reply with quote

1 thing that should be told or just as an optional note on the link the OP is providing is this: If it's the open source nouveau driver, you don't need an xorg.conf. If it's the closed nvidia driver, you do need a minimal config containing a "Device" section.

I did use closed nvidia drivers without any xorg.conf and it didn't work; nothing worked. As soon as I did those minimal config it worked like a charm.
_________________
I'm a noob, be gentle with me. TEACH ME
Back to top
View user's profile Send private message
djdunn
l33t
l33t


Joined: 26 Dec 2004
Posts: 812

PostPosted: Mon Jul 16, 2012 8:21 pm    Post subject: Reply with quote

the Nvidia drivers don't work without a xorg.conf because they aren't mesa compatible or whatever
_________________
“Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”

― Plato
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Mon Jul 16, 2012 8:29 pm    Post subject: Reply with quote

djdunn wrote:
the Nvidia drivers don't work without a xorg.conf because they aren't mesa compatible or whatever

Nothing to do with mesa.

X has an internal list that maps PCI-IDs to drivers. Nvidia isn't on that list by default. Arch patches their X so that it is, meaning you don't need an xorg.conf there. Gentoo doesn't have such a patch.
Back to top
View user's profile Send private message
djdunn
l33t
l33t


Joined: 26 Dec 2004
Posts: 812

PostPosted: Mon Jul 16, 2012 11:07 pm    Post subject: Reply with quote

ah, i dont see why we would need to patch it either
_________________
“Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”

― Plato
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Thu Jul 26, 2012 9:06 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Desktop Environments.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum