Xorg freeze after lid closed/opened (screen turned off/on) several times

Bug #995013 reported by Roman Friesen
170
This bug affects 38 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-intel (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After lid has been closed/opened several times the screen
- hangs up (kill session with Alt+Print+K works)
- or is black (Alt+Print+K doesn't work, only the laptop key for power off works).

Sometimes this problem is reproducible:
- start Ubuntu 12.04
- run Firefox
- close/open the lid (power action: nothing, only the screen is turned off)
- check screen responsibility while pressing the Super key twice (open/close the Unity dash)
- next cycle: close/open lid + Super key twice
- after 5-15 cycles the screen hangs up (sometimes not)

I have this problem since upgrade to Ubuntu 12.04 (10.04 was deleted, 12.04 fresh installed). I have a Thinkpad T61, kernel is i386, an intel grafic.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: xorg 1:7.6+12ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic-pae 3.2.14
Uname: Linux 3.2.0-24-generic-pae i686
.tmp.unity.support.test.0:

ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
CompizPlugins: [core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,unitymtgrabhandles,workarounds,scale,expo,ezoom,unityshell]
CompositorRunning: compiz
Date: Sat May 5 11:13:12 2012
DistUpgraded: Fresh install
DistroCodename: precise
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, if not too technical
GpuHangFrequency: Several times a day
GpuHangReproducibility: Occurs more often under certain circumstances
GpuHangStarted: Immediately after installing this version of Ubuntu
GraphicsCard:
 Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) [8086:2a02] (rev 0c) (prog-if 00 [VGA controller])
   Subsystem: Lenovo T61 [17aa:20b5]
   Subsystem: Lenovo T61 [17aa:20b5]
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
MachineType: LENOVO 765912G
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-24-generic-pae root=UUID=2dafe187-ecaa-4134-a267-f6dafa43f5fd ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
Title: Xorg freeze
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/22/2007
dmi.bios.vendor: LENOVO
dmi.bios.version: 7LET51WW (1.21 )
dmi.board.name: 765912G
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7LET51WW(1.21):bd08/22/2007:svnLENOVO:pn765912G:pvrThinkPadT61:rvnLENOVO:rn765912G:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 765912G
dmi.product.version: ThinkPad T61
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.7.6-0ubuntu1
version.libdrm2: libdrm2 2.4.32-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.2-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.2-0ubuntu3
version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu10.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.0-0ubuntu1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20111219.aacbd629-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.17.0-1ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20111201+b5534a1-1build2

Revision history for this message
Roman Friesen (krokosjablik) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xorg (Ubuntu):
status: New → Confirmed
Revision history for this message
Nick Rhodes (ngrhodes) wrote :

I also have a T61 with the intel GPU and have the same issue.
I am always able to CTRL-ALT-F1 into a console after screen freezes.

Revision history for this message
Nick Rhodes (ngrhodes) wrote :

I forgot to add I am running 64bit 12.04 clean install.

Revision history for this message
Vitaly Omelchuk (vitaly-omelchuk) wrote :

Have same issue but compize freeze absolutly every time I closed/opened lib. And it started after last unity upgrade from 5.10 to 5.12

Revision history for this message
Roman Friesen (krokosjablik) wrote :

@vitaly-omelchuk: Hello Vitaly, if you choose "this bug affects me too" at the top of the page, the bug heat will be increased (currently 18). Thank you.

Revision history for this message
bagl0312 (bagl0312) wrote :

I am affected by the same bug. The freeze happens every time I close/open the lid (I have the power settings configured as "do nothing" when I close the lid).

To avoid the freeze, I had to configure the "Power settings" to suspend my laptop when lid is closed, since unsuspend is working ok.

Revision history for this message
bagl0312 (bagl0312) wrote :

I forgot to say that my laptop is a Dell M1330 with a NVidia Corporation G86 controller, using the Nouveau drivers

bugbot (bugbot)
affects: xorg (Ubuntu) → xserver-xorg-video-intel (Ubuntu)
Revision history for this message
Andrew Plummer (plummer574) wrote :

Affects me too. Doesn't happen every time. I just tested and did ~10 open and closes and all was fine. Then it did freeze. This time, at least, I was able to Crtl+Alt+F1 into the console (I hadn't tested this before), but what should I do from there? I was able to shutdown from there, saving me from hard resetting, but is there any way of killing the session and getting back to the log in screen? (Is that exactly what Alt+Print+K would do?)

I hadn't made the connection with Firefox, but it is the browser I use, so it is basically open constantly. I'll try switching to Chromium for a while and see if that stops the issue. I had tried changing the power settings from "do nothing" to "suspend" but the hangs still happen.

I'm using an ASUS UL30A with an Intel 4500MHD Graphics Media Accelerator and running 32-bit Precise upgraded from Oneiric and this issue has been affecting me since that upgrade.

Revision history for this message
Nick Rhodes (ngrhodes) wrote :

From the console you can get back to the login screen by issuing the following command:

sudo service lightdm restart

This has the same effect of killing Xorg as Alt+Print+K - kills the session without logging out and saving data.

Cheers, Nick.

Revision history for this message
Nick Rhodes (ngrhodes) wrote :

Crtl-Alt-F7 will get you back to X.

Cheers, Nick

Revision history for this message
Andrew Plummer (plummer574) wrote :

I hope this isn't old news, but I've done a little bit of testing and found that the following lines appeared in my /var/log/Xorg.0.log when this freeze occured:
[ 4255.536] (WW) intel(0): flip queue failed: Invalid argument
[ 4255.536] (WW) intel(0): Page flip failed: Invalid argument

I understand that the numbers in square brackets are timestamps of number of seconds since boot. I haven't found a simple way of converting these to human readable times (knowledge of the 'date' command clearly lacking) but at any rate, a google of these lines lead me to comments 30 and 38 on bug 966744 which seems to suggest that these two bugs are at least related if not actual duplicates.

Can anyone confirm that these line are appearing in their Xorg.0.log (if viewing in during a freeze using tty) or Xorg.0.log.old after running 'sudo service lightdm restart' and getting back to X (by running: grep "Invalid argument" /var/log/Xorg.0.log)?

Revision history for this message
Andrew Somerville (andy-somerville) wrote :

This happens to me but every time I close my lid:

Macbook Pro 5,3
Linux 3.2.0-24-generic #37-Ubuntu SMP
GeForce 9600M GT
nvidia 295.40-0ubuntu1

from Xorg.1.log:

Backtrace:
[436331.561] 0: /usr/bin/X (xorg_backtrace+0x26) [0x460566]
[436331.561] 1: /usr/bin/X (0x400000+0x64b7a) [0x464b7a]
[436331.561] 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7fe6507ab000+0x10060) [0x7fe6507bb060]
[436331.561] 3: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7fe64ae74000+0xe17d7) [0x7fe64af557d7]
[436331.561] 4: /usr/lib/xorg/modules/libwfb.so (wfbBlt+0x154) [0x7fe64aa3a554]
[436331.561] 5: /usr/lib/xorg/modules/libwfb.so (wfbOddTile+0x170) [0x7fe64aa4b600]
[436331.561] 6: /usr/lib/xorg/modules/libwfb.so (wfbFill+0x54d) [0x7fe64aa3fd9d]
[436331.561] 7: /usr/lib/xorg/modules/libwfb.so (wfbPolyFillRect+0x1c4) [0x7fe64aa40574]
[436331.561] 8: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7fe64ae74000+0x463baf) [0x7fe64b2d7baf]
[436331.561] 9: /usr/bin/X (0x400000+0xde915) [0x4de915]
[436331.562] 10: /usr/bin/X (miPaintWindow+0x1a0) [0x45b590]
[436331.562] 11: /usr/bin/X (miWindowExposures+0xc2) [0x45b752]
[436331.562] 12: /usr/bin/X (0x400000+0x13486d) [0x53486d]
[436331.562] 13: /usr/bin/X (miHandleValidateExposures+0x68) [0x5651e8]
[436331.562] 14: /usr/bin/X (UnmapWindow+0x240) [0x457370]
[436331.562] 15: /usr/bin/X (DeleteWindow+0x2b) [0x4573cb]
[436331.562] 16: /usr/bin/X (FreeClientResources+0xdc) [0x44ea4c]
[436331.562] 17: /usr/bin/X (CloseDownClient+0x5a) [0x42f05a]
[436331.562] 18: /usr/bin/X (0x400000+0x2fae7) [0x42fae7]
[436331.562] 19: /usr/bin/X (0x400000+0x232fe) [0x4232fe]
[436331.562] 20: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xed) [0x7fe64f6e530d]
[436331.562] 21: /usr/bin/X (0x400000+0x235ed) [0x4235ed]
[436331.562] Segmentation fault at address 0x1400
[436331.562]
Caught signal 11 (Segmentation fault). Server aborting
[436331.562]

Revision history for this message
Andrew Somerville (andy-somerville) wrote :

This is a more recent log, previous may be different problem...

Backtrace:
[ 2545.515] 0: /usr/bin/X (xorg_backtrace+0x26) [0x7f10c6948856]
[ 2545.515] 1: /usr/bin/X (mieqEnqueue+0x263) [0x7f10c6928f33]
[ 2545.515] 2: /usr/bin/X (0x7f10c67c0000+0x62924) [0x7f10c6822924]
[ 2545.515] 3: /usr/lib/xorg/modules/input/evdev_drv.so (0x7f10bec5c000+0x5d88) [0x7f10bec61d88]
[ 2545.515] 4: /usr/bin/X (0x7f10c67c0000+0x8adf7) [0x7f10c684adf7]
[ 2545.515] 5: /usr/bin/X (0x7f10c67c0000+0xb0d3a) [0x7f10c6870d3a]
[ 2545.515] 6: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f10c5ae6000+0xfcb0) [0x7f10c5af5cb0]
[ 2545.515] 7: /lib/x86_64-linux-gnu/libc.so.6 (ioctl+0x7) [0x7f10c4a44d27]
[ 2545.515] 8: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f10bf744000+0x113815) [0x7f10bf857815]
[ 2545.515] 9: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f10bf744000+0x19fab4) [0x7f10bf8e3ab4]
[ 2545.515] 10: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f10bf744000+0x19081a) [0x7f10bf8d481a]
[ 2545.515] 11: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f10bf744000+0x190663) [0x7f10bf8d4663]
[ 2545.515] 12: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f10bf744000+0x18cbef) [0x7f10bf8d0bef]
[ 2545.515] 13: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f10bf744000+0x19a858) [0x7f10bf8de858]
[ 2545.515] 14: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f10bf744000+0x10c97b) [0x7f10bf85097b]
[ 2545.515] 15: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f10bf744000+0x8e267) [0x7f10bf7d2267]
[ 2545.515] 16: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f10bf744000+0x4b74d5) [0x7f10bfbfb4d5]
[ 2545.515] 17: /usr/bin/X (DPMSSet+0xff) [0x7f10c684ab8f]
[ 2545.515] 18: /usr/bin/X (mieqProcessInputEvents+0x141) [0x7f10c69294f1]
[ 2545.515] 19: /usr/bin/X (ProcessInputEvents+0x9) [0x7f10c684ae79]
[ 2545.515] 20: /usr/bin/X (0x7f10c67c0000+0x4e4d3) [0x7f10c680e4d3]
[ 2545.515] 21: /usr/bin/X (0x7f10c67c0000+0x3d6aa) [0x7f10c67fd6aa]
[ 2545.516] 22: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xed) [0x7f10c497b76d]
[ 2545.516] 23: /usr/bin/X (0x7f10c67c0000+0x3d99d) [0x7f10c67fd99d]
[ 2545.516] [mi] These backtraces from mieqEnqueue may point to a culprit higher up the stack.
[ 2545.516] [mi] mieq is *NOT* the cause. It is a victim.

Revision history for this message
Roman Friesen (krokosjablik) wrote :

I have used for a while a Chromium instead of a Firefox and the problem is still there. So it does not depend on Firefox as I assumed first.

Revision history for this message
Andrew Somerville (andy-somerville) wrote :

Upon further investigation, the xorg segfault logs posted are another, apparently unrelated problem. : /

Revision history for this message
jhfhlkjlj (fdsuufijjejejejej-deactivatedaccount) wrote :

Hi! I know this bug has been around for a long time but there's a later bug that is hosting many more people. I'm going to mark this as a duplicate to consolidate the two so this (hopefully) gets fixed a bit faster.

Thanks for the patience!

Revision history for this message
Richard Schmidt (ribiku-sith) wrote :

Same on a Lenovo T61p / NVIDIA / Gnome 3

Revision history for this message
robbprescott (robbprescott) wrote :

Lenovo T61 / Unity / Ubuntu 12.04. Same thing. Can't get to other consoles when I reopen the lid, have to force restart every time.

Revision history for this message
Ryan Rawdon (flieslikeabrick) wrote :

Does anyone else think this may not actually be a duplicate of 9766744? The bug described here (and what we are encountering) is that the entire machine locks when the lid is closed and reopened - we are not able to switch to a different vty, ssh into it, or even ping it on the local network.

The symptoms in 976744 seem to only be related to suspend/resume, and seem to only be a graphical environment crash/hang (but the underlying system is still responsive).

Lastly, is everyone here on the proprietary nvidia drivers when reproducing this?

tags: added: regression-release
removed: regression-update
Revision history for this message
Joe G (1-launchpad-stancomics-net) wrote :

Lenovo T61, Intel graphics, 12.04. Screen is occasionally blank when re-opening lid. Sometimes mouse is responsive on black, but lit screen. Able to switch to console and restart lightdm. Rare occasion system is hard locked requiring a hard reboot.

Revision history for this message
Daniel Podlejski (underley) wrote :

Same on Toshiba Satellite U400 (PSU40E-00E00JPL)

Revision history for this message
Robi (rogadora) wrote :

I have the same issue on HP630. It has Radeon HD6300 chip.
It tipically happens if I left the notebook untouched for a longer time then I close the lid.
Typical that the fan starts to work on high speed after I losed the lid.

Revision history for this message
Syed Aamir (aamir303) wrote :

Affects me too. I have a lenovo L520, with intel onboard drivers, and a 32-bit clean installation. Unfortunately the xorg stuff is the most problematic feature in all my laptops, and bug reports never seem to solve anything on launchpad (bad old experience)

Revision history for this message
Marlon Costa (marlonsc) wrote :

Same problem with Samsung RC420 / Quantal (12.10)

Revision history for this message
rvntone (yonelmeza) wrote :

Affects me too. Acer 4743 Intel card (driver=i915). ubuntu 12.04

Revision history for this message
David Hope (dhhope) wrote :

This affects me as well. I too have a Dell Inspiron D630, 4GB Ram, 80GB HD. It appears to only affect me when I have Firefox open.

Revision history for this message
Tony Muka (tonymuka) wrote :

Affects me regularly on my thinkpad t61p with Nvidia Quadro FX 570M. I use Chrome, not FireFox, so i don't think firefox is to blame.

Revision history for this message
Emlimo (emlimo-lama) wrote :

I have this on Acer Timelinex 3820TG. Ubuntu 12.10 with Gnome-Shell.

I think this is not excactly same as bug #966744. I get different behavour. When using the suspend button I will get system back, but usually take some hang time before system gets responsive and I can type login password. When closing the lid I get more like a crash and have to reset (sys-rseiub) computer.

Revision history for this message
Emlimo (emlimo-lama) wrote :

Nevermind last post. Did not get a crash now when using lid now, just a hang like when using suspend button.

Revision history for this message
Andreas Hohenegger (hohenegger) wrote :

I can confirm this on the same system "Thinkpad T61, kernel is i386, and intel grafic". I see it since an update from Ubuntu 12.04 to 12.10. I used 12.04 with tuxonice kernel (from tuxonice ppa) and did not encounter this issue (though sleep/hibernate was never completely stabel). With 12.04 hibernate stopped working with tuxonice. With standard i386 kernel hibernate works only if I do "sudo swapoff -a; sudo swapon -a" immediately before. I use Ubuntu with a pretty different configuration running kde. This should allow to exclude many error sources including Compiz. Also I do not use Firefox. Probably it is worth trying an older kernel.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.