Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED?] Trouble getting a G35 X3100 to display 1080i
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

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


Joined: 17 Jan 2005
Posts: 63

PostPosted: Wed Sep 03, 2008 3:50 am    Post subject: [SOLVED?] Trouble getting a G35 X3100 to display 1080i Reply with quote

EDIT: I've worked through the problems I was having, and below are my steps and process. I still wonder if I've actually solved this as I kinda cheated. I'm willing to entertain any challenges to the solution.

Background: Long-time Gentoo user, recently bought a Mac, now working on an Ubuntu-based MythTV box. I try to do as much research and problem solving on my own before I bug other people, and I trust these forums the most when I need help.

I own a Mitsubishi Medallion HD1080 rear projection television (WS-65413). It has a single-link DVI-D input and supports suggested scan rates of 1080i, 480p and 480i. It is HDCP and E-EDID 1.3 compliant. I have successfully and without trouble connected my Mac Mini (personal) and MacBook Pro (work) to the TV displaying at 1920x1080i.

From my Mac(s), according to System Profiler and Displays:
Code:
MEUSPTV1:
  Resolution:     1920 x 1080 @ 60 Hz
  Depth:          32-bit Color
  Core Image:     Hardware Accelerated
  Interlaced:     Yes
  Mirror:         Off
  Online:         Yes
  Quartz Extreme: Supported
  Rotation:       Supported
  Television:     Yes

Resolution:   1920 x 1080 (interlaced)
Colors:       Millions
Refresh Rate: 60 Hertz (NTSC) [not selectable]

Options: Overscan [not checked]


I bought an Intel DG35EC motherboard, with on-board G35 X3100 graphics, with both VGA and DVI outputs. I connected my spare 19" monitor to the VGA connector and installed and updated 32-bit Ubuntu 8.04, running X.Org 7.3.

Code:
dustin@mythic:~$ uname -a
Linux mythic 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux

dustin@mythic:~$ apt-show-versions xorg
xorg/hardy uptodate 1:7.3+10ubuntu10.2

dustin@mythic:~$ apt-show-versions xserver-xorg-video-intel
xserver-xorg-video-intel/hardy uptodate 2:2.2.1-1ubuntu13.6


Using various information probes, I see specifically what hardware I have and what my TV is reporting itself to be.

Code:
dustin@mythic:~$ lspci
00:00.0 Host bridge: Intel Corporation 82G35 Express DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 82G35 Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation 82G35 Express Integrated Graphics Controller (rev 03)
00:19.0 Ethernet controller: Intel Corporation 82566DC Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02)
03:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller
04:05.0 FireWire (IEEE 1394): Agere Systems FW323 (rev 70)

dustin@mythic:~$ sudo ddcprobe
vbe: VESA 3.0 detected.
oem: Intel(r)Q965/Q963/G965 Graphics Chip Accelerated VGA BIOS
vendor: Intel Corporation
product: Intel(r)Q965/Q963/G965 Graphics Controller Hardware Version 0.0
memory: 7616kb
mode: 1280x1024x256
mode: 1280x1024x64k
mode: 1280x1024x16m
mode: 1024x768x256
mode: 1024x768x64k
mode: 1024x768x16m
mode: 640x480x16m
mode: 800x600x64k
mode: 800x600x16m
mode: 640x480x256
mode: 800x600x256

mode: 640x480x64k
edid:
edid: 1 3
id: 31a2
eisa: MEL31a2
serial: 01010101
manufacture: 12 2003
input: analog signal.
screensize: 0 0
gamma: 2.200000
dpms: RGB, active off, no suspend, no standby
timing: 640x480@75 Hz (VESA)
dtiming: 1920x540@67
dtiming: 720x480@59
monitorrange: 15-33, 59-61
monitorname: MEUSPTV1

dustin@mythic:~$ sudo xresprobe intel
id: MEUSPTV1
res: 1920x540 720x480 640x480
freq: 15-33 59-61
disptype:


I'm using a (basically) stock xorg.conf.

Code:
Section "InputDevice"
   Identifier  "Generic Keyboard"
   Driver      "kbd"
   Option      "XkbRules"   "xorg"
   Option      "XkbModel"   "pc105"
   Option      "XkbLayout"   "us"
EndSection

Section "InputDevice"
   Identifier  "Configured Mouse"
   Driver      "mouse"
   Option      "CorePointer"
EndSection

Section "Device"
   Identifier  "Intel G35 X3100 DVI"
   Driver      "intel"
EndSection

Section "Monitor"
   Identifier  "DVI"
   Option      "DPMS"
EndSection

Section "Screen"
   Identifier   "Default Screen"
   Monitor      "DVI"
   Device       "Intel G35 X3100 DVI"
EndSection

Section "ServerLayout"
   Identifier   "Default Layout"
   Screen       "Default Screen"
EndSection


When using the "intel" driver and running "startx", my TV flickers then goes blue (no signal) and then the Ubuntu startup sound plays (X started successfully). There are no errors in Xorg.0.log, but a few warnings pop up.

Code:
dustin@mythic:~$ grep ^\(WW /var/log/Xorg.0.log
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
(WW) intel: No matching Device section for instance (BusID PCI:0:2:1) found
(WW) intel(0): Register 0x20e4 (MI_ARB_STATE) changed from 0x00000044 to 0x00000000
(WW) intel(0): ESR is 0x00000001
(WW) intel(0): Existing errors found in hardware state.
(WW) AIGLX: 3D driver claims to not support visual 0x23
(WW) AIGLX: 3D driver claims to not support visual 0x24
(WW) AIGLX: 3D driver claims to not support visual 0x25
(WW) AIGLX: 3D driver claims to not support visual 0x26
(WW) AIGLX: 3D driver claims to not support visual 0x27
(WW) AIGLX: 3D driver claims to not support visual 0x28
(WW) AIGLX: 3D driver claims to not support visual 0x29
(WW) AIGLX: 3D driver claims to not support visual 0x2a
(WW) AIGLX: 3D driver claims to not support visual 0x2b
(WW) AIGLX: 3D driver claims to not support visual 0x2c
(WW) AIGLX: 3D driver claims to not support visual 0x2d
(WW) AIGLX: 3D driver claims to not support visual 0x2e
(WW) AIGLX: 3D driver claims to not support visual 0x2f
(WW) AIGLX: 3D driver claims to not support visual 0x30
(WW) AIGLX: 3D driver claims to not support visual 0x31
(WW) AIGLX: 3D driver claims to not support visual 0x32
(WW) Configured Mouse: No Device specified, looking for one...


X does see the right chipset and finds the correct EDID settings.

Code:
dustin@mythic:~$ grep ^\(-- /var/log/Xorg.0.log
(--) using VT number 7
(--) PCI:*(0:2:0) Intel Corporation 965 G1 Integrated Graphics Controller rev 3, Mem @ 0x90200000/20, 0x80000000/28, I/O @ 0x2440/3
(--) PCI: (0:2:1) Intel Corporation unknown chipset (0x2983) rev 3, Mem @ 0x90100000/20
(--) Assigning device section with no busID to primary device
(--) Chipset G35 found
(--) intel(0): Chipset: "G35"
(--) intel(0): Linear framebuffer at 0x80000000
(--) intel(0): IO registers at addr 0x90200000
(--) RandR disabled
(--) Configured Mouse: Device: "/dev/input/mice"
(--) Configured Mouse: PnP-detected protocol: "ExplorerPS/2"

dustin@mythic:~$ tail -n 17 /var/log/Xorg.0.log
SetClientVersion: 0 9
(II) intel(0): EDID vendor "MEL", prod id 12706
(II) intel(0): Using hsync ranges from config file
(II) intel(0): Using vrefresh ranges from config file
(II) intel(0): Printing DDC gathered Modelines:
(II) intel(0): Modeline "1920x540"x0.0   74.25  1920 2008 2052 2200  540 542 547 562 interlace +hsync +vsync (33.8 kHz)
(II) intel(0): Modeline "720x480"x0.0   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz)
(II) intel(0): Modeline "640x480"x0.0   25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
(II) intel(0): EDID vendor "MEL", prod id 12706
(II) intel(0): xf86UnbindGARTMemory: unbind key 0
(II) intel(0): xf86UnbindGARTMemory: unbind key 1
(II) intel(0): xf86UnbindGARTMemory: unbind key 2
(II) intel(0): xf86UnbindGARTMemory: unbind key 3
(II) intel(0): xf86UnbindGARTMemory: unbind key 4
(II) intel(0): [drm] removed 1 reserved context for kernel
(II) intel(0): [drm] unmapping 8192 bytes of SAREA 0xf8cdc000 at 0xb7aaa000
(II) intel(0): [drm] Closed DRM master.


But all for naught if it doesn't work...... I've tried all sorts of modelines to no avail.

One ray of light is my attempt at using the "i810" driver. I get a nice pretty 640x480 display... but I'm afraid that's not going to cut it for HD MythTV content.

So, I'd appreciate some troubleshooting help. I'd like for X to display a 1920x1080 resolution on my TV just like my Macs. I'll run any tests and provide any information needed. Thanks in advance.
_________________
-dustin


Last edited by dgooding on Sat Sep 06, 2008 4:28 am; edited 2 times in total
Back to top
View user's profile Send private message
dgooding
n00b
n00b


Joined: 17 Jan 2005
Posts: 63

PostPosted: Fri Sep 05, 2008 4:07 am    Post subject: Reply with quote

Something to add. Based on a TIP over at the Gentoo wiki, I installed read-edid. When I ran get-edid, it returned some errors and an EDID that passed a checksum (weird, I know). I captured the STDOUT to out.txt and STDERR to err.txt. Below you'll find the parse-edid'd version of the output and the errors. (I've already sent word to the author, so hopefully he can help, too.)

Code:
dustin@mythic:~$ cat out.txt | parse-edid
parse-edid: parse-edid version 1.4.1
parse-edid: EDID checksum passed.

   # EDID version 1 revision 3
Section "Monitor"
   # Block type: 2:0 3:fd
   # Block type: 2:0 3:fc
   Identifier "MEUSPTV1"
   VendorName "MEL"
   ModelName "MEUSPTV1"
   # Block type: 2:0 3:fd
   HorizSync 15-33
   VertRefresh 59-61
   # Max dot clock (video bandwidth) 80 MHz
   # Block type: 2:0 3:fc
   # DPMS capabilities: Active off:yes  Suspend:no  Standby:no

   Mode    "1920x540"   # vfreq 60.053Hz, hfreq 33.750kHz
      DotClock   74.250000
      HTimings   1920 2008 2052 2200
      VTimings   540 542 547 562
      Flags   "Interlace" "+HSync" "+VSync"
   EndMode
   Mode    "720x480"   # vfreq 59.940Hz, hfreq 31.469kHz
      DotClock   27.000000
      HTimings   720 736 798 858
      VTimings   480 489 495 525
      Flags   "-HSync" "-VSync"
   EndMode
   # Block type: 2:0 3:fd
   # Block type: 2:0 3:fc
EndSection


Code:
dustin@mythic:~$ cat err.txt
get-edid: get-edid version 1.4.1

   Performing real mode VBE call
   Interrupt 0x10 ax=0x4f00 bx=0x0 cx=0x0
   Function supported
   Call successful

   VBE version 300
   VBE string at 0x11110 "Intel(r)Q965/Q963/G965 Graphics Chip Accelerated VGA BIOS"

VBE/DDC service about to be called
   Report DDC capabilities

   Performing real mode VBE call
   Interrupt 0x10 ax=0x4f15 bx=0x0 cx=0x0
   Function supported
   Call successful

   Monitor and video card combination does not support DDC1 transfers
   Monitor and video card combination supports DDC2 transfers
   0 seconds per 128 byte EDID block transfer
   Screen is not blanked during DDC transfer

Reading next EDID block

VBE/DDC service about to be called
   Read EDID

   Performing real mode VBE call
   Interrupt 0x10 ax=0x4f15 bx=0x1 cx=0x0
   Function supported
   Call successful

EDID claims 1 more blocks left


*********** Something special has happened!
Please contact the author, John Fremlin
E-mail: one of vii@altern.org,vii@mailcc.com,vii@mailandnews.com
Please include full output from this program (especially that to stderr)



Reading next EDID block

VBE/DDC service about to be called
   Read EDID

   Performing real mode VBE call
   Interrupt 0x10 ax=0x4f15 bx=0x1 cx=0x0
   Function supported
   Call successful

EDID claims 1 more blocks left
EDID blocks left is wrong.
Your EDID is probably invalid.


Unfortunately, even after adding that Monitor block to xorg.conf, it still didn't work (no errors though). Something interesting happened in the log file though... check this out:

Code:
(II) intel(0): Output VGA using monitor section MEUSPTV1
(II) intel(0): I2C bus "CRTDDC_A" initialized.
(II) intel(0): I2C bus "SDVOCTRL_E for SDVOB" initialized.
(II) intel(0): I2C device "SDVOCTRL_E for SDVOB:SDVO Controller B" registered at address 0x70.
(II) intel(0): I2C bus "SDVOB DDC Bus" initialized.
(II) intel(0): Output TMDS-1 has no monitor section
(II) intel(0): SDVO device VID/DID: 02:43.00, clock range 25.0MHz - 200.0MHz, input 1: Y, input 2: N, output 1: Y, output 2: N
(II) intel(0): I2C bus "SDVOCTRL_E for SDVOC" initialized.
(II) intel(0): I2C device "SDVOCTRL_E for SDVOC:SDVO Controller C" registered at address 0x72.
(II) intel(0): No SDVO device found on SDVOC
(II) intel(0): I2C device "SDVOCTRL_E for SDVOC:SDVO Controller C" removed.
(II) intel(0): I2C bus "SDVOCTRL_E for SDVOC" removed.
(II) intel(0): Current clock rate multiplier: 8
(II) intel(0): I2C device "SDVOB DDC Bus:ddc2" registered at address 0xA0.
(II) intel(0): EDID vendor "MEL", prod id 12706
(II) intel(0): Output VGA disconnected
(II) intel(0): Output TMDS-1 connected
(II) intel(0): Output TMDS-1 using initial mode 1920x540


I've got the TV connected to the TMDS-1 (DVI) port... How do I tell X to pair the TMDS-1 output with the MEUSPTV1 monitor section?
_________________
-dustin
Back to top
View user's profile Send private message
dgooding
n00b
n00b


Joined: 17 Jan 2005
Posts: 63

PostPosted: Fri Sep 05, 2008 7:12 am    Post subject: Reply with quote

Well, I'm better off than I was last night. I've got a (better) working xorg.conf, but I'm still not getting the correct resolution. I read some Intel documentation on dual-head displays (http://www.intellinuxgraphics.org/dualhead.html) and found a way to pair Monitor sections to Device sections. My latest xorg.conf does just that, and is set to ignore the VGA-CRT pair I'm not using. The interesting bits:

Code:
Section "Monitor"
   Identifier   "CRT"
   Option       "Ignore" "True"
EndSection

Section "Monitor"
   Identifier   "Mitsubishi"
   VendorName   "MEL"
   ModelName    "MEUSPTV1"
   HorizSync    15-33
   VertRefresh  59-61
   Mode         "1920x540"   # vfreq 60.053Hz, hfreq 33.750kHz
      DotClock   74.250000
      HTimings   1920 2008 2052 2200
      VTimings   540 542 547 562
      Flags      "Interlace" "+HSync" "+VSync"
   EndMode
   Mode         "720x480"   # vfreq 59.940Hz, hfreq 31.469kHz
      DotClock   27.000000
      HTimings   720 736 798 858
      VTimings   480 489 495 525
      Flags      "-HSync" "-VSync"
   EndMode
   Option       "PreferredMode" "1920x540"
EndSection

Section "Device"
   Identifier  "Card0"
   Driver      "intel"
   VendorName  "Intel Corporation"
   BoardName   "965 G1 Integrated Graphics Controller"
   Option      "monitor-VGA" "CRT"
   Option      "monitor-TMDS-1" "Mitsubishi"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "CRT"
EndSection

Section "Screen"
   Identifier "Screen1"
   Device     "Card0"
   Monitor    "Mitsubishi"
EndSection


This gives me a display on the TV, but it's the wrong res (480p instead of 1080i). A look at the logs shows this:

Code:
(II) intel(0): Output TMDS-1 using monitor section Mitsubishi
(**) intel(0): Option "PreferredMode" "1920x540"
(II) intel(0): SDVO device VID/DID: 02:43.00, clock range 25.0MHz - 200.0MHz, input 1: Y, input 2: N, output 1: Y, output 2: N
(II) intel(0): I2C bus "SDVOCTRL_E for SDVOC" initialized.
(II) intel(0): I2C device "SDVOCTRL_E for SDVOC:SDVO Controller C" registered at address 0x72.
(II) intel(0): No SDVO device found on SDVOC
(II) intel(0): I2C device "SDVOCTRL_E for SDVOC:SDVO Controller C" removed.
(II) intel(0): I2C bus "SDVOCTRL_E for SDVOC" removed.
(II) intel(0): Current clock rate multiplier: 8
(II) intel(0): I2C device "SDVOB DDC Bus:ddc2" registered at address 0xA0.
(II) intel(0): EDID vendor "MEL", prod id 12706
(II) intel(0): Using hsync ranges from config file
(II) intel(0): Using vrefresh ranges from config file
(II) intel(0): Printing DDC gathered Modelines:
(II) intel(0): Modeline "1920x540"x0.0   74.25  1920 2008 2052 2200  540 542 547 562 interlace +hsync +vsync (33.8 kHz)
(II) intel(0): Modeline "720x480"x0.0   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz)
(II) intel(0): Modeline "640x480"x0.0   25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
(II) intel(0): EDID vendor "MEL", prod id 12706
(II) intel(0): Output TMDS-1 connected
(II) intel(0): Output TMDS-1 using initial mode 720x480


Now, why would the TMDS-1 output use 720x480 when I've explicitly said the PreferredMode is 1920x540 and 1920x540 is a mode that is gathered by DDC and manually defined in xorg.conf?
_________________
-dustin
Back to top
View user's profile Send private message
dgooding
n00b
n00b


Joined: 17 Jan 2005
Posts: 63

PostPosted: Sat Sep 06, 2008 3:15 am    Post subject: Reply with quote

(I guess it's just me in here... ;)

Update: I now have a 1080i signal being sent to my TV. I'm very excited, but it's still not correct. I looked into "xrandr" and discovered how to force a resolution onto a display.

I added "Virtual 2048x2048" to the Display subsection of the Screen section. Then I wrote a little startup script that automated some xrandr settings:

Code:
dustin@mythic:~$ cat /etc/X11/Xsession.d/45custom_xrandr-settings
xrandr --newmode 1920x540 74.25 1920 2008 2052 2200 540 542 547 562 Interlace +HSync +VSync
xrandr --output TMDS-1 --addmode TMDS-1 1920x540
xrandr --output TMDS-1 --mode 1920x540


A restart of X and voila! a 1080i signal sent to my TV.

Now, the problem... The resolution is correct, but everything is really tall. Letters are really skinny and circles are ovals. I've tried fiddling with xorg.conf's DisplaySize settings and using xrandr to force --fbmm and --dpi settings, but it doesn't visually change anything. The DPI appears to be changing (as far as xdpyinfo is concerned). Below is a table of DPI values I've created (even though they all visually look way too tall). I would have expected DPI adjustments to fix this...

Code:
DisplaySize    DPI (xdpyinfo)
85x286         574x48
170x286        287x48
339x286        144x48
339x143        144x96
339x95         144x144
339x48         144x286


So... How do I make my correct-resolution display not look tall and skinny? Adjusting DisplaySize (and hence DPI) doesn't seem to do it... What else?

A quick guess would make me think that X is trying to make the display a true 1920x540, and the TV is stretching it out to 1920x1080, creating the tall and skinny... hmmm...
_________________
-dustin
Back to top
View user's profile Send private message
dgooding
n00b
n00b


Joined: 17 Jan 2005
Posts: 63

PostPosted: Sat Sep 06, 2008 4:25 am    Post subject: Reply with quote

I went snooping around and found this post. I saw that the 1920x540i mode settings were identical to mine, so I tried using the 960x540p mode.

Yeah. It works. My TV gets a 1080i signal and the aspect ratio of screen elements is correct. So, I guess the solution is:

Code:
xrandr --newmode 960x540 37.26 960 976 1008 1104 540 542 548 563 +HSync +VSync
xrandr --output TMDS-1 --addmode TMDS-1 960x540
xrandr --dpi 96 --output TMDS-1 --mode 960x540

_________________
-dustin
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