System wakes up after few minutes on suspend

Bug #991606 reported by ThOR27
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
pm-utils (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When suspending, after few minutes the computer wakes up automatically. I've tried in my installed system and on liveCD (this bug report I did on the liveCD, both with the same behavior)

In both case, I found this on pm-suspend.log:

Running hook /usr/lib/pm-utils/sleep.d/01PulseAudio suspend suspend:
Welcome to PulseAudio! Use "help" for usage information.
>>> >>> Welcome to PulseAudio! Use "help" for usage information.
>>> >>> Welcome to PulseAudio! Use "help" for usage information.
>>> >>>

It seems like (not sure) that pulseaudio is starting a shell instead of "suspending"

My computer is a MacBook 5.2 (white)
My full pm-suspend.log on liveCD (not much different from my installed distro):

Initial commandline parameters:
Mon Apr 30 01:49:59 UTC 2012: Running hooks for suspend.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:

/usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
Linux ubuntu 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux
Module Size Used by
dm_crypt 22528 0
arc4 12473 2
b43 342643 0
snd_hda_codec_realtek 174055 1
mac80211 436455 1 b43
snd_hda_intel 32765 2
snd_hda_codec 109562 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 13276 1 snd_hda_codec
snd_pcm 80845 2 snd_hda_intel,snd_hda_codec
snd_seq_midi 13132 0
snd_rawmidi 25424 1 snd_seq_midi
snd_seq_midi_event 14475 1 snd_seq_midi
snd_seq 51567 2 snd_seq_midi,snd_seq_midi_event
snd_timer 28931 2 snd_pcm,snd_seq
snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq
snd 62064 13 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 14635 1 snd
shpchp 32325 0
i2c_nforce2 12906 0
snd_page_alloc 14108 2 snd_hda_intel,snd_pcm
uvcvideo 67203 0
rfcomm 38139 12
appletouch 17318 0
cfg80211 178679 2 b43,mac80211
videodev 86588 1 uvcvideo
btusb 17912 2
joydev 17393 0
applesmc 18978 0
bnep 17830 2
mac_hid 13077 0
parport_pc 32114 0
apple_bl 13425 0
bluetooth 158438 23 rfcomm,btusb,bnep
input_polldev 13648 1 applesmc
ppdev 12849 0
bcma 25651 1 b43
lp 17455 0
dm_multipath 22710 0
parport 40930 3 parport_pc,ppdev,lp
squashfs 36095 1
overlayfs 27511 1
nls_utf8 12493 1
isofs 39553 1
hid_apple 13166 0
nls_iso8859_1 12617 0
nls_cp437 12751 0
vfat 17308 0
fat 55605 1 vfat
usbhid 41906 0
hid 77367 2 hid_apple,usbhid
dm_raid45 76451 0
xor 25987 1 dm_raid45
dm_mirror 21822 0
dm_region_hash 16065 1 dm_mirror
dm_log 18193 3 dm_raid45,dm_mirror,dm_region_hash
btrfs 638208 0
zlib_deflate 26622 1 btrfs
libcrc32c 12543 1 btrfs
nouveau 712294 3
ttm 65344 1 nouveau
drm_kms_helper 45466 1 nouveau
drm 197692 5 nouveau,ttm,drm_kms_helper
firewire_ohci 40172 0
i2c_algo_bit 13199 1 nouveau
mxm_wmi 12859 1 nouveau
wmi 18744 1 mxm_wmi
firewire_core 56906 1 firewire_ohci
crc_itu_t 12627 1 firewire_core
video 19068 1 nouveau
ssb 50691 1 b43
forcedeth 58096 0
             total used free shared buffers cached
Mem: 1775244 931940 843304 0 127084 537856
-/+ buffers/cache: 267000 1508244
Swap: 4178704 0 4178704

/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/01PulseAudio suspend suspend:
Welcome to PulseAudio! Use "help" for usage information.
>>> >>> Welcome to PulseAudio! Use "help" for usage information.
>>> >>> Welcome to PulseAudio! Use "help" for usage information.
>>> >>>
/usr/lib/pm-utils/sleep.d/01PulseAudio suspend suspend: success.
Running hook /etc/pm/sleep.d/10_grub-common suspend suspend:

/etc/pm/sleep.d/10_grub-common suspend suspend: success.
Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend:

/etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:
Having NetworkManager put all interaces to sleep...Failed.

/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

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

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

/usr/lib/pm-utils/sleep.d/90clock suspend suspend: not applicable.
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/95anacron suspend suspend:
stop: Unknown instance:

/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend:

/usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:

/usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
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.
Running hook /etc/pm/sleep.d/novatel_3g_suspend suspend suspend:

/etc/pm/sleep.d/novatel_3g_suspend suspend suspend: success.
Mon Apr 30 01:50:01 UTC 2012: performing suspend
Mon Apr 30 02:05:14 UTC 2012: Awake.
Mon Apr 30 02:05:14 UTC 2012: Running hooks for resume
Running hook /etc/pm/sleep.d/novatel_3g_suspend resume suspend:

/etc/pm/sleep.d/novatel_3g_suspend resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:

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

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95led resume suspend:

/usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend:

/dev/sda:
 setting Advanced Power Management level to 0xfe (254)
 APM_level = off

/dev/sda:
 setting Advanced Power Management level to 0xfe (254)
 APM_level = off

/usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95anacron resume suspend:

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

/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock resume suspend:

/usr/lib/pm-utils/sleep.d/90clock resume suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/75modules resume suspend:
Reloaded unloaded modules.

/usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

/usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend:
Having NetworkManager wake interfaces back up...Failed.

/usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend: success.
Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend:

/etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend: success.
Running hook /etc/pm/sleep.d/10_grub-common resume suspend:

/etc/pm/sleep.d/10_grub-common resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/01PulseAudio resume suspend:
Welcome to PulseAudio! Use "help" for usage information.
>>> >>> Welcome to PulseAudio! Use "help" for usage information.
>>> >>> Welcome to PulseAudio! Use "help" for usage information.
>>> >>>
/usr/lib/pm-utils/sleep.d/01PulseAudio resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave resume suspend:

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

/usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change resume suspend:

/usr/lib/pm-utils/sleep.d/000kernel-change resume suspend: success.
Mon Apr 30 02:05:16 UTC 2012: Finished.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: pm-utils 1.4.1-9
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic-pae 3.2.14
Uname: Linux 3.2.0-23-generic-pae i686
NonfreeKernelModules: wl
ApportVersion: 2.0.1-0ubuntu5
Architecture: i386
CasperVersion: 1.315
Date: Mon Apr 30 02:21:34 2012
LiveMediaBuild: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: pm-utils
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
ThOR27 (thor27-gmail) wrote :
Revision history for this message
ThOR27 (thor27-gmail) wrote :

Just forget to metion, on Ubuntu 9.10, 10.04, 10.10, 11.04 and 11.10 this bug doesn't happens. So it seems like a regression.

thanks!

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pm-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
Antoine-terracol (antoine-terracol) wrote :

Hi, I have the same problem on a Dell Optiplex 980. The system takes more time to awake from suspend (a couple of hours) and I have the same log. Also, it does not happen everytime, but quite often.

Revision history for this message
Wowbagger (ha87psc02) wrote :

My system (System76 Serval, a Clevo laptop) resumes instantly.

It looks like the hook is busted, and is incorrectly invoking Pulse, and thus erroring, and thus preventing shutdown.

Revision history for this message
Wowbagger (ha87psc02) wrote :

Correction: I disabled the Pulseaudio script (mv /usr/lib/pm-utils/sleep.d/01PulseAudio /usr/lib/pm-utils/sleep.d/.01PulseAudio) and this still happens.

So while I think the Pulseaudio issue should be fixed, I don't think it is what is preventing the system from sleeping.

Revision history for this message
Wowbagger (ha87psc02) wrote :

Additional info: I disabled the whole /usr/lib/pm-utils/sleep.d/ directory, and still see the problem.

Revision history for this message
martini (mr-owner-gmail) wrote :

For me it's not few minutes, it's just one second: Screen becomes black and immediately turns on and i see unblock prompt.

Revision history for this message
martini (mr-owner-gmail) wrote :

After i unistall Calise suspend is ok. Think Calise waked up my PC from suspend.

Revision history for this message
Nathan (deaddecoy) wrote :

I can confirm this bug. Running on an old system76 laptop.
Suspend works once, but automatically wakes up from subsequent attempts.

Revision history for this message
Nathan (deaddecoy) wrote :

I've dug around a little bit and found that my version of this bug is related to the linux kernel more so than the ubuntu distribution. I had it for linux kernel 3.2 and 3.4.

I found a possible solution here <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=615110>

Basically, my BIOS wasn't calling TPM_startup at the appropriate time. At bootup, TPM is active. At suspend/wake, it is no longer active.

The link listed above has two files which helped me triage this bug: tpm_startup.c and 10tpm_tis.
1. Compile the first file via: gcc -o tpm_startup.c tp_startup.c
2. sudo cp tpm_startup /usr/local/bin/
3. chmod 755 10tpm_tis
4. sudo cp 10tpm_tis /etc/pm/sleep.d/

Other people have had issues in terms of the USB ports waking up their system. So this might not work for some people.

Revision history for this message
Uwe (gandalf.the.grey) wrote :

I'm having the same problem with Ubuntu 12.x as well as XBMCbuntu Frodo and OpenELEC 3.0. No idea what wakes the system. The only way to prevent it is disabling all USB and UHCI entries in /proc/acpi/wakeup. But this makes my HTPC partly unusable because it gets unwakeable by remote control and RTC (for PVR backend).

penalvch (penalvch)
tags: added: regression-release
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.