PDA

View Full Version : [ubuntu] Unable to set proper screen resolution (Lucid, GeForge 8100)


yankeeDDL
May 2nd, 2010, 04:55 PM
Hi,

I have a bit of a problem here.
I have installed Lucid on a PC with integrated graphics (GeForce 8100 on a Biostar GF8100 M2+ TE).
On a fresh install the resolution is 1024x768, but that's no surprise as the Nvidea drivers are not installed.
Immediately I get a notification of HW drivers available. I install the latest (recommended) ones (195.36.15).
Reboot, and I can see other resolutions available:
1152x864
1360x768
I'm using a 19" Dell LCD (4:3 ratio) which supports up to 1280x1024.
I can actually set the 1360x768 but, obviously, the screen looks ... squashed in the X axis.

I noticed that the type of display is not identified (Nvidia panel says "CRT-0"), so I tried to manually add the 1280x1024 resolution.

Below you can find the xorg.conf and the Xorg.0.log.
It seems to me that the mode 1280x1024 is considered not valid for some reasons.
Note: the string for Modeline in the xorg.conf was determined using "cvt".

Any help would be appreciated ...
Yankee



Here's the xorg.conf (after a few iterations, it became a bit busy ...):

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder58) Fri Mar 12 02:12:40 PST 2010

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection

Section "InputDevice"

# generated from default
Identifier "Keyboard0"
Driver "keyboard"
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 "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-0"
HorizSync 28.0 - 55.0
VertRefresh 43.0 - 72.0
ModeLine "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
Option "PreferredMode" "1280x1024_60.00"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8100 / nForce 720a"
EndSection

Section "Screen"

# Removed Option "metamodes" "1280x1024 +0+0"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "1152x864 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection




And here's the Xorg.0.log (the part that I think is relevant)
(II) LoadModule: "wfb"
(II) Loading /usr/lib/xorg/modules/libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "TwinView" "0"
(**) NVIDIA(0): Option "MetaModes" "1280x1024 +0+0"
(**) NVIDIA(0): Option "TwinViewXineramaInfoOrder" "CRT-0"
(**) May 02 22:43:24 NVIDIA(0): Enabling RENDER acceleration
(II) May 02 22:43:24 NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) May 02 22:43:24 NVIDIA(0): enabled.
(WW) May 02 22:43:25 NVIDIA(GPU-0): Unable to read EDID for display device CRT-0
(II) May 02 22:43:25 NVIDIA(0): NVIDIA GPU GeForce 8100 / nForce 720a (C77) at PCI:3:0:0
(II) May 02 22:43:25 NVIDIA(0): (GPU-0)
(--) May 02 22:43:25 NVIDIA(0): Memory: 524288 kBytes
(--) May 02 22:43:25 NVIDIA(0): VideoBIOS: 62.77.2f.00.10
(--) May 02 22:43:25 NVIDIA(0): Interlaced video modes are supported on this GPU
(--) May 02 22:43:25 NVIDIA(0): Connected display device(s) on GeForce 8100 / nForce 720a at
(--) May 02 22:43:25 NVIDIA(0): PCI:3:0:0:
(--) May 02 22:43:25 NVIDIA(0): CRT-0
(--) May 02 22:43:25 NVIDIA(0): CRT-0: 300.0 MHz maximum pixel clock
(II) May 02 22:43:25 NVIDIA(0): Assigned Display Device: CRT-0
(WW) May 02 22:43:25 NVIDIA(0): No valid modes for "1280x1024+0+0"; removing.
(WW) May 02 22:43:25 NVIDIA(0):
(WW) May 02 22:43:25 NVIDIA(0): Unable to validate any modes; falling back to the default mode
(WW) May 02 22:43:25 NVIDIA(0): "nvidia-auto-select".
(WW) May 02 22:43:25 NVIDIA(0):
(II) May 02 22:43:25 NVIDIA(0): Validated modes:
(II) May 02 22:43:25 NVIDIA(0): "nvidia-auto-select"
(II) May 02 22:43:25 NVIDIA(0): Virtual screen size determined to be 1024 x 768
(WW) May 02 22:43:25 NVIDIA(0): Unable to get display device CRT-0's EDID; cannot compute DPI
(WW) May 02 22:43:25 NVIDIA(0): from CRT-0's EDID.
(==) May 02 22:43:25 NVIDIA(0): DPI set to (75, 75); computed from built-in default
(==) May 02 22:43:25 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(--) Depth 24 pixmap format is 32 bpp
(II) May 02 22:43:25 NVIDIA: Using 768.00 MB of virtual memory for indirect framebuffer
(II) May 02 22:43:25 NVIDIA: access.
(II) May 02 22:43:25 NVIDIA(0): Initialized GPU GART.
(II) May 02 22:43:25 NVIDIA(0): Setting mode "nvidia-auto-select"
(II) Loading extension NV-GLX
(II) May 02 22:43:25 NVIDIA(0): Initialized OpenGL Acceleration
(==) NVIDIA(0): Disabling shared memory pixmaps
(II) May 02 22:43:25 NVIDIA(0): Initialized X Rendering Acceleration
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(==) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(II) Loading extension XINERAMA
(WW) NVIDIA(0): Option "PreferredMode" is not used
(==) RandR enabled

yankeeDDL
May 3rd, 2010, 08:42 AM
Anybody?

yankeeDDL
May 3rd, 2010, 04:26 PM
Here (https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nv/+bug/82095) I found a similar problem.
It was resolved by adding:
Option "UseEDID" "false"

in the Device section of xorg.conf.
Unfortunately, that does not work for me: the mode is still inidcated as invalid and it's killed.
I have been looking online to wait to:
- disable the EDID validation
- get the proper EDID for my display (Dell E196FP), which, by the way, according to Dell's website does support EDID, so this might be a driver issue.
- force a non supported resolution (I doubt such thing can be done ...)

No luck so far ...

klemes
May 3rd, 2010, 04:36 PM
Try this one:

restore the options "metamode" "1280x1024 +0+0" command line and remove the other options metamode line.
Then at the subsection Display of the Screen section put the line:

Modes "1280x1024_60"

Save exit and restart X for the changes to take effect.

yankeeDDL
May 4th, 2010, 01:31 PM
Try this one:

restore the options "metamode" "1280x1024 +0+0" command line and remove the other options metamode line.
Then at the subsection Display of the Screen section put the line:

Modes "1280x1024_60"

Save exit and restart X for the changes to take effect.

Klemes,
thanks for the help, but it did not work.
I noticed that ignoring the EDID seems to work at first, but then when mode 1280x1024 is considered invalid, nvidia-auto-select is called and the EDID is probed anyway ...

Here's Xorg.0.log
(**) NVIDIA(0): Option "UseEDID" "false"
(**) NVIDIA(0): Option "TwinView" "0"
(**) NVIDIA(0): Option "MetaModes" "1280x1024+0+0"
(**) NVIDIA(0): Option "TwinViewXineramaInfoOrder" "CRT-0"
(**) May 04 19:24:22 NVIDIA(0): Enabling RENDER acceleration
(**) May 04 19:24:22 NVIDIA(0): Ignoring EDIDs
(II) May 04 19:24:22 NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) May 04 19:24:22 NVIDIA(0): enabled.
(II) May 04 19:24:22 NVIDIA(GPU-0): Not probing EDID on CRT-0.
(II) May 04 19:24:22 NVIDIA(0): NVIDIA GPU GeForce 8100 / nForce 720a (C77) at PCI:3:0:0
(II) May 04 19:24:22 NVIDIA(0): (GPU-0)
(--) May 04 19:24:22 NVIDIA(0): Memory: 524288 kBytes
(--) May 04 19:24:22 NVIDIA(0): VideoBIOS: 62.77.2f.00.10
(--) May 04 19:24:22 NVIDIA(0): Interlaced video modes are supported on this GPU
(--) May 04 19:24:22 NVIDIA(0): Connected display device(s) on GeForce 8100 / nForce 720a at
(--) May 04 19:24:22 NVIDIA(0): PCI:3:0:0:
(--) May 04 19:24:22 NVIDIA(0): CRT-0
(--) May 04 19:24:22 NVIDIA(0): CRT-0: 300.0 MHz maximum pixel clock
(II) May 04 19:24:22 NVIDIA(0): Assigned Display Device: CRT-0
(WW) May 04 19:24:22 NVIDIA(0): No valid modes for "1280x1024+0+0"; removing.
(WW) May 04 19:24:22 NVIDIA(0):
(WW) May 04 19:24:22 NVIDIA(0): Unable to validate any modes; falling back to the default mode
(WW) May 04 19:24:22 NVIDIA(0): "nvidia-auto-select".
(WW) May 04 19:24:22 NVIDIA(0):
(II) May 04 19:24:22 NVIDIA(0): Validated modes:
(II) May 04 19:24:22 NVIDIA(0): "nvidia-auto-select"
(II) May 04 19:24:22 NVIDIA(0): Virtual screen size determined to be 1024 x 768
(WW) May 04 19:24:22 NVIDIA(0): Unable to get display device CRT-0's EDID; cannot compute DPI
(WW) May 04 19:24:22 NVIDIA(0): from CRT-0's EDID.
(==) May 04 19:24:22 NVIDIA(0): DPI set to (75, 75); computed from built-in default
(==) May 04 19:24:22 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(--) Depth 24 pixmap format is 32 bpp


And here's the xorg.conf:
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-0"
HorizSync 28.0 - 55.0
VertRefresh 43.0 - 72.0
ModeLine "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
Option "PreferredMode" "1280x1024_60.00"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8100 / nForce 720a"
Option "UseEDID" "false"
Option "metamodes" "1280x1024_60.00"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
SubSection "Display"
Modes "1280x1024_60.00"
Depth 24
EndSubSection
EndSection

yankeeDDL
May 4th, 2010, 03:19 PM
Well, I solved this.
It turned out that because the driver is unable to read the EDID (which IS provided), the H/V refresh ranges in the xorg.conf were not correct.
Once I updated them, all the resolutions, up to 1920x1200 showed up ...
No need for "Modelines" ...

I found a ton of similar threads, many of them with no solutions. Hopefully, this thread will help others.

Cheers!

iBART
May 5th, 2010, 04:06 AM
on my 8800 gt i cannot with nvidia driver change refresh rate, i can do it by nvidia dialog but after reboot, resolution and refresh rate go back to 800x600@60 (instead of 1280x1024@75)

:'(

yankeeDDL
May 5th, 2010, 06:04 AM
Hello iBART, I'm no expert, but perhaps you can post your xorg.conf (in /etc/X11) and Xorg.0.log (in /var/log) so we can all have a look at what's happening ...

mortenvp
May 5th, 2010, 06:44 AM
In this section of xorg.conf

And here's the xorg.conf:
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-0"
HorizSync 28.0 - 55.0
VertRefresh 43.0 - 72.0
ModeLine "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
Option "PreferredMode" "1280x1024_60.00"
EndSection


I changed the HorizSync and VertRefresh values to

And here's the xorg.conf:
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-0"
HorizSync 28.0 - 80.0
VertRefresh 43.0 - 75.0
ModeLine "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
Option "PreferredMode" "1280x1024_60.00"
EndSection


Thats all - now it works perfectly!!:p

yankeeDDL
May 5th, 2010, 08:16 AM
Mortenvp,

the H/V refresh rates should match your vendor's manufacturer.
In my case, it's a Dell E196FP (http://support.dell.com/support/edocs/monitors/e196fp/en/about.htm).
The numbers are:
Horizontal scan range 30 kHz to 81 kHz (automatic)
Vertical scan range 56 Hz to 76 Hz

So I used:
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 76.0
which work perfectly.
Other displays, wil llikely need slightly different parameters.

puller
July 27th, 2010, 05:54 AM
I can confirm that setting the appropriate refresh values worked!
In order to have everything working I needed to

1) Create a xorg.conf file, which in Lucid is not presente by default
open a tty pressing ctrl+alt+F1, then

sudo service gdm stop
sudo Xorg -configure
sudo cp ~/xorg.conf.new /etc/X11/xorg.conf
sudo service gdm start


2) Add refresh info in monitor section

HorizSync 30.0 - 80.0
VertRefresh 56.0 - 76.0

3) Crate a modeline for my resolution and refresh rate
cvt 1280 960 75.0Hz

4) Add the modeline to xorg.conf
HorizSync 30.0 - 80.0
VertRefresh 56.0 - 76.0
Modeline "1280x960_75.00" 130.00 1280 1368 1504 1728 960 963 967 1005 -hsync +vsync
Option "PreferredMode" "1280x960_75.00"

So, my monitor section of xorg.conf is:
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30.0 - 80.0
VertRefresh 56.0 - 76.0
Modeline "1280x960_75.00" 130.00 1280 1368 1504 1728 960 963 967 1005 -hsync +vsync
Option "PreferredMode" "1280x960_75.00"
EndSection