Bug 20636 - [945GME SDVO-LVDS] mode error
Summary: [945GME SDVO-LVDS] mode error
Status: CLOSED DUPLICATE of bug 20241
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium major
Assignee: MaLing
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2009-03-12 13:33 UTC by Yannick NGHIEM-XUAN
Modified: 2009-06-04 12:32 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
xorg log file (82.32 KB, text/plain)
2009-03-12 13:33 UTC, Yannick NGHIEM-XUAN
no flags Details
xorg.conf file (2.52 KB, text/plain)
2009-03-12 13:34 UTC, Yannick NGHIEM-XUAN
no flags Details
dmesg output (35.92 KB, text/plain)
2009-03-12 13:35 UTC, Yannick NGHIEM-XUAN
no flags Details
photo of the xserver started with the option "ModeDebug" "yes" added in the Device section (292.69 KB, image/jpeg)
2009-03-12 13:41 UTC, Yannick NGHIEM-XUAN
no flags Details
xserver running with xf86-video-intel-2.6.99.902 (88.30 KB, image/jpeg)
2009-03-15 14:56 UTC, Yannick NGHIEM-XUAN
no flags Details
photo of the "band bug" on the right of the screen (556.17 KB, image/jpeg)
2009-03-15 15:08 UTC, Yannick NGHIEM-XUAN
no flags Details
xorg.log file with intel-2.6.99.902 (111.46 KB, text/plain)
2009-03-15 15:10 UTC, Yannick NGHIEM-XUAN
no flags Details
please try the patch on your machine, then upload Xorg log file with modedebug option on, thanks. (8.35 KB, application/octet-stream)
2009-03-15 20:23 UTC, MaLing
no flags Details
xorg log file with the patched i830_sdvo.c file (88.27 KB, application/octet-stream)
2009-03-24 12:16 UTC, Yannick NGHIEM-XUAN
no flags Details
please try the patch, then upload your log file with modedebug option on, thanks. (8.35 KB, application/octet-stream)
2009-03-25 09:00 UTC, MaLing
no flags Details
please try the debug patch on your machine, thanks. (8.35 KB, application/octet-stream)
2009-04-09 20:43 UTC, MaLing
no flags Details
xserver log (libdrm-2.4.9 + xf86-video-intel-2.6.99.903 + the patch) (190.02 KB, application/octet-stream)
2009-05-03 02:45 UTC, Yannick NGHIEM-XUAN
no flags Details
please try the debug patch on your machine, (10.88 KB, application/octet-stream)
2009-05-18 00:06 UTC, MaLing
no flags Details
xorg.conf file (2.55 KB, application/octet-stream)
2009-05-26 12:47 UTC, Yannick NGHIEM-XUAN
no flags Details
xorg log file (77.47 KB, application/octet-stream)
2009-05-26 12:47 UTC, Yannick NGHIEM-XUAN
no flags Details
photo of the right border of the screen (553.13 KB, image/jpeg)
2009-05-26 12:49 UTC, Yannick NGHIEM-XUAN
no flags Details
please try the patch on your machine under the same environment with comments #22, thanks. (8.91 KB, application/octet-stream)
2009-05-31 18:35 UTC, MaLing
no flags Details
please use this patch to replace above one (26324), thanks (8.96 KB, application/octet-stream)
2009-05-31 20:19 UTC, MaLing
no flags Details

Description Yannick NGHIEM-XUAN 2009-03-12 13:33:46 UTC
Created attachment 23810 [details]
xorg log file

When the xserver starts with the auto-generated xorg.conf file, the screen remains black and the backlight seems to be switched off.
When the option "ModeDebug" "yes" is added in the Device section, vertical multicolored lines are shown on the screen (see photo in attachment).

-- chipset: 
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)

-- system info:
Linux asriel 2.6.28-8-generic #28-Ubuntu SMP Thu Mar 5 21:49:36 UTC 2009 i686 GNU/Linux

-- xf86-video-intel/xserver/mesa/libdrm version

-xf86-video-intel:
version 2.6.1

-xserver:
X.Org X Server 1.6.0
Release Date: 2009-2-25
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-19-server i686 Ubuntu
Current Operating System: Linux asriel 2.6.28-8-generic #28-Ubuntu SMP Thu Mar 5 21:49:36 UTC 2009 i686
Build Date: 07 March 2009  02:18:57AM

-libdrm

from the changelog:

commit a773ce1db8801fcbbdb55b54172c9cd48b92e2d7
Author: Eric Anholt <eric@anholt.net>
Date:   Mon Feb 23 13:30:20 2009 -0800

-- Machine or mobo model:
msi neton ap1900

-- Display connector: (e.g. VGA, DVI, HDMI, S-video, ...)
unknown, imac like machine, no external screen (all in one)

The problem is 100% reproducible
To reproduce it, just start the xserver with the default configuration file
Comment 1 Yannick NGHIEM-XUAN 2009-03-12 13:34:55 UTC
Created attachment 23811 [details]
xorg.conf file
Comment 2 Yannick NGHIEM-XUAN 2009-03-12 13:35:35 UTC
Created attachment 23812 [details]
dmesg output
Comment 3 Yannick NGHIEM-XUAN 2009-03-12 13:41:40 UTC
Created attachment 23813 [details]
photo of the xserver started with the option "ModeDebug" "yes" added in the Device section
Comment 4 Gordon Jin 2009-03-12 19:01:31 UTC
Interesting it detects 2 LVDS:
[    2.275796] (II) intel(0):   Output LVDS is connected to pipe B
[    2.275846] (II) intel(0):   Output LVDS-1 is connected to pipe A

Does this machine ever worked with older driver version?
Comment 5 Wang Zhenyu 2009-03-12 19:11:31 UTC
This machine should be like eeebox, no LVDS, but using SDVO LVDS.

Please test with 2.6.99.902, http://xorg.freedesktop.org/archive/individual/driver/xf86-video-intel-2.6.99.902.tar.gz
Comment 6 Yannick NGHIEM-XUAN 2009-03-15 14:52:35 UTC
I tried to boot Ubuntu 8.04 (not sure what were the xserver and intel driver versions) but I got the same black screen with it.

xf86-video-intel-2.6.99.902 seem to fix the bug (see the xf86-video-intel-2.6.99.902.jpg photo). The only strange behavior I could notice is a small band doubled on the right side of the screen (see the bandbug.jpg photo).

The specifications of the machine tells the native resolution is 1366x768 against only 1360x768 for the closest resolution detected by the intel driver. I guess it can be the origin of this small problem. Any idea about this ?

Anyway thank you very much for your help guys !
Comment 7 Yannick NGHIEM-XUAN 2009-03-15 14:56:48 UTC
Created attachment 23879 [details]
xserver running with xf86-video-intel-2.6.99.902
Comment 8 Yannick NGHIEM-XUAN 2009-03-15 15:08:39 UTC
Created attachment 23880 [details]
photo of the "band bug" on the right of the screen
Comment 9 Yannick NGHIEM-XUAN 2009-03-15 15:10:47 UTC
Created attachment 23881 [details]
xorg.log file with intel-2.6.99.902
Comment 10 Wang Zhenyu 2009-03-15 18:29:11 UTC
Thanks for testing. So it looks like SDVO LVDS doesn't get the right mode. cc Ma Ling who may have a patch for that. Or have you tried with a customed modeline in xorg.conf?
Comment 11 Gordon Jin 2009-03-15 19:01:34 UTC
since the original problem has been fixed, I'm removing this from 2.7 blocker.
Comment 12 MaLing 2009-03-15 20:23:44 UTC
Created attachment 23894 [details]
please try the patch on your machine, then upload Xorg log file with modedebug option on, thanks.
Comment 13 MaLing 2009-03-16 22:17:14 UTC
(In reply to comment #12)
> Created an attachment (id=23894) [details]
> please try the patch on your machine, then upload Xorg log file with modedebug
> option on, thanks.

ping ~
Comment 14 Yannick NGHIEM-XUAN 2009-03-24 12:09:51 UTC
Sorry for the delay,

I had a reject with the patch:

# cat ./xf86-video-intel-2.6.99.902/src/i830_sdvo.c.rej*************** i830_sdvo_output_setup (xf86OutputPtr output, uint16_t flag)
*** 1542,1547 ****
      /* clear up privates */
      dev_priv->is_tv = FALSE;
      intel_output->needs_tv_clock = FALSE;
  
      if (flag & (SDVO_OUTPUT_TMDS0 | SDVO_OUTPUT_TMDS1))
      {
--- 1659,1665 ----
      /* clear up privates */
      dev_priv->is_tv = FALSE;
      intel_output->needs_tv_clock = FALSE;
+     dev_priv->is_lvds = FALSE;
  
      if (flag & (SDVO_OUTPUT_TMDS0 | SDVO_OUTPUT_TMDS1))
      {

I compiled it anyway without the rejected modification.

When I start the xserver, the screen remains black.

I attached the xorg log file.
Comment 15 Yannick NGHIEM-XUAN 2009-03-24 12:16:51 UTC
Created attachment 24207 [details]
xorg log file with the patched i830_sdvo.c file

reject I had with the patch:

# cat ./src/i830_sdvo.c.rej
*************** i830_sdvo_output_setup (xf86OutputPtr output, uint16_t flag)
*** 1542,1547 ****
      /* clear up privates */
      dev_priv->is_tv = FALSE;
      intel_output->needs_tv_clock = FALSE;
  
      if (flag & (SDVO_OUTPUT_TMDS0 | SDVO_OUTPUT_TMDS1))
      {
--- 1659,1665 ----
      /* clear up privates */
      dev_priv->is_tv = FALSE;
      intel_output->needs_tv_clock = FALSE;
+     dev_priv->is_lvds = FALSE;
  
      if (flag & (SDVO_OUTPUT_TMDS0 | SDVO_OUTPUT_TMDS1))
      {
Comment 16 MaLing 2009-03-25 09:00:11 UTC
Created attachment 24237 [details]
please try the patch, then upload your log file with modedebug option on, thanks.
Comment 17 MaLing 2009-03-29 19:45:29 UTC
ping~
Comment 18 MaLing 2009-04-02 05:47:06 UTC
ping ~,

Thanks
Ma Ling
Comment 19 Yannick NGHIEM-XUAN 2009-04-07 10:36:57 UTC
(In reply to comment #16)
> Created an attachment (id=24237) [details]
> please try the patch, then upload your log file with modedebug option on,
> thanks.
> 

I'm afraid I have the same reject with the new patch. I downloaded xf86-video-intel-2.6.99.902.tar.gz again to be sure to have the correct source tree to apply the new patch on but same thing (see bellow):

Am I doing something wrong ? is this patch supposed to be directly applied on xf86-video-intel-2.6.99.902 ?

Thanks,

Yannick


root@asriel:/home/tnx/Documents/bug_i945# patch ./xf86-video-intel-2.6.99.902/src/i830_sdvo.c < 
sdvo_lvds_debug.patch        xf86-video-intel-2.6.99.902/ Xorg.0.log_03242009          
root@asriel:/home/tnx/Documents/bug_i945# patch ./xf86-video-intel-2.6.99.902/src/i830_sdvo.c < sdvo_lvds_debug.patch 
patching file ./xf86-video-intel-2.6.99.902/src/i830_sdvo.c
Hunk #4 succeeded at 1180 (offset -5 lines).
Hunk #5 succeeded at 1213 (offset -5 lines).
Hunk #6 succeeded at 1580 (offset -7 lines).
Hunk #7 FAILED at 1659.
Hunk #8 succeeded at 1688 (offset -11 lines).
Hunk #9 succeeded at 1804 (offset -11 lines).
Hunk #10 succeeded at 2104 (offset -9 lines).
1 out of 10 hunks FAILED -- saving rejects to file ./xf86-video-intel-2.6.99.902/src/i830_sdvo.c.rej
root@asriel:/home/tnx/Documents/bug_i945# cat ./xf86-video-intel-2.6.99.902/src/i830_sdvo.c.rej
*************** i830_sdvo_output_setup (xf86OutputPtr output, uint16_t flag)
*** 1542,1547 ****
      /* clear up privates */
      dev_priv->is_tv = FALSE;
      intel_output->needs_tv_clock = FALSE;
  
      if (flag & (SDVO_OUTPUT_TMDS0 | SDVO_OUTPUT_TMDS1))
      {
--- 1659,1665 ----
      /* clear up privates */
      dev_priv->is_tv = FALSE;
      intel_output->needs_tv_clock = FALSE;
+     dev_priv->is_lvds = FALSE;
  
      if (flag & (SDVO_OUTPUT_TMDS0 | SDVO_OUTPUT_TMDS1))
      {
Comment 20 MaLing 2009-04-09 20:43:50 UTC
Created attachment 24689 [details]
please try the debug patch on your machine, thanks.
Comment 21 Yannick NGHIEM-XUAN 2009-05-03 02:45:22 UTC
Created attachment 25382 [details]
xserver log (libdrm-2.4.9 + xf86-video-intel-2.6.99.903 + the patch)

After a power cycle, the machine has a blank screen when Xorg starts.
Please let me know if you need more details.
Comment 22 MaLing 2009-05-18 00:06:50 UTC
Created attachment 25953 [details]
please try the debug patch on your machine,

Because  no integrated lvds, please ignore it by xorg.conf, then run the patch.
Section "Device"
        ...         
        Option          "monitor-LVDS"    "LVDS"
        ...
EndSection
        ...
Section "Monitor" 
        Identifier      "LVDS" 
        Option          "Ignore" "True" 
EndSection 

thanks
Ma Ling
Comment 23 MaLing 2009-05-24 18:40:19 UTC
ping ~
Comment 24 Yannick NGHIEM-XUAN 2009-05-26 12:46:15 UTC
The bug seems to be fixed with the patch id=24237. I attached the following files for your debugging purposes:
- the xorg.conf I used
- the xserver log file produced (debug mode activated)
- a photo of the right border of the screen

Thanks !

Yannick
Comment 25 Yannick NGHIEM-XUAN 2009-05-26 12:47:05 UTC
Created attachment 26230 [details]
xorg.conf file
Comment 26 Yannick NGHIEM-XUAN 2009-05-26 12:47:41 UTC
Created attachment 26231 [details]
xorg log file
Comment 27 Yannick NGHIEM-XUAN 2009-05-26 12:49:08 UTC
Created attachment 26232 [details]
photo of the right border of the screen
Comment 28 Yannick NGHIEM-XUAN 2009-05-26 12:51:43 UTC
(In reply to comment #24)
> The bug seems to be fixed with the patch id=24237. I attached the following
> files for your debugging purposes:
> - the xorg.conf I used
> - the xserver log file produced (debug mode activated)
> - a photo of the right border of the screen
> 
> Thanks !
> 
> Yannick
> 

Oups ! I meant patch id=25953
Comment 29 MaLing 2009-05-31 18:35:13 UTC
Created attachment 26324 [details]
please try the patch on your machine under the same environment with comments #22, thanks.

The patch is our latest version.
please ignore integrated lvds by xorg.conf, then run the patch.
Section "Device"
        ...         
        Option          "monitor-LVDS"    "LVDS"
        ...
EndSection
        ...
Section "Monitor" 
        Identifier      "LVDS" 
        Option          "Ignore" "True" 
EndSection 

thanks for your help
Ma Ling
Comment 30 MaLing 2009-05-31 20:19:57 UTC
Created attachment 26325 [details]
please use this patch to replace above one (26324), thanks
Comment 31 MaLing 2009-06-02 20:06:32 UTC
Hi
Close the issue now, please update your driver.

Thanks for your help
Ma Ling

commit ea0b00e675281b2914450992501566122f9affe0
Author: Ma Ling <ling.ma@intel.com>
Date:   Mon Jun 1 17:13:53 2009 +0800

    Provide mode line from VBT to xorg.

    If sdvo get modes function can't find modes from EDID,
    transmit sdvo lvds modes from VBT to xorg.

    Signed-off-by: Ma Ling <ling.ma@intel.com>

*** This bug has been marked as a duplicate of bug 20241 ***
Comment 32 Yannick NGHIEM-XUAN 2009-06-04 12:32:47 UTC
ok,

Thanks you very much,

Yannick

(In reply to comment #31)
> Hi
> Close the issue now, please update your driver.
> 
> Thanks for your help
> Ma Ling
> 
> commit ea0b00e675281b2914450992501566122f9affe0
> Author: Ma Ling <ling.ma@intel.com>
> Date:   Mon Jun 1 17:13:53 2009 +0800
> 
>     Provide mode line from VBT to xorg.
> 
>     If sdvo get modes function can't find modes from EDID,
>     transmit sdvo lvds modes from VBT to xorg.
> 
>     Signed-off-by: Ma Ling <ling.ma@intel.com>
> 
> *** This bug has been marked as a duplicate of bug 20241 ***
> 



Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.