Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 51

Thread: HOWTO: Screen Resolution in Hoary 5.04

  1. #21
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    Hidden!
    Distro
    Hardy Heron (Ubuntu Development)

    Re: HOWTO: Screen Resolution in Hoary 5.04

    Howto solve some of the resolution problems

    This HOWTO is not maintained, the current one (for Breezy Badger) is at:
    http://ubuntuforums.org/showthread.php?p=454217


    Check
    FixVideoResolutionHowto
    https://wiki.ubuntu.com/FixVideoResolutionHowto
    https://wiki.ubuntu.com/DebuggingXAutoconfiguration

    Integrated Intel graphics card?
    http://ubuntuforums.org/showthread.php?t=27029
    http://ubuntuforums.org/showthread.php?t=24923
    http://www.x.org/X11R6.8.2/doc/i810.html

    Problems with login screen refresh rate?
    http://ubuntuforums.org/showpost.php...44&postcount=3


    Backup your configuration file
    Code:
    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup

    How to edit xorg.conf file

    Run in terminal or console:
    Code:
    sudo nano /etc/X11/xorg.conf
    online help in nano: ctrl+g (ctrl+x exits)

    How to edit or add HorizSync and VertRefresh lines
    Find your monitors manual (manufacturers website and Google are useful).
    Look for hozizontal sync and vertical refresh rates, also if bandwidth or maximum dot clock / pixel clock is mentioned, write it down.

    Edit xorg.conf and put correct values to your xconf.org's Monitor section. Something like this:
    Code:
    Section "Monitor"
        Identifier    "CM752ET"
        HorizSync     31-101
        VertRefresh    60-160
    EndSection
    Be sure that Identifier is same as the Monitor line in Screen section.


    Adding custom modeline
    Now, if you know what your monitor can do, for example 1024x768@75Hz (edit: choose decent resolution / refreshrate), you can open another terminal window (keep xorg.conf open in gedit) and enter:

    Code:
     gtf horizontalresolution verticalresolution refreshrate
    for example:
    gtf 1024 768 75
    Copy paste the output to your Monitor section.

    Code:
     
      # 1024x768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 81.80 MHz
      Modeline "1024x768_75.00"  81.80  1024 1080 1192 1360  768 769 772 802  -HSync +Vsync
    Watch that the hsync is in range with the HorizSync on the same section (in this example the range is 31-101 and this modelines hsync is 37.65, so we're safe). Also the VertRefresh and the refresh rate you selected (75Hz in this example) should match - in this example VertRefresh is 60-160 and modeline is 75Hz, so that's all good.

    Now you can select the defaul resolution and colordepth by tweaking the Screen section. It should look something like this:

    Code:
    Section "Screen"
        Identifier    "Default Screen"
        Device        "NVIDIA Corporation NV34 [GeForce FX 5200]"
        Monitor        "CM752ET"
        DefaultDepth    16
        SubSection "Display":
            Depth        16
            Modes      "1280x1024" "1024x768"
        EndSubSection
    EndSection
    Monitor name here (CM752ET) matches the Identifier on your Monitor Section. Device line here matches the identifier on your Device section - you get the idea? It ties together some settings for your screen - the graphics card and your monitor. You may have more Subsections here, but only one is needed.

    Change the DefaultDepth to what you would want it to be, 16 (65536 colors) or 24 (16M colors). Change the Modes line to match the resolutions you want to use - Depth must match DefaultDepth (here it's 16).

    Save the config. If you're in X, hit CTRL+ALT+BACKSPACE to restart X (if you're running logon manager like xdm, kdm or gdm). Change between virtual consoles with CTRL + F1 F2 F3 and so on - your X should be on F7.

    Starting the X:
    startx OR sudo /etc/init.d/gdm start (in KDE it's kdm)

    If that doesn't work, try fixing the xorg.conf or get back to your original by copying the backup over your changed one with:
    Code:
    sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf
    When you're back in X, you can cycle through different modes by pressing CTRL+ALT++ (plus sign on numpad), or go to System->Preferences->Screen Resolution.


    How to adjust position of your screen?
    open terminal(Applications->Accessories->Terminal), run xvidtune (type: "xvidtune"), adjust the screen and hit Show-button. You'll see a line with something like this on the terminal screen:
    Code:
    "1280x1024"   157.50   1280 1332 1492 1728   1024 1025 1028 1072 +hsync +vsync
    Next you should:
    Code:
    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
    sudo gedit /etc/X11/xorg.conf
    In Monitor section, add the above line with a prefix "Modeline", like this:
    Code:
    Modeline "1280x1024"   157.50   1280 1332 1492 1728   1024 1025 1028 1072 +hsync +vsync
    That should do it. There should be no need to restart X if you did make the change (hit Apply in xvidtune), but you should test that this new change works. Hit ctrl+alt+backspace to restart X. If it doesn't work, you can copy back the old configuration file using:
    Code:
    sudo /etc/X11/xorg.conf_backup /etc/X11/xorg.conf
    and restart X using:
    Code:
    sudo /etc/init.d/gdm start
    Where is the log file?
    /var/log/Xorg.0.log


    How to reconfigure Xorg
    You can do the whole X configuration process by entering:
    sudo dpkg-reconfigure xserver-xorg



    Why must I set the correct screen resolution on every startup?
    http://www.ubuntuforums.org/showpost...55&postcount=5

    How to ask help
    personally I prefer to help on these problems if the question is asked on correct forum on its own thread, it makes answering a lot easier (than trying to remember everyones nick, GPU, monitor and so on). It will also give more attention to your question as more people will read it.

    Helpful information you can add to your post when asking help on this subject
    • What are the symptoms
      • Do you get only low resolution
      • Do you get only black or distorted screen?
    • which monitor do you have?
      • make and model
      • link to specification sheet or user manual, if possible
    • which graphics card do you have?
      • chipset, amount of memory
    • some parts of /etc/X11/xorg.conf -file
      • Monitor-section
      • Device-section
      • Beginning of Screen-section (~10 lines)
    • resolution you want to use
    • attached /var/log/Xorg.0.log (compressed preferred), *NOT* INLINE
    Things to try:
    • if you're using kvm (keyboard/video/mouse-switch), try reconfiguring without
    • vesa driver instead of your graphics card specific driver
    • nv instead of nvidia
    • 16-bits colors instead of 24-colors
    • adding HorizSync and VertRefresh line in Monitor section with correct values from monitors specification
    • adding custom modeline for your monitor in Monitor section
    • reconfiguring Xorg
      • Code:
        sudo dpkg-reconfigure xserver-xorg
    Thank you!
    Last edited by heimo; October 30th, 2005 at 08:54 AM.

  2. #22
    Join Date
    Apr 2005
    Location
    Buenos Aires, A
    Beans
    50

    Re: HOWTO: Screen Resolution in Hoary 5.04

    Thanks everyone for the tips.

    Still, I cannot get my video at the desired 1024x768, 100Hz refresh. I've tried everything I've found here (and elsewhere in the forums), and it doesn't work.
    ---
    EDIT: Fixing wrong hardware info...
    I'm running an ASUS A7V400-MX with VIA KM400A chipset (+ VIA VT8235 CE). Product Info HERE
    /EDIT

    The same system does the desired 1024x768@100Hz under windows 2000.
    Some info on my system

    sudo xresprobe via
    id: S/M 750p
    res: 1280x1024 1024x768 832x624 800x600 720x400 640x480
    freq: 30-96 50-160
    disptype: crt

    So I've set this in the monitor section of /etc/X11/xorg.conf:
    Section "Monitor"
    Identifier "S/M 750p"
    Option "DPMS"
    HorizSync 30-96
    VertRefresh 50-160
    EndSection

    Section "Screen"
    Identifier "Default Screen"
    Device "VIA Technologies, Inc. VT8378 [S3 UniChrome] Integrated Video"
    Monitor "S/M 750p"
    DefaultDepth 24
    SubSection "Display"
    Depth 1
    Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    [... same for 4,15,16...]
    SubSection "Display"
    Depth 24
    Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    EndSection

    Then I added the modeline generated by GTF in the monitor section (right before EndSection)

    # 1024x768 @ 100.00 Hz (GTF) hsync: 81.40 kHz; pclk: 113.31 MHz
    Modeline "1024x768_100.00" 113.31 1024 1096 1208 1392 768 769 772 814 -HSync +Vsync

    Restarted GNOME and it's still at 85Hz. I tried to force 100Hz by changing the previous modeline to

    Modeline "1024x768" 113.31 1024 1096 1208 1392 768 769 772 814 -HSync +Vsync

    (so that, I suppose, "1024x768" in the "Screen" "Display" subsections would take the resolution from this gtf-generated modeline).
    The result was a blue error screen: cannot start X, bla bla.

    So I'm still working at 85Hz (after restoring my previous settings).

    Any help would be really appreciated. Thanks!
    Last edited by fede; April 19th, 2005 at 02:30 AM.

  3. #23
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    Hidden!
    Distro
    Hardy Heron (Ubuntu Development)

    Re: HOWTO: Screen Resolution in Hoary 5.04

    Put the first modeline back in and change VertRefresh 50-160 to VertRefresh 99-160 and try then.

  4. #24
    Join Date
    Apr 2005
    Location
    Buenos Aires, A
    Beans
    50

    Re: HOWTO: Screen Resolution in Hoary 5.04

    Quote Originally Posted by heimo
    Put the first modeline back in and change VertRefresh 50-160 to VertRefresh 99-160 and try then.
    Hello heimo,

    Thanks for the reply. I've tried it and it doesn't work. The same error. In the log it says

    (WW) VIA(0): Mode pool is empty
    (EE) VIA(0): No valid modes found

    after finding all modes either "(bad mode clock/interlace/doublescan)" or (vrefresh out of range)

    Actually, after doing what you told me (modeline + vertrefresh 99-160), I've tried leaving only the VertRefresh line you suggested (commented out the modeline), and the same error pops up. If instead I leave the modeline and take away the vertrefresh lower limit, gnome starts in 832x624, the next resolution in the Displays section.

    Anything else would be appreciated... thanks again!

  5. #25
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    Hidden!
    Distro
    Hardy Heron (Ubuntu Development)

    Re: HOWTO: Screen Resolution in Hoary 5.04

    Next thing I'd probably try is put back the:
    Code:
     	HorizSync      30-96
    	VertRefresh   50-160
    and create bunch of modelines...
    Code:
      # 1024x768 @ 100.00 Hz (GTF) hsync: 81.40 kHz; pclk: 113.31 MHz
      Modeline "1024x768_100.00"  113.31  1024 1096 1208 1392  768 769 772 814  -HSync +Vsync
      # 1024x768 @ 98.00 Hz (GTF) hsync: 79.67 kHz; pclk: 110.91 MHz
      Modeline "1024x768_98.00"  110.91  1024 1096 1208 1392  768 769 772 813  -HSync +Vsync
      # 1024x768 @ 95.00 Hz (GTF) hsync: 77.04 kHz; pclk: 107.25 MHz
      Modeline "1024x768_95.00"  107.25  1024 1096 1208 1392  768 769 772 811  -HSync +Vsync
      # 1024x768 @ 92.00 Hz (GTF) hsync: 74.52 kHz; pclk: 102.54 MHz
      Modeline "1024x768_92.00"  102.54  1024 1088 1200 1376  768 769 772 810  -HSync +Vsync
      # 1024x768 @ 90.00 Hz (GTF) hsync: 72.81 kHz; pclk: 100.19 MHz
      Modeline "1024x768_90.00"  100.19  1024 1088 1200 1376  768 769 772 809  -HSync +Vsync
      # 1024x768 @ 88.00 Hz (GTF) hsync: 71.10 kHz; pclk: 97.84 MHz
      Modeline "1024x768_88.00"  97.84  1024 1088 1200 1376  768 769 772 808  -HSync +Vsync
      # 1024x768 @ 86.00 Hz (GTF) hsync: 69.40 kHz; pclk: 95.50 MHz
      Modeline "1024x768_86.00"  95.50  1024 1088 1200 1376  768 769 772 807  -HSync +Vsync
    Try to find where's the line - what works, what doesn't and fine tune afterwards.

  6. #26
    Join Date
    Mar 2005
    Location
    Luján, Argentina
    Beans
    9

    Re: HOWTO: Screen Resolution in Hoary 5.04

    Try setting

    VertRefresh 100

    so you leave no other choice to X than to set 100 Hz

  7. #27
    Join Date
    Apr 2005
    Location
    Buenos Aires, A
    Beans
    50

    Re: HOWTO: Screen Resolution in Hoary 5.04

    Thanks again heimo, but it still doesn't work. I've tried them all.

    In fact, I've become suspicious of the lines generated by gtf: I' ve tried generating modelines for 1024x768@85 and 800x600@85 and X also found thouse modes unusable when the modelines where present. You see, there shouldn't be a problem with 1024x768@85, because it ran right out of the box (also 1280x1024@85), and when I remove (or comment out) all modelines it works fine, but it doesn't with the modelines present.

    Same thing using the Modeline Generator at http://xtiming.sourceforge.net/cgi-bin/xtiming.pl

    The firmest hypothesis I've found (must have tried over 50 xorg.conf combinations in the last hours) is that for some reason X does not "like" modelines, at least for my config...

    Any ohter clues?

    Regards,

    Federico.
    Last edited by fede; April 19th, 2005 at 01:29 AM.

  8. #28
    Join Date
    Apr 2005
    Location
    Buenos Aires, A
    Beans
    50

    Re: HOWTO: Screen Resolution in Hoary 5.04

    Thanks for your reply maurom, but it still doesn't work. Same thing as when I tried heimo's suggestion: setting a higher lower limit for VertRefresh makes X cry that it can't find a valid video mode (with or without modelines defined)

  9. #29
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    Hidden!
    Distro
    Hardy Heron (Ubuntu Development)

    Re: HOWTO: Screen Resolution in Hoary 5.04

    I'm running out of ideas. Try switching to defaultdepth 16, use the actual sync/refresh rates of your monitor and post your /var/log/Xorg.0.log

    Hopefully you can find a way to fix it. Do you have any more spesific information / links to information about that motherboard and graphics chip on it? (I couldn't find it from Asus' site.)

    EDIT: Are you sure you should be using via driver? Try savage.
    Last edited by heimo; April 16th, 2005 at 09:09 PM.

  10. #30
    Join Date
    Apr 2005
    Beans
    9

    Re: HOWTO: Screen Resolution in Hoary 5.04

    I knew this would happen... I followed the OP's instruction for the xorg.conf file but my laptops monitor cannot go above 1024x768 and now the X server wont start up correctly, how can I remedy this?

Page 3 of 6 FirstFirst 12345 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •