Bug 463288

Summary: sax2: Always use '-br' Xserver option (required for Intel 845G)
Product: [openSUSE] openSUSE 11.1 Reporter: Stefan Dirsch <sndirsch>
Component: SaX2Assignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: E-mail List <sax2-maintainer-bugs>
Severity: Critical    
Priority: P2 - High CC: davejplater, eich, kpenrose, mrmazda, ms, rbevill, support
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: maint:released:11.1:22760
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: sax2.diff
sax2-additional.diff
sax2-additional.diff
xorg.conf that works on Dell GX260 (i845G)
SaXlog

Description Stefan Dirsch 2009-01-02 16:34:18 UTC
Due to intel driver, which breaks the complete machine when '-br' Xserver option is not used on i845G, SaX2 should always use this option when starting the Xserver.

See upstream bugs

* http://bugs.freedesktop.org/show_bug.cgi?id=17713
* http://bugs.freedesktop.org/show_bug.cgi?id=19090

---
  * The issue is that sax2, which runs during installation (and also on
    LiveCD), does not use Xserver's "-br" option yet and the problem only
    occurs when this option is not being set. This is the reasons why
    xdm/gdm/kdm, which now use "-br" option by default, work after
    installation (after being forced to reboot). Still it's a driver bug.
---

I wrote a /usr/bin/Xorg wrapper to always set '-br' option and then figured
out with ps, that it is started one time without -br option.

# sort -u ps_output
0:00 /bin/sh /usr/bin/Xorg -logverbose 255 -xf86config /tmp/sysdata-12998 :99 -ac
0:00 /usr/bin/Xorg.bin -br -logverbose 255 -xf86conf
0:00 /usr/bin/Xorg.bin -br -logverbose 255 -xf86config /tmp/sysdata-6477 :99 -ac

Unfortunately I couldn't find the location yet, where this happens. Marcus,
any ideas?
Comment 1 Stefan Dirsch 2009-01-02 16:35:23 UTC
Created attachment 263029 [details]
sax2.diff

These are the changes of 2004 from SVN.
Comment 2 Stefan Dirsch 2009-01-02 16:36:59 UTC
Created attachment 263030 [details]
sax2-additional.diff

This is what I tried in addition, but it didn't help. :-(
Comment 3 Stefan Dirsch 2009-01-02 16:42:21 UTC
Marcus?
Comment 4 Stefan Dirsch 2009-01-02 16:49:00 UTC
*** Bug 445320 has been marked as a duplicate of this bug. ***
Comment 5 Marcus Schaefer 2009-01-02 18:36:03 UTC
you additionally need to patch XF86ConfigFile::CallXF86Loader from
cfg.c (sysp code)
Comment 6 Stefan Dirsch 2009-01-02 22:33:01 UTC
*** Bug 461693 has been marked as a duplicate of this bug. ***
Comment 7 Stefan Dirsch 2009-01-02 22:49:03 UTC
Created attachment 263054 [details]
sax2-additional.diff

Thanks, Marcus. This new patch should fix the issue. I'm going to test it on monday.
Comment 8 Stefan Dirsch 2009-01-02 23:12:28 UTC
Maybe someone else wants to test new SaX2 package before I can on monday. Packages will be available shortly via

  http://beta.suse.com/private/sndirsch/bug463288
Comment 9 Stefan Dirsch 2009-01-02 23:16:29 UTC
Update: Packages are available now.
Comment 10 Stefan Dirsch 2009-01-03 17:35:55 UTC
Just tested. Works fine now. Submitted for openSUSE 11.2 and SLE11. I'm afraid an update for openSUSE 11.1 will be useless since package updates are probably done after X.Org configuration and the issue exists only during installation.
Comment 11 Felix Miata 2009-01-04 06:40:49 UTC
(In reply to comment #10 from Stefan Dirsch)
> I'm afraid
> an update for openSUSE 11.1 will be useless since package updates are probably
> done after X.Org configuration and the issue exists only during installation.
 
Useless to those who change video chips and must run sax2 or yast from tty[1-6] shell prompt to get X back?
Comment 12 Felix Miata 2009-01-16 16:23:44 UTC
I tried running 'sax2 -br' and 'sax2 -br -a' on my D845GLVA, which locked up the machine (CAD worked) and failed to create xorg.conf. What is an ordinary 11.1 user with 845 supposed to do to get X working?
Comment 13 Stefan Dirsch 2009-01-16 16:33:58 UTC
"-br" is an Xserver option, not an option for SaX2! SaX2 starts an Xserver internally. I think we'll provide a SaX2 update for 11.1 once we're done with SLE11.
Comment 14 Stefan Dirsch 2009-01-19 18:08:42 UTC
*** Bug 467228 has been marked as a duplicate of this bug. ***
Comment 15 Stefan Dirsch 2009-01-20 22:36:51 UTC
(In reply to comment #11)
> (In reply to comment #10 from Stefan Dirsch)
> > I'm afraid
> > an update for openSUSE 11.1 will be useless since package updates are probably
> > done after X.Org configuration and the issue exists only during installation.
> 
> Useless to those who change video chips and must run sax2 or yast from tty[1-6]
> shell prompt to get X back?

I plan an sax2 update once SLE11 is done. This will fix installation for users,
which disable automatic configuration (which unfortunately is the default) and
do an online update during installation.
Comment 16 Stefan Dirsch 2009-02-25 11:49:03 UTC
I would like to provide a sax2 update for openSUSE 11.1. Anja, could you create
a SWAMPID?
Comment 18 Stefan Dirsch 2009-02-26 13:50:30 UTC
patchinfo file created.
Comment 19 Don Hughes 2009-03-05 19:35:34 UTC
Help me here.  This bug is marked as Resolved, however, I just tried installing 11.1 on an HP system with an i845 chip and it hangs during the hardware setup.
Comment 20 Felix Miata 2009-03-05 20:54:32 UTC
Did you not read comment 10 ? The fix came after the DVDs. You'll need to swap in a different video card to install with the GUI, or else do a textmode=1 installation. You can configure the video manually from runlevel 3 after installation is complete, or more easily after applying the updates.
Comment 21 Don Hughes 2009-03-06 04:09:39 UTC
I had an existing 11.0 system which I was trying to upgrade to 11.1. The graphical install recognizes and works correctly with the hardware.  I hangs on the the video hardware config after the reboot.  I SSHed into the system and ran a text mode yast2 to apply any additional updates other than the ones applied during the install. I forced a reboot and then than ran Sax2 --ignoreprofile --reinit which hung in exactly the same fashion, so I am unclear how I am to configure the video manually.
Comment 22 Felix Miata 2009-03-06 06:53:33 UTC
Created attachment 277546 [details]
xorg.conf that works on Dell GX260 (i845G)

(In reply to comment #21)
> I am unclear how I am to configure the video manually.

You could try using this. It's set to 1600x1200 & 120 DPI for a CRT.
Comment 23 Don Hughes 2009-03-08 19:36:30 UTC
Using the config supplied by Felix I was able to get a session to start.  Thanks Felix.  However.

1) If I run the yast2 video card configuration, it still produces an invalid xorg.config file -- the AcellMethod  and Screen lines are deleted.  The Sax2 log ends with a division error.  Starting the system with that xorg.config file causes a hang with vertical bars of color.

2) Upgrading sax2 to version 8.1-542.7.1 mentioned in this thread and using Filix's working config produces a system that hangs with a display of randon colored pixels.  If I try to run sax2 or the yast2 hardward setup it hangs when I get to the configuration test.  It does not produce an updated xorg.config.

The sax log is attached.

Downgrading back to version 8.1-542.7 of sax and I can again start X.

In addition, if I switch to a text mode screen with an X session running and the X screen is refreshed while it is not being displayed, the system hangs with a blank screen as soon as I switch back to the X screen.
Comment 24 Don Hughes 2009-03-08 19:39:45 UTC
Created attachment 277881 [details]
SaXlog

SaXlog showing division error.
Comment 25 Swamp Workflow Management 2009-03-16 13:45:43 UTC
Update released for: Mesa, Mesa-devel, Mesa-devel-static, freeglut, freeglut-devel, sax2, sax2-gui, sax2-ident, sax2-libsax, sax2-libsax-devel, sax2-libsax-java, sax2-libsax-perl, sax2-libsax-python, sax2-tools, x11-input-wacom, x11-input-wacom-devel, x11-input-wacom-tools, xorg-x11-Xvnc, xorg-x11-driver-input, xorg-x11-driver-video, xorg-x11-driver-video-radeonhd, xorg-x11-server, xorg-x11-server-debuginfo, xorg-x11-server-debugsource, xorg-x11-server-extra, xorg-x11-server-sdk
Products:
openSUSE 11.1 (debug, i586, ppc, ppc64, x86_64)
Comment 26 Felix Miata 2010-07-16 23:38:28 UTC
Today I did 'zypper up' on 11.2 on an 845G Dell. Since, sax2 from runlevel 3 locks up the machine. Did some update revert the fix for this? Is this fixable locally by adding -br in some script?
Comment 27 Stefan Dirsch 2010-07-19 07:02:27 UTC
(In reply to comment #26)
> Today I did 'zypper up' on 11.2 on an 845G Dell. Since, sax2 from runlevel 3
> locks up the machine. Did some update revert the fix for this? 

I'm not aware of such a change.