Announcement

Collapse
No announcement yet.

I need a little Xorg.conf training Please

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I need a little Xorg.conf training Please

    Okay, first my challenge. I just upgraded my 21"CRT to a 24" wide panel display (Dell 2407wfp) and I can not increase the resolution to the required 1920x1200@60. Before I start messing around with my config file, I need some training.

    Let's start with my actual Xorg.conf file (applicable excerpt):
    Code:
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 1.0 (buildmeister@builder3) Thu Nov 9 17:55:20 PST 2006
    # /etc/X11/xorg.conf (xorg X Window System server configuration file)
    #
    # This file was generated by dexconf, the Debian X Configuration tool, using
    # values from the debconf database.
    
    Section "ServerLayout"
      Identifier   "Default Layout"
      Screen   0 "Default Screen" 0 0
      InputDevice  "Generic Keyboard"
      InputDevice  "Configured Mouse"
    EndSection
    
    Section "Module"
      Load      "i2c"
      Load      "bitmap"
      Load      "ddc"
      Load      "extmod"
      Load      "freetype"
      Load      "int10"
      Load      "type1"
      Load      "vbe"
      Load      "glx"
      Load      "v4l"
    EndSection
    
    Section "InputDevice"
      Identifier   "Generic Keyboard"
      Driver     "kbd"
      Option     "CoreKeyboard"
      Option     "XkbRules" "xorg"
      Option     "XkbModel" "pc105"
      Option     "XkbLayout" "us"
      Option     "XkbOptions" "lv3:ralt_switch"
    EndSection
    
    Section "InputDevice"
      Identifier   "Configured Mouse"
      Driver     "mouse"
      Option     "CorePointer"
      Option     "Device" "/dev/input/mice"
      Option     "Protocol" "ExplorerPS/2"
      Option     "ZAxisMapping" "4 5"
      Option     "Emulate3Buttons" "true"
    EndSection
    
    Section "Monitor"
      Identifier   "Generic Monitor"
      VendorName   "Dell"
      ModelName   "Dell P1110"
      HorizSync    30.0 - 121.0
      VertRefresh   48.0 - 160.0
      Gamma      1
      ModeLine    "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
      ModeLine    "640x480@72" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync
      ModeLine    "640x480@75" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync
      ModeLine    "640x480@85" 36.0 640 696 752 832 480 481 484 509 -hsync -vsync
      ModeLine    "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
      ModeLine    "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
      ModeLine    "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
      ModeLine    "800x600@85" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
      ModeLine    "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
      ModeLine    "832x624@75" 57.3 832 864 928 1152 624 625 628 667 -hsync -vsync
      ModeLine    "1024x768@85" 94.5 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
      ModeLine    "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
      ModeLine    "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -hsync -vsync
      ModeLine    "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
      ModeLine    "1024x768@43" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync +vsync interlace
      ModeLine    "1152x864@75" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
      ModeLine    "1152x768@54" 65.0 1152 1178 1314 1472 768 771 777 806 +hsync +vsync
      ModeLine    "1280x854" 80.0 1280 1309 1460 1636 854 857 864 896 +hsync +vsync
      ModeLine    "1280x1024@75" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
      ModeLine    "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
      ModeLine    "1280x960@85" 148.5 1280 1344 1504 1728 960 961 964 1011 +hsync +vsync
      ModeLine    "1280x1024@85" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync
      ModeLine    "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
      ModeLine    "1280x960@75" 129.9 1280 1368 1504 1728 960 961 964 1002 -hsync +vsync
      ModeLine    "1400x1050@60" 122.6 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
      ModeLine    "1400x1050@75" 155.8 1400 1496 1648 1896 1050 1051 1054 1096 -hsync +vsync
      ModeLine    "1600x1200@65" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
      ModeLine    "1600x1200@60" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
      ModeLine    "1600x1200@75" 202.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
      ModeLine    "1600x1200@70" 189.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
      ModeLine    "1600x1200@85" 229.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
      ModeLine    "1792x1344@75" 261.0 1792 1888 2104 2456 1344 1345 1348 1417 -hsync +vsync
      ModeLine    "1792x1344@60" 204.8 1792 1920 2120 2448 1344 1345 1348 1394 -hsync +vsync
      ModeLine    "1856x1392@60" 218.3 1856 1952 2176 2528 1392 1393 1396 1439 -hsync +vsync
      ModeLine    "1856x1392@75" 288.0 1856 1984 2208 2560 1392 1393 1396 1500 -hsync +vsync
      ModeLine    "1920x1440@60" 234.0 1920 2048 2256 2600 1440 1441 1444 1500 -hsync +vsync
      ModeLine    "1920x1440@75" 297.0 1920 2064 2288 2640 1440 1441 1444 1500 -hsync +vsync
      ModeLine    "2048x1536@60" 266.9 2048 2200 2424 2800 1536 1537 1540 1589 -hsync +vsync
      ModeLine    "2048x1536@75" 340.5 2048 2216 2440 2832 1536 1537 1540 1603 -hsync +vsync
    EndSection
    
    Section "Monitor"
      Identifier   "monitor1"
      Gamma      1
    EndSection
    
    Section "Device"
      Identifier   "NVIDIA Corporation NV28 [GeForce4 Ti 4200 AGP 8x]"
      Driver     "nvidia"
      BoardName   "nv"
      BusID     "PCI:3:0:0"
      Screen     0
    EndSection
    
    Section "Device"
      Identifier   "device1"
      Driver     "nv"
      BoardName   "nv"
      BusID     "PCI:3:0:0"
      Screen     1
    EndSection
    
    Section "Screen"
      Identifier   "Default Screen"
      Device     "NVIDIA Corporation NV28 [GeForce4 Ti 4200 AGP 8x]"
      Monitor    "Generic Monitor"
      DefaultDepth  24
      SubSection   "Display"
        Depth    24
        Modes   "1280x1024@75" "1280x960@60" "1280x854" "1280x960@85" "1152x768@54" "1280x1024@85" "1152x864@75"
     "1280x1024@60" "1024x768@43" "1280x960@75" "1024x768@60" "1400x1050@60" "1024x768@70" "1400x1050@75" 
    "1024x768@75" "1600x1200@65" "1024x768@85" "1600x1200@60" "832x624@75" "1600x1200@75" "800x600@60" "1600x1200@70" 
    "800x600@85" "1600x1200@85" "800x600@75" "1792x1344@75" "800x600@72" "1792x1344@60" "800x600@56" "1856x1392@60" 
    "640x480@85" "1856x1392@75" "640x480@75" "1920x1440@60" "640x480@72" "1920x1440@75" "640x480@60" "2048x1536@60" 
    "2048x1536@75"
      EndSubSection
    EndSection
    
    Section "Screen"
      Identifier   "screen1"
      Device     "device1"
      Monitor    "monitor1"
      DefaultDepth  24
    EndSection
    And now for my questions:

    Is the last section called "Screen" the part of the file that directs what other sections are to be used as defaults? If this is true, then Section "Monitor" is not being used at all (my old monitor)

    If my assumption is correct, why don't I have a "screen1" and "device1" ?

    I have two "device" sections which cites two NVidia drivers. Which is being used?

    Would I corrupt the file if I added a the following lines under Screen "Monitor1" as follows:

    VendorName "Dell"
    ModelName "Dell 2407WFP"
    Modes "1920x1200@60"

    Also, I need a little insurance. I did backup xorg.conf so would the following commands get me back up and running if I do corrupt the file?

    sudo cd /etc/X11/
    sudo cp xorg.conf_backup xorg.conf
    sudo reboot


    Thanks

    Mark
    "If you're in a room with another person who sees the world exactly as you do, one of you is redundant." Dr. Steven Covey, The 7-Habits of Highly Effective People

    #2
    Re: I need a little Xorg.conf training Please

    Yeah, that'd fix it.

    Anyway, the best way to redo your xorg.conf is to just execute "sudo dpkg-reconfigure xserver-xorg", because you don't really want to much around with hardware settings unless you REALLY know what you're doing. This way, your hardware is detected and probed and stuff.

    Oh, and could you do something about that long line? It's stretching the page...
    For external use only.

    Comment


      #3
      Re: I need a little Xorg.conf training Please

      You could also try changing the following:

      Section "Screen"
      Identifier "Default Screen"
      Device "NVIDIA Corporation NV28 [GeForce4 Ti 4200 AGP 8x]"
      Monitor "Generic Monitor"
      DefaultDepth 24
      SubSection "Display"
      Depth 24
      Modes "1280x1024@75" "1280x960@60" "1280x854" "1280x960@85" "1152x768@54" "1280x1024@85" "1152x864@75" "1280x1024@60"
      "1024x768@43" "1280x960@75" "1024x768@60" "1400x1050@60" "1024x768@70" "1400x1050@75" "1024x768@75" "1600x1200@65"
      "1024x768@85" "1600x1200@60" "832x624@75" "1600x1200@75" "800x600@60" "1600x1200@70" "800x600@85" "1600x1200@85"
      "800x600@75" "1792x1344@75" "800x600@72" "1792x1344@60" "800x600@56" "1856x1392@60" "640x480@85" "1856x1392@75"
      "640x480@75" "1920x1440@60" "640x480@72" "1920x1440@75" "640x480@60" "2048x1536@60" "2048x1536@75"
      EndSubSection
      EndSection
      If you look at the section entitled 'Modes', you'll notice the resolution "1280x1024@75" is located first in the line; try placing the
      resolution "1920x1200@60" just before "1280x1024@75". The configuration file seems to use the first resolution listed here as
      the default resolution for your pc; I've just had a fiasco configuring my xorg.conf file, that's how I learned this tip. After reconfiguration,
      it should look something like:

      Section "Screen"
      Identifier "Default Screen"
      Device "NVIDIA Corporation NV28 [GeForce4 Ti 4200 AGP 8x]"
      Monitor "Generic Monitor"
      DefaultDepth 24
      SubSection "Display"
      Depth 24
      Modes "1920x1200@60" "1280x1024@75" "1280x960@60" "1280x854" "1280x960@85" "1152x768@54" "1280x1024@85" "1152x864@75" "1280x1024@60"
      "1024x768@43" "1280x960@75" "1024x768@60" "1400x1050@60" "1024x768@70" "1400x1050@75" "1024x768@75" "1600x1200@65" "1024x768@85"
      "1600x1200@60" "832x624@75" "1600x1200@75" "800x600@60" "1600x1200@70" "800x600@85" "1600x1200@85" "800x600@75" "1792x1344@75"
      "800x600@72" "1792x1344@60" "800x600@56" "1856x1392@60" "640x480@85" "1856x1392@75" "640x480@75" "1920x1440@60" "640x480@72"
      "1920x1440@75" "640x480@60" "2048x1536@60" "2048x1536@75"
      EndSubSection
      EndSection
      If you would like to, try the above and see what it does, remembering to restart the xserver after you configure the file. You can't really do anything irreplaceable
      as long as you have a backup copy of the xorg.conf, and this shouldn't harm your computer anyway.

      Asus G1S-X3:
      Intel Core2 Duo T7500, Nvidia GeForce 8600M GT, 4Gb PC2-5300, 320Gb Hitachi 7k320, Linux ( )

      Comment


        #4
        Re: I need a little Xorg.conf training Please

        Thanks Integr8e;

        How exactly do I restart X ? Can I simply open a terminal window and enter:

        sudo startx

        Please advise.

        Mark
        "If you're in a room with another person who sees the world exactly as you do, one of you is redundant." Dr. Steven Covey, The 7-Habits of Highly Effective People

        Comment


          #5
          Re: I need a little Xorg.conf training Please

          Just startx will do it.

          eriefisher
          ~$sudo make me a sandwich

          Comment


            #6
            Re: I need a little Xorg.conf training Please

            Or Ctrl-Alt-Backspace.

            Comment


              #7
              Re: I need a little Xorg.conf training Please

              Okay, the dpkg reconfigure command corrupted the file somehow so after a terminal file copy from backup and reboot, I made some manual changes to the xorg.conf file.

              I added the optimal video mode for my new monitor and I also tailored the mode line under the screen section so it starts with 1920x1200@60 as recommended. I rebooted the system (forgot about Ctrl-Alt-Bkspace from my BSD days). The screen did auto-adjust to a new resolution, but Kubuntu sysinfo still reports 1600x1200 and I really don't see any difference or any more screen real estate like I expected.

              Is there any way to verify screen resolution from a terminal?

              Here's the end of my new xorg.conf file:

              Code:
              Section "Monitor"
                Identifier   "monitor1"
                VendorName   "Dell"
                ModelName   "2407WFP"
                Gamma      1
              EndSection
              
              Section "Device"
                Identifier   "NVIDIA Corporation NV28 [GeForce4 Ti 4200 AGP 8x]"
                Driver     "nvidia"
                BoardName   "nv"
                BusID     "PCI:3:0:0"
                Screen     0
              EndSection
              
              Section "Device"
                Identifier   "device1"
                Driver     "nv"
                BoardName   "nv"
                BusID     "PCI:3:0:0"
                Screen     1
              EndSection
              
              
              Section "Screen"
                Identifier   "Default Screen"
                Device     "NVIDIA Corporation NV28 [GeForce4 Ti 4200 AGP 8x]"
                Monitor    "Generic Monitor"
                DefaultDepth  24
                SubSection   "Display"
                  Depth    24
                  Modes   "1920x1200@60" "1280x960@60" "1280x1024@60" "1024x768@60" "1600x1200@60"
                EndSubSection
              EndSection
              
              Section "Screen"
                Identifier   "screen1"
                Device     "device1"
                Monitor    "monitor1"
                DefaultDepth  24
              EndSection

              You can see that I updated the "Monitor1" section for me Dell flat panel, but I don't know if X is using it or the other Monitor section. I also still don't understand why I have two Sections called "Screen." I'm not even sure if the screen section (Identifier "Default Screen") is being used by X or not. I'd really like to delete the Monitor section (Identifier "Generic Monitor") since it only applies to my old CRT, but again, I don't know what X is using. Any ideas?
              "If you're in a room with another person who sees the world exactly as you do, one of you is redundant." Dr. Steven Covey, The 7-Habits of Highly Effective People

              Comment


                #8
                Re: I need a little Xorg.conf training Please

                You have default screen and screen1. The card you show is a Ti4200, the same one I have. This card has two outputs, one for a monitor and a tv out(dvi). The tv out would be screen1 your monitor would be default screen or screen0.
                ~$sudo make me a sandwich

                Comment

                Working...
                X