[Hardy] [regression] latest update to the intel driver fails suspend

Bug #190153 reported by Khashayar Naderehvandi
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
High
Unassigned
xserver-xorg-video-intel (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-intel

After the latest update to the intel driver in hardy (or possibly the latest xserver update), suspend stops working on my intel 855GM based laptop. I have seen a few bug reports that describe a failure to _resume_. I'm seeing problems in suspend: the screen turns black but the laptop does not enter suspended mode. I'm not exactly sure which package has the problem, but everything worked fine until yesterday.
I'll attach the xorg log file.

Tags: regression
Revision history for this message
Khashayar Naderehvandi (khashayar) wrote :
Revision history for this message
Khashayar Naderehvandi (khashayar) wrote :

I can now confirm that downgrading to version 2:2.2.0+git20080107 of the intel driver (the only older version I had hanging around) solves the problem.
With version 2.2.0.90-2ubuntu2, the laptop will not enter suspended mode.

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

Alright, one more update. I rebuilt the latest intel driver (2.2.0.90-2ubuntu2) from the deb source, without applying '02_quick_fix.patch', and suspend is now working properly. So I assume the problem is with this tiny little patch. Hope this helps!

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

heh, that patch is needed or otherwise i965 is totally broken. You can never win.

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

please attach your /var/log/dpkg.log which should contain the logs from the update you made.

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

> heh, that patch is needed or otherwise i965 is totally broken. You can never win.
You know, it's funny that everybody complains about how the proprietary nvidia driver is so bad cause it breaks suspend/resume for laptops. Lately, I get the feeling that the very open source intel driver is doing even worse. (That said, I would of course support intel for supporting open source, rather than nvidia. But that's because I believe in open source from an ethical stand point, not because the products are necessarily superior technologically).

> please attach your /var/log/dpkg.log which should contain the logs from the update you made.
I don't see the point of this at all, but will attach the log.
The 2.2.0.90-2ubuntu2.1 version of the intel package is my own build, in which I removed the above mentioned patch.

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

Alright, sorry to jump the gun too fast. I don't think that patch causes the problem (which is a relief as I that would seem very odd to me).
Still now, without that patch, my laptop fails to enter suspended mode every third or fourth time I attempt it to do so.

I will see if I can do better with an older package.

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

Upstream said that it's possibly a kernel problem, so lets wait until 2.6.24.1 is in hardy.

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

Perhaps it is a kernel problem, but I should note that I've as of now used the old driver version (2.2.0+git20080107-1ubuntu2) during at least 10 suspend/resume cycles with no issues whatsoever. The kernel during the change of driver has not been changed.

Thought I should mention that.

Thanks.

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

Aha! More updates: It seems I've been fooling myself all along. The problem to suspend the laptop is still there, even with the older driver I mentioned in my previous post. It seems that the problem to enter suspend is there I'm on battery power, rather than on mains. That is, suspending on battery power fails on all mentioned drivers 100% of the time, whereas it works well 100% of the time when on ac power. This is true for the old driver, as well as the latest driver in Hardy.

Sorry for going berserk on this bug report and spamming it. I'm just trying to help.
Regards.

Revision history for this message
unggnu (unggnu) wrote :

I can confirm this issue. Suspend/resume works fine in Hardy a week ago. Now my system completely hangs on resume with glowing hdd led like in the versions before Feisty but I can confirm too that it is still possible to resume if I use the 2.6.25-rc1 vanilla kernel.

VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)

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

I have now been using the drm modules from git with 2.6.24, and everything has worked just fine. The native suspend/resume of the intel driver (which was merged in 2.6.25) might be the reason for all I know.

I'm quite certain now that the bug cannot be fixed in intel driver, but rather in the drm modules of the kernel.

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

perhaps its this commit:

commit ba8bbcf6ff4650712f64c0ef61139c73898e2165
Author: Jesse Barnes <email address hidden>
Date: Thu Nov 22 14:14:14 2007 +1000

    i915: add suspend/resume support

    Add suspend/resume support to the i915 driver. Moves some of the
    initialization into the driver load routine, and fixes up places where we
    assumed no dev_private existed in some of the cleanup paths. This allows
    us to suspend/resume properly even if X isn't running.

    Signed-off-by: Dave Airlie <email address hidden>

Changed in linux-source-2.6.24:
assignee: nobody → ubuntu-kernel-team
Changed in linux:
importance: Undecided → High
status: New → Confirmed
Changed in xserver-xorg-video-intel:
status: Confirmed → Invalid
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

I mean that commit is in .25-rc1, and might fix this.

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

That could very well be the fix. Perhaps someone could build a test kernel with that patch to try out?

Revision history for this message
unggnu (unggnu) wrote :

Seems to be fixed in current Hardy with lastest kernel package. Thanks!

Changed in linux:
status: Confirmed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

hmm, that was not applied yet, so maybe it was something in 2.6.24.1 that fixed this. Either way, nice.

Revision history for this message
unggnu (unggnu) wrote :

I have rechecked it with the older Kernel. It seems to be a kernel fix since it only works with the new 2.6.24-8 Ubuntu kernel and not the version before.

Revision history for this message
Rami Al-Rfou' (rmyeid) wrote :

I am using Hardy heron and after updating to Linux 2.6.24-21-generic #1 SMP suspend failed to resume. It was working in Linux 2.6.24-19-generic.
I am not sure if I have to report this as a different bug ?

below I attached my lspci -vvnn and cat /var/log/Xorg.0.log

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

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.