Bug 195630

Summary: sax2 crashes on Intel i810 graphics
Product: [openSUSE] SUSE Linux 10.1 Reporter: Michael McCarthy <sysop>
Component: SaX2Assignee: Steffen Winterfeldt <snwint>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: eich, mrmazda, ms, pgunreben, sndirsch, snwint, suse-beta
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael McCarthy 2006-07-28 13:49:49 UTC
I try to reconfigure my graphics with sax2 from the console (tty1) with the following steps:

init 3
sax2 -i -r
Select "Change Configuration" button on SaX2 suggestion message box.

SaX2 does a few things then crashes returning you to the console.  I have reproduces this on 3 systems all using the Intel i810 driver.  All systems are up to date with latest updates as of 7/28/06.
Comment 1 Marcus Schaefer 2006-07-28 14:13:24 UTC
this is a known bug while calling X -probeonly while another
X-Server is running. It's a bug in the intel driver and happens on
i830 mostly
Comment 2 Stefan Dirsch 2006-07-28 14:27:57 UTC
I suggest to use "sax2 -a" instead to write an initial xorg.conf. Later you can start sax2 again *on* your desktop to prevent that a second Xserver is started and configure your monitor, etc. if required. Currently we have no 
other "fix" for this issue. :-(
Comment 3 Michael McCarthy 2006-07-28 15:49:51 UTC
OK.  I did the "sax2 -a" and restarted.  Then I go into sax2 via yast.  After setting monitor and resolution (either Dell E772p or VESA 1024x768@85Hz), I do a "Test" then a "Save".  After exiting the save, I get no GUI.  The monitor reports "Frequency Out of Range 87K/109Hz" which is what I am getting in bug # 195623 as well.  It looks like the i810 driver is very broken.
Comment 4 Stefan Dirsch 2006-07-28 15:52:43 UTC
Do *not* test the configuration. This will start a second Xserver again. :-(
Comment 5 Michael McCarthy 2006-07-28 16:29:51 UTC
Here we go again.  I set the monitor to a Dell E772p, hit save with no test.  After restarting, I get invalid frequency (72K/89Hz).  After running sax2 -a and running it again, I forced the maximum refresh frequency to 85Hz then saved it again with no test.  This time it seems to function.  It also appears to be OK with VESA 1024x768@85Hz for a monitor.
Comment 6 Stefan Dirsch 2006-08-02 00:11:21 UTC
Could you please test with latest X.Org and i810 driver again with SUSE 10.2
Alpha3? BTW, this looks related to Bug #195623.
Comment 7 Michael McCarthy 2006-08-02 12:11:52 UTC
Is there a way to test this without having to load Alpha3?
Comment 8 Stefan Dirsch 2006-08-02 12:24:29 UTC
Yes, it would be possbile by using the X.Org 7 RPMs for SUSE 10.1 from our openSUSE buildservice, Here is the URL for installation. 

http://software.opensuse.org/download/xorg7/Java_Sun-Java-1.5_SUSE_Linux_10.1/

I think you can add it as additional installation source to YaST and select all the packages from it.
Comment 9 Stefan Dirsch 2006-08-05 08:05:26 UTC
As long as you cannot test the newer driver setting to LATER.
Comment 10 Stefan Dirsch 2006-08-30 22:17:20 UTC
reopen to set it to NEEDINFO.
Comment 11 Stefan Dirsch 2006-08-30 22:17:44 UTC
NEEDINFO
Comment 12 Stefan Dirsch 2006-10-27 15:14:33 UTC
openSUSE 10.2 Beta1 has just been released.
Comment 13 Felix Miata 2006-10-27 15:59:30 UTC
beta 1 with i815
sax2 and sax2 -a and sax2 -i -r in runlevel 3 all hang with xmode using 100% CPU. Quite a number of processes require kill -9 in order to try again.
Comment 14 Stefan Dirsch 2006-10-27 16:04:08 UTC
Oh well. I think I could reproduce this with my i810 machine.
Comment 15 Stefan Dirsch 2006-10-28 09:31:30 UTC
xmode hangs? This gfx chip/driver is really very "special".
Comment 16 Felix Miata 2006-10-28 17:37:25 UTC
That may be, but it works on 10.0 using the very same system as the comment 13 report.
Comment 17 Stefan Dirsch 2006-10-30 12:19:56 UTC
> xmode hangs? This gfx chip/driver is really very "special".
I can reproduce this

# ps aux
[...]
/usr/sbin/xmode -x 800 -y 600 -d -1075647892 -r 75 -s 40

What a dacspeed. Do we need another check for this gfx driver? :-(

Marcus, you can reproduce this on d208.
Comment 18 Stefan Dirsch 2006-10-30 12:22:52 UTC
Even "sax2 -a -r -m 0=vga" hangs ("sysp -s xstuff").
Comment 19 Stefan Dirsch 2006-10-30 12:27:34 UTC
> Even "sax2 -a -r -m 0=vga" hangs ("sysp -s xstuff").
The same for "... -m 0=vesa". 
Comment 20 Marcus Schaefer 2006-10-30 14:00:52 UTC
still investigating, by the way "hwinfo --monitor" hangs as well
and produces no output.

please do not reboot the machine, thanks
Comment 21 Marcus Schaefer 2006-10-30 15:49:20 UTC
problem is hwinfo returns a null pointer for the ddc detection.
This shouldn't happen. I fixed sysp to be aware of that. The fix is
installed on d208. The call of

    sax2 -r -a

produces a valid config file at 800x600 (because no other information is
available). Does X running with this file ?

anyway it takes a long time. This is because hwinfo --monitor takes
a very long time to finish with no output
Comment 22 Stefan Dirsch 2006-10-30 15:56:07 UTC
X runs fine with this configuration. I assign this bugreport to you, so you can add the fix/workaround to SaX2 for Beta2. Do we need this fix/workaround also for hwinfo? I've added Steffen therefore.
Comment 23 Marcus Schaefer 2006-10-30 16:00:15 UTC
I think it might be interesting for Steffen because hwinfo is consuming 100%
CPU time for half a minute because it returns with simply nothing :-)

I already committed my patch so I will reassign this to Steffen. I'm pretty
sure it makes sense to still have d208 open for testing

Thanks
Comment 24 Felix Miata 2006-10-30 17:50:45 UTC
I presume d208 is some computer belonging to the SUSE team?
Comment 25 Stefan Dirsch 2006-10-30 17:54:54 UTC
Yes.
Comment 26 Marcus Schaefer 2006-11-02 09:59:05 UTC
*** Bug 217005 has been marked as a duplicate of this bug. ***
Comment 27 Felix Miata 2006-11-02 16:13:07 UTC
I read https://bugzilla.novell.com/show_bug.cgi?id=210923#c28 and upgraded the indicated packages by doing rpm -Uvh * from the download directory after fetching them all with wget. Is there an easier way using apt or rug or something just by providing a download source location?

On i815 sax2 -a generates a valid generic monitor 800x600 xorg.conf. sax2 and sax2 -i -r both generate identical valid 1600x1200 xorg.conf files for my display.
Comment 30 Steffen Winterfeldt 2006-11-06 15:07:00 UTC
ad comment 23: just looked at d208 and it really does take that long
(the bios is not crashed and loops endlessly or so). In fact libhd
will cut out bios runs after 20s but the one on d208 finished after 19.5.
Double the times for 2 ports and you end up with 40s.

Workaround:
boot with 'hwprobe=-bios.cpuemu,bios.ddc.ports=1'.
Comment 31 Marcus Schaefer 2006-11-07 13:53:37 UTC
*** Bug 218744 has been marked as a duplicate of this bug. ***