Unable to resume after suspend

Bug #306119 reported by TL
4
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
New
Undecided
Unassigned

Bug Description

Computer suspends ok in s3 mode, however upon resume the screen remains black, the hdd led is always on and the computer is unresponsive. At this point only a hard reset is required. CTRL+ALT+SHIFT+Fn or CTRL+ALT+DEL do not help.
The BIOS should be fine, since the WinXP is able to resume ok.

Hardware:
AMD x64 3500+
M2N-E mobo
4GB ram
ATI X1300 video, proprietary drivers

tl@AMD64:~$ lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04

tl@AMD64:~/bug$ uname -a
Linux AMD64 2.6.24-22-generic #1 SMP Mon Nov 24 19:35:06 UTC 2008 x86_64 GNU/Linux

Revision history for this message
TL (latev) wrote :
Revision history for this message
TL (latev) wrote :
description: updated
Revision history for this message
Chris (bridgeriver) wrote :

I saw somewhere that this is a kernel bug that manifests when SMP support is enabled on an AMD64 system. If memory serves, the problem is in the CPU enumeration code.

I was able to work around it by building a custom kernel, which was based on the current Ubuntu Intrepid kernel but with SMP support turned off (I also had to disable a couple of things in the Ubuntu extra drivers section using 'make menuconfig' in order to get the kernel to compile).

With the new non-SMP kernel my machine is able to suspend and resume. However, the video is not getting initialized correctly, and the image jumps around the screen at high speed so the machine is basically unusable. I am looking for info on how to configure the ACPI support so I can play with VBE stats, POSTing, and such (it was /etc/defaults/acpi-support a couple of versions ago, but that file seems to do nothing in Intrepid).

$ uname -a
Linux imbrium 2.6.27.2-cdk #3 Fri Jan 2 17:13:31 EST 2009 x86_64 GNU/Linux

$ lspci
00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge (rev 10)
00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:04.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:05.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:12.0 IDE interface: ATI Technologies Inc IXP SB400 Serial ATA Controller (rev 80)
00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80)
00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80)
00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller (rev 80)
00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 83)
00:14.1 IDE interface: ATI Technologies Inc IXP SB400 IDE Controller (rev 80)
00:14.2 Audio device: ATI Technologies Inc IXP SB4x0 High Definition Audio Controller (rev 01)
00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge (rev 80)
00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge (rev 80)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:05.0 VGA compatible controller: ATI Technologies Inc RS482 [Radeon Xpress 200M]
06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
06:02.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
06:04.0 CardBus bridge: ENE Technology Inc CB-712/4 Cardbus Controller (rev 10)
06:04.1 FLASH memory: ENE Technology Inc ENE PCI Memory Stick Card Reader Controller (rev 01)
06:04.2 SD Host controller: ENE Technology Inc ENE PCI Secure Digital Card Reader Controller (rev 01)
06:04.3 FLASH memory: ENE Technology Inc FLASH memory: ENE Technology Inc: (rev 01)
06:04.4 FLASH memory: ENE Technology Inc SD/MMC Card Reader Controller (rev 01)

Revision history for this message
TL (latev) wrote : Re: [Bug 306119] Re: Unable to resume after suspend
Download full text (3.7 KiB)

Thanks for the email, Chris!

I'll try compiling a non SMP kernel on my machine and see if that is
going to do me any good, however I have to admit I'm sceptical about it.
After many hours spent on the internet googling the issue I think I
narrowed it down to be a video card problem- turns out handling the
video after a resume is not an easy task, especially with closed source
video drivers. So I'm pretty much waiting for the ATI guys to come up
with a decent set of drivers and alas that looks like will not happen in
the near future

Thanks for the suggestion thoug, like I said - I'll give it a try

Chris wrote:
> I saw somewhere that this is a kernel bug that manifests when SMP
> support is enabled on an AMD64 system. If memory serves, the problem is
> in the CPU enumeration code.
>
> I was able to work around it by building a custom kernel, which was
> based on the current Ubuntu Intrepid kernel but with SMP support turned
> off (I also had to disable a couple of things in the Ubuntu extra
> drivers section using 'make menuconfig' in order to get the kernel to
> compile).
>
> With the new non-SMP kernel my machine is able to suspend and resume.
> However, the video is not getting initialized correctly, and the image
> jumps around the screen at high speed so the machine is basically
> unusable. I am looking for info on how to configure the ACPI support so
> I can play with VBE stats, POSTing, and such (it was /etc/defaults/acpi-
> support a couple of versions ago, but that file seems to do nothing in
> Intrepid).
>
> $ uname -a
> Linux imbrium 2.6.27.2-cdk #3 Fri Jan 2 17:13:31 EST 2009 x86_64 GNU/Linux
>
> $ lspci
> 00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge (rev 10)
> 00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
> 00:04.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
> 00:05.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
> 00:12.0 IDE interface: ATI Technologies Inc IXP SB400 Serial ATA Controller (rev 80)
> 00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80)
> 00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80)
> 00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller (rev 80)
> 00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 83)
> 00:14.1 IDE interface: ATI Technologies Inc IXP SB400 IDE Controller (rev 80)
> 00:14.2 Audio device: ATI Technologies Inc IXP SB4x0 High Definition Audio Controller (rev 01)
> 00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge (rev 80)
> 00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge (rev 80)
> 00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
> 00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
> 00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
> 00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
> 01:05.0 VGA compatible controller: ATI Technologies Inc RS482 [Radeon Xpress 200M]
> 06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/81...

Read more...

Revision history for this message
Chris (bridgeriver) wrote :

Hi TL,

  The main thing is that in my case the computer woke up with the kernel crashed: there was no activity in the things it normally controls. For example, CapsLock didn't toggle the light on the keyboard.

  If your computer is waking up and behaving normally other than the video, then your bug is not the one I worked around, and the non-SMP kernel probably won't help. But since the machine is totally unresponsive in your case and the HDD light stays on, there's a good chance you are suffering from the same bug I am.

  Please post how it goes.

  Chris

Revision history for this message
TL (latev) wrote :

Hi again Chris,

Following your advice I spent about 1.5h recompiling the new non SMP
kernel on my system, unfortunately without any progress on the issue.
There is no apparent change in the behaviour of my system while trying
to resume from suspend. And the only thing I changed in the
configuration from the generic kernel was to disable the SMP.

In addition, there appears to be a problem with my X environment and the
new kernel as the whole compiz cube appeared white! I'm still able to
rotate it, and the mouse cursor is still visible, but other than that
the whole system is in completely useless state. I remember a while ago
I had a similar issue with beryl and somehow managed to solve it by
checking an option somewhere in the beryl configs. I'm not going to
bother doing that this time though since the kernel is useless to me
anyways. Besides I'm planning to upgrade my CPU to Phenom quad core in
the near future and when that happens the nonSMP solution will be
unacceptable.

I'm doing my best and working hard to migrate to Linux, however it
appears that this OS hasn't matured just yet. All I have to do is wait
for that to happen. Until then I remain a Win user :(

Thanks for your support and keep in touch - if any progress is made on
the issue I'd definitely like to know!

Regards,
TL

Chris wrote:
> Hi TL,
>
> The main thing is that in my case the computer woke up with the kernel
> crashed: there was no activity in the things it normally controls. For
> example, CapsLock didn't toggle the light on the keyboard.
>
> If your computer is waking up and behaving normally other than the
> video, then your bug is not the one I worked around, and the non-SMP
> kernel probably won't help. But since the machine is totally
> unresponsive in your case and the HDD light stays on, there's a good
> chance you are suffering from the same bug I am.
>
> Please post how it goes.
>
>
> Chris
>
>

Revision history for this message
Chris (bridgeriver) wrote :

TL,

  Sorry to hear it didn't work for you.

  I'm still struggling with the suspend/resume configuration on Intrepid. It seems to be a complicated pile of undocumented scripts. I've spent hours on Google and tweaking stuff without having any obvious impact on the symptoms.

  But the non-SMP kernel is a real improvement for me, since it means that if I accidentally suspend the machine, I can get it back by resuming, hibernating, and resuming again. I've done this several times (oops).

  I want to see how well 64-bit Fedora 10 handles suspend/resume on this laptop, but it's inconvenient because I have my /home on the root partition. I spent a while trying to figure out how to make it a separate partition (in an encrypted logical volume, using the alternate install image) without success. So I'm looking at having to back up and restore 100 GB of data. Yuck!

  Chris

Revision history for this message
TL (latev) wrote :

Actually if only testing a various distributions to see how they handle
the suspend/ resume is what you need, then you have a number of options
available that do not include wiping out your current root partition.
For example you may consider installing Lin on a memory stick or other
removable media, like external HDD. A week ago I noticed 8GB memory
sticks were selling for less than $20 if memory serves well. You can
partition those in Lin and even install several distros on just one of them
Let me know if you have any luck with any other distro, which I
seriously doubt by the way - I'm pretty sure this is not a distro issue

Chris wrote:
> TL,
>
> Sorry to hear it didn't work for you.
>
> I'm still struggling with the suspend/resume configuration on
> Intrepid. It seems to be a complicated pile of undocumented scripts.
> I've spent hours on Google and tweaking stuff without having any obvious
> impact on the symptoms.
>
> But the non-SMP kernel is a real improvement for me, since it means
> that if I accidentally suspend the machine, I can get it back by
> resuming, hibernating, and resuming again. I've done this several times
> (oops).
>
> I want to see how well 64-bit Fedora 10 handles suspend/resume on this
> laptop, but it's inconvenient because I have my /home on the root
> partition. I spent a while trying to figure out how to make it a
> separate partition (in an encrypted logical volume, using the alternate
> install image) without success. So I'm looking at having to back up and
> restore 100 GB of data. Yuck!
>
> Chris
>
>

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

Other bug subscribers

Bug attachments

Remote bug watches

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