What is the difference between suspend by closing the laptop's lid and clicking Logout\Suspend
Paul Johnson
pauljohn32 at gmail.com
Tue Aug 7 01:49:49 CEST 2012
On Sun, Aug 5, 2012 at 11:57 AM, Athlion <athlion at gmail.com> wrote:
> Thanks for the reply!
>
> When I say failed, I mean that the system does not enter suspend mode
> and X drops back to the login manager. Other than that, everything
> *seems* to be OK. But after that failed suspend, if I initate a
> reboot, the system suspends midway! If I then resume it, it continues
> the reboot.
I don't think this is an XFCE problem, but here's what I think.
Are you really sure there's a difference between the lid and the menu
suspend. For me, both can fail, sometimes.
In my case, the problem is that the suspend starts, and then the
system wakes up right away. If you are not monitoring it carefully, it
seems as though nothing at all happens when you close the lid or start
the suspend from the menu.
After fighting with this a lot, I never trust closing the lid to
suspend the laptop. The danger in trusting the lid is that you don't
always check to make sure the system really does sleep. Use the
shutdown menu, choose suspend and watch the system lights to make sure
it really suspends before closing the lid.
After you choose suspend, don't close the lid right away. If you
choose the suspend menu option and then close the lid too soon, it can
actually have counter-productive result of waking up the computer.
Closing lid can trigger another suspend process, which blocks the
suspend you have already started. Weird, right? Then the other
suspend process notices your lid is open and it thinks you want to
wake up.
A couple of years ago, I tried *really hard* to figure what's wrong.
I bet you will find, as I did, that there are too many possible
failures, and not all are well documented or recorded in the logs.
Here's an example of what I see in /var/logs/pm-suspend.log when the
suspend works properly. If you check yours, scan for the word "Awake".
something like:
/usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
Sat Jul 14 18:46:12 CDT 2012: performing suspend
Sun Jul 15 13:13:16 CDT 2012: Awake.
Sun Jul 15 13:13:16 CDT 2012: Running hooks for resume
Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:
When it fails, the first time is exactly the same as the second one.
I'm pasting in a long-ish chunk
where you see that same information in the middle. Notice how many
separate modules have to suspend properly for the system to truly
sleep. If one of those fails, as it did here, then your system wakes
up right away.
Initial commandline parameters:
Sat Jul 14 14:06:37 CDT 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 pjlap-124 3.2.0-2-amd64 #1 SMP Fri Jun 1 17:49:08 UTC 2012
x86_64 GNU/Linux
Module Size Used by
aesni_intel 50667 64
cryptd 14517 17 aesni_intel
aes_x86_64 16796 1 aesni_intel
aes_generic 33026 2 aes_x86_64,aesni_intel
xts 12645 16
gf128mul 13048 1 xts
dm_crypt 22586 1
dm_mod 63545 3 dm_crypt
ip6table_filter 12540 0
ip6_tables 22175 1 ip6table_filter
iptable_filter 12536 0
ip_tables 22042 1 iptable_filter
x_tables 19073 4
ip_tables,iptable_filter,ip6_tables,ip6table_filter
tun 18337 0
pci_stub 12429 1
vboxpci 19066 0
vboxnetadp 25443 0
vboxnetflt 23571 0
vboxdrv 190105 3 vboxnetflt,vboxnetadp,vboxpci
acpi_cpufreq 12935 1
mperf 12453 1 acpi_cpufreq
cpufreq_conservative 13147 0
cpufreq_stats 12866 0
cpufreq_powersave 12454 0
cpufreq_userspace 12576 0
ppdev 12763 0
lp 17149 0
binfmt_misc 12957 1
uinput 17440 1
fuse 61981 3
ext3 161867 1
jbd 56902 1 ext3
loop 22641 2
firewire_sbp2 17993 0
snd_hda_codec_hdmi 30783 4
nvidia 12284095 73
snd_hda_codec_idt 53792 1
snd_hda_intel 26345 6
snd_hda_codec 78031 3
snd_hda_intel,snd_hda_codec_idt,snd_hda_codec_hdmi
snd_hwdep 13186 1 snd_hda_codec
snd_pcm_oss 41081 0
arc4 12458 2
snd_mixer_oss 17916 2 snd_pcm_oss
uvcvideo 57744 0
videodev 70889 1 uvcvideo
snd_pcm 63900 4
snd_pcm_oss,snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
snd_page_alloc 13003 2 snd_pcm,snd_hda_intel
iwlwifi 166727 0
snd_seq_midi 12848 0
snd_seq_midi_event 13316 1 snd_seq_midi
snd_rawmidi 23060 1 snd_seq_midi
mac80211 192768 1 iwlwifi
v4l2_compat_ioctl32 16655 1 videodev
media 18148 2 videodev,uvcvideo
iTCO_wdt 17081 0
snd_seq 45093 2 snd_seq_midi_event,snd_seq_midi
joydev 17266 0
i2c_i801 16870 0
i2c_core 23876 3 i2c_i801,videodev,nvidia
snd_seq_device 13176 3 snd_seq,snd_rawmidi,snd_seq_midi
cfg80211 137140 2 mac80211,iwlwifi
iTCO_vendor_support 12704 1 iTCO_wdt
snd_timer 22917 2 snd_seq,snd_pcm
battery 13109 0
snd 52850 22
snd_timer,snd_seq_device,snd_seq,snd_rawmidi,snd_pcm,snd_mixer_oss,snd_pcm_oss,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_idt,snd_hda_codec_hdmi
dell_wmi 12477 0
dell_laptop 17120 0
parport_pc 22364 0
processor 28106 1 acpi_cpufreq
sparse_keymap 12760 1 dell_wmi
evdev 17562 27
rfkill 19012 2 dell_laptop,cfg80211
ac 12624 0
dcdbas 13307 1 dell_laptop
power_supply 13475 3 ac,dell_laptop,battery
soundcore 13065 2 snd
wmi 13243 1 dell_wmi
psmouse 64455 0
parport 31858 3 parport_pc,lp,ppdev
serio_raw 12931 0
button 12937 0
video 17628 0
ext4 350411 3
crc16 12343 1 ext4
jbd2 62015 1 ext4
mbcache 13065 2 ext4,ext3
sr_mod 21899 0
sd_mod 36136 5
cdrom 35401 1 sr_mod
crc_t10dif 12348 1 sd_mod
xhci_hcd 73162 0
sdhci_pci 17976 0
sdhci 27053 1 sdhci_pci
mmc_core 72460 2 sdhci,sdhci_pci
firewire_ohci 35772 0
thermal 17383 0
thermal_sys 18040 3 thermal,video,processor
ahci 24997 4
libahci 22860 1 ahci
firewire_core 48407 2 firewire_ohci,firewire_sbp2
crc_itu_t 12347 1 firewire_core
ehci_hcd 40215 0
libata 140589 2 libahci,ahci
scsi_mod 162458 4 libata,sd_mod,sr_mod,firewire_sbp2
e1000e 124918 0
usbcore 128498 4 ehci_hcd,xhci_hcd,uvcvideo
usb_common 12354 1 usbcore
total used free shared buffers cached
Mem: 8153312 1488948 6664364 0 130188 517828
-/+ buffers/cache: 840932 7312380
Swap: 7811056 0 7811056
/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 /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:
/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/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:
nVidia binary video drive 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.
Sat Jul 14 14:06:39 CDT 2012: performing suspend
Sat Jul 14 14:06:49 CDT 2012: Awake.
Sat Jul 14 14:06:49 CDT 2012: Running hooks for resume
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/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 0x7f (127)
APM_level = 127
/dev/sda:
setting standby to 36 (3 minutes)
/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.
Maybe you notice this about NetworkManager, which seems to indicate trouble:
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:
Having NetworkManager put all interaces to sleep...Failed.
But I get the exact same "Failed" even if the laptop does sleep correctly.
So you are thinking, maybe that program never suspends, but sometimes it is OK:
/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend:
In conclusion, defend yourself. Menu suspend always, and make sure it
sleeps before closing the lid.
pj
--
Paul E. Johnson
Professor, Political Science Assoc. Director
1541 Lilac Lane, Room 504 Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org http://quant.ku.edu
More information about the Xfce
mailing list