Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: nVidia update disabled desired resolution

  1. #1
    Join Date
    Apr 2008
    Beans
    11,707

    nVidia update disabled desired resolution

    Today there was a security update to 'nvidia-current' in Precise:

    nvidia-graphics-drivers-updates (304.88-0ubuntu0.0.1) precise-security; urgency=low

    * SECURITY UPDATE: ARGB Cursor Buffer Overflow in "NoScanout" Mode
    - CVE-2013-0131

    * New upstream release
    - Fixed CVE-2013-0131:
    NVIDIA UNIX GPU Driver ARGB Cursor Buffer Overflow in
    "NoScanout" Mode. This buffer overflow, which occurred
    when an X client installed a large ARGB cursor on an
    X server running in NoScanout mode, could cause a denial
    of service (e.g., an X server segmentation fault), or
    could be exploited to achieve arbitrary code execution.

    [ Alberto Milone ]
    * debian/dkms.conf{.in}:
    - Drop all the patches.
    * debian/substvars:
    - Add support for xorg-video-abi-14.

    -- Alberto Milone <alberto.milone@canonical.com> Thu, 04 Apr 2013 13:40:29 +0200
    But along with that they dropped other patches and in my case it removed my desired resolution of 1440x900. This is the xrandr with the old driver:

    Code:
    lance@lance-AMD-desktop:~$ xrandr
    xrandr: Failed to get size of gamma for output default
    Screen 0: minimum 320 x 240, current 1440 x 900, maximum 1680 x 1050
    default connected 1440x900+0+0 0mm x 0mm
       1680x1050      50.0     51.0     52.0     53.0     54.0  
       1600x1024      55.0  
       1440x900       56.0* 
       1400x1050      57.0     58.0     59.0     60.0     61.0  
       1360x768       62.0     63.0  
       1280x1024      64.0     65.0  
       1280x960       66.0  
       1152x864       67.0     68.0     69.0     70.0  
       1024x768       71.0     72.0     73.0  
       960x720        74.0  
       960x600        75.0  
       960x540        76.0  
       928x696        77.0  
       896x672        78.0  
       840x525        79.0     80.0     81.0     82.0  
       832x624        83.0  
       800x600        84.0     85.0     86.0     87.0     88.0     89.0     90.0     91.0  
       800x512        92.0  
       720x450        93.0  
       680x384        94.0     95.0  
       640x512        96.0     97.0  
       640x480        98.0     99.0    100.0    101.0    102.0    103.0  
       576x432       104.0    105.0    106.0    107.0  
       512x384       108.0    109.0    110.0  
       416x312       111.0  
       400x300       112.0    113.0    114.0    115.0  
       320x240       116.0    117.0    118.0
    And here's the xrandr with the new driver:

    Code:
    lance@lance-AMD-desktop:~$ xrandr
    Screen 0: minimum 8 x 8, current 1680 x 1050, maximum 4096 x 4096
    VGA-0 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 297mm
       1680x1050      60.6*+   74.9  
       1600x1200      75.0     60.0  
       1400x1050      74.9     60.0  
       1280x1024      75.0     60.0  
       1280x960       60.0  
       1152x864       75.0  
       1024x768       75.0     70.1     60.0  
       800x600        75.0     72.2     60.3     56.2  
       640x480        75.0     72.8     59.9
    Any thoughts on how I can get the desired mode back in the updated driver?

    The xorg.conf has very little in it:

    Code:
    Section "Device"
    	Identifier	"Default Device"
    	Option	"NoLogo"	"True"
    EndSection
    A long time ago I used this same monitor with Intel graphics and I'd have to use this xorg.conf:

    Code:
    Section "ServerLayout"
    	Identifier     "X.org Configured"
    	Screen      0  "Screen0" 0 0
    	InputDevice    "Mouse0" "CorePointer"
    	InputDevice    "Keyboard0" "CoreKeyboard"
    EndSection
    
    Section "Files"
    	ModulePath   "/usr/lib/xorg/modules"
    	FontPath     "/usr/share/fonts/X11/misc"
    	FontPath     "/usr/share/fonts/X11/cyrillic"
    	FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
    	FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
    	FontPath     "/usr/share/fonts/X11/Type1"
    	FontPath     "/usr/share/fonts/X11/100dpi"
    	FontPath     "/usr/share/fonts/X11/75dpi"
    	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    	FontPath     "built-ins"
    EndSection
    
    Section "Module"
    	Load  "dbe"
    	Load  "dri"
    	Load  "dri2"
    	Load  "extmod"
    	Load  "record"
    	Load  "glx"
    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"
            Modeline     "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
            Option       "PreferredMode" "1440x900_60.00"
    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     "NoAccel"            	# [<bool>]
            #Option     "SWcursor"           	# [<bool>]
            #Option     "ColorKey"           	# <i>
            #Option     "CacheLines"         	# <i>
            #Option     "Dac6Bit"            	# [<bool>]
            #Option     "DRI"                	# [<bool>]
            #Option     "NoDDC"              	# [<bool>]
            #Option     "ShowCache"          	# [<bool>]
            #Option     "XvMCSurfaces"       	# <i>
            #Option     "PageFlip"           	# [<bool>]
    	Identifier  "Card0"
    	Driver      "intel"
    	VendorName  "Intel Corporation"
    	BoardName   "82945G/GZ Integrated Graphics Controller"
    	BusID       "PCI:0:2:0"
    EndSection
    
    Section "Screen"
    	Identifier "Screen0"
    	Device     "Card0"
    	Monitor    "Monitor0"
    	SubSection "Display"
    		Viewport   0 0
    		Depth     1
                    Modes    "1440x900@60"
    	EndSubSection
    	SubSection "Display"
    		Viewport   0 0
    		Depth     4
                    Modes    "1440x900@60"
    	EndSubSection
    	SubSection "Display"
    		Viewport   0 0
    		Depth     8
                    Modes    "1440x900@60"
    	EndSubSection
    	SubSection "Display"
    		Viewport   0 0
    		Depth     15
                    Modes    "1440x900@60"
    	EndSubSection
    	SubSection "Display"
    		Viewport   0 0
    		Depth     16
                    Modes    "1440x900@60"
    	EndSubSection
    	SubSection "Display"
    		Viewport   0 0
    		Depth     24
                    Modes    "1440x900@60"
    	EndSubSection
    EndSection
    So I sort of think I could just add the "Monitor" and "Screen" sections of that to my xorg.conf like this but I'm not sure:

    Code:
    Section "Device"
    	Identifier	"Default Device"
    	Option	"NoLogo"	"True"
    EndSection
    
    Section "Monitor"
    	Identifier   "Monitor0"
    	VendorName   "Monitor Vendor"
    	ModelName    "Monitor Model"
            Modeline     "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
            Option       "PreferredMode" "1440x900_60.00"
    EndSection
    
    Section "Screen"
    	Identifier "Screen0"
    	Device     "Card0"
    	Monitor    "Monitor0"
    	SubSection "Display"
    		Viewport   0 0
    		Depth     1
                    Modes    "1440x900@60"
    	EndSubSection
    	SubSection "Display"
    		Viewport   0 0
    		Depth     4
                    Modes    "1440x900@60"
    	EndSubSection
    	SubSection "Display"
    		Viewport   0 0
    		Depth     8
                    Modes    "1440x900@60"
    	EndSubSection
    	SubSection "Display"
    		Viewport   0 0
    		Depth     15
                    Modes    "1440x900@60"
    	EndSubSection
    	SubSection "Display"
    		Viewport   0 0
    		Depth     16
                    Modes    "1440x900@60"
    	EndSubSection
    	SubSection "Display"
    		Viewport   0 0
    		Depth     24
                    Modes    "1440x900@60"
    	EndSubSection
    EndSection
    I've been lucky enough that I haven't had to mess with an xorg.conf in a very, very long time
    Last edited by kansasnoob; April 13th, 2013 at 07:17 PM. Reason: Marking SOLVED

  2. #2
    Join Date
    Apr 2008
    Beans
    11,707

    Re: nVidia update disabled desired resolution

    It took a while but I found that old Intel graphics thread of mine:

    http://ubuntuforums.org/showthread.php?t=1462350

    I'm cross-testing Quantal on that box now to see if it's also effected. If so I'll check out Raring too.

  3. #3
    Join Date
    Aug 2006
    Beans
    13,354
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: nVidia update disabled desired resolution

    How about nvidia-settings? Can you add the correct resolution there?

  4. #4
    Join Date
    Apr 2008
    Beans
    11,707

    Re: nVidia update disabled desired resolution

    Quote Originally Posted by mikewhatever View Post
    How about nvidia-settings? Can you add the correct resolution there?
    It did before this update but not now. I haven't figured it out yet so I just keep reverting to the old driver.

    I think it's actually a bug but apport refused to let me file it as such

    With read-edid installed parse-edid shows the 1440x900 resolution.

  5. #5
    Join Date
    Jan 2013
    Location
    Eastern Europe
    Beans
    Hidden!
    Distro
    Lubuntu

    Re: nVidia update disabled desired resolution

    ...just passing through!
    I had a lot problems with nVidia.
    LOL

  6. #6
    Join Date
    Apr 2008
    Beans
    11,707

    Re: nVidia update disabled desired resolution

    Quote Originally Posted by Locus Kiesselbachi View Post
    ...just passing through!
    I had a lot problems with nVidia.
    LOL
    That's how I feel about them dropping this garbage into what should have been only a security fix:

    * debian/dkms.conf{.in}:
    - Drop all the patches.
    * debian/substvars:
    - Add support for xorg-video-abi-14.
    I'll figure this out soon I'm sure, but an LTS should never be dealt a regression like this!

  7. #7
    Join Date
    Apr 2008
    Beans
    11,707

    Re: nVidia update disabled desired resolution

    This is turning out to be a real nightmare

    I decided to start from scratch so I blew away the old xorg.conf and created a new one using NVIDIA-settings:

    Code:
    # nvidia-settings: X configuration file generated by nvidia-settings
    # nvidia-settings:  version 304.88  (buildd@roseapple)  Tue Apr  9 12:24:47 UTC 2013
    
    Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
        Option         "Xinerama" "0"
    EndSection
    
    Section "Files"
    EndSection
    
    Section "InputDevice"
        # generated from default
        Identifier     "Mouse0"
        Driver         "mouse"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/psaux"
        Option         "Emulate3Buttons" "no"
        Option         "ZAxisMapping" "4 5"
    EndSection
    
    Section "InputDevice"
        # generated from default
        Identifier     "Keyboard0"
        Driver         "kbd"
    EndSection
    
    Section "Monitor"
        # HorizSync source: edid, VertRefresh source: edid
        Identifier     "Monitor0"
        VendorName     "Unknown"
        ModelName      "HannStar Display Corp Hanns.G Hi221"
        HorizSync       24.0 - 94.0
        VertRefresh     56.0 - 76.0
        Option         "DPMS"
    EndSection
    
    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce 7025 / nForce 630a"
    EndSection
    
    Section "Screen"
        Identifier     "Screen0"
        Device         "Device0"
        Monitor        "Monitor0"
        DefaultDepth    24
        Option         "Stereo" "0"
        Option         "nvidiaXineramaInfoOrder" "CRT-0"
        Option         "metamodes" "nvidia-auto-select +0+0"
        SubSection     "Display"
            Depth       24
        EndSubSection
    EndSection
    This is really making me crazy!

    And it does effect Precise, Quantal, and Raring.

  8. #8
    Join Date
    Apr 2008
    Beans
    11,707

    Re: nVidia update disabled desired resolution

    OK, after creating that new xorg.conf I had to add a line which I highlighted in red here:

    Code:
    # nvidia-settings: X configuration file generated by nvidia-settings
    # nvidia-settings:  version 304.88  (buildd@roseapple)  Tue Apr  9 12:24:47 UTC 2013
    
    Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
        Option         "Xinerama" "0"
    EndSection
    
    Section "Files"
    EndSection
    
    Section "InputDevice"
        # generated from default
        Identifier     "Mouse0"
        Driver         "mouse"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/psaux"
        Option         "Emulate3Buttons" "no"
        Option         "ZAxisMapping" "4 5"
    EndSection
    
    Section "InputDevice"
        # generated from default
        Identifier     "Keyboard0"
        Driver         "kbd"
    EndSection
    
    Section "Monitor"
        # HorizSync source: edid, VertRefresh source: edid
        Identifier     "Monitor0"
        VendorName     "Unknown"
        ModelName      "HannStar Display Corp Hanns.G Hi221"
        HorizSync       24.0 - 94.0
        VertRefresh     56.0 - 76.0
        Option         "DPMS"
    EndSection
    
    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce 7025 / nForce 630a"
        Option         "ModeValidation" "AllowNonEdidModes"
    EndSection
    
    Section "Screen"
        Identifier     "Screen0"
        Device         "Device0"
        Monitor        "Monitor0"
        DefaultDepth    24
        Option         "Stereo" "0"
        Option         "nvidiaXineramaInfoOrder" "CRT-0"
        Option         "metamodes" "nvidia-auto-select +0+0"
        SubSection     "Display"
            Depth       24
        EndSubSection
    EndSection
    Then I had to reboot - just restarting X is not sufficient!

    Then I had to open Display Settings in System Settings after the reboot and set the desired resolution!

    It's quite a convoluted process

    I owe a debt of gratitude to nerd65536 for this post:

    http://ubuntuforums.org/showthread.p...8#post12304338

    Of course I've only done this once in Precise so I need to rinse-n-repeat in Quantal and Raring also ;^)
    Last edited by kansasnoob; April 12th, 2013 at 11:40 PM.

  9. #9
    Join Date
    Oct 2009
    Location
    Elgin, IL USA
    Beans
    3,363
    Distro
    Ubuntu 16.10 Yakkety Yak

    Re: nVidia update disabled desired resolution

    if your video card and monitor have DVI and/or HDMI (or possibly DVI to HDMI cable in either direction), in other words digital video, the system might have better odds of selecting the proper native resolution than VGA (which generally has a generic default list).

    My system updated to the 304.88 drivers, but not that I would notice, since I am using 310.14 experimental drivers that Steam recommends for its games (I forget if I am using HDMI or DVI to HDMI for my 1080p HDTV).
    Code:
    efflandt@XPS8100-1204:~$ dpkg-query -l nvidia* | grep ii
    ii  nvidia-common                          1:0.2.44.2                              Find obsolete NVIDIA drivers
    ii  nvidia-current                         304.88-0ubuntu0.0.2                     NVIDIA binary Xorg driver, kernel module and VDPAU library
    ii  nvidia-experimental-310                310.14-0ubuntu0.3                       Experimental NVIDIA binary Xorg driver, kernel module and VDPAU library
    ii  nvidia-settings                        304.88-0ubuntu0.0.2                     Tool of configuring the NVIDIA graphics driver
    ii  nvidia-settings-experimental-310       310.14-0ubuntu0.1                       Tool for configuring the NVIDIA graphics driver
    i5 650 3.2 GHz upgraded to i7 870, 16 GB 1333 RAM, nvidia GTX 1060, 32" 1080p & assorted older computers

  10. #10
    Join Date
    Apr 2008
    Beans
    11,707

    Re: nVidia update disabled desired resolution

    Quote Originally Posted by efflandt View Post
    if your video card and monitor have DVI and/or HDMI (or possibly DVI to HDMI cable in either direction), in other words digital video, the system might have better odds of selecting the proper native resolution than VGA (which generally has a generic default list).

    My system updated to the 304.88 drivers, but not that I would notice, since I am using 310.14 experimental drivers that Steam recommends for its games (I forget if I am using HDMI or DVI to HDMI for my 1080p HDTV).
    Code:
    efflandt@XPS8100-1204:~$ dpkg-query -l nvidia* | grep ii
    ii  nvidia-common                          1:0.2.44.2                              Find obsolete NVIDIA drivers
    ii  nvidia-current                         304.88-0ubuntu0.0.2                     NVIDIA binary Xorg driver, kernel module and VDPAU library
    ii  nvidia-experimental-310                310.14-0ubuntu0.3                       Experimental NVIDIA binary Xorg driver, kernel module and VDPAU library
    ii  nvidia-settings                        304.88-0ubuntu0.0.2                     Tool of configuring the NVIDIA graphics driver
    ii  nvidia-settings-experimental-310       310.14-0ubuntu0.1                       Tool for configuring the NVIDIA graphics driver
    I did try the experimental driver and it is also a no-go for my desired resolution

    Regardless this IS A BUG!

    Using 'read-edid' the resolution I want is supported but some bone-head at Canonical decided to include non-related updates in a security update. Sadly the same bone-head is evidently secure enough in his position at Canonical that he feels he can just disregard any real-life issues regarding his bone-headed decisions

Page 1 of 2 12 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
  •