View Single Post
Old 08-12-12, 08:14 PM   #2
Ixmucane3001
Registered User
 
Join Date: Aug 2009
Posts: 10
Default Re: Modelines/Metamodes/Screen Resolutions trouble with NVIDIA drivers 302 and up

Okay, a quick update. I've got most of the stuff working again. I've just configured a few of the most important screen resolutions, and I probably don't even need any other.

"xrandr -q" still shows my native resolution (1440x900) only, but if I understood it correctly, this behaviour is intended.

"xrandr -q --q1" now shows this...
Code:
$ xrandr -q --q1
 SZ:    Pixels          Physical       Refresh                                                                                                                   
*0   1440 x 900    ( 373mm x 230mm )  *50   58   59   60                                                                                                         
 1   1360 x 850    ( 352mm x 218mm )   51                                                                                                                        
 2   1280 x 800    ( 331mm x 205mm )   52                                                                                                                        
 3   1152 x 864    ( 298mm x 221mm )   53                                                                                                                        
 4   1024 x 768    ( 265mm x 197mm )   54  
 5    960 x 600    ( 248mm x 153mm )   55  
 6    800 x 600    ( 207mm x 153mm )   56  
 7    640 x 480    ( 165mm x 123mm )   57  
 8   1280 x 720    ( 331mm x 184mm )   61  
 9   1440 x 810    ( 373mm x 207mm )   62  
Current rotation - normal
Current reflection - none
Rotations possible - normal left inverted right 
Reflections possible - X Axis Y Axis
...which is cool. Yay



My xorg.conf(.d) now has the relevant sections configured as follows:
Code:
Section "Device"
	Identifier      "Default nvidia Device"
        Driver  	"nvidia"
        Option 		"NoLogo" "True"
EndSection
Code:
Section "Monitor"
  Identifier	"Monitor0"
EndSection
Code:
Section "Screen"
  Identifier	"Screen0"
  Monitor	"Monitor0"
  Option	"CustomEDID" "/home/arch/edid.bin"
  DefaultDepth	24
  Option	"metamodes" "LVDS-0: nvidia-auto-select { ViewPortIn=1440x900 }; LVDS-0: nvidia-auto-select { ViewPortIn=1360x850 }; LVDS-0: nvidia-auto-select { ViewPortIn=1280x800 }; LVDS-0: nvidia-auto-select { ViewPortIn=1152x864 ViewPortOut=1200x900+120+0 }; LVDS-0: nvidia-auto-select { ViewPortIn=1024x768 ViewPortOut=1200x900+120+0 }; LVDS-0: nvidia-auto-select { ViewPortIn=960x600 ViewPortOut=1200x900+120+0 }; LVDS-0: nvidia-auto-select { ViewPortIn=800x600 ViewPortOut=1200x900+120+0 }; LVDS-0: nvidia-auto-select { ViewPortIn=640x480 ViewPortOut=1200x900+120+0 }"
  SubSection "Display"
    Depth	24
  EndSubSection
EndSection
I've bolded the line which (I think) contains the important part.

However, one thing still remains.
My 4:3 screen modes are not scaled with proper aspect ratio. The way I understood it, it has something to do with the ViewPortOut command, but I can't seem to figure out the proper syntax. Could someone please help me with this? TIA

EDIT: Nevermind, solved that one, too. The commas were missing from the "Option "metamodes"" line:
Code:
Option	"metamodes" "LVDS-0: nvidia-auto-select { ViewPortIn=1440x900 }; LVDS-0: nvidia-auto-select { ViewPortIn=1360x850 }; LVDS-0: nvidia-auto-select { ViewPortIn=1280x800 }; LVDS-0: nvidia-auto-select { ViewPortIn=1152x864, ViewPortOut=1200x900+120+0 }; LVDS-0: nvidia-auto-select { ViewPortIn=1024x768, ViewPortOut=1200x900+120+0 }; LVDS-0: nvidia-auto-select { ViewPortIn=960x600, ViewPortOut=1200x900+120+0 }; LVDS-0: nvidia-auto-select { ViewPortIn=800x600, ViewPortOut=1200x900+120+0 }; LVDS-0: nvidia-auto-select { ViewPortIn=640x480, ViewPortOut=1200x900+120+0 }"
So, TIL that the NVIDIA Linux driver is a grammar nazi jk

Anyway, I think that's all I need for now. Thanks for all your good work, NVIDIA
Ixmucane3001 is offline   Reply With Quote