[gm45] Session lost on resume from sleep in Jaunty on Lenovo T500

Bug #322202 reported by Dantroline
126
This bug affects 14 people
Affects Status Importance Assigned to Milestone
xf86-video-intel
Fix Released
Critical
xserver-xorg-video-intel (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Since 26/1/2009 my logged in session is lost after resume from sleep:
- Lenovo T500
- Intel GMA x4500 graphics card, using intel driver
Suspend goes along normally but on resume I am given the login menu
Logging in then takes longer than usual (about 10 seconds instead of 3 or 4)
System after this is otherwise stable
A crash report hasn't been generated by this behaviour so I couldn't automatically submit all the necessary documentation. Not even sure what package is to blame, but appears to relate to usage of Intel xorg driver, since shortly before this problem I was using the vesa driver.

Revision history for this message
In , Khashayar Naderehvandi (khashayar) wrote :

I can confirm this issue, also with intel driver from git master as of January 24th.

Revision history for this message
In , Eric Anholt (eric-anholt) wrote :

I'm happily suspending and resuming daily on my machine. Please attach Xorg.0.log and dmesg to bug reports. If you can get a gdb backtrace of X crashes, that's the best.

Revision history for this message
In , Timo Aaltonen (tjaalton) wrote :

Created an attachment (id=22303)
backtrace

ok, did manage to get a backtrace

Revision history for this message
Dantroline (daniel-arasweb) wrote : Session lost on resume from sleep in Jaunty on Lenovo T500

Since 26/1/2009 my logged in session is lost after resume from sleep:
- Lenovo T500
- Intel GMA x4500 graphics card, using intel driver
Suspend goes along normally but on resume I am given the login menu
Logging in then takes longer than usual (about 10 seconds instead of 3 or 4)
System after this is otherwise stable
A crash report hasn't been generated by this behaviour so I couldn't automatically submit all the necessary documentation. Not even sure what package is to blame. Anyone else had this problem?

description: updated
Revision history for this message
In , Gordon Jin (gordon-jin) wrote :

Xorg.0.log and dmesg please.

Revision history for this message
In , Khashayar Naderehvandi (khashayar) wrote :

Created an attachment (id=22359)
Xorg.0.log after suspend

This is /var/log/Xorg.0.log.old. Although it doesn't look like it when judging from the log, this is in fact the log from *after* I was sent back to the login window.

Revision history for this message
In , Khashayar Naderehvandi (khashayar) wrote :

Created an attachment (id=22360)
dmesg output taken after a suspend/resume cycle

Revision history for this message
Geir Ove Myhr (gomyhr) wrote : Re: Session lost on resume from sleep in Jaunty on Lenovo T500

Thank you for reporting this bug and helping making ubuntu better. Could you please attach the following information as separate files:
- /var/log/Xorg.0.log
- /etc/X11/xorg.conf (if you have made any changes to this)
- the output of `lspci -vvnn` (run `lspci -vvnn > lspci-vvnn.txt` to write this to a file)

Changed in xserver-xorg-video-intel:
status: New → Incomplete
Revision history for this message
In , Khashayar Naderehvandi (khashayar) wrote :

I just noticed that this bug only surfaces when compiz is running. That is, if compiz is not running, my laptop suspends and resumes reliably.

Revision history for this message
Manuel Siggen (manuel-siggen) wrote : Re: Session lost on resume from sleep in Jaunty on Lenovo T500

For what it is worth, I experimented the same behavior on a Thinkpad X40 (Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)) when DRI is enabled (UXA).

I disabled DRI in my xorg.conf file and then I could suspend-to-ram and resume fine :

Section "Device"
        Identifier "Configured Video Device"
        Option "NoDRI"
# Option "AccelMethod" "UXA"
EndSection

Revision history for this message
Matteo Collina (matteo-collina) wrote :

I got exactly the same problem with a Dell Latitue E6400 with the Intel GMA x4500 graphics card when running with UXA (with EXA everything is fine but it has its own problems, see bug https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/320813).

I think this bug has already been uploaded upstream: http://bugs.freedesktop.org/show_bug.cgi?id=

Revision history for this message
Matteo Collina (matteo-collina) wrote :
Revision history for this message
In , Khashayar Naderehvandi (khashayar) wrote :

Created an attachment (id=23078)
Xorg.log with backtrace (modedebug on), uxa+compiz=crash

Here's a log I managed to capture that's somewhat better than the last. There's a small backtrace at the end of it, and I also had modedebug enabled. Hope it helps.

Revision history for this message
In , Khashayar Naderehvandi (khashayar) wrote :

By the way, it seems I have forgotten to provide this information:

$ lspci -vvnn | grep -A2 "VGA compat"
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 07)
 Subsystem: ASUSTeK Computer Inc. Device [1043:1862]
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+

Revision history for this message
In , Jeffrey Baker (jwbaker) wrote :

Isn't this a consequence of the fact that the server crashes on chvt, when using UXA and when GL clients (compiz) are active? Some distros (Debian, Ubuntu) chvt away from the X display before suspending.

Revision history for this message
In , Khashayar Naderehvandi (khashayar) wrote :

(In reply to comment #10)
> Isn't this a consequence of the fact that the server crashes on chvt, when
> using UXA and when GL clients (compiz) are active? Some distros (Debian,
> Ubuntu) chvt away from the X display before suspending.
>

I'm not sure, but I do VT switch occasionally, and should have noticed crashes that result from that. But, on the other hand, by chance I might have not been doing that while running with UXA. I'll give it a try and will post back here.

Changed in xserver-xorg-video-intel:
status: Unknown → Confirmed
Revision history for this message
In , Khashayar Naderehvandi (khashayar) wrote :

Did some VT switching now. No crash.

Revision history for this message
In , Jeffrey Baker (jwbaker) wrote :

That's interesting. It's a 100% crasher with Intel 2.6.1, xorg 1.5.99.902, and Linux 2.6.28, when using UXA and Compiz on GM965.

Revision history for this message
In , Khashayar Naderehvandi (khashayar) wrote :

(In reply to comment #13)
> That's interesting. It's a 100% crasher with Intel 2.6.1, xorg 1.5.99.902, and
> Linux 2.6.28, when using UXA and Compiz on GM965.
>

Actually, there's been the odd couple of times when suspend/resume has worked with that setup. But definitely only once or twice out of 20-30 attempts so far.

Revision history for this message
Jonas Pedersen (jonasped) wrote : Re: Session lost on resume from sleep in Jaunty on Lenovo T500
Revision history for this message
Jonas Pedersen (jonasped) wrote :
Revision history for this message
Jonas Pedersen (jonasped) wrote :
Revision history for this message
Jonas Pedersen (jonasped) wrote :

I can confirm the exact same issue here. It looks like it happens when i use UXA. I will try to test this a bit more one of the next twp days.

Changed in xserver-xorg-video-intel:
status: Incomplete → Confirmed
Revision history for this message
Geir Ove Myhr (gomyhr) wrote : Re: [UXA] Session lost on resume from sleep in Jaunty on Lenovo T500

Since the original reporter hasn't replied and the rest seems to have this issue only when using UXA, I assume this is a UXA specific bug. SInce it has been decided that Jaunty will not ship with UXA enabled, this bug will not be given priority here, but we hope that it will be fixed upstream so that the next ubuntu version may be shipped with UXA.

Revision history for this message
Jonas Pedersen (jonasped) wrote : Re: [Bug 322202] Re: Session lost on resume from sleep in Jaunty on Lenovo T500

Jonas Pedersen wrote:
> I can confirm the exact same issue here. It looks like it happens when i
> use UXA. I will try to test this a bit more one of the next twp days.

Have tested it a couple of times now. I am only able to reproduce this
when using UXA.

Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel:
importance: Undecided → Wishlist
status: Confirmed → Triaged
Revision history for this message
Chris Cheney (ccheney) wrote : Re: [UXA] Session lost on resume from sleep in Jaunty on Lenovo T500

I get this same issue (?) with a ThinkPad X200 without having explicitly enabling EXA. I'm not using compiz but I do have compositing enabled in metacity. Bug 315965 may be related. It hasn't crashed every time I do a suspend/resume cycle but most of the time it does.

Revision history for this message
Chris Cheney (ccheney) wrote :

Er my previous message should have said UXA not EXA... I am just running default Xorg setup which uses EXA (afaik).

Revision history for this message
Matteo Collina (matteo-collina) wrote :

Actually that's not true. It happens even on EXA but very rarely. I think once every 20 or more suspends.

Revision history for this message
Stefano Rivera (stefanor) wrote : Re: [Bug 322202] Re: [UXA] Session lost on resume from sleep in Jaunty on Lenovo T500

Hi Matteo (2009.03.07_17:29:29_+0200)
> Actually that's not true. It happens even on EXA but very rarely. I
> think once every 20 or more suspends.

I've been noticing this on my MacBook 2.1 with EXA, but more often than 1 in
20. May be related.

SR

Revision history for this message
Walter_Wittel (wittelw) wrote : Re: Session lost on resume from sleep in Jaunty on Lenovo T500

This has been happening to me (eeepc 900 / i919 video) close to 50% of the time on 8-12 hour suspends. I usually recharge over night (and allow power manager to suspend after timeout). Sometimes I'm OK on the bus on the way to work, but I get the log on screen on the way home. Sometimes I get the log on screen on the first resume, and sometimes it works as expected.

I didn't ever see this problem on intrepid (before upgrading to Jaunty).

Revision history for this message
In , Andrey Vihrov (andrey.vihrov) wrote :

I also have run into this bug. Running Gentoo x86-64, X.org 1.5.3-r5, Intel video driver 2.6.3 on an Intel GMA X3100, and kernel 2.6.28-gentoo-r3. I indeed use a compositing window manager (Metacity). After the crash dmesg contains "[drm:i915_setparam] *ERROR* unknown parameter 4".

Revision history for this message
In , Andrey Vihrov (andrey.vihrov) wrote :

Created an attachment (id=23998)
Another X.org crash log

Revision history for this message
In , Khashayar Naderehvandi (khashayar) wrote :

I want to note that I still see this issue even after updating to
* kernel 2.6.29-rc8 (KMS enabled)
* xf86-video-intel 2.6.902
* xserver 1.6.0

Revision history for this message
Walter_Wittel (wittelw) wrote : Re: Session lost on resume from sleep in Jaunty on Lenovo T500

This bug is causing data loss so should be taken seriously. I've logged https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/348469 on a hunch (different package but maybe explains cause).

I know Jaunty just hit Beta and is almost out the door, but I believe this is serious. If someone can assist me in getting update-notifier to log at a debug level maybe that would provide a clue, but of course it may take several days and confirmation from others...

Revision history for this message
Walter_Wittel (wittelw) wrote :

Just opened my email and saw a call for Jaunty Beta Suspend / Resume testing:

https://lists.ubuntu.com/archives/ubuntu-devel-announce/2009-March/000556.html

Maybe this can help for those impacted by this issue.

Revision history for this message
In , Jonathon Jongsma (jonathon-jongsma) wrote :

I can confirm this issue on a thinkpad x200s running xorg from debian experimental (xserver-xorg-core 1.5.99.902-1, xserver-xorg-video-intel 2.6.1-1). About 50% of the time it resumes correctly, the other 50% of the time I end up back at the gdm prompt, which makes me reluctant to use suspend/resume at all. Let me know if there is there any additional information you need that I could provide.

Revision history for this message
moritz (moritz-derorrim) wrote : Re: Session lost on resume from sleep in Jaunty on Lenovo T500

I can confirm this bug on a intel 945GM.
Problem is that EXA is unusable slow (tested with KDE4 desktop effects, "anholt" openarena demo),
while UXA is fast but breaks suspend/resume.
So there should be either a fix for EXA (making it faster) or a fix for UXA (fixing at least suspend/resume).
This is bug is definitely a show stopper on my hardware (and on other intel hw too, i think).
Let me know if there is need for additional tests or debug output so i can help you out on this.

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 322202] Re: Session lost on resume from sleep in Jaunty on Lenovo T500

Is it fixed by this week mesa upload?

Revision history for this message
Manuel Siggen (manuel-siggen) wrote : Re: Session lost on resume from sleep in Jaunty on Lenovo T500

The problem is still present on my system. Dmesg shows several errors messages in relation with the i916 driver, for what it is worth... This is after resuming from RAM on a Thinkpad X40 with 855 Intel chipset and with UXA mode enabled (Kubuntu Jaunty Beta).

Revision history for this message
In , Shuber2 (shuber2) wrote :

Same problem here: X crashes and login screen appears after (i) resuming from suspend and (ii) switching back from a VT. My /var/log/messages contains:

(a hundred times those "bad handle" messages)
[drm:i915_gem_busy_ioctl] *ERROR* Bad handle in i915_gem_busy_ioctl(): 553649086
[drm:i915_gem_busy_ioctl] *ERROR* Bad handle in i915_gem_busy_ioctl(): 553649086
X[24377] general protection ip:4530d2 sp:7fff84f666f0 error:0 in Xorg[400000+1a9000]
X:24377 freeing invalid memtype d0000000-e0000000
kdm[8631]: X server for display :0 terminated unexpectedly

However, here this problem occurs with EXA and UXA. But it seems that the Gentoo package xf86-video-intel-2.5.1-r1 is clean.

Bryce Harrington (bryce)
summary: - Session lost on resume from sleep in Jaunty on Lenovo T500
+ [gm45] Session lost on resume from sleep in Jaunty on Lenovo T500
25 comments hidden view all 105 comments
Revision history for this message
George Halkias (admin-dionic) wrote :

after you copy the script inside the sleep.d dir
please type " #chmod +x /etc/pm/sleep.d/10bluetooth_stop "
 let me now if that is ok :)

Revision history for this message
Manuel Siggen (manuel-siggen) wrote :

I confirm that stopping the bluetooth daemon enables suspend-to-ram on a Thinkpad X40 with 855GM chip !

msi@x40:~$ uname -a
Linux x40 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux
msi@x40:~$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
msi@x40:~$ dpkg -p libdrm-intel1 | grep Version
Version: 2.4.5-0ubuntu4
msi@x40:~$ dpkg -p xserver-xorg-video-intel-2.4 | grep Version
Version: 2:2.4.1-1ubuntu11~ppa1

As you can see, I'm using the v2.4 driver. I'll reinstall the v2.6 driver and check how it works.

Revision history for this message
Manuel Siggen (manuel-siggen) wrote :

It doesn't work that well with the 2.6 driver : back to login screen on resume.

The kdm.log says :

X: ../../src/i830_batchbuffer.h:78: intel_batch_emit_dword: Assertion `pI830->batch_ptr != ((void *)0)' failed.

Configuration is same as above except for :

msi@x40:~$ dpkg -p xserver-xorg-video-intel | grep Version
Version: 2:2.6.3-0ubuntu9

Revision history for this message
George Halkias (admin-dionic) wrote :

I have this Version: 2:2.6.3-0ubuntu9 and works fine for me on gdm

Revision history for this message
whtvr (whtvr) wrote :

Thanks for the tip George, that's actually the first thing I tried since I figured the script has got to "run" somehow. It didn't help though. I'll try again and see how it goes.

I did however play around with this fix and it behaves rather weird. This is what I did:
1) I turned on my laptop from a full shutdown, logged in and opened a nautilus window.
2) Issued the "/etc/init.d/bluetooth stop" command in the terminal and suspended the laptop with Fn+F4.
3) I then resumed it with Fn+F4 and it worked just fine - session was locked and I could go back to my desktop with the above mentioned nautilus window, just as I left it.
4) I then started bluetooth with "/etc/init.d/bluetooth start" and suspended the laptop again WITHOUT killing bluetooth.
5) When I woke up the laptop the session was active and locked just as if I killed the bluetooth service (which I didn't do).
6) When I tried to suspend the laptop for the third time the hotkey (Fn+F4) didn't work at all, so I just clicked on "Suspend" in the Menu.
7) Yet again it woke up just fine, without messing with bluetooth.

At this point I shut down the system and started it again to do more tests, as follows:
1) I logged in and without doing anything I suspended the machine. It resumed just fine! Previously I was kicked out to GDM _every_ single time.
2) I suspended and resumed again and again it worked just fine.
3) I started and stopped bluetooth and then suspended - I was kicked out to the GDM.
4) I logged back in and stopped bluetooth, suspended and on the resume I was back to the GDM.
5) Once I logged back in I could suspend/resume without messing around with bluetooth (tried two times in a row and it worked both times).

I really don't know what conclusions to draw from that apart from the fact that it has something to do with bluetooth but we're not quite there yet... Any ideas guys?

Revision history for this message
George Halkias (admin-dionic) wrote :

I have reproduce all the step you say
when I removed the script from the sleep.d the X-server crash all the time
with the bluetooth started always the resume process crash the X-server
with the bluetooth stopped the resume process succeed every time :)

Please uninstall the bluetooth support and try to suspend
I think something weird happen with your bluetooth

have you check with " /etc/init.d/bluetooth status " if the service is really stopped?

Revision history for this message
Dantroline (daniel-arasweb) wrote :

Also confirm this bug fixes resume on a Thinkpad T500 with intel GMA 4500. I used the hardware kill switch on the front of the laptop to close bluetooth and wifi, and resume worked. This is on a fresh install of Jaunty, xorg default settings. About to try it with UXA - but I'm assuming the bluetooth is the culprit. Wonder why?

Revision history for this message
whtvr (whtvr) wrote :

Yeah, there seems to be something wrong with my bluetooth or perhaps the way ubuntu handles it. When I issued "/etc/init.d/bluetooth stop" it said that stopping went fine but when I checked with "/etc/init.d/bluetooth status" it was still running. Killing wireless (including bluetooth) with hardware switch didn't help either (X was still crashing on resume) so I switched of the whole module in BIOS and removed whatever bluetooth related packages I could find and I can resume from suspend just fine now. I will probably leave it like that for now, I hardly ever use bluetooth but I do use suspend/resume (well, will use it from now on). Thanks for help guys and I hope this bug will be resolved soon!

Revision history for this message
whtvr (whtvr) wrote :

I've just discovered that I'm still having this problem - the session is lost after I resume from suspend... It seems to work if laptop is suspended only for a short period of time, like in the above posts, when I was suspending it for few seconds for testing purposes. But when I suspended it and left it for roughly 10 minutes I was back to GDM after I resumed. At the moment I have my bluetooth disabled in BIOS and I also removed all the bluetooth related packages from my ubuntu... So it looks like there's more to this issue than just bluetooth

Revision history for this message
George Halkias (admin-dionic) wrote :

hard to reproduce that!!! (takes to long :) )
from the time I have stop the bluetooth service during suspend the resume always works well
but I have find and something else for You!! :)
can you please post the log file "/var/log/pm-suspend.log" of your laptop?

Revision history for this message
whtvr (whtvr) wrote :

Here it comes!

Revision history for this message
George Halkias (admin-dionic) wrote :

ok I think I have found your problem
please kill your wifi-radio from a hardware switch
then suspend and wait for........ (as long you think)
then resume :)

Revision history for this message
whtvr (whtvr) wrote :

Thanks for your help George but this trick didn't work. I killed wireless with hardware switch and put my stinkpad to sleep. I resumed it after 10 minutes just to be greeted with GDM... Sigh

Revision history for this message
In , Dark-shadow (dark-shadow) wrote :

Hi, I have a similar problem and get the following output in my Xorg.0.log:

[...]
(II) intel(0): Modeline "1440x900"x0.0 97.78 1440 1488 1520 1760 900 903 909 926 -hsync -vsync (55.6 kHz)
(II) intel(0): Modeline "1440x900"x0.0 81.49 1440 1488 1520 1760 900 903 909 926 -hsync -vsync (46.3 kHz)
(II) intel(0): Modeline "800x600"x0.0 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz)
(II) intel(0): Modeline "640x480"x0.0 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz)
(II) intel(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz)
(II) intel(0): EDID vendor "LEN", prod id 16435
(II) AIGLX: Suspending AIGLX clients for VT switch

Backtrace:
0: X(xorg_backtrace+0x26) [0x4e9cd6]
1: X(xf86SigHandler+0x39) [0x487ca9]
2: /lib/libc.so.6 [0x3713633040]
3: /usr/lib/libdrm_intel.so.1(drm_intel_bufmgr_check_aperture_space+0x3) [0x7f643ee75803]
4: /usr/lib64/xorg/modules/drivers//intel_drv.so(i830_get_aperture_space+0x3d) [0x7f643f0dcecd]
5: /usr/lib64/xorg/modules/drivers//intel_drv.so [0x7f643f0dd092]
6: /usr/lib64/xorg/modules/drivers//intel_drv.so(uxa_copy_n_to_n+0x621) [0x7f643f0f0401]
7: /usr/lib64/xorg/modules//libfb.so(fbCopyRegion+0x19a) [0x7f643e95dffa]
8: /usr/lib64/xorg/modules/drivers//intel_drv.so(uxa_copy_window+0xc6) [0x7f643f0efc46]
9: X [0x53085b]
10: X [0x4da58f]
11: X(compCopyWindow+0xac) [0x4fa1dc]
12: X(miMoveWindow+0x1f5) [0x4e17d5]
13: X(compMoveWindow+0xae) [0x4fa7be]
14: X(ConfigureWindow+0x570) [0x433920]
15: X(ProcConfigureWindow+0x8d) [0x446f3d]
16: X(Dispatch+0x354) [0x4478b4]
17: X(main+0x3ad) [0x42d8ad]
18: /lib/libc.so.6(__libc_start_main+0xe6) [0x371361e5c6]
19: X [0x42cd49]

Fatal server error:
Caught signal 11. Server aborting

Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[...]

Distribution: Gentoo
Linux 2.6.29-tuxonice sources #2 SMP PREEMPT Fri May 8 16:11:50 CEST 2009 x86_64 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz GenuineIntel GNU/Linux

lspci:
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
0

xorg.conf:
Section "Device"
    Identifier "Intel"
    Driver "intel"

    # Features
    Option "XvMC" "true"
    Option "XvMCSurfaces" "6"

    # Tweaks
    Option "AccelMethod" "UXA"
    Option "PageFlip" "true"
    Option "TripleBuffer" "true"
    Option "XAANoOffscreenPixmaps" "true"
    Option "BackingStore" "true"
    Option "FrameBufferCompression" "true"
    Option "MigrationHeuristic" "greedy"
    #Option "ExaNoComposite" "false"
EndSection

System crashes to login and I have to kill the process chvt. It doesn't happen at each suspend-resume cycle, though.

Revision history for this message
Dantroline (daniel-arasweb) wrote :

I can confirm above behaviour. Hardware switching off of bluetooth led to a successful resume at short notice but a return to GDM login screen if left for a while (in my case an hour). This was with UXA enabled. Bluetooth gave no errors in the pm-suspend.log. .. the bug is far from resolved.

Revision history for this message
Dantroline (daniel-arasweb) wrote :

My Xorg.0.log in this situation.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Adjusting severity: crashes & hangs should be marked critical.

Revision history for this message
George Halkias (admin-dionic) wrote :

After of hundreds suspend/resume those days I think I found a solution!! at least for me

Comment out the line 31 "#resume_bluetooth" of the file /usr/lib/pm-utils/sleep.d/49bluetooth
is no need to resume because the daemon is already stopped!
Reboot the system before try to suspend/resume

the resume works fine even after 12 hours in sleep :)

Revision history for this message
George Halkias (admin-dionic) wrote :

I forget to mention the bluetooth service must be stopped before suspending and start on resume

Revision history for this message
kennymchansen (kennymchansen) wrote :

The fix seems to be working for me. Although i have experienced being kicked out to the gdm screen a few times - for some reason this only happens when the computer is on AC power. Another time i noticed that it happened after suspending by closing the lid.

Revision history for this message
whtvr (whtvr) wrote :

I tried something else and I think I managed to kill two birds with one stone. I upgraded my kernel to 2.6.30-rc4 (followed this guide: http://nnutter.com/2009/05/fix-poor-intel-graphics-performance-on-jaunty/ ) and not only resume from suspend seems to be working fine now but it looks like the video performance is significantly improved too. I haven't switched UXA on and compiz and fullscreen HD videos are smooth. I'm not sure if hibernation works as I don't really use it and didn't have a chance to test it yet. See also: http://beranger.org/v3/wordpress/2009/05/04/jaunty-kernel-2630-fixes-the-intel-video/

Revision history for this message
In , FrogPR (p-roediger) wrote :

I'm on Debian and have an Intel GM45 graphics hardware. Kernel is 2.6.30-rc6 (KMS-enabled, self-compiled). X.org driver version is 2.7.1 (with UXA) and X.org version is 1.6.1.901-2 (both from Debian unstable).

I'm seeing the same behavior every now and then when resuming from sleep.

I don't think it is due to the resume, though, but only due to the text console -> xserver switch.

Just try switching from text console to X often, at some point X will crash and restart (this can take 20 switches or more!). It only happens when switching from text console to X that's why people only see this when resuming but never when going to sleep.

Revision history for this message
In , Fdo (fdo) wrote :

I'd have thought (please correct me if I'm wrong) that the vt switch on resume would not be needed if you use KMS. The suspend system in use (pm-suspend?) perhaps needs to have it's rules tweaked (think this is an fdi file?) to not do certain things if KMS is in use... not sure if this is automatically possible in hal, but I'm sure the hypothesis could be tested easily enough by hand.

Revision history for this message
In , Fatih Aşıcı (fatih-pardus) wrote :

100% reproducable here with UXA. If I disable "Lock screen on resume" in KDE4 power management options, it works without a problem. With EXA, it doesn't crash even if that option is enabled.

I am using KMS. Disabling KMS does not improve anything.

i965, UXA
kernel 2.6.30_rc5
libdrm 2.4.11
mesa 7.5_rc2
intel 2.7.1
xserver 1.6.1.901

Revision history for this message
Calle Rönnow (calle-ronnow) wrote :

Hi, my suspend caused X/GDM to restart too, but stopping the bluetooth daemon fixed it. However, you must stop it using sudo. If using the 10bluetooth_stop script above, be sure to change the owner to root ("sudo chown root:root 10bluetooth_stop")

test@laptop:~$ /etc/init.d/bluetooth stop
 * Stopping bluetooth [ OK ]
test@laptop:~$ /etc/init.d/bluetooth status
 * bluetooth is running
test@laptop:~$

The above didn't stop the daemon, even though it says OK.

test@laptop:~$ sudo /etc/init.d/bluetooth stop
 * Stopping bluetooth [ OK ]
test@laptop:~$ /etc/init.d/bluetooth status
 * bluetooth is not running
test@laptop:~$

(on my Compaq nx7400, using the 'Option A - Safe conf' found here: http://ubuntuforums.org/showthread.php?t=1130582)

Revision history for this message
In , Dark-shadow (dark-shadow) wrote :

For me, this has been fixed lately (about two-three weeks ago,
using git versions of libdrm, mesa, xf86-video-intel and
X.org server 1.6.1.901). GMA965, linux-2.6.29. Thanks to the devs!

Revision history for this message
In , Yaroslav Halchenko (yarikoptic) wrote :

I think that I am experiencing similar same issue, backtrace in Xorg slightly different but overall the same ;):

(II) AIGLX: Suspending AIGLX clients for VT switch

Backtrace:
0: /usr/bin/X(xorg_backtrace+0x26) [0x4ef246]
1: /usr/bin/X(xf86SigHandler+0x39) [0x476689]
2: /lib/libc.so.6 [0x7fb60c57d190]
3: /usr/lib/libdrm_intel.so.1(drm_intel_bufmgr_check_aperture_space+0x3) [0x7fb60a36c8f3]
4: /usr/lib/xorg/modules/drivers//intel_drv.so(i830_get_aperture_space+0x40) [0x7fb60a5d40f8]
5: /usr/lib/xorg/modules/drivers//intel_drv.so [0x7fb60a5d4ce2]
6: /usr/lib/xorg/modules/drivers//intel_drv.so(uxa_copy_n_to_n+0x18b) [0x7fb60a5e94b7]
7: /usr/lib/xorg/modules//libfb.so(fbCopyRegion+0x19a) [0x7fb609d5659a]
8: /usr/lib/xorg/modules/drivers//intel_drv.so(uxa_copy_window+0x127) [0x7fb60a5ead3f]
9: /usr/bin/X [0x535e7b]
10: /usr/bin/X [0x4dfa8f]
11: /usr/bin/X(compCopyWindow+0xac) [0x4ff5dc]
12: /usr/bin/X(miMoveWindow+0x1f5) [0x4e6d15]
13: /usr/bin/X(compMoveWindow+0xae) [0x4ffbbe]
14: /usr/bin/X(ConfigureWindow+0x576) [0x4392a6]
15: /usr/bin/X(ProcConfigureWindow+0x8d) [0x44c9ed]
16: /usr/bin/X(Dispatch+0x364) [0x44d374]
17: /usr/bin/X(main+0x3bd) [0x43321d]
18: /lib/libc.so.6(__libc_start_main+0xe6) [0x7fb60c5695a6]
19: /usr/bin/X [0x4326a9]

In Debian this bug is
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529072

X org is 7.4
intel driver 2.7.99.1
kernel 2.6.29-2-amd64

Revision history for this message
In , Raul Sanchez Siles (rasasi78) wrote :

Same crash experienced with almost same situation as previous commenter:

GM965GM, intel driver 2.7.99.1, xserver 1.6.901, linux 2.6.29.4, no KMS, libdrm 2.4.11, mesa 7.4.1, rest debian sid.

This is the backtrace I get from core dump. Xorg log available on request.

#0 0x00007f4ab4e1c065 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007f4ab4e1f153 in *__GI_abort () at abort.c:88
#2 0x000000000046c949 in ddxGiveUp () at ../../../../hw/xfree86/common/xf86Init.c:1417
#3 0x00000000004f86ed in AbortServer () at ../../os/log.c:397
#4 0x00000000004f8d90 in FatalError (f=0x57c7b8 "Caught signal %d. Server aborting\n") at ../../os/log.c:522
#5 0x0000000000476699 in xf86SigHandler (signo=11) at ../../../../hw/xfree86/common/xf86Events.c:387
#6 <signal handler called>
#7 0x00007f4ab2c0b973 in drm_intel_bufmgr_check_aperture_space (bo_array=0x7fffbf394990, count=3)
    at ../../../libdrm/intel/intel_bufmgr.c:155
#8 0x00007f4ab2e730f8 in i830_get_aperture_space () from /usr/lib/xorg/modules/drivers//intel_drv.so
#9 0x00007f4ab2e73ce2 in i830_uxa_prepare_copy () from /usr/lib/xorg/modules/drivers//intel_drv.so
#10 0x00007f4ab2e884b7 in uxa_copy_n_to_n () from /usr/lib/xorg/modules/drivers//intel_drv.so
#11 0x00007f4ab25e859a in fbCopyRegion (pSrcDrawable=0x4ea2a90, pDstDrawable=0x4ea2a90, pGC=0x0,
    pDstRegion=<value optimized out>, dx=-2, dy=-27, copyProc=0x7f4ab2e8832c <uxa_copy_n_to_n>, bitPlane=0, closure=0x0)
    at ../../fb/fbcopy.c:396
#12 0x00007f4ab2e89d3f in uxa_copy_window () from /usr/lib/xorg/modules/drivers//intel_drv.so
#13 0x0000000000535e7b in damageCopyWindow (pWindow=0x5bfaed0, ptOldOrg=<value optimized out>, prgnSrc=0x5719740)
    at ../../../miext/damage/damage.c:1774
#14 0x00000000004dfa8f in miSpriteCopyWindow (pWindow=0x5bfaed0, ptOldOrg={x = 6, y = 297}, prgnSrc=0x5719740)
    at ../../mi/misprite.c:480
#15 0x00000000004ff5dc in compCopyWindow (pWin=0x5bfaed0, ptOldOrg=<value optimized out>, prgnSrc=0x5719740)
    at ../../composite/compwindow.c:577
#16 0x00000000004e6d15 in miMoveWindow (pWin=0x5bfaed0, x=2, y=27, pNextSib=0x0, kind=VTMove) at ../../mi/miwindow.c:317
#17 0x00000000004ffbbe in compMoveWindow (pWin=0x5bfaed0, x=8, y=279, pSib=0x0, kind=VTMove)
    at ../../composite/compwindow.c:363
#18 0x00000000004392a6 in ConfigureWindow (pWin=0x5bfaed0, mask=15, vlist=<value optimized out>, client=0x144)
    at ../../dix/window.c:2400
#19 0x000000000044c9ed in ProcConfigureWindow (client=0x4e47b90) at ../../dix/dispatch.c:741
#20 0x000000000044d374 in Dispatch () at ../../dix/dispatch.c:437
#21 0x000000000043321d in main (argc=8, argv=0x7fffbf395048, envp=<value optimized out>) at ../../dix/main.c:397

Revision history for this message
In , Fatih Aşıcı (fatih-pardus) wrote :

It seems fixed in master branch. Cannot reproduce anymore.

Revision history for this message
In , Soeren Sonnenburg (sonne-debian) wrote :

I can confirm this issue on 2.6.30-rc8+git and xf86-intel git. A 100% reliable crash upon resume *when within X*.

Machine is still alive afterwards sysrq+s etc still works.

Note that I can reliably suspend/resume when going to console and issueing
echo mem >/sys/power/state . However as soon as I switch to Xorg I get a hang - often with corrupted patterns in the background.

System is debian-sid + self compiled libdrm2/xf86-intel/kernel. GPU is i945 all this on a Samsung NC10 netbook (which used to be rock stable before experiencing the xf86-intel 2.6.X issues).

Revision history for this message
In , Randall Leeds (randall-leeds) wrote :

(In reply to comment #33)
> I can confirm this issue on 2.6.30-rc8+git and xf86-intel git. A 100% reliable
> crash upon resume *when within X*.
>
> Machine is still alive afterwards sysrq+s etc still works.
>
> Note that I can reliably suspend/resume when going to console and issueing
> echo mem >/sys/power/state . However as soon as I switch to Xorg I get a hang -
> often with corrupted patterns in the background.
>
> System is debian-sid + self compiled libdrm2/xf86-intel/kernel. GPU is i945 all
> this on a Samsung NC10 netbook (which used to be rock stable before
> experiencing the xf86-intel 2.6.X issues).
>

I can also confirm I see this bug on 2.6.30.
However, and this would explain Dark Shadow not reproducing, I cannot reproduce this bug on 2.6.29.5.

More evidence that the problem might be on the kernel side.

Revision history for this message
In , Soeren Sonnenburg (sonne-debian) wrote :

I can confirm that this bug is still there in 2.6.30 + recent git versions of xf86 intel. However, as recently reported I can also confirm that it does *not occur* with 2.6.29.1 nor 2.6.29.5 (at least I could reliably suspend/resume for 5 times).

Revision history for this message
In , Soeren Sonnenburg (sonne-debian) wrote :

I just notice that on 2.6.29.X I see a ton of

s2ram:5248 freeing invalid memtype d1508000-d1509000
...
in steps of 1000 until d1757000-d1758000 in the kernel logs.

Not sure if this happens on suspend or on resume.

Revision history for this message
In , Xorg-8-madblock (xorg-8-madblock) wrote :

intel 965gma

xorg-server-1.6.1.901-r4
mesa-7.4.2
libdrm-2.4.11
video-intel-2.7.1
kernel-2.6.30 with kms

KDE 4.2 with desktop effects.

I can confirm this behaviour. It is caused by fullscreen 3D things... I updated qt from 4.4somethign to 4.5.1 and I assume it changed something about the handling of the desktop with 3D effects. 3D fullscreen games I could run without problems, but when they quit, xorg crashed. Eventually this is the same that happens when I resume from hibernate.

Revision history for this message
In , yakuizhao (yakui-zhao) wrote :

(In reply to comment #33)
> I can confirm this issue on 2.6.30-rc8+git and xf86-intel git. A 100% reliable
> crash upon resume *when within X*.
> Machine is still alive afterwards sysrq+s etc still works.
> Note that I can reliably suspend/resume when going to console and issueing
> echo mem >/sys/power/state . However as soon as I switch to Xorg I get a hang -
> often with corrupted patterns in the background.
Do you mean that the suspend/resume can work on your box if you switch to console mode?
Will you please do the following test and see whether the X can work well?
   a. boot the system into console mode(the i915 driver should also be loaded)
   b. do the suspend/resume
   c. start X and see whether the X can work well.

If it can work well, it will be great if you can do another test
   d. boot the system into X mode and then get the gpu dump using intel-gpu-tool)
   e. switch to console mode and get the gpu dump
   f. do the supend/resume and get the gpu dump after resuming

After the test, please attach the outputs of gpu dump.
thanks.
> System is debian-sid + self compiled libdrm2/xf86-intel/kernel. GPU is i945 all
> this on a Samsung NC10 netbook (which used to be rock stable before
> experiencing the xf86-intel 2.6.X issues).

Revision history for this message
In , Soeren Sonnenburg (bugreports-nn7) wrote :

Well, what I was trying to say was that I did a,b,c and received a hang (X garbled, IIRC mouse could still be moved) when doing c.

Note that I was using 2.6.30 + UXA for this. EXA works fine and 2.6.29 + UXA at least sometimes).

Revision history for this message
In , Eric Anholt (eric-anholt) wrote :

Timo, do you still have this issue? I never got a Xorg.0.log from you, which should have hopefully included the assertion failure. (I suspect the assertion failure has been fixed since your report, though, in which case this bug should be closed and people reporting other problems should open their own bug reports)

Revision history for this message
In , Timo Aaltonen (tjaalton) wrote :

Eric, sorry for not updating this. It's fixed as far as I'm concerned. Running Ubuntu Karmic devel release, and there it's working just fine. Closing as fixed.

Changed in xserver-xorg-video-intel:
status: Confirmed → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

According to the upstream bug, this is fixed in karmic. Dantroline, if you can still reproduce it in Karmic please feel free to reopen, and add a fresh Xorg.0.log.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

I have similar issue with HP 7400. Intel 945. UXA. In ~50% cases, instead of the session, I am getting gdm login screen - the session is lost.

Changed in xserver-xorg-video-intel:
importance: Unknown → Critical
Changed in xserver-xorg-video-intel:
importance: Critical → Unknown
Changed in xserver-xorg-video-intel:
importance: Unknown → Critical
Displaying first 40 and last 40 comments. View all 105 comments or add a comment.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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