Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Xorg starts up in wrong resolution
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lilrc
n00b
n00b


Joined: 23 Sep 2012
Posts: 11
Location: Sweden

PostPosted: Sat Oct 06, 2012 7:36 pm    Post subject: [SOLVED] Xorg starts up in wrong resolution Reply with quote

Hi,
I have a problem getting a Geforce 8400 GS graphics card to work satisfactory with a Flatron 915FT Plus screen. I have tried configuring the screen in xorg.conf but X11 seems to ignore that section... X11 just uses the default 1024x768 resolution at 60 Hz, but I'm sure the screen can make 1600x1200 at 85 Hz. It seems like X11 thinks the DVI output is connected, but it isn't, so I had to manually set the screen to the right output (VGA1). I'm attaching some (more or less) useful information.

xorg.conf:
http://pastebin.com/kf1qhxM9

Xorg.0.log:
http://pastebin.com/524JnNSS

The dmesg, which, to me, looks fine:
http://pastebin.com/geXQ2msn

lspci output:
http://pastebin.com/kNaiQ5Pb

Not really sure this is needed, but just for the information. Kernel configuration (fetched from /proc/config.gz):
http://pastebin.com/ntuPd4Cs

Is there any way to get the screen working at 1600x1200 at 85 Hz?
All help is very appreciated!


Last edited by lilrc on Sun Oct 07, 2012 8:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2643
Location: Slovenia

PostPosted: Sat Oct 06, 2012 7:51 pm    Post subject: Re: Xorg starts up in wrong resolution Reply with quote

lilrc wrote:
The dmesg, which, to me, looks fine:
http://pastebin.com/geXQ2msn

It doesn't to me:
Code:
[    0.956827] [drm] nouveau 0000:02:00.0: allocated 1024x768 fb: 0x2c0000, bo ffff880078480000
[    0.957067] fbcon: nouveaufb (fb0) is primary device
[    0.959772] [drm] nouveau 0000:02:00.0: no native mode, forcing panel scaling

No idea what to do though. Except try an earlier kernel, just to test. Ok, maybe this: Look into /sys/class/drm, you'll see stuff like card0-VGA-1 in there. The part after card0- is the output name. Figure out which one is for DVI (DVI-1 or something similar), then disable it on the kernel commandline:
Code:
video=DVI-1:d
Back to top
View user's profile Send private message
toralf
Advocate
Advocate


Joined: 01 Feb 2004
Posts: 2725
Location: Hamburg/Germany

PostPosted: Sat Oct 06, 2012 9:05 pm    Post subject: Reply with quote

xrandr often gives useful information about connected screens and available configurations.
Furthermore what's about starting X without any xorg.conf ?
Back to top
View user's profile Send private message
lilrc
n00b
n00b


Joined: 23 Sep 2012
Posts: 11
Location: Sweden

PostPosted: Sat Oct 06, 2012 9:38 pm    Post subject: Reply with quote

Quote:
It doesn't to me:
Code:
[    0.956827] [drm] nouveau 0000:02:00.0: allocated 1024x768 fb:
0x2c0000, bo ffff880078480000
[    0.957067] fbcon: nouveaufb (fb0) is primary device
[    0.959772] [drm] nouveau 0000:02:00.0: no native mode, forcing panel scaling

Oh, I didn't realize that was bad...

Quote:
No idea what to do though. Except try an earlier kernel, just to test.
Ok, maybe this: Look into /sys/class/drm, you'll see stuff like
card0-VGA-1 in there. The part after card0- is the output name. Figure
out which one is for DVI (DVI-1 or something similar), then disable it
on the kernel commandline:
Code:
video=DVI-1:d

The /sys/class/drm catalog looks fine, DVI disabled and VGA enabled.
Maybe one thing which is alarming, no EDID is specified. This is also
shown in the latest dmesg:
Code:
[    0.886339] Raw EDID:
[    0.886462]          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.886594]          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.886740]          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.886871]          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.887003]          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.887135]          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.887266]          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.887397]          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    0.887533] nouveau 0000:02:00.0: VGA-1: EDID block 0 invalid.
[    0.887666] [drm] nouveau 0000:02:00.0: DDC responded, but no EDID
for VGA-1
[    0.943668] [drm] nouveau 0000:02:00.0: allocated 1024x768 fb:
0x2c0000, bo ffff880078499000
[    0.943941] fbcon: nouveaufb (fb0) is primary device
[    0.946642] [drm] nouveau 0000:02:00.0: no native mode, forcing panel
scaling


I think this makes X11 probe default modelines...
Code:
[    38.630] (II) NOUVEAU(0): Output DVI-I-1 using monitor section Monitor[0]
[    38.633] (II) NOUVEAU(0): Output HDMI-1 has no monitor section
[    38.724] (II) NOUVEAU(0): Output VGA-1 using monitor section Monitor[0]
[    38.724] (II) NOUVEAU(0): EDID for output DVI-I-1
[    38.726] (II) NOUVEAU(0): EDID for output HDMI-1
[    38.807] (II) NOUVEAU(0): EDID for output VGA-1
[    38.807] (II) NOUVEAU(0): Printing probed modes for output VGA-1
[    38.807] (II) NOUVEAU(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    38.807] (II) NOUVEAU(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    38.807] (II) NOUVE[    38.630] (II) NOUVEAU(0): Output DVI-I-1 using monitor section Monitor[0]
[    38.633] (II) NOUVEAU(0): Output HDMI-1 has no monitor section
[    38.724] (II) NOUVEAU(0): Output VGA-1 has no monitor section
[    38.724] (II) NOUVEAU(0): EDID for output DVI-I-1
[    38.726] (II) NOUVEAU(0): EDID for output HDMI-1
[    38.807] (II) NOUVEAU(0): EDID for output VGA-1
[    38.807] (II) NOUVEAU(0): Printing probed modes for output VGA-1
[    38.807] (II) NOUVEAU(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    38.807] (II) NOUVEAU(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    38.807] (II) NOUVEAU(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[    38.807] (II) NOUVEAU(0): Modeline "848x480"x60.0   33.75  848 864 976 1088  480 486 494 517 +hsync +vsync (31.0 kHz e)
[    38.807] (II) NOUVEAU(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 489 492 525 -hsync -vsync (31.5 kHz e)
[    38.807] (II) NOUVEAU(0): Output DVI-I-1 disconnected
[    38.807] (II) NOUVEAU(0): Output HDMI-1 disconnected
[    38.807] (II) NOUVEAU(0): Output VGA-1 connected
[    38.807] (II) NOUVEAU(0): Using exact sizes for initial modes
[    38.807] (II) NOUVEAU(0): Output VGA-1 using initial mode 1024x768
[    38.807] (II) NOUVEAU(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[    38.807] (--) NOUVEAU(0): Virtual size is 1024x768 (pitch 0)
[    38.807] (**) NOUVEAU(0):  Driver mode "1024x768": 65.0 MHz (scaled from 0.0 MHz), 48.4 kHz, 60.0 Hz
[    38.807] (II) NOUVEAU(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
AU(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[    38.807] (II) NOUVEAU(0): Modeline "848x480"x60.0   33.75  848 864 976 1088  480 486 494 517 +hsync +vsync (31.0 kHz e)
[    38.807] (II) NOUVEAU(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 489 492 525 -hsync -vsync (31.5 kHz e)
[    38.807] (II) NOUVEAU(0): Output DVI-I-1 disconnected
[    38.807] (II) NOUVEAU(0): Output HDMI-1 disconnected
[    38.807] (II) NOUVEAU(0): Output VGA-1 connected
[    38.807] (II) NOUVEAU(0): Using exact sizes for initial modes
[    38.807] (II) NOUVEAU(0): Output VGA-1 using initial mode 1024x768
[    38.807] (II) NOUVEAU(0): Using default gamma of (1.0, 1.0, 1.0bviously there has to be some) unless otherwise stated.
[    38.807] (--) NOUVEAU(0): Virtual size is 1024x768 (pitch 0)
[    38.807] (**) NOUVEAU(0):  Driver mode "1024x768": 65.0 MHz (scaled from 0.0 MHz), 48.4 kHz, 60.0 Hz
[    38.807] (II) NOUVEAU(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
...


Is there a way to force nouveau to use a different modeline or EDID?

I also tried adding
Code:
video=DVI-1:d
to the kernel bootparams but with unchanged result apart from a nice message in dmesg telling me that DVI is forced to be OFF. The problem occurs on both kernel versions 3.6.0 and 3.5.4. Should I test with earlier kernels than that?

Quote:
xrandr often gives useful information about connected screens and available configurations.

Code:
xrandr --verbose
gives this:
Code:
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
DVI-I-1 disconnected (normal left inverted right x axis y axis)
   Identifier: 0x61
   Timestamp:  14539
   Subpixel:   unknown
   Clones:   
   CRTCs:      0 1
   Transform:  1.000000 0.000000 0.000000
               0.000000 1.000000 0.000000
               0.000000 0.000000 1.000000
              filter:
   dithering depth:   auto
      supported: auto         6 bpc        8 bpc       
   dithering mode:   auto
      supported: auto         off          static 2x2   dynamic 2x2
   scaling mode:   Full
      supported: None         Full         Center       Full aspect
   color vibrance: 150 (0x00000096)   range:  (0,200)
   vibrant hue: 90 (0x0000005a)   range:  (0,180)
   underscan vborder: 0 (0x00000000)   range:  (0,128)
   underscan hborder: 0 (0x00000000)   range:  (0,128)
   underscan:   off
      supported: auto         off          on         
   subconnector:   DVI-A
      supported: Unknown      DVI-D        DVI-A       
HDMI-1 disconnected (normal left inverted right x axis y axis)
   Identifier: 0x62
   Timestamp:  14539
   Subpixel:   unknown
   Clones:   
   CRTCs:      0 1
   Transform:  1.000000 0.000000 0.000000
               0.000000 1.000000 0.000000
               0.000000 0.000000 1.000000
              filter:
   dithering depth:   auto
      supported: auto         6 bpc        8 bpc       
   dithering mode:   auto
      supported: auto         off          static 2x2   dynamic 2x2
   scaling mode:   Full
      supported: None         Full         Center       Full aspect
   color vibrance: 150 (0x00000096)   range:  (0,200)
   vibrant hue: 90 (0x0000005a)   range:  (0,180)
   underscan vborder: 0 (0x00000000)   range:  (0,128)
   underscan hborder: 0 (0x00000000)   range:  (0,128)
   underscan:   off
      supported: auto         off          on         
VGA-1 connected 1024x768+0+0 (0x65) normal (normal left inverted right x axis y axis) 0mm x 0mm
   Identifier: 0x63
   Timestamp:  14539
   Subpixel:   unknown
   Gamma:      1.0:1.0:1.0
   Brightness: 1.0
   Clones:   
   CRTC:       0
   CRTCs:      0 1
   Transform:  1.000000 0.000000 0.000000
               0.000000 1.000000 0.000000
               0.000000 0.000000 1.000000
              filter:
   scaling mode:   None
      supported: None         Full         Center       Full aspect
   color vibrance: 150 (0x00000096)   range:  (0,200)
   vibrant hue: 90 (0x0000005a)   range:  (0,180)
  1024x768 (0x65)   65.0MHz -HSync -VSärg:  Teckenstorlek:    Stäng öppna taggar
ync *current
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  800x600 (0x66)   40.0MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  800x600 (0x67)   36.0MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock   35.2KHz
        v: height  600 start  601 end  603 total  625           clock   56.2Hz
  848x480 (0x68)   33.8MHz +HSync +VSync
        h: width   848 start  864 end  976 total 1088 skew    0 clock   31.0KHz
        v: height  480 start  486 end  494 total  517           clock   60.0Hz
  640x480 (0x69)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  489 end  492 total  525           clock   59.9Hz


Starting Xorg without xorg.conf gives identical result except for worse DPI, i believe (a terminal window is for example smaller with xorg.conf than without xorg.conf) and wrong keymap. But obviously there has to be some effect of the xorg.conf, shown by previously mentioned difference...
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2643
Location: Slovenia

PostPosted: Sat Oct 06, 2012 10:02 pm    Post subject: Reply with quote

lilrc wrote:
Maybe one thing which is alarming, no EDID is specified.

Ah, didn't notice that. Now we know exactly what's wrong.

lilrc wrote:
Is there a way to force nouveau to use a different modeline or EDID?

Yes, it's possible to specify custom modelines. But that's a workaround, not a solution. The solution is getting resolutions out of the EDID. Can you try with a different cable or a different display? That would tell us if the problem is on that side, or in the driver.

lilrc wrote:
Should I test with earlier kernels than that?

Yep. I'd try the latest LTS kernels - 3.4.12 and 3.0.44

If everything else fails, custom modelines, let's see...
Code:
Section "Monitor"
    Identifier  "VGA-1"
    Modeline    "1600x1200_85.00"  234.76  1600 1720 1896 2192  1200 1201 1204 1260  -HSync +Vsync
    Option      "PreferredMode"  "1600x1200_85.00"
EndSection

Section "Monitor"
    Identifier  "DVI-1"
    Option      "Enable"  "False"
EndSection

But if the LTS kernels don't work without a custom modeline, I'd report this to the nouveau developers. Also, have you considered using the proprietary nvidia driver?


Last edited by Gusar on Sat Oct 06, 2012 10:46 pm; edited 6 times in total
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1678
Location: Berlin, Germany

PostPosted: Sat Oct 06, 2012 10:33 pm    Post subject: Reply with quote

That xorg.conf looks a bit outdated. Screen sections are so 1999 :)
Try this (modeline was created with "cvt 1600 1200 60", adjust as desired):

/etc/X11/xorg.conf.d/40-monitor.conf:
Section "Monitor"
   Identifier "VGA-1"
   # 1600x1200 59.87 Hz (CVT 1.92M3) hsync: 74.54 kHz; pclk: 161.00 MHz
   Modeline "1600x1200_60.00"  161.00  1600 1712 1880 2160  1200 1203 1207 1245 -hsync +vsync
   Option "PreferredMode" "1600x1200_60.00"
EndSection

Section "Monitor"
   Identifier "DVI-1"
   Option "Enable" "false"
EndSection
For kernel parameters, just give video=1600x1200
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2643
Location: Slovenia

PostPosted: Sat Oct 06, 2012 10:36 pm    Post subject: Reply with quote

chithanh wrote:
That xorg.conf looks a bit outdated. Screen sections are so 1999 :)

Heh. I totally forgot about PreferredMode. I'll edit my previous post, to modernize it. You screwed up though :), your modeline is for an LCD display, while lilrc has a CRT one.
Back to top
View user's profile Send private message
lilrc
n00b
n00b


Joined: 23 Sep 2012
Posts: 11
Location: Sweden

PostPosted: Sun Oct 07, 2012 12:09 pm    Post subject: Reply with quote

Using another cable solved the problem! Resolution and settings are set without any configuration! :D

Thank you very much for your help! :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum