Bug 20615

Summary: SDVO VGA screen blank
Product: xorg Reporter: Michael Fu <michael.fu>
Component: Driver/intelAssignee: Wang Zhenyu <zhenyu.z.wang>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: critical    
Priority: medium CC: antoni, kent.liu, lewsm, liangghv, mat, michael.fu, neogw, quanxian.wang, sndirsch, zhenyu.z.wang
Version: 7.3 (2007.09)Keywords: NEEDINFO
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 17823    
Bug Blocks:    
Attachments:
Description Flags
xorg.conf
none
xorg.log
none
Reset states before new output setup
none
log file after patching reset sdvo
none
xorg.conf, xorg.0.log and pictures of porblem when set to 1024x768
none
xorg.conf that has 1024x768 setup
none
Xorg.0.log collected for 1024x768 setup
none
picture taken of screen 1 and 2 with 1024X768 setup
none
xorg.conf with 800X600 setup that display ok for standard setup.
none
picture taken from xorg.conf that has 800x600 setup,
none
Xorg.0.log1024x768 with Modebug on
none
this the xorg.conf that i used. is with ModeDebug=yes and 1024x768
none
Xorg.0.log with ModeDebug and 1024x768.
none
xorg.conf used to setup xinerama display on 2 screen.
none
Xorg.0.log when turn on xinerama for 2screen
none
xinerama setup.
none
this is the clone setup i used. didnot see the launching bar on both screen none

Description Michael Fu 2009-03-11 20:31:32 UTC
+++ This bug was initially created as a clone of Bug #17823 +++

------ Comment  #60 From Michael Fu  2009-03-11 19:08:54 PST  [reply] -------

(In reply to comment #59)
> In comment #53, I said that I have unsuccessfull attempts of using the previous
> xorg.conf file which was working previously. Which means I still have problem
> making my 2nd monitor to display even thought xrandr is reflecting VGA-1
> instead of TV-1. And I had attached my xorg.conf and log file for someone to
> review it. I am waiting for further comments. Sorry for the misinterpretation.
> 

what did you see on the 2nd VGA monitor ( I assume it's the one connected to
SDVO VGA )? Blank screen?

------- Comment #61 From Lew Shih Ming 2009-03-11 20:20:23 PST [reply] -------

Yes. You are correct. It's using SDVO. Only primary monitor is able to display
while the secondary is blank.
Comment 1 Michael Fu 2009-03-11 20:33:00 UTC
Let's use this instead of bug# 17823 to track this sdvo vga dual head issue.
Comment 2 Wang Zhenyu 2009-03-11 20:38:59 UTC
(change the topic)

I never have a SDVO VGA card to test, do we have any ADD2 card with VGA?
Comment 3 Michael Fu 2009-03-11 21:31:04 UTC
Created attachment 23784 [details]
xorg.conf
Comment 4 Michael Fu 2009-03-11 21:31:27 UTC
Created attachment 23785 [details]
xorg.log
Comment 5 Michael Fu 2009-03-11 21:33:50 UTC
(EE) intel(0): First SDVOB output reported failure to sync

No EDID data from SDVO VGA.
Comment 6 Wang Zhenyu 2009-03-11 22:13:37 UTC
Created attachment 23788 [details] [review]
Reset states before new output setup

Please try this patch against master. 

It fixes the missing state reset before output setup, otherwise we might take wrong mode setting operations later.
Comment 7 Wang Zhenyu 2009-03-12 08:46:35 UTC
Pushed this patch. Please try current git master.
Comment 8 Michael Fu 2009-03-15 19:24:35 UTC
Shih Ming, are you able to verify if the patch fix your dual display issue ( no compiz, please ).
Comment 9 Wang Zhenyu 2009-03-15 22:59:48 UTC
Should be fixed in git master. Reopen if it's not.
commit dc3ff0b514b609448025680778f0e95e1980a5d8
Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
Date:   Thu Mar 12 16:32:02 2009 +0800

    Revert "SDVO: Switch control bus only before DDC access"
    
    This reverts commit ddedf19f889da2ce6d69a3afce4665e2245682fa.
    
    After i2c STOP, control bus will return back to internal
    registers. So this brings back to origin code that we switch
    to DDC bus before START. But it's ideal to only issue DDC
    bus switch after STOP, not before every START, which might eliminate
    some complains from SDVO device, that will be another patch later.

commit c6b0135d209bdad3dbc641d0e264596eaf6f99d3
Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
Date:   Thu Mar 12 16:31:01 2009 +0800

    SDVO: reset privates before output setup
    
    For multifunction encoder, forget to reset these values
    will cause wrong output type in later mode setting
    operations.

Comment 10 Lew Shih Ming 2009-03-15 23:29:26 UTC
Created attachment 23898 [details]
log file after patching reset sdvo

I had collected the log file after using attachment 23788 [details] [review] patch on the git master driver. VGA-1 still display black screen.
Comment 11 Wang Zhenyu 2009-03-15 23:46:31 UTC
Looks like the behavior is still same, not sure if you have successfully applied my patch. As I have pushed it, please just git pull current git master. (Michael would suggest to add some debug output in sdvo detect and get_modes function, I believe. ;)
Comment 12 Michael Fu 2009-03-16 00:47:38 UTC
(In reply to comment #11)
> Looks like the behavior is still same, not sure if you have successfully
> applied my patch. As I have pushed it, please just git pull current git master.
> (Michael would suggest to add some debug output in sdvo detect and get_modes
> function, I believe. ;)
> 

Hmm...actually, I am thinking the same thing as you :) - Shih Ming maybe doesn't get c6b0135d209bdad3dbc641d0e264596eaf6f99d3. The trace shows that even after output is renamed VGA-1, get_modes still use the is_tv branch... 

-- 

(II) intel(0): Output VGA-1 using monitor section Monitor[2]
(**) intel(0): Option "PreferredMode" "1024x768"
(II) intel(0): SDVOB: W: 28                         (SDVO_CMD_GET_TV_FORMAT)
(II) intel(0): SDVOB: R: 01 00 00 00 00 00       (Success)
(II) intel(0): SDVOB: W: 83 01 00 00                (SDVO_CMD_GET_SDTV_RESOLUTION_SUPPORT)
(II) intel(0): SDVOB: R: FF FF 07                (Success)

--
Comment 13 Lew Shih Ming 2009-03-16 01:13:31 UTC
Could it be some configuration settings that I should include/exclude from the xorg.conf file?

Anyway, I just recieved a new machine for testing. Will do a fresh install with SLES11 GM (without Compiz) and will pull from git master. 

Thanks
Comment 14 Guek Wu Neo 2009-03-17 03:35:34 UTC
(1) Install SLES11GMC to the terminal
(2) downloaded the package from
http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=dc3ff0b514b609448025680778f0e95e1980a5d8

(3) tar -xvzf xf86-video-intel-dc3ff0b514b609448025680778f0e95e1980a5d8.tar.gz

(4)run into this error when execute ./autogen.sh
put in the required package that prompt along the way from http://download.opensuse.org/factory/repo/oss/suse/i586/

And now see this error, could you let me know what other packages are needed :

"checking for XORG... configure: error: Package requirements (xorg-server xproto fontsproto  xineramaproto randrproto renderproto xextproto x11 xextproto) were not met:

Package xcb-xlib was not found in the pkg-config search path.
Perhaps you should add the directory containing `xcb-xlib.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xcb-xlib', required by 'X11', not found"




Comment 15 Michael Fu 2009-03-17 05:37:26 UTC
I guess you don't have the dev environment or something... Stefan or Quanxin?
Comment 16 Stefan Dirsch 2009-03-17 06:12:59 UTC
Guek, I suggest to contact Lew how to build intel driver on SLE11. Thanks.
Comment 17 Guek Wu Neo 2009-03-17 21:21:04 UTC
Created attachment 23985 [details]
xorg.conf, xorg.0.log and pictures of porblem  when set to 1024x768

I managed to compile the intel driver after installing addition packages xorg.

with the attached xorg.conf that has resolution of 800x600, i am able to see standard display on both screen.

However will run into seeing in porportion display on screen2 when the xorg.conf is set to resolution of 1024x768. see attached picture.


In addition to this pls guide me on how to setup the xinerama and clone display for this intel card. a sample xorg.conf will definetly be helpful.
Comment 18 Michael Fu 2009-03-17 22:09:39 UTC
dont' attach zip, pls attach files one by one here... thanks.
Comment 19 Guek Wu Neo 2009-03-17 22:33:04 UTC
Created attachment 23988 [details]
xorg.conf that has 1024x768 setup
Comment 20 Guek Wu Neo 2009-03-17 22:34:03 UTC
Created attachment 23989 [details]
Xorg.0.log collected for 1024x768 setup
Comment 21 Guek Wu Neo 2009-03-17 22:34:57 UTC
Created attachment 23990 [details]
picture taken of screen 1 and 2 with 1024X768 setup
Comment 22 Guek Wu Neo 2009-03-17 22:37:40 UTC
attached in comment#21,
monitor on the left is connected to port 2. Monitor on the right is connected to port 1
Comment 23 Guek Wu Neo 2009-03-17 22:38:50 UTC
Created attachment 23991 [details]
xorg.conf with 800X600 setup that display ok for standard setup.
Comment 24 Guek Wu Neo 2009-03-17 22:46:32 UTC
Created attachment 23992 [details]
picture taken from xorg.conf that has 800x600 setup,

Picture shows that display output from port 1(screen on the Right) and 2(screen on the left) is ok with 800x600
Comment 25 Wang Zhenyu 2009-03-18 19:22:14 UTC
Thanks for testing.

It looks like native VGA can't get to use 1024x768 mode? And SDVO VGA has displayed 1024x768 correctly.
Could you turn on ModeDebug option and send log for 1024x768 config?
Comment 26 Guek Wu Neo 2009-03-18 20:53:20 UTC
Created attachment 24026 [details]
Xorg.0.log1024x768 with Modebug on
Comment 27 Wang Zhenyu 2009-03-19 00:13:05 UTC
Forget to turn on ModeDebug option? looks no debug output in log.
Comment 28 Guek Wu Neo 2009-03-19 00:20:17 UTC
Created attachment 24032 [details]
this the xorg.conf that i used. is with ModeDebug=yes and 1024x768
Comment 29 Wang Zhenyu 2009-03-19 00:31:22 UTC
Add this line
  Option       "ModeDebug" "yes"
to "Device" section.
Comment 30 Guek Wu Neo 2009-03-19 00:53:45 UTC
Created attachment 24033 [details]
Xorg.0.log with ModeDebug and 1024x768.

here is the one. Previously attached at place the ModeDebug in wrong section. Sorry!
Comment 31 Wang Zhenyu 2009-03-19 01:03:07 UTC
Try to remove  HorizSync and  VertRefresh setting in  "Monitor[0]" for VGA, looks it filters out default 1024x768 mode.
Comment 32 Guek Wu Neo 2009-03-19 01:14:40 UTC
Ya removing the HorizSync and VertRefresh both monitors will turn out ok for standard display in both monitors connected to port 1 and 2 respectively.
With this, meaning is going to me a manual workaround? can we have it auto?

Section "Monitor"
  Option       "CalcAlgorithm" "XServerPool"
  DisplaySize  345 259
  #HorizSync    30-40
  Identifier   "Monitor[0]"
  ModelName    "Unknown"
  Option       "DPMS"
  Option       "PreferredMode" "1024x768"
  VendorName   "Unknown"
  #VertRefresh  50-75
 UseModes     "Modes[0]"
EndSection
Comment 33 Wang Zhenyu 2009-03-19 01:36:41 UTC
You don't have reason to set them, actually it's your setting made default modes be filtered out, as it's not within the range in your sync setting. Remove them, and let driver probe the modes for you. Close this one. Fixed by commits note in comment 9.
Comment 34 Guek Wu Neo 2009-03-19 01:44:00 UTC
We have not resolve the Xinerama and clone view setting yet.
so pls do not close the bug.
Comment 35 Guek Wu Neo 2009-03-19 02:06:29 UTC
Created attachment 24034 [details]
xorg.conf used to setup xinerama display on 2 screen.

I am seeing two blank blank screen when turn on xinerama  for 2 screen display
Comment 36 Guek Wu Neo 2009-03-19 02:07:34 UTC
Created attachment 24035 [details]
Xorg.0.log when turn on xinerama for 2screen
Comment 37 Guek Wu Neo 2009-03-19 21:08:54 UTC
need to resolve the xinerama problem reported in comment#35
Comment 38 Wang Zhenyu 2009-03-19 22:50:03 UTC
Why not using RandR? see intel and xorg.conf man page on how to config it, intel man should have a section on multihead configurations. As both outputs display fine, left problem is your own display config issue, so this bug should be closed.
Comment 39 Wang Zhenyu 2009-03-22 23:02:15 UTC
Please try to use randr to config your outputs. As origin SDVO VGA blank issue is fixed in master, close this one. 

Here's an example to put SDVO-VGA on the right of VGA, it looks your origin xorg.conf is broken.

Section "Monitor"
    Identifier "VGA"
    Option "Position" "0 0"
EndSection

Section "Monitor"
    Identifier "SDVO-VGA"
    Option "RightOf" "VGA"
EndSection

Section "Device"
     Identifier "Intel Driver"
     Driver "intel"
     Option "monitor-VGA" "VGA"
     Option "monitor-VGA-1" "SDVO-VGA"
EndSection

Comment 40 Guek Wu Neo 2009-03-23 01:24:13 UTC
I had got information from the http://intellinuxgraphics.org/dualhead.html for help on the set up on the dualhead configuration.

Managed to setup the xinerama setup for 2 monitors. VGA  connected to 1024X768 monitor and VGA-1 connected to 800x600 monitor.

Xinerama is working well.

I had the following question:

(1) question on the 'Option "Position"'. 
Am i able to make use of the 'option "Position"' to achieve the screen layout to display portionally? how? Example in this case, i am not able acheive portionally view for the monitors which is 1024x768 and another 800x600.

(2)How do i enable clone view?
My understanding of clone view is that i should see same view including lauching bar on both screen. However i only see the lauching bar on monitor(1024x768) connected to VGA but did not see luanching bar on the monitor(800x600) connected to VGA-1.
Comment 41 Guek Wu Neo 2009-03-23 01:27:19 UTC
Created attachment 24153 [details]
xinerama setup.

xorg.conf used for xinerama ie extended dual display setup.
VGA=1024x768, VGA-1 =800x600
Comment 42 Guek Wu Neo 2009-03-23 02:03:15 UTC
Created attachment 24155 [details]
this is the clone setup i used. didnot see the launching bar on both screen
Comment 43 Guek Wu Neo 2009-03-23 21:10:03 UTC
Does this card support clone and Standard Twin view? If yes could you help to clarify on the setup for Clone and Twin view.

Once this clarify, then we can proceed to close this bug.
Comment 44 Michael Fu 2009-03-23 21:58:50 UTC
(In reply to comment #43)
> Does this card support clone and Standard Twin view? If yes could you help to
> clarify on the setup for Clone and Twin view.
> 
> Once this clarify, then we can proceed to close this bug.
> 

Guek Wu Neo, Novell people would be more exeprience than us on how to play with xorg.conf... Why would you use one monitor to be 1024x768 while the other to be 800x600? Can both set to be 800x600 for your usage senario? If that's acceptable, then your questions in comment# 40 are gone...
Comment 45 Guek Wu Neo 2009-03-23 22:46:33 UTC
Does this card support clone and Standard Twin view?

In Intel definition, does clone configuration support different resolution of monitors for this particular intel card?

And how is twinview  different from clone?

I have tested 2 same 1024x768 monitor as well. I got the xinerama setup and working fine. However i still not able to verify if the the clone and twin view is working as it supposed to be because i see no difference in clone and twinview.

Thus i would appreciate if you can help to clarify my doubt on the clone and standard twin view setup.








Comment 46 Wang Zhenyu 2009-03-24 20:34:07 UTC
(In reply to comment #45)
> Does this card support clone and Standard Twin view?
> 

yes.

> In Intel definition, does clone configuration support different resolution of
> monitors for this particular intel card?
> 

yes.

> And how is twinview  different from clone?

no idea.

> 
> I have tested 2 same 1024x768 monitor as well. I got the xinerama setup and
> working fine. However i still not able to verify if the the clone and twin view
> is working as it supposed to be because i see no difference in clone and
> twinview.

so pls close the bug.

> 
> Thus i would appreciate if you can help to clarify my doubt on the clone and
> standard twin view setup.
> 

Comment 47 Guek Wu Neo 2009-03-24 20:38:59 UTC
I had read from this chipset information from http://www.intel.com/Products/Notebook/Chipsets/915GM/915GM-overview.htm

It states  " The Mobile Intel® 915GM Express chipset is a component of the Intel® Centrino® processor technology. Featuring the Intel® Graphics Media Accelerator 900, the 915GM chipset enables .... "

With the featuring of Intel® Graphics Media Accelerator 900 in this 915GM chipset, this terminal  should have the Intel dual clone, Intel dual twin and Intel dual extended support as listed in http://www.intel.com/design/chipsets/applnots/30262403.pdf


Thus, i look forward support to the clarification on the setup of clone and twinview as posted in comment#40 and 45.



Comment 48 Stefan Dirsch 2009-03-24 21:57:54 UTC
Guek, RANDR 1.2 setup and desktop issues are really not part of this bugreport.
Use xrandr to do the RANDR 1.2 setup

mirror: xrandr --output VGA --same-as LVDS
side-by-side: xrandr --output --right-of LVDS

See 'xrandr --help' and 'man xrandr' for more details. For a side-by-side setup
you need to have specified an appropriate Virtual line in your xorg.conf (see 'man xorg.conf'). For 1024x768 and 800x600 it would be 'Virtual 1824 768'. SaX2 writes such a line by default, but I think you can't use SaX2 in this case.
Comment 49 Stefan Dirsch 2009-03-24 21:58:45 UTC
> side-by-side: xrandr --output --right-of LVDS

side-by-side: xrandr --output VGA --right-of LVDS
Comment 50 Stefan Dirsch 2009-03-24 22:02:02 UTC
Guek, in your case you probably need to replace LVDS with VGA-1. But you can figure the output names with 'xrandr'.
Comment 51 Guek Wu Neo 2009-03-24 23:29:10 UTC
using xrandr only helps to tune the monitors to output per what is specified under the command. The monitor output is gone once is the terminal reboot.
How can get setup the clone or twin or extended setup in xorg.conf?

Also i did not see the the launching bar VGA-1 which is 800x600 when set to 'xrandr --output VGA --same-as VGA-1'


Stefan

since you mentioned desktop setup in not under this bug. could you ask advice me on the setup in Novell bugzilla #445998?



Comment 52 Stefan Dirsch 2009-03-25 01:30:38 UTC
(In reply to comment #51)
> using xrandr only helps to tune the monitors to output per what is specified
> under the command. The monitor output is gone once is the terminal reboot.

It's for runtime change, yes. But apparently gnome-display-properties (GNOME RANDR 1.2 tool) notice the RANDR 1.2 settings and apply it again
the next time you login. If this really works reliably is another question. Honestly I always had issues with that.

> How can get setup the clone or twin or extended setup in xorg.conf?

Let's do this in Novell's bugzilla.

> Also i did not see the the launching bar VGA-1 which is 800x600 when set to
> 'xrandr --output VGA --same-as VGA-1'

Sure, when you have 1024x768 + 800x600 in mirrored mode there's always something missing, right? Move the 'launching bar' to another position or use an offset for the second monitor. You need to resize it as well.

> since you mentioned desktop setup in not under this bug. could you ask advice
> me on the setup in Novell bugzilla #445998?

I'll try.
Comment 53 Guek Wu Neo 2009-03-25 02:32:34 UTC
(In reply to comment #51)
> using xrandr only helps to tune the monitors to output per what is specified
> under the command. The monitor output is gone once is the terminal reboot.

>It's for runtime change, yes. But apparently gnome-display-properties (GNOME
>RANDR 1.2 tool) notice the RANDR 1.2 settings and apply it again
>the next time you login. If this really works reliably is another question.
>Honestly I always had issues with that.

so you are suggesting to use the GNOME RANDR 1.2 tool and if it does not raise separate bug for it?


Comment 54 Stefan Dirsch 2009-03-25 02:47:27 UTC
Using gnome-display-properties would be the easiest way, yes.
Comment 55 Guek Wu Neo 2009-03-25 03:38:23 UTC
by the way, to confirm 'gnome-display-properties' that you refering to is the monitor icon on the launching bar with half side yellow that say 'configure display setting' when point the cursor to it. am i right? 
Comment 56 Stefan Dirsch 2009-03-25 04:04:19 UTC
Yes, I think so.
Comment 57 Michael Fu 2009-03-25 18:53:00 UTC
thanks. Stefan. 

Fixes are in comment# 9.
Comment 58 Guek Wu Neo 2009-03-30 03:46:47 UTC
Intel,
Pls let stefan knows where to get the package. He would need a patch which fixes this issue only.

This the reply from Stefan in Novell Bugzilla:
"Package included? I would need a patch, which fixes only that issue."
Comment 59 Wang Zhenyu 2009-03-30 17:52:47 UTC
comment 9
Comment 60 Stefan Dirsch 2009-03-30 20:53:11 UTC
(In reply to comment #59)
> comment 9

The second commit doesn't apply to xf86-video-intel 2.5.0. I'm not sure how
to adjust it. Can you help here?

commit c6b0135d209bdad3dbc641d0e264596eaf6f99d3
Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
Date:   Thu Mar 12 16:31:01 2009 +0800

    SDVO: reset privates before output setup

    For multifunction encoder, forget to reset these values
    will cause wrong output type in later mode setting
    operations.



Comment 61 Wang Zhenyu 2009-03-30 22:20:14 UTC
Without SDVO multifunction device patch, you can't apply that to 2.5, so you have to backport SDVO multifunction patch too, commit 0d20bbbc2005a51f427a9ae6b6a66dbbb101dbab
Comment 62 Stefan Dirsch 2009-03-31 01:22:44 UTC
(In reply to comment #61)
> Without SDVO multifunction device patch, you can't apply that to 2.5, so you
> have to backport SDVO multifunction patch too, commit
> 0d20bbbc2005a51f427a9ae6b6a66dbbb101dbab

For which you also need 37c67088a887e6380571e6eec8a8f058e3e24717.

Comment 63 Lew Shih Ming 2009-04-22 19:14:49 UTC
Hi Zhenyu,

Does this driver supports ACPI in particular to S3. I have problem putting the terminal to suspend which was OK before the patches (fresh install of SLED). 

Thanks
Comment 64 Guek Wu Neo 2009-06-24 03:27:26 UTC
I had reverified the S3 support on Sles11GM with this same patch. Is able to resume from S3 on both pri and secondary monitor upon wake from USB,PS2 and power button.

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.