Bug 11325

Summary: X Window System hangs when XScreenSaver goes into Suspend mode
Product: xorg Reporter: Frans Coomans <frans.coomans>
Component: Driver/intelAssignee: Eric Anholt <eric>
Status: CLOSED WORKSFORME QA Contact: Xorg Project Team <xorg-team>
Severity: critical    
Priority: highest CC: dwayne, jbarnes
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.log
none
Previous Xorg.log
none
.xsession-errors
none
Xorg.setup.log
none
xorg.conf none

Description Frans Coomans 2007-06-21 06:30:57 UTC
X Window Session becomes unresponsive when the XScreenSaver kicks in and then goes into Suspend mode.  Both the keyboard and mouse becomes unresponsive.  Please see the Error Log below for details on error.

Reproducible: Always

Reproduce Steps:
1.  Enable XScreensaver
2.  Set Power Management options.
3.  Activate Screensaver and wait for Suspend mode to kick in.

System: Intel Core2 Duo 1.8, 512MB RAM, Intel D946GZIS Motherboard /w onboard i810 Graphics Card.
OS: Fedora 7
kernel: 2.6.21-1.3228
Xorg display Driver: xorg-x11-drv-i810-2.0.0-3.fc7

xorg.conf:
Section "ServerLayout"
        Identifier     "single head configuration"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

Section "Monitor"

        Identifier   "Monitor0"
        ModelName    "LCD Panel 1280x1024"
        HorizSync    31.5 - 67.0
        VertRefresh  50.0 - 75.0
        Option      "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "i810"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     16
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1280x1024" "1280x960" "1280x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Error Log for gdm:
X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: Fedora Core 7 Red Hat, Inc.
Current Operating System: Linux itc.alstom.co.za 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 15:37:31 EDT 2007 i686
Build Date: 11 June 2007
Build ID: xorg-x11-server 1.3.0.0-9.fc7 
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jun 21 10:12:32 2007
(==) Using config file: "/etc/X11/xorg.conf"
(II) Module already built-in
(II) Module already built-in
Error in I830WaitLpRing(), now is 1297551125, start is 1297549124
pgetbl_ctl: 0x1ff80001 pgetbl_err: 0x0
ipeir: 0 iphdr: 0
LP ring tail: 178 head: 0 len: 1f001 start 0
eir: 0 esr: 1 emr: ffdf
instdone: 0 instpm: 0
memmode: 0 instps: 0
hwstam: dffe ier: 82 imr: 0 iir: 20
space: 130688 wanted 131064

Fatal server error:
lockup

Error in I830WaitLpRing(), now is 1297553145, start is 1297551144
pgetbl_ctl: 0x1ff80001 pgetbl_err: 0x0
ipeir: 0 iphdr: 0
LP ring tail: 180 head: 0 len: 1f001 start 0
eir: 0 esr: 1 emr: ffdf
instdone: 0 instpm: 0
memmode: 0 instps: 0
hwstam: dffe ier: 82 imr: 0 iir: 20
space: 130680 wanted 131064

FatalError re-entered, aborting
lockup
Comment 1 Michael Fu 2007-08-02 18:22:51 UTC
please upload log and configuration (HW/SW). we can't reproduce this bug on upstream driver. Please try the upstream driver
Comment 2 Dwayne Bailey 2007-08-06 23:01:08 UTC
Created attachment 11022 [details]
Xorg.log

The Xorg.log after the lockup of the screen
Comment 3 Dwayne Bailey 2007-08-06 23:02:04 UTC
Created attachment 11023 [details]
Previous Xorg.log

This is the penultimate log.  Also showing the same crash.
Comment 4 Dwayne Bailey 2007-08-06 23:02:41 UTC
Created attachment 11024 [details]
.xsession-errors

I doubt this is needed but here it goes anyway.
Comment 5 Dwayne Bailey 2007-08-06 23:04:23 UTC
Created attachment 11025 [details]
Xorg.setup.log

I hope this provides the hardware info that you need.
Comment 6 Dwayne Bailey 2007-08-06 23:05:18 UTC
Created attachment 11026 [details]
xorg.conf

Current configuration
Comment 7 Dwayne Bailey 2007-08-06 23:16:30 UTC
Hi,

I have the same issue, I've attached all the info I can find from my system and am available to check and test things.  

I'm running:
Fedora 7
Toshiba Tecra A2 laptop (LCD panel at 1280x1024)
Gfx card: Intel 82852/855GM (running intelfb I think)
Xorg 1.3 (xorg-x11-server-Xorg-1.3.0.0-9.fc7)
X Driver: Intel i810 (xorg-x11-drv-i810-2.0.0-4.fc7)


This bug occurs every time on my system.  It seems that whenever the screen blanks that the system will lockup and X goes to 100% CPU.  The only solution is to login remotely and kill X.  Keyboard and mouse are completely unresponsive.  I have now disabled the screensaver as I thought that might be causing the problem.  Now the only change is that the screen locks but the display is in its last state, i.e. not blank.

If there is more information that I can supply then let me know.  I cannot easily test upstream drivers but if that is what is required...
Comment 8 Jesse Barnes 2007-08-09 11:03:02 UTC
Dwane, can you try with a more recent driver?  New versions should be available from Fedora's rawhide repos. 

If xscreensaver is trying to display a complex 3D screen saver, it might cause high CPU load and poor responsiveness if for some reason your 3D isn't accelerated, but that should stop when the display really goes to sleep.

Also, I noticed that X's x86 emulator reported a bug at the end of your X log.  I think this may be fixed in the latest rawhide version of the X server, so upgrading that might also help.
Comment 9 Julien Cristau 2007-08-09 11:12:34 UTC
(In reply to comment #8)
> Also, I noticed that X's x86 emulator reported a bug at the end of your X log. 
> I think this may be fixed in the latest rawhide version of the X server, so
> upgrading that might also help.
> 
fwiw, that x86emu error might be the same as #11842.
Comment 10 Gordon Jin 2007-08-26 19:08:12 UTC
Dwayne/Frans, which screen saver did you choose? I tried some but can't reproduce it.
Comment 11 Frans Coomans 2007-08-26 23:34:48 UTC
Hi.  I'm using xscreensaver:

xscreensaver-base-5.02-1.fc7.1
xscreensaver-gl-extras-5.02-1.fc7.1
xscreensaver-extras-5.02-1.fc7.1

Current xorg-x11-drv for i810:
xorg-x11-drv-i810-2.0.0-4.fc7
Comment 12 Dwayne Bailey 2007-08-27 01:58:15 UTC
Frans -> is your computer still locking.  Mine seems to have stopped having this issue but I did uninstall the screensaver.

I'm going to try to get the screensaving back to see if the problem persists.
Comment 13 Gordon Jin 2007-08-28 23:05:52 UTC
I tried on below configurations but can't reproduce:
-- Fedora7, out-of-box, on 965G. (similar to Frans)
-- upstream driver on FedoraCore5, with xscreensaver updated to fc7 version (as described in comment#11), on 855GM. (similar to Dwayne)
Comment 14 Michael Fu 2007-09-04 18:18:18 UTC
ping for update from Dwayne Bailey
Comment 15 Michael Fu 2007-10-11 18:35:34 UTC
mark as unreproducible due to no response.
Comment 16 Frans Coomans 2007-11-27 23:24:20 UTC
Changing the Driver from i810 to the "experimental" intel Driver resolved all issues, without any negative side-effects.

The Device Section in /etc/X11/xorg.conf now looks like this:

Section "Device"
        Identifier  "Videocard0"
        Driver      "intel"
EndSection

The intel Driver is included in the xorg-x11-drv-i810 rpm.  

I am now running xscreensaver and switching between X and ttys works perfectly, without any lock-ups.

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.