Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
05-16-2011, 05:18 PM
#1
Member
Registered: Apr 2007
Distribution: Mostly Debian
Posts: 114
Rep:
Post Your xorg.conf
It happens so often when installing Linux on certain machines that there are mismatches and information that needs to be put manually or tweaks. This is something I think most of us know that with Linux hurdles still exist.
xorg.conf is usually found in /etc/X11 . On newer systems xorg.conf may not be there but it can still be used and still be important when monitors are not supported or when there is a dependency on a proprietary driver or to boost performance on graphics cards.
Tweaks. There are those who tweak xorg.conf to do things otherwise, like TV output, multiple screens or different input devices like webcams or midi devices.
I don't think it is necessary to always put the full xorg.conf but only put specific sections that differ.
Minimal with no tweaks
AMD64
Operating System: Ubuntu
Video Card: NVidia 9600 PCI Express 16x
Using generic xorg.conf
Code:
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option "XkbOptions" "lv3:ralt_switch"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection
Section "Device"
Identifier "Configured Video Device"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
EndSection
Last edited by soplin; 05-18-2011 at 12:01 PM .
05-17-2011, 03:00 AM
#2
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552
Rep:
Fedora 11
Fixed 1152x864 resolution
Nvidia 7950GT PCI-E
LG L1919S LCD display
Intel 945 based motherboard with PCI-E
Note - I have the binary NVidia Linux driver installed, version 256.44 installed.
xorg.conf:
Code:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
FontPath "/usr/share/fonts/default/Type1"
EndSection
Section "ServerFlags"
Option "Xinerama" "0"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from data in "/etc/sysconfig/keyboard"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "us"
Option "XkbModel" "pc105"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "LG L1919S"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 7950 GT"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "1152x864_75 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Last edited by rylan76; 05-17-2011 at 03:01 AM .
1 members found this post helpful.
05-17-2011, 07:41 AM
#3
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Moved: This thread is more suitable in <Linux-General> and has been moved accordingly to help your thread/question get the exposure it deserves.
Quote:
The file xorg.conf is a file used for configuring the X.Org Server .
So buyer beware!
Last edited by onebuck; 05-17-2011 at 07:43 AM .
1 members found this post helpful.
05-17-2011, 08:49 AM
#4
Member
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Rep:
I thought the monolithic configuration model was outdated…?
Anyway, I suppose I'll share my NVIDIA driver configuration for my laptop (
/etc/X11/xorg.conf.d/20-nvidia.conf ):
Code:
Section "Device"
Identifier "Default nvidia Device"
Driver "nvidia"
Option "NoLogo" "True"
Option "RenderAccel" "True"
Option "DamageEvents" "True"
Option "TripleBuffer" "True"
Option "RegistryDwords" "EnableBrightnessControl=1"
Option "OnDemandVBlankInterrupts" "True"
Option "FlatPanelProperties" "Scaling=aspect-scaled, Dithering=Enabled, DitheringMode=Dynamic-2x2"
Option "SWCursor" "False"
Option "HWCursor" "True"
EndSection
The "SWCursor"/"HWCursor" stuff is leftover from me fiddling around with seeing if software cursor drawing would work under a hardware-accelerated window manager (Compiz). It works (sometimes, kinda), but it's very ugly.
Last edited by MrCode; 05-17-2011 at 08:51 AM .
1 members found this post helpful.
05-17-2011, 10:37 PM
#5
Member
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798
Rep:
ppc G4; Debian Gnu/Linux
Code:
##imac-ppc-slot-loader-350-xorg.conf#################
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 58-62
VertRefresh 75-117
#ModeLine "1024x768" 78.75 1024 1044 1140 1328 768 781 784 820 +hsync +vsync
#ModeLine "800x600" 62.40 800 821 901 1040 600 609 612 644 +hsync +vsync
#Modeline "640x480" 49.90 640 657 721 832 480 481 484 514 +hsync +vsync
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
#Virtual 1024 768
EndSubSection
EndSection
Section "Module"
Disable "dri"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
Option "XkbVariant" "intl"
Option "XkbOptions" "lv3:ralt_switch"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection
Section "Device"
Identifier "Configured Video Device"
Option "CCEusecTimeout" "100000"
#Option "UseFBDev" "true"
EndSection
given to me by oswaldkelso from forums.debian.net (and other places)
@soplin: i guess that is the thread you spoke of, right? If not let me know.
1 members found this post helpful.
05-18-2011, 11:50 AM
#6
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142
The nearest thing to xorg.conf in Fedora is /etc/X11/xorg.conf.d/. On my computer, it contains 00-system-setup-keyboard.conf. That declares itself autogenerated: "any modifications will be lost". And the contents bear no relation to my actual keyboard!
05-18-2011, 02:37 PM
#7
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Rep:
Here's mine. ASRock N61PS, NVidia 6150SE/nForce 430:
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 260.19.44 (buildmeister@swio-display-x86-rhel47-08.nvidia.com) Sun Feb 27 22:59:57 PST 2011
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib64/xorg/modules"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/CID"
FontPath "/usr/share/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/cyrillic"
EndSection
Section "Module"
Load "extmod"
Load "glx"
Load "dri2"
Load "dbe"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "Rotate" # [<str>]
#Option "VideoKey" # <i>
#Option "FlatPanel" # [<bool>]
#Option "FPDither" # [<bool>]
#Option "CrtcNumber" # <i>
#Option "FPScale" # [<bool>]
#Option "FPTweak" # <i>
#Option "DualHead" # [<bool>]
Identifier "Card0"
Driver "nvidia"
VendorName "Unknown Vendor"
BoardName "Unknown Board"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Last edited by brianL; 05-18-2011 at 02:39 PM .
1 members found this post helpful.
All times are GMT -5. The time now is 09:41 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News