[i945] on boot, TV output is enabled rather than VGA; breaks laptop/projector use case

Bug #325289 reported by Brian Murray
6
Affects Status Importance Assigned to Milestone
xf86-video-intel
Invalid
Medium
xserver-xorg-video-intel (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-intel

This laptop has an S-Video output, and when booting it enables the TV output for it, even though nothing is connected. This is a problem because if connecting to an external monitor or projector via VGA, it requires several additional steps to make it work.

As a workaround, I can manually disable the TV output, and then enable the VGA output. This can be done using the xrandr command line tool, but there is no mechanism for doing this just with the GUI screen resolution tool, so it won't be obvious for most users.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: xserver-xorg-video-intel 2:2.6.1-1ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/usr/bin/zsh
ProcVersion: Linux version 2.6.28-6-generic (buildd@crested) (gcc version 4.3.3 (Ubuntu 4.3.3-3ubuntu1) ) #17-Ubuntu SMP Fri Jan 30 15:35:08 UTC 2009

SourcePackage: xserver-xorg-video-intel
Uname: Linux 2.6.28-6-generic x86_64

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub [8086:27a0] (rev 03)
     Subsystem: Hewlett-Packard Company Device [103c:30bb]
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [8086:27a2] (rev 03)
     Subsystem: Hewlett-Packard Company Device [103c:30bb]

Revision history for this message
Brian Murray (brian-murray) wrote :
Revision history for this message
Bryce Harrington (bryce) wrote :

Hi Brian,

I've forwarded your bug upstream to https://bugs.freedesktop.org/show_bug.cgi?id=19951 - please subscribe to it in case upstream needs further information or wishes you to test something. Thanks ahead of time.

Changed in xserver-xorg-video-intel:
importance: Undecided → Medium
status: New → Triaged
Changed in xserver-xorg-video-intel:
status: Unknown → Confirmed
Revision history for this message
In , joss (josselin-jacquard) wrote :
Download full text (3.9 KiB)

Created an attachment (id=22691)
Xorg log

The output monitor detection failed as it detects a TV monitor when no TV is plugged.
The VGA output modes are also incorrectly detected when a VGA monitor is plugged in.

As en attachement the Xorg.log and xrandr output when nothing is connected.

Thank you for taking this into consideration.

I also would like if someone can provide me some information (intel specifisations and a way to have more debug output from the intel driver) to resolve this bug myself if no one has time to look at it.

Bye

Attached : xrandr output
joss@joss-laptop:~$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 2640 x 800
VGA disconnected (normal left inverted right x axis y axis)
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
   1280x800 59.9*+
   1024x768 60.0
   800x600 60.3
   640x480 59.9
TV connected (normal left inverted right x axis y axis)
   1024x768 30.0
   800x600 30.0
   848x480 30.0
   640x480 30.0

joss@joss-laptop:~$ xrandr --verbose
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 2640 x 800
VGA disconnected (normal left inverted right x axis y axis)
 Identifier: 0x3b
 Timestamp: 24655
 Subpixel: unknown
 Clones:
 CRTCs: 0 1
LVDS connected 1280x800+0+0 (0x3e) normal (normal left inverted right x axis y axis) 331mm x 207mm
 Identifier: 0x3c
 Timestamp: 24655
 Subpixel: horizontal rgb
 Clones:
 CRTC: 1
 CRTCs: 1
 EDID_DATA:
  00ffffffffffff000daf261500000000
  09100103802115780ac6a99a574e8526
  1e505200000001010101010101010101
  010101010101bc1b00a0502017303020
  36004bcf10000018000000fe004e3135
  3449322d4c30320a2020000000fe0043
  4d4f0a202020202020202020000000fe
  004e31353449322d4c30320a20200088
 PANEL_FITTING: full
  supported: center full_aspect full
 BACKLIGHT_CONTROL: kernel
  supported: native legacy combination kernel
 BACKLIGHT: 7 (0x00000007) range: (0,7)
  1280x800 (0x3e) 71.0MHz -HSync -VSync *current +preferred
        h: width 1280 start 1328 end 1360 total 1440 skew 0 clock 49.3KHz
        v: height 800 start 803 end 809 total 823 clock 59.9Hz
  1024x768 (0x3f) 65.0MHz -HSync -VSync
        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 (0x40) 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
  640x480 (0x41) 25.2MHz -HSync -VSync
        h: width 640 start 656 end 752 total 800 skew 0 clock 31.5KHz
        v: height 480 start 490 end 492 total 525 clock 59.9Hz
TV connected (normal left inverted right x axis y axis)
 Identifier: 0x3d
 Timestamp: 24655
 Subpixel: unknown
 Clones:
 CRTCs: 0 1
 BOTTOM: 37 (0x00000025) range: (0,100)
 RIGHT: 46 (0x0000002e) range: (0,100)
 TOP: 36 (0x00000024) range: (0,100)
 LEFT: 54 (0x00000036) range: (0,100)
 TV_FORMAT: NTSC-M
  supported: NTSC-M NT...

Read more...

Revision history for this message
In , joss (josselin-jacquard) wrote :
Download full text (3.3 KiB)

I just build the last revision from git (commit 3aa8591abfbe8db0f13912910c850fdd748808df )
and the detection of TV and VGA is working (although the tv disconnection looks like it's not detected, but that doesn't really matter).

When I try to activate the TV or VGA output, I got a blank tv or vga screen.

Here are some logs :

Just after X started :
(II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Video Bus: xkb_rules: "evdev"
(**) Option "xkb_model" "pc105"
(**) Video Bus: xkb_model: "pc105"
(**) Option "xkb_layout" "fr"
(**) Video Bus: xkb_layout: "fr"
(**) Option "xkb_variant" "oss"
(**) Video Bus: xkb_variant: "oss"
(II) intel(0): EDID vendor "CMO", prod id 5414
(II) intel(0): Printing DDC gathered Modelines:
(II) intel(0): Modeline "1280x800"x0.0 71.00 1280 1328 1360 1440 800 803 809 823 -hsync -vsync (49.3 kHz)
(II) intel(0): EDID vendor "CMO", prod id 5414
(EE) intel(0): underrun on pipe B!
AUDIT: Sun Feb 8 20:33:52 2009: 11675 X: client 4 rejected from local host ( uid=0 gid=0 pid=11703 )
AUDIT: Sun Feb 8 20:33:55 2009: 11675 X: client 4 rejected from local host ( uid=500 gid=500 pid=11711 )
AUDIT: Sun Feb 8 20:33:55 2009: 11675 X: client 4 rejected from local host ( uid=500 gid=500 pid=11712 )
AUDIT: Sun Feb 8 20:33:55 2009: 11675 X: client 4 rejected from local host ( uid=500 gid=500 pid=11713 )
(II) intel(0): EDID vendor "CMO", prod id 5414
(II) intel(0): Printing DDC gathered Modelines:
(II) intel(0): Modeline "1280x800"x0.0 71.00 1280 1328 1360 1440 800 803 809 823 -hsync -vsync (49.3 kHz)

When I run xrandr :
joss@joss-laptop:~$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 3048 x 2048
VGA connected (normal left inverted right x axis y axis)
   1280x1024 75.0 + 60.0 60.0
   1680x1050 59.9 + 60.0
   1600x1024 60.2
   1400x1050 70.0 60.0
   720x400 70.1
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
   1280x800 59.9*+
   1024x768 60.0
   800x600 60.3
   640x480 59.9
TV disconnected (normal left inverted right x axis y axis)

Related Xlog :
(II) intel(0): I2C device "CRTDDC_A:ddc2" registered at address 0xA0.
(II) intel(0): EDID vendor "GSM", prod id 22122
(II) intel(0): EDID vendor "CMO", prod id 5414
(II) intel(0): Printing DDC gathered Modelines:
(II) intel(0): Modeline "1280x800"x0.0 71.00 1280 1328 1360 1440 800 803 809 823 -hsync -vsync (49.3 kHz)

When I try to enable the VGA screen :
(EE) intel(0): underrun on pipe B!
(II) intel(0): EDID vendor "GSM", prod id 22122
(II) intel(0): EDID vendor "CMO", prod id 5414

related xrandr output :
Screen 0: minimum 320 x 200, current 2960 x 1050, maximum 3048 x 2048
VGA connected 1680x1050+1280+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1280x1024 75.0 + 60.0 60.0
   1680x1050 59.9*+ 60.0
   1600x1024 60.2
   1400x1050 70.0 60.0
   1440x900 75.0 59.9 60.0
   720x400 70.1
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
   1280x800 59.9*+
   1024x768 ...

Read more...

Revision history for this message
In , joss (josselin-jacquard) wrote :

I ran the same test with branch 2.5 and I got the same behaviour.

See you

Revision history for this message
In , Gordon Jin (gordon-jin) wrote :

(In reply to comment #1)
> I just build the last revision from git (commit
> 3aa8591abfbe8db0f13912910c850fdd748808df )
> and the detection of TV and VGA is working (although the tv disconnection looks
> like it's not detected, but that doesn't really matter).
>
> When I try to activate the TV or VGA output, I got a blank tv or vga screen.

Let's forget the older version driver in the original report, and stick to the latest git code.
So the detection is correct, and the only problem is blank tv or vga screen. Let's focus on LVDS+VGA first.
Please attach the full log of that, with ModeDebug enabled, according to http://intellinuxgraphics.org/how_to_report_bug.html.

a single line of "underrun" normally doesn't hurt.

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

*** Bug 19951 has been marked as a duplicate of this bug. ***

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=22705)
Xorg log intel drv ver 2.6.99 with mode debug

Revision history for this message
In , joss (josselin-jacquard) wrote :
Download full text (15.8 KiB)

Here's the full log with latest revision. I did run it with latest libdrm
master branch (commit 9c8d634e687a5a5b5d314b3fd5b34cc17a217139 ).
I just paste here Xorg log when I try enabling the VGA output :

(II) intel(0): EDID for output TV
(II) intel(0): I2C bus "CRTDDC_A" initialized.
(II) intel(0): I2C device "CRTDDC_A:ddc2" registered at address 0xA0.
(II) intel(0): I2C device "CRTDDC_A:ddc2" removed.
(II) intel(0): I2C bus "CRTDDC_A" removed.
(II) intel(0): EDID for output VGA
(II) intel(0): Manufacturer: GSM Model: 566a Serial#: 5372
(II) intel(0): Year: 2007 Week: 12
(II) intel(0): EDID Version: 1.3
(II) intel(0): Analog Display Input, Input Voltage Level: 0.700/0.700 V
(II) intel(0): Sync: Separate SyncOnGreen
(II) intel(0): Max Image Size [cm]: horiz.: 49 vert.: 32
(II) intel(0): Gamma: 2.20
(II) intel(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
(II) intel(0): First detailed timing is preferred mode
(II) intel(0): redX: 0.635 redY: 0.342 greenX: 0.292 greenY: 0.611
(II) intel(0): blueX: 0.147 blueY: 0.070 whiteX: 0.313 whiteY: 0.329
(II) intel(0): Supported VESA Video Modes:
(II) intel(0): 720x400@70Hz
(II) intel(0): 640x480@60Hz
(II) intel(0): 640x480@75Hz
(II) intel(0): 800x600@56Hz
(II) intel(0): 800x600@60Hz
(II) intel(0): 800x600@75Hz
(II) intel(0): 832x624@75Hz
(II) intel(0): 1024x768@60Hz
(II) intel(0): 1024x768@75Hz
(II) intel(0): 1280x1024@75Hz
(II) intel(0): 1152x870@75Hz
(II) intel(0): Manufacturer's mask: 0
(II) intel(0): Supported Future Video Modes:
(II) intel(0): #0: hsize: 1440 vsize 900 refresh: 75 vid: 3989
(II) intel(0): #1: hsize: 1440 vsize 900 refresh: 60 vid: 149
(II) intel(0): #2: hsize: 1280 vsize 1024 refresh: 60 vid: 32897
(II) intel(0): #3: hsize: 1280 vsize 960 refresh: 60 vid: 16513
(II) intel(0): #4: hsize: 1152 vsize 864 refresh: 75 vid: 20337
(II) intel(0): Supported additional Video Mode:
(II) intel(0): clock: 119.0 MHz Image Size: 474 x 296 mm
(II) intel(0): h_active: 1680 h_sync: 1728 h_sync_end 1760 h_blank_end 1840
h_border: 0
(II) intel(0): v_active: 1050 v_sync: 1053 v_sync_end 1059 v_blanking: 1080
v_border: 0
(II) intel(0): Supported additional Video Mode:
(II) intel(0): clock: 146.2 MHz Image Size: 474 x 296 mm
(II) intel(0): h_active: 1680 h_sync: 1784 h_sync_end 1960 h_blank_end 2240
h_border: 0
(II) intel(0): v_active: 1050 v_sync: 1053 v_sync_end 1059 v_blanking: 1089
v_border: 0
(II) intel(0): Ranges: V min: 56 V max: 75 Hz, H min: 28 H max: 83 kHz,
PixClock max 150 MHz
(II) intel(0): Monitor name: L226W
(II) intel(0): EDID (in hex):
(II) intel(0): 00ffffffffffff001e6d6a56fc140000
(II) intel(0): 0c1101036a312078eaaec5a2574a9c25
(II) intel(0): 125054a76b80950f950081808140714f
(II) intel(0): 0101010101017c2e90a0601a1e403020
(II) intel(0): 3600da281100001a21399030621a2740
(II) intel(0): 68b03600da281100001c000000fd0038
(II) intel(0): 4b1c530f000a202020202020000000fc
(II) intel(0): 004c323236570a202020202020200023
(II) intel(0): EDID vendor "GSM", prod id 22122
(II) intel(0): Not using default mode "640x350" (vrefresh out of range)
(II) intel(0): Not using default mode "640x400" (vrefresh out of range)
(II) intel(0): Not usin...

Changed in xserver-xorg-video-intel:
status: Confirmed → Invalid
Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel:
status: Invalid → Unknown
Changed in xserver-xorg-video-intel:
status: Unknown → Confirmed
Revision history for this message
In , Ling-ma (ling-ma) wrote :

hi joss,

at first let me try to describe your action(if I was wrong, please correct me ): boot laptop without any extern displays, then start X and plug extern VGA, after running %xrandr --output VGA --auto, VGA get a blank screen, and LVDS works fine, right?

I read the log file, and find some wrong TV detectiong info is involved.
So in order not to be disturbed by it, could you append the following configuration into your xorg.conf, test again and upload the Xorg log file with Modedebug option?

Section "Device"
        Identifier "YOUR CARD"
        Option "monitor-TV" "TV"
        ...
EndSection
        ...
Section "Monitor"
        Identifier "TV"
        Option "Ignore" "True"
EndSection

Thanks
Ma Ling

Revision history for this message
In , joss (josselin-jacquard) wrote :

Hi Ma (Am I right about your firstname ?),

You're right about the test case, I did rerun it with TV monitor disabled, I'm appending the complete Xorg.0.log of the test case and I'm also appending in a separate file the Xorg.0.log lines output when I'm activating VGA. Note that I called xrandr only once, and the log show several time the same VGA activation routine.

Bye

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=22748)
Xorg log

Full Xorg.0.log of the test case as Ma Ling described it.

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=22749)
Xorg diff log

Xorg diff log when calling "xrandr --output VGA --auto"

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=22750)
Xorg log

full Xorg.0.log of the test case as Ma Ling described it

Changed in xserver-xorg-video-intel:
status: Confirmed → In Progress
Revision history for this message
In , Ling-ma (ling-ma) wrote :

hi joss,
From log file, I can see VGA is set normally.
Please dump register by intel dump register tool after running "$xrandr --output VGA --auto" in comment #11 case and paste it.

Another question, could you find one approach which can make VGA and LVDS work fine together, i.e. 1) at first plug VGA, then start Xorg, 2) plug VGA before boot laptop, then start Xorg?

Thanks
Ma Ling

Revision history for this message
In , joss (josselin-jacquard) wrote :

Hi,
I ran xrandr on the same VGA screen with my desktop, and it looks like the modes are incorrectly detected with my laptop.
Here are the modes detected with the desktop (amd graphics) :
default connected 1680x1050+0+0 0mm x 0mm
   1680x1050 60.0*
   1440x900 60.0
   1400x1050 60.0
   1280x1024 75.0 70.0 60.0
   1280x960 60.0
   1280x768 60.0
   1280x720 60.0
   1152x864 75.0 70.0 60.0
   1024x768 75.0 72.0 70.0 60.0
   800x600 75.0 72.0 70.0 60.0 56.0
   720x480 60.0
   640x480 75.0 72.0 60.0
   640x432 60.0
   640x400 75.0 60.0
   512x384 75.0 60.0
   400x300 75.0 60.0
   320x240 75.0 60.0
   320x200 75.0 60.0

Here is the xrandr output with laptop (intel gm965) on same screen :
VGA connected (normal left inverted right x axis y axis)
   1280x1024 75.0 + 60.0 60.0
   1680x1050 59.9 + 60.0
   1600x1024 60.2
   1400x1050 70.0 60.0
   1440x900 75.0 59.9 60.0
   1280x960 60.0 60.0
   1360x768 59.8
   1152x864 75.0 75.0 75.0 70.0 60.0
   1024x768 75.1 75.0 70.1 60.0
   832x624 74.6
   800x600 72.2 75.0 60.3 56.2
   640x480 75.0 72.8 75.0 60.0 59.9
   720x400 70.1

I tried gm965 with another screen, and the screen displays "mode not supported error".

Just to let you know, I managed to make it work few month ago when Ubuntu beta 8.10 came out (it wasn't easy as I had to plug, restart X and other stuff), but it broke out since. I didn't say it because I'm still trying to get a working version (I spent a lot of time trying to downgrade different package but still unsuccessfully).

Bye

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=22828)
intel reg dump according to test case as comment #11

Revision history for this message
In , joss (josselin-jacquard) wrote :

I didn't find any way to make VGA work. On an old vga display screen, the error is Fh:___ Fv:851
I suppose it detects no Horizontal frequencies and a 851 vertical frequence.
I post it just in case it can help, but I have no clue yet of what is wrong.

Bye.

Revision history for this message
In , Ling-ma (ling-ma) wrote :

Created an attachment (id=22850)
please try the patch, thanks.

hi Joss,

from dump register I notice TV_CTL: 0x100000c0, which tell me TV is enable and using pipe A,so has confliction with VGA.
The patch belongs to debug patch, so please try it on laptop and use the same mode line which works fine on desktop.

Thanks
Ma Ling

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=22868)
Reg_dump with tv output disabled

Hi, I did apply the patch and still the same behaviour.
I tried with a videoprojecter.
xrandr says :
1024x768 (0x80) 75.0MHz -HSync -VSync *current +preferred
        h: width 1024 start 1048 end 1184 total 1328 skew 0 clock 56.5KHz
        v: height 768 start 771 end 777 total 806 clock 70.1Hz

But the video projecter says :
mode not supported H: 91,36kHz V: 85,00Hz

Is my chipset bricked or what ?

I'll try to make it work with windows this week end.

Bye

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

what's your machine model anyway? do you have any option in BIOS setting about display?

Revision history for this message
In , Ling-ma (ling-ma) wrote :

Created an attachment (id=22886)
please try the patch on your machine, thanks.

hi Joss,

It is very strange, the dump register shows TV_CTL(0x100000c0) is still enable after using my last patch.

This patch will force disable TV output and return, please try it, and upload dump register again.

Thanks
Ma Ling

Revision history for this message
In , Ling-ma (ling-ma) wrote :

Created an attachment (id=22889)
please try this patch on your machine, thanks.

Revision history for this message
In , Ling-ma (ling-ma) wrote :

sorry, please ignore the patch on comment #20, it is for another bug. please try patch on comment #19
thanks
Ma Ling

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=22904)
reg_dump

Hi, My laptop is a Lenovo 3000N200.
I confirm that tv reg in reg_dump stays enabled as you noticed, even when I don't enable VGA. This new dump is made with a fresh newly started Xserver.

I checked that I have got the latest compiled version as I changed the ver number in configure.ac and the change appeared in my Xorg log file.

Ma Ling If you want to test more code, you can provide me with your own git repo adress and a branch name and I'll easily pull it.

I won't have time to test it with windows soon although I did said I would.

Bye.

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

let's forget the TV discussion part, 0x100000c0 bit 31 is 0, not 1. TV is disabled as expected.

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

Joss, please don't paste xorg log contents directly in a comment. it makes the bug way much too long...

Does

 Option "ForceEnablePipeA" "True"

make it work for you?

Add this to conf Device section. thanks.

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=23138)
reg_dump with ForecPipeAEnable

Hi Michael,
When I set ForcePipeAEnable, I've got a scrambled screen (with git master branch code and also with the tv disable patch)

I managed to make a reg_dump with this option.

Bye

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

(In reply to comment #25)
> Created an attachment (id=23138) [details]
> reg_dump with ForecPipeAEnable
>
> Hi Michael,
> When I set ForcePipeAEnable, I've got a scrambled screen (with git master
> branch code and also with the tv disable patch)
>
> I managed to make a reg_dump with this option.
>
> Bye
>

scambled on which screen? LVDS or VGA? would you please reboot the system ( with VGA monitor connected all the time ) and then attach the whole xorg log instead of just the regdump? thanks.

if the latest code can detect your TV as disconnected, you don't need to apply the TV patch anymore... thanks.

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=23146)
Xorg log

Hi, I had a scrambled LVDS screen when no VGA was plugged in.

I did reboot with VGA plugged in, and no more scrambled LVDS but still blank VGA screen.

Revision history for this message
In , Ling-ma (ling-ma) wrote :

(In reply to comment #27)
> Created an attachment (id=23146) [details]
> Xorg log
> Hi, I had a scrambled LVDS screen when no VGA was plugged in.
> I did reboot with VGA plugged in, and no more scrambled LVDS but still blank
> VGA screen.

hi joss,

The log file says you plug VGA, then start X. However Michale's means(in commnet #26) is "would you please reboot the system (with VGA monitor connected all the time ) and then attach the whole xorg log"

Thanks
Ma Ling

Revision history for this message
In , Ling-ma (ling-ma) wrote :

hi joss
Sorry please ignore comment #28.
I found VGA was set two times,
the first mode line is Modeline "1280x1024"x75.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz)
the last mode line is Modeline "(null)"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz)
Could you please try the below mode line for vga under evironment of comment #27.

1) $xrandr --newmode 1280x1024x75.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
2)$xrandr --addmode VGA 1280x1024x75.0
3)$xrandr --output VGA --mode 1280x1024x75.0

Thanks
Ma Ling

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=23257)
Xorg log

Hi, I just set the modeline according to what you proposed, but still blank vga screen.
Here's Xorg log and reg dump.

Bye

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=23258)
reg dump

Bryce Harrington (bryce)
description: updated
Revision history for this message
In , Ling-ma (ling-ma) wrote :

Created an attachment (id=23621)
please try the patch on your machine ,thanks

this is a debug patch which intends to find correct pll setting, could you please try it on your machine?
(it is based on our latest driver, please update your driver from master tree before compiling)
Thanks
Ma Ling

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=23627)
Xorg log with Ma Ling PLL patch

Hi, I did git pull and applied the patch, tried to output with a lcd screen and a cathodic screen, still no result. Here's Xorg log and reg_dump.

I notice that when I log in from gdm, sometimes (one time in a hundred), I see a desktop picture on my lcd screen, but a quarter of vert lines are missing, and the picture on the lcd disappear after 2 secs.
Also, I noticed that with the recent driver, when I play video, the X server shut down. Probably has to do with libdrm version not synchronized with intel driver. Does it matter in our bug ?

Thanks for your time !

Bye

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=23628)
reg umpd

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

The two dump in comment# 34 is before and after the patch applied, right?

Are you having VGA monitor connected all the time during testing in comment# 33? If not, please do so.

pls remove your xorg.conf and use the default one, and attach your log. And when you attach the Xorg.log, pls make sure you turns on ModeDebug on.

a tip of how to get default conf and turns on Modebug in it:
-- xorg.conf (with option "ModeDebug" "yes" added in the Device section, to dump more register information into Xorg.0.log. If your distribution doesn't ship xorg.conf, you can use 'X --configure' to let X spit out the default configuration it uses and save it as /etc/X11/xorg.conf.)

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=23707)
Xorg log

Hi Michael,
I tried to run x server with a bare xorg.conf, but the server crashes with a backtrace involving libdri.so and DRIGetSAREAPrivate() function.

Can you tel me what git repo should I use to get this library's latest version ?

Revision history for this message
In , Ling-ma (ling-ma) wrote :

(In reply to comment #36)
> Created an attachment (id=23707) [details]
> Xorg log
> Hi Michael,
> I tried to run x server with a bare xorg.conf, but the server crashes with a
> backtrace involving libdri.so and DRIGetSAREAPrivate() function.
> Can you tel me what git repo should I use to get this library's latest version
> ?
please use git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel download our latest driver, the issue has been fixed

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=23758)
xorg.log

Hi, X server works ok with latest git pull, but still the same behaviour with VGA screen (black screen).

Here is the full log of xorg, I started it with bare xorg.conf and vga plug always connected.

Bye

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

(In reply to comment #38)
> Created an attachment (id=23758) [details]
> xorg.log
>
> Hi, X server works ok with latest git pull, but still the same behaviour with
> VGA screen (black screen).
>
> Here is the full log of xorg, I started it with bare xorg.conf and vga plug
> always connected.
>
> Bye
>

Joss, have you applied Ling's patch in comment# 32, after pull git master?

Revision history for this message
In , Ling-ma (ling-ma) wrote :

(In reply to comment #39)
> (In reply to comment #38)
> > Created an attachment (id=23758) [details] [details]
> > xorg.log
> >
> > Hi, X server works ok with latest git pull, but still the same behaviour with
> > VGA screen (black screen).
> >
> > Here is the full log of xorg, I started it with bare xorg.conf and vga plug
> > always connected.
> >
> > Bye
> >
> Joss, have you applied Ling's patch in comment# 32, after pull git master?

ping ~

Revision history for this message
In , joss (josselin-jacquard) wrote :

Sorry for the late post, yes the patch was applied

Bye

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

(In reply to comment #41)
> Sorry for the late post, yes the patch was applied
>
> Bye
>

but the dpll parameters for pipe A in the log doesn't seems right as the patch should fix..

Revision history for this message
In , Ling-ma (ling-ma) wrote :

Created an attachment (id=24275)
hi joss, please use the patch based on latest driver on your machine, then upload log file with debug option on, thanks

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=24276)
xorrg log

Hi,

Thanks for your help. I did git pull and applied the patch, still same behaviour, here's xorg.log. I see that make install does generate multiple files, but I'm only copying intel_drv.so in my xorg driver directory. Is this ok ?

Thanks guys for trying to help me, I'really glad with intel's FOSS policy.

Bye

Revision history for this message
In , Ling-ma (ling-ma) wrote :

hi joss,
Could you please modify your xorg.conf to chose this mode line as VGA mode under comment #44 environment, then upload log file with debug option?

Thanks
Ma Ling

Section "Monitor"
        Identifier "VGA"
        Modeline "1600x1024" 103.12 1600 1600 1656 1664 1024 1024 1029 1030 +hsync +vsync

        Option "PreferredMode" "1600x1024"
        ... ...
EndSection

Section "Screen"
        Identifier "xxxx"
        Monitor "VGA"
        ... ...
EndSection

Revision history for this message
In , Ling-ma (ling-ma) wrote :

Created an attachment (id=24300)
hi joss, please ignore comment #45, and use the patch on your machine under comment #44 environment, then upload log file with debug option thanks,

Revision history for this message
In , Ling-ma (ling-ma) wrote :

Created an attachment (id=24301)
sorry, please try this patch to relace above one, thanks.

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=24318)
xorg.log

I, I did git pull and applied your patch on top of the previous one (2008_965GM_colock.patch) so I've got both patch.

I did enlarge the virtual size of the screen because I tried with a large videoprojector.

Still not working, the vga screen is flickering every 2 second, and the screens says error mode not supported, with Vert : 60,20 Hz, and Hor is increasing in steps every 2 sec from 62 kHz to 560,59 kHz

Bye

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

the dotclock is 150Mhz for pipeA , but

DPLL_A_MD: 0x00000100

which doesn't seems right...

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

(In reply to comment #49)
> the dotclock is 150Mhz for pipeA , but
>
> DPLL_A_MD: 0x00000100
>
> which doesn't seems right...
>

withdraw this comment.

Revision history for this message
In , Ling-ma (ling-ma) wrote :

Created an attachment (id=24457)
please try the patch on your machine, thanks.

hi Joss

Could you please use the patch(2008_crt_debug_v2.patch) in comment #47, and this patch which is for GM965, and pushed in master tree after you downloaded our driver, then upload log file with modedebug option on?

Thanks
Ma Ling

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=24539)
xorg log

Hi,
I did applied the #47 patch onto an up to date git tree, and the behavior is slightly different :
- My crt screen does display a scrambled image in 1600x1024 but no image in 1280x960. You can find it on the logs with "Manufacturer: IVM"
- My vga lcd screen stays in standby mode and display no error, it looks like it doesn't detect input signal.

Here's full xorg log with lots of manipulation.
When I first started Xorg my vga lcd screen was plugged in.

Bye

Revision history for this message
In , Ling-ma (ling-ma) wrote :

hi joss,

Plase modify your xorg.conf like below

Section "Device"
        Identifier "YOUR CARD"
        Option "monitor-TV" "TV"
        ...
EndSection
        ...
Section "Monitor"
        Identifier "TV"
        Option "Ignore" "True"
EndSection

at the same time try the patchs in comment #47 together with comment #51,

Thanks
Ma Ling

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=24610)
xorg.log

Hi,

I did add the disable tv config lines in my xorg.conf, and I did a git pull and git reset --hard, but I can't apply vgadisable.patch. It looks like it's already in the latest git history :
git apply vgadisable.patch
error: patch failed: src/i830_display.c:1113
error: src/i830_display.c: patch does not apply

I did applied the 2008_crt_debug_v2.patch without problems.

Still got the same problem, nothing on my vga lcd screen. I didn't test my vga crt screen.

Bye

Revision history for this message
In , Ling-ma (ling-ma) wrote :

Created an attachment (id=24630)
please try the patch on your machine, thanks.

hi joss,

please update our latest driver from master tree, then use this patch on your machine, and disable tv as below in xorg.conf.

Section "Device"
        Identifier "YOUR CARD"
        Option "monitor-TV" "TV"
        ...
EndSection
        ...
Section "Monitor"
        Identifier "TV"
        Option "Ignore" "True"
EndSection

Thanks a lot
Ma Ling

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

(WW) intel(0): PIPEASTAT before: status: VSYNC_INT_STATUS SVBLANK_INT_STATUS VBLANK_INT_STATUS OREG_UPDATE_STATUS
(WW) intel(0): PIPEASTAT after: status: VSYNC_INT_STATUS OFIELD_INT_STATUS EFIELD_INT_STATUS SVBLANK_INT_STATUS VBLANK_INT_STATUS OREG_UPDATE_STATUS

OFIELD_INT_STATUS EFIELD_INT_STATUS are strange... I didn't see it in logs from other systems.

Revision history for this message
In , Ling-ma (ling-ma) wrote :

hi joss,

Could you please update our latest driver from master tree, then use the patch and modify xorg.conf in comments #55 ?

Thanks
Ma Ling

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=24672)
xorg.log

Hi, I did a git pull and apply the patch in comment #55, this time no picture on my lcd or crt screen. The crt screen shows that the card is trying some frequencies before the monitor goes in standby state.

I booted my laptop with lcd screen plugged in and then I tried my crt in the same session with various mode. Here's the full log.

You can find the lcd with "Monitor name: L226W" and the crt with "Monitor name: HM903DADTA"

Bye

Bryce Harrington (bryce)
tags: added: tv-out
Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

Let's give it another spin...

I've seen the default preferred modeline been always invalidated as

(II) intel(0): Not using mode "1680x1050" (height too large for virtual size)
(II) intel(0): Not using mode "1680x1050" (height too large for virtual size)

but the user says he has been using a bare xorg.conf. where is the "virtual size" limit then?

Revision history for this message
In , joss (josselin-jacquard) wrote :

Created an attachment (id=27284)
Xorg conf file

Ubuntu automatically add a virtual size. Here's my xorg.conf file.
I'll try in few hours to test with latest git code.

Bye

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

just delete that xorg.conf, and run xrandr --auto instead after you enter X.

Try not to use the GUI tool to set display resolution for now.

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

I didn't find a description like "VGA alone works, with LVDS disabled". I'm removing the LVDS from the summary line.. thanks.

Revision history for this message
In , Ling-ma (ling-ma) wrote :

(In reply to comment #61)
> just delete that xorg.conf, and run xrandr --auto instead after you enter X.
> Try not to use the GUI tool to set display resolution for now.

ping ~
could you please help us to check other modes in xrandr list at the same time When you verify 1680x1050?

Revision history for this message
In , joss (josselin-jacquard) wrote :

Hi guys,

I'm unable to compile since few weeks :
joss@joss-laptop:~/xf86-video-intel$ make
Making all in uxa
  CC uxa.o
In file included from /opt/gfx-test/include/X11/extensions/shmstr.h:35,
                 from uxa-priv.h:46,
                 from uxa.c:37:
/opt/gfx-test/include/X11/extensions/XShm.h:44: erreur: expected specifier-qualifier-list before ‘Display’
/opt/gfx-test/include/X11/extensions/XShm.h:62: erreur: expected ‘)’ before ‘*’ token
/opt/gfx-test/include/X11/extensions/XShm.h:66: erreur: expected ‘)’ before ‘*’ token
/opt/gfx-test/include/X11/extensions/XShm.h:70: erreur: expected ‘)’ before ‘*’ token
/opt/gfx-test/include/X11/extensions/XShm.h:77: erreur: expected ‘)’ before ‘*’ token
/opt/gfx-test/include/X11/extensions/XShm.h:80: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘XShmAttach’
/opt/gfx-test/include/X11/extensions/XShm.h:85: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘XShmDetach’
/opt/gfx-test/include/X11/extensions/XShm.h:90: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘XShmPutImage’
/opt/gfx-test/include/X11/extensions/XShm.h:104: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘XShmGetImage’
/opt/gfx-test/include/X11/extensions/XShm.h:113: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/opt/gfx-test/include/X11/extensions/XShm.h:125: erreur: expected ‘)’ before ‘*’ token

I did a make of all xorg project into /opt/gfx-test

Bye

Changed in xserver-xorg-video-intel:
status: In Progress → Confirmed
Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

we bought a Lenovo 3000 N200 with intel 965GM chipset. Tested with Ubuntu 9.04 LiveUSB image. Things work fine - boot X up, then plug in a VGA monitor (Dell 19"), run 'xrandr --auto', both LVDS and VGA display have no problem.

I do notice that using the 'gnome-display-property' applet to adjust screen resolution doesn't work, but that's not our bug. Not sure if it's the situation you run into...

Changed in xserver-xorg-video-intel:
status: Confirmed → Invalid
Revision history for this message
Bryce Harrington (bryce) wrote :

Hey Brian - upstream has closed this bug as invalid. Guess they think it works for them. Mind re-checking if this is still an issue for you on Karmic and if so, reopen the upstream bug and give some new comments to them about it?

Changed in xserver-xorg-video-intel (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Bryce Harrington (bryce) wrote :

No response in a couple months... assuming it's no longer a problem

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

It is no longer a problem in karmic.

Changed in xserver-xorg-video-intel:
importance: Unknown → Medium
Changed in xserver-xorg-video-intel:
importance: Medium → Unknown
Changed in xserver-xorg-video-intel:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.