Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269996 - sys-power/hibernate-script-2.0-r1 resume from S3 fails
Summary: sys-power/hibernate-script-2.0-r1 resume from S3 fails
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-15 20:58 UTC by Oleg Mikheev
Modified: 2010-04-18 00:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Mikheev 2009-05-15 20:58:53 UTC
I had resume from S3 working on my system for years.
After updating to the "x86 stable" sys-power/hibernate-script-2.0-r1 resume from S3 results in a blinking caps lock led.
When I masked 2.0-r1 and reverted to 1.97-r4 everything started to work fine.
I can see no errors in /var/log/messages or /var/log/hibernate log files... Please let me know where to look to get more info.

My system is a pretty common Intel 855GM laptop with no power management issues in BIOS, suspend was working fine with all Linux distributions so far.
I am on the latest vanilla kernel 2.6.29.3.
I tested with no X running, so it's clearly not about my video card or anything outside the pure kernel.

lspci
00:00.0 Host bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:00.1 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:00.3 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83)
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)
01:04.0 Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)
01:05.0 CardBus bridge: O2 Micro, Inc. OZ711MP1/MS1 MemoryCardBus Controller (rev 21)
01:05.2 SD Host controller: O2 Micro, Inc. Integrated MMC/SD Controller (rev 01)
01:05.3 Bridge: O2 Micro, Inc. Integrated MS/xD Controller (rev 01)
01:05.4 FireWire (IEEE 1394): O2 Micro, Inc. Firewire (IEEE 1394) (rev 02)
01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

Reproducible: Always

Steps to Reproduce:
1. Update to sys-power/hibernate-script-2.0-r1
2. Run hibernate-ram
3. Try to resume

Actual Results:  
The Caps Lock led is blinking, system not responding

Expected Results:  
System resumed and functional
Comment 1 Gef 2009-09-13 11:17:37 UTC
Any update on this ? Did you diff'ed your conf files from <2.0 and =2.0-r1 ?
Comment 2 Oleg Mikheev 2009-09-14 18:05:41 UTC
I've updated my system to the latest kernel 2.6.31
I've also unmasked hibernate-script-2.0-r1 and using it
The system doesn't hang on resume from s3 anymore...

HOWEVER, it does hang on resume if hibernate-ram was run with rt2500pci WiFi loaded and associated.
That's definitely caused by the difference between hibernate-script 2.0-r1 and 1.97-r4, in file /etc/hibernate/blacklisted-modules:
1.97-r4 had mac80211 line with no kernel version specified, and 
2.0-r1 has mac80211 with additional specification 2.6.0   2.6.27 which means that mac80211 will be suspended on kernels more fresh than 2.6.27

So I had to modify /etc/hibernate/blacklisted-modules and made the line like this:
mac80211        2.6.0   2.6.32
(hoping that by 2.6.32 rt2500pci will handle suspends/resumes well)

mac80211 line appears to be introduced by Jan Ondrej, so he should know better why kernels >2.6.27 were whitelisted
Comment 3 water 2009-10-08 11:35:39 UTC
(In reply to comment #2)
> I've updated my system to the latest kernel 2.6.31
> I've also unmasked hibernate-script-2.0-r1 and using it
> The system doesn't hang on resume from s3 anymore...
> 
> HOWEVER, it does hang on resume if hibernate-ram was run with rt2500pci WiFi
> loaded and associated.
> That's definitely caused by the difference between hibernate-script 2.0-r1 and
> 1.97-r4, in file /etc/hibernate/blacklisted-modules:
> 1.97-r4 had mac80211 line with no kernel version specified, and 
> 2.0-r1 has mac80211 with additional specification 2.6.0   2.6.27 which means
> that mac80211 will be suspended on kernels more fresh than 2.6.27
> 
> So I had to modify /etc/hibernate/blacklisted-modules and made the line like
> this:
> mac80211        2.6.0   2.6.32
> (hoping that by 2.6.32 rt2500pci will handle suspends/resumes well)
> 
> mac80211 line appears to be introduced by Jan Ondrej, so he should know better
> why kernels >2.6.27 were whitelisted
> 

my laptop is thinkpad w500.
I do like you said.
Now when using integrated video card, I can resume from suspend, but the color is not correct.
When using discreted video card , I still can not resume from suspend . at that time the screen is black and cap light is blinking from some second.
Comment 4 Oleg Mikheev 2009-10-08 18:28:28 UTC
(In reply to comment #3)
> (In reply to comment #2)
> my laptop is thinkpad w500.
> I do like you said.
> Now when using integrated video card, I can resume from suspend, but the color
> is not correct.
> When using discreted video card , I still can not resume from suspend . at that
> time the screen is black and cap light is blinking from some second.

I don't know much about Thinkpads.
Are you saying that masked 2.0-r1 and reverted to 1.97-r4, and it still doesn't wake up correctly?
Comment 5 Krzysztof Pawlik (RETIRED) gentoo-dev 2010-04-18 00:29:01 UTC
rt2500pci issues should be reported to both upstreams: one for hibernate-script and second to module maintainers (to fix suspend interaction).