Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I've been using Debian Linux for several years now. This is a problem that has persisted with me since Lenny (I'm currently running Wheezy). I am using a widescreen ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2013
    Posts
    2

    Screen Resolutions (Driver Issues?)


    Hi,

    I've been using Debian Linux for several years now. This is a problem that has persisted with me since Lenny (I'm currently running Wheezy). I am using a widescreen monitor. My computer dual-boots Windows Vista and Debian, and on the Windows side, the resolution which appears properly on my monitor (i.e. no black bars, not stretched beyond the borders of the monitor) is constantly changing with each new NVidia driver update -- sometimes it's 1170x664, sometimes 1280x720, etc. Always a 16:9 resolution.

    On the Linux side, however, I have only ever been given one resolution option: 1280x720. This resolution has never worked, however. The screen is always stretched beyond the physical borders. I have been able to work around the problem in the past by increasing the height of my two taskbars on the top and bottom of the screen (I'm using GNOME, by the way), and manually resizing each program's windows. However, with the new upgrade to Wheezy, it no longer lets me do that on GNOME or GNOME Classic, making this a more urgent problem.

    The driver that my computer is currently reporting is "Gallium 0.4 on NV96". It's using an NVidia GT 120 card. This has been the same card that has been in this computer since I installed Debian.

    Any help would be appreciated. I'm unsure if there is any more information that is necessary to supply, but I will willingly supply more if needed. Thank you for your time.

  2. #2
    Linux User
    Join Date
    Dec 2011
    Location
    Turtle Island West
    Posts
    362
    I think you need to tweak your Xorg.conf or whatever your system calls it, in /etc/X11/

    I had to do this to get 1920x1080 working properly on my monitor. My OS predates 16:9 monitor ratios so I had to invent one that worked.

    You should have a program called xvidtune that you can play around with to tweak video settings. Once you get it tuned correctly, note the settings, and then use them in the Xorg.conf under the Monitor section:
    Code:
    Section "Monitor"
        Identifier "monitor1"
        VendorName "Plug'n Play"
        ModelName "AOC 2330V"
        HorizSync 24-80
        VertRefresh 56-75
        
        # 1920x1080 @ 60Hz
        Modeline "1920x1080-1" 172.798 1920 2040 2248 2576 1080 1081 1084 1118 -hsync -vsync
        
        # 1920x1080 @ 75Hz
        Modeline "1920x1080-2" 211.436 1920 2056 2264 2608 1080 1081 1084 1126 +hsync +vsync
        
        # Sony Vaio C1(X,XS,VE,VN)?
        # 1024x480 @ 85.6 Hz, 48 kHz hsync
        #ModeLine "1024x480"    65.00 1024 1032 1176 1344   480  488  494  563 -hsync -vsync
        
        # TV fullscreen mode or DVD fullscreen output.
        # 768x576 @ 79 Hz, 50 kHz hsync
        #ModeLine "768x576"     50.00  768  832  846 1000   576  590  595  630
        
        # 768x576 @ 100 Hz, 61.6 kHz hsync
        #ModeLine "768x576"     63.07  768  800  960 1024   576  578  590  616
        
        # Monitor preferred modeline (60.0 Hz vsync, 67.5 kHz hsync, ratio 16/9, 102 dpi)
        ModeLine "1920x1080-3" 148.5 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
        
        # Monitor supported CEA modeline (60.0 Hz vsync, 67.5 kHz hsync, ratio 16/9, 102 dpi)
        ModeLine "1920x1080-4" 148.5 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
        
        # Monitor supported CEA modeline (60.0 Hz vsync, 33.8 kHz hsync, interlaced, ratio 16/9, 102 dpi)
        ModeLine "1920x1080-5" 74.25 1920 2008 2052 2200 1080 1084 1094 1125 +hsync +vsync Interlace
        
        # Monitor supported CEA modeline (50.0 Hz vsync, 28.1 kHz hsync, interlaced, ratio 16/9, 102 dpi)
        ModeLine "1920x1080-6" 74.25 1920 2448 2492 2640 1080 1084 1094 1125 +hsync +vsync Interlace
        
        # Monitor supported CEA modeline (50.0 Hz vsync, 56.2 kHz hsync, ratio 16/9, 102 dpi)
        ModeLine "1920x1080-7" 148.5 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
        
        # Monitor supported modeline (60.0 Hz vsync, 67.5 kHz hsync, ratio 16/9, 102 dpi)
        ModeLine "1920x1080-8" 148.5 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
        
        # Monitor supported modeline (60.0 Hz vsync, 33.8 kHz hsync, interlaced, ratio 16/9, 102 dpi)
        ModeLine "1920x1080-9" 74.25 1920 2008 2052 2200 1080 1084 1094 1125 +hsync +vsync Interlace
    
    EndSection
    That's the working example from my /etc/X11/XF86Config-4 (It's the old version before Xorg) with a bunch of settings I tried but didn't quite work properly.

    Then, use it in the screen section:
    Code:
    Section "Screen"
        Identifier "screen1"
        Device "device1"
        Monitor "monitor1"
        DefaultColorDepth 24
        
        Subsection "Display"
            Depth 8
            Virtual 1920 1080
        EndSubsection
        
        Subsection "Display"
            Depth 15
            Virtual 1920 1080
        EndSubsection
        
        Subsection "Display"
            Depth 16
            Virtual 1920 1080
        EndSubsection
        
        Subsection "Display"
            Depth 24
            Virtual 1920 1080
        EndSubsection
    EndSection
    Anyway, that's my best guess.

    Peace and Cheer.

  3. #3
    Just Joined!
    Join Date
    Jan 2013
    Posts
    2
    I appreciate the help, and I'm sure much of that is useful. I'm just having issues with xvidtune: If I attempt to make my screen any shorter or any narrower (using the "Shorter" and "Narrower" buttons), and then test it, I get the following error:

    Code:
    Invalid Mode Requested
    
    Sorry, you have requested a mode-line
    That is not possible, or not supported by your
    hardware configuration
    
    Acknowledged
    I have tried a variety of different modes (really all the Shorter and Narrower buttons do is increase my VTotal and HTotal respectively), and nothing works.

    EDIT: I'm not sure that that error is meaningful, actually. If I use Restore to set it back to how I was when I opened it, and then use Test to try it out, it still gives me the same error. Also that error when I use Apply. It seems this makes it benign, but it still leaves a problem: I can't test what video modes work.
    Last edited by drummerp; 01-15-2013 at 11:10 PM. Reason: New information

Posting Permissions

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