FS#22556 - [pm-utils] 1.4.1-2 does not resume when opening lid after suspend

Attached to Project: Arch Linux
Opened by Daniel (aspala) - Saturday, 22 January 2011, 19:29 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 28 December 2011, 10:41 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: laptop does not resume after opening lid since pm-utils 1.4.1-2 was installed
I had to keep power button pressed until laptop was power off and turn it on again.
Problem was solved after a downgrade to version 1.4.1-1, so I can asure it is because of the new package


Additional info:
* package version(s)
* config and/or log files etc.

pm-utils 1.4.1-2


Steps to reproduce:

Close lid in a laptop, it suspends (if configured)
Open the lid and it does not resume at all
This task depends upon

Closed by  Jan de Groot (JGC)
Wednesday, 28 December 2011, 10:41 GMT
Reason for closing:  Deferred
Additional comments about closing:  The original report, claiming that pm-utils changes broke suspend and got fixed after downgrading have been fixed in 1.4.1-3 by restoring most of the hooks. Any suspend/resume issues still left are not due to bugs in pm-utils, but due to kernel/hardware bugs and should not get reported against pm-utils.
Comment by Jan de Groot (JGC) - Monday, 24 January 2011, 13:12 GMT
can you give more details about your configuration? 1.4.1-2 doesn't ship with the power.d hooks, but they have nothing to do with being able to suspend or not.
Comment by Daniel (aspala) - Monday, 24 January 2011, 18:38 GMT
Of course! I use pm-suspend in /etc/acpi/handler.sh

[code]#!/bin/sh
# Default acpi script that takes an entry for all actions

# NOTE: This is a 2.6-centric script. If you use 2.4.x, you'll have to
# modify it to not use /sys

minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"

set $*

case "$1" in
button/power)
#echo "PowerButton pressed!">/dev/tty5
case "$2" in
PWRF) logger "PowerButton pressed: $2" ;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/sleep)
case "$2" in
SLPB) echo -n mem >/sys/power/state ;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
ac_adapter)
case "$2" in
AC)
case "$4" in
00000000)
echo -n $minspeed >$setspeed
#/etc/laptop-mode/laptop-mode start
;;
00000001)
echo -n $maxspeed >$setspeed
#/etc/laptop-mode/laptop-mode stop
;;
esac
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
battery)
case "$2" in
BAT0)
case "$4" in
00000000) #echo "offline" >/dev/tty5
;;
00000001) #echo "online" >/dev/tty5
;;
esac
;;
CPU0)
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/lid)
sudo pm-suspend
#echo "LID switched!">/dev/tty5
;;
*)
logger "ACPI group/action undefined: $1 / $2"
;;
esac
[/code]

My laptop is Lenovo Thinkpad Edge 13 with Arch x86_64, Openbox as WM
Core2Duo SU7300 1,3 Ghz
2 Gb RAM

Any other information needed, please just ask for it. Thanks for the answer!
Comment by Daniel (aspala) - Monday, 24 January 2011, 18:53 GMT
I add /var/log/pm-suspend.log just after a reboot when it did not resume after suspend:

[code]
Module Size Used by
aes_generic 25810 1
fuse 54787 3
ipv6 218467 10
uhci_hcd 18184 0
arc4 1258 2
ehci_hcd 31205 0
ecb 1825 2
usbhid 15492 0
usb_storage 38636 0
iwlagn 157615 0
iwlcore 45789 1 iwlagn
mac80211 163816 2 iwlagn,iwlcore
cfg80211 118315 3 iwlagn,iwlcore,mac80211
r8169 30504 0
mii 3162 1 r8169
snd_hda_codec_hdmi 19193 1
snd_hda_codec_conexant 36391 1
snd_hda_intel 19203 2
snd_hda_codec 61295 3 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel
snd_hwdep 4998 1 snd_hda_codec
snd_pcm_oss 31555 0
snd_pcm 60063 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer 15689 1 snd_pcm
snd_page_alloc 5833 2 snd_hda_intel,snd_pcm
snd_mixer_oss 12311 2 snd_pcm_oss
wmi 6906 0
thinkpad_acpi 54048 0
snd 45015 12 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_p
cm,snd_timer,snd_mixer_oss,thinkpad_acpi
soundcore 4601 2 snd
shpchp 21795 0
pci_hotplug 9579 1 shpchp
uvcvideo 51142 0
videodev 54297 1 uvcvideo
v4l1_compat 11266 2 uvcvideo,videodev
v4l2_compat_ioctl32 8065 1 videodev
serio_raw 3646 0
psmouse 45041 0
pcspkr 1683 0
joydev 8631 0
evdev 7729 15
i2c_i801 6572 0
nvram 4837 1 thinkpad_acpi
btusb 9649 1
usbcore 114889 7 uhci_hcd,ehci_hcd,usbhid,usb_storage,uvcvideo,btusb
bluetooth 45154 1 btusb
rfkill 13328 3 cfg80211,thinkpad_acpi,bluetooth
thermal 7610 0
battery 9839 0
ac 2953 0
acpi_cpufreq 5009 1
processor 24521 3 acpi_cpufreq
mperf 1091 1 acpi_cpufreq
ext4 209345 2
mbcache 4594 1 ext4
jbd2 45150 1 ext4
crc16 1209 1 ext4
sd_mod 21902 4
ahci 19337 4
libahci 15801 1 ahci
libata 141076 2 ahci,libahci
scsi_mod 76478 3 usb_storage,sd_mod,libata
i915 289549 2
drm_kms_helper 21174 1 i915
drm 141631 3 i915,drm_kms_helper
i2c_algo_bit 4135 1 i915
button 4618 1 i915
i2c_core 15496 6 videodev,i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video 11195 1 i915
output 1612 1 video
intel_agp 10176 1 i915
intel_gtt 11870 3 i915,intel_agp
total used free shared buffers cached
Mem: 1921804 459124 1462680 0 28676 222916
-/+ buffers/cache: 207532 1714272
Swap: 2136608 0 2136608

/usr/lib/pm-utils/sleep.d/00logging suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave suspend suspend:

/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/01grub suspend suspend:

/usr/lib/pm-utils/sleep.d/01grub suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/01laptop-mode suspend suspend:

/usr/lib/pm-utils/sleep.d/01laptop-mode suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/11netcfg suspend suspend:

/usr/lib/pm-utils/sleep.d/11netcfg suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:

/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:

/usr/lib/pm-utils/sleep.d/75modules suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:

/usr/lib/pm-utils/sleep.d/90clock suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/91wicd suspend suspend:

/usr/lib/pm-utils/sleep.d/91wicd suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:


/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:

/usr/lib/pm-utils/sleep.d/95led suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
Kernel modesetting video driver detected, not using quirks.

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:
kernel.acpi_video_flags = 0

/usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
Mon Jan 24 15:45:16 ART 2011: performing suspend
[/code]
Comment by Gaelic (gaelic) - Sunday, 13 February 2011, 11:57 GMT
Hey there.

It seems I've exactly the same problem. See following thread in bbs: https://bbs.archlinux.org/viewtopic.php?id=113376

I'll try pm-utils-1.4.1-1 and let you know if there's any difference.
Comment by Gaelic (gaelic) - Sunday, 13 February 2011, 17:47 GMT
Hello there.
Unfortunately there's not change for me. Maybe I did something wrong with the PKGBUILD but here it is, you can take a look on it ...
The file 11netcfg I left unchanged ...

I tried to suspend with several options for pm-suspend, directly by echo mem > /sys/power/state, but no difference in behaviour. I also tried to do it without X11 running, also no change.
Comment by Gaelic (gaelic) - Monday, 14 February 2011, 11:56 GMT
Update:

There was not help from changing pm-utils, different quirks and options for pm_suspend, using different kernels (from 2.6.36 - 2.6.38_rc4).
I was going crazy because it worked just a week ago until a reinstall of the system.
Then I performed a bios update on my x200 (from 1.05 to 3.17). It ran smoothly except the lcd stayed black. I had to disconnect the backup battery (thanks to the great maintenance manual of lenovo/ibm). after that the system booted without any problem and suspend works as well (at the moment the system runs with 2.6.38_rc4 and pm-utils-1.4.1-2)

I really can't figure out why it was working before and why its working know after the bios update.
Comment by mark (mmm) - Monday, 02 May 2011, 19:56 GMT
Hi, I'm hit by this bug. pm-utils 1.4.1-3. I tried everything mentioned in comments, echo mem > /sys/power/state, pm-suspend, rtcwake -m mem ...
It first occured to me 29/April but I didnt reboot in a week, so not sure.
log/pm-suspend.log doesnt say anything interesting. I can post all info to comments when re-opened.
Thank you!
Or should i file a new bug on same topic?
Mark
Comment by mark (mmm) - Monday, 02 May 2011, 20:05 GMT
Thank you! I opened a new bug in the meanwhile
https://bugs.archlinux.org/task/24029
sorry. All details are there, or I can repost the comments here..

Loading...