LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2009, 04:26 PM   #1
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 313

Rep: Reputation: 34
xrandr, xorg.conf


I have a fancy 1440x900 monitor. My xorg.conf looks like this:
Code:
Section "Screen"
    Identifier     "Screen 1"
    Device         "NVIDIA GeForce 6600 GT"
    Monitor        "ACER X193W LCD MONITOR"
    DefaultDepth    24
    SubSection     "Display"
        Viewport    0 0
        Depth       8
        Modes      "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       16
        Modes      "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       24
        Modes      "1440x900" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection
I put that 1440x900 in myself. Whenever I start X I am in 1440x1024 resolution. Why? I have to run xrandr every time to change it to 1440x900. I don't understand.

If it helps here is my lspci:
Code:
root@icebox:/home/icecube# lspci
00:00.0 RAM memory: nVidia Corporation C51 Host Bridge (rev a2)
00:00.1 RAM memory: nVidia Corporation C51 Memory Controller 0 (rev a2)
00:00.2 RAM memory: nVidia Corporation C51 Memory Controller 1 (rev a2)
00:00.3 RAM memory: nVidia Corporation C51 Memory Controller 5 (rev a2)
00:00.4 RAM memory: nVidia Corporation C51 Memory Controller 4 (rev a2)
00:00.5 RAM memory: nVidia Corporation C51 Host Bridge (rev a2)
00:00.6 RAM memory: nVidia Corporation C51 Memory Controller 3 (rev a2)
00:00.7 RAM memory: nVidia Corporation C51 Memory Controller 2 (rev a2)
00:02.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1)
00:03.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1)
00:04.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1)
00:05.0 VGA compatible controller: nVidia Corporation C51PV [GeForce 6150] (rev a2)
00:09.0 RAM memory: nVidia Corporation MCP51 Host Bridge (rev a2)
00:0a.0 ISA bridge: nVidia Corporation MCP51 LPC Bridge (rev a2)
00:0a.1 SMBus: nVidia Corporation MCP51 SMBus (rev a2)
00:0b.0 USB Controller: nVidia Corporation MCP51 USB Controller (rev a2)
00:0b.1 USB Controller: nVidia Corporation MCP51 USB Controller (rev a2)
00:0d.0 IDE interface: nVidia Corporation MCP51 IDE (rev a1)
00:0e.0 IDE interface: nVidia Corporation MCP51 Serial ATA Controller (rev a1)
00:0f.0 IDE interface: nVidia Corporation MCP51 Serial ATA Controller (rev a1)
00:10.0 PCI bridge: nVidia Corporation MCP51 PCI Bridge (rev a2)
00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2)
00:14.0 Bridge: nVidia Corporation MCP51 Ethernet Controller (rev a1)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
03:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600 GT] (rev a2)
04:08.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306 Fire II IEEE 1394 OHCI Link Layer Controller (rev 80)
I have an Nvidia GeForce 6600GT. I installed and ran their linux driver shellscript. I ran xorg.conf and entered all the info. When it asked for a card type I put 350 which was NVidia GeForce, there was only one GeForce choice, I guess that was right, I don't know. Then later on I added 1440x900 to xorg.conf manually.
 
Old 02-28-2009, 06:07 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Use modelines in the monitor section


and simplify the display subsection

SubSection "Display"
Depth 24
Virtual 1400 900
Modes "1400x900@95" "..."...
EndSubSection


If it is the new X then consider

#Section "ServerLayout"
# "AutoAddDevices" "off"
#EndSection
 
Old 02-28-2009, 06:08 PM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Use modelines in the monitor section


and simplify the display subsection

SubSection "Display"
Depth 24
Virtual 1400 900
Modes "1400x900@95" "..."...
EndSubSection


If it is the new X then consider

#Section "ServerLayout"
# "AutoAddDevices" "off"
#EndSection
 
Old 02-28-2009, 07:00 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Do you use the "nv" or the "nvidia" driver?

That is the size of my qosmio laptop's screen.

Here is my monitor section of xorg.conf:
Code:
Section "Monitor"

  # created by KGamma
  # created by KGamma
    Identifier     "Monitor[0]"
    VendorName     "--> LCD"
    ModelName      "1440X900@60HZ"
    UseModes       "Modes[0]"
    DisplaySize     365    230
    HorizSync       30.0 - 38.0
    VertRefresh     30.0 - 61.0
    Gamma           1.05
    Option         "CalcAlgorithm" "XServerPool"
    Option         "DPMS"
    Option         "PreferredMode" "1440x900"
EndSection
Here is my "Screen" section:
Code:
Section "Screen"

# Removed Option "metamodes" "DFP: nvidia-auto-select +0+0"
# Removed Option "metamodes" "DFP: 1440x900 @1440x1024 +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "1440x900 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Here is my layout section:
Code:
Section "ServerLayout"
    Identifier     "Layout[all]"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard[0]" "CoreKeyboard"
    InputDevice    "Mouse[1]" "CorePointer"
    InputDevice    "Mouse[3]" "SendCoreEvents"
    Option         "Clone" "off"
    Option         "Xinerama" "off"
EndSection
Notice how the Screen identifier matches what is in the layout section. You can add an additional screen section with a different identifier and if it doesn't work, change the layout section's Screen entry to what it was before. Having an lcd monitor, I don't have entries for other resolutions. They still work (usking krandrtray for example) automatically and don't need to be listed. I always use the default resolution of an LCD monitor. The newer versions of Xorg can use built in defaults if sections aren't included in the xorg.conf file.
 
  


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
nvidia xorg.conf OR X windows xorg.conf? machines Slackware 3 04-06-2008 02:10 PM
xorg.conf being ignored? shame Slackware 6 04-18-2006 04:36 PM
xorg.conf coldsalmon Slackware 12 04-18-2005 01:57 AM
xorg.conf Duo Slackware 4 01-07-2005 08:57 PM
Xorg Hard Crashes and corrupts xorg.conf Advocator Linux - General 0 07-15-2004 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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