LMDE suspend/hibernation failures

Archived topics about LMDE 1 and LMDE 2
Locked
lagvoker

LMDE suspend/hibernation failures

Post by lagvoker »

Hello!

Few days ago I downloaded and installed LMDE (version 201108 RC Gnome 64-bit) and I'm really happy with it.

However, I've got problems with making my Asus PL30JT with 4 GB of RAM (and NVIDIA/Intel hybrid graphic cards) suspend/hibernate. The problem is my notebook freezes when suspending or hibernating - the white "_" cursor starts to flicker and few moments later stops blinking (when hibernating, the LED diode indicating HDD activity stops blinking when the "_" cursor stops). The radiators stay active. To power off the notebook I need to hold down Power Btn for about 10 sec. So basically the problem now is to suspend/hibernate, not to recover session.

I was searching through lots of walkthroughs and advices but unfortunately without success. So I ask you to help me, please.

My fstab configuration:

Code: Select all

pablo@lagvoker ~ $ cat /etc/fstab 
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc	/proc	proc	defaults	0	0
# /dev/sda1
UUID=3C98-AC60	None	fat32	rw,errors=remount-ro	0	0
# /dev/sda2
UUID=CAF07A5AF07A4CA7	/mnt/OS	ntfs	rw,errors=remount-ro	0	0
# /dev/sda5
UUID=1AF2B560F2B54135	/mnt/DATA	ntfs	rw,errors=remount-ro	0	0
# /dev/sda6
UUID=61d84a2d-f565-4035-a898-e55c3de43ad2	/	ext4	rw,errors=remount-ro	0	0
# /dev/sda7
UUID=46842d77-2706-4855-ba01-3ae79faa7531	none	swap	sw	0	0
# /dev/sda8
UUID=5d0617df-288d-4816-83bf-d280a0c7bca6	/home	ext4	rw,errors=remount-ro	0	0
so swap partition is at /dev/sda7 and its uuid is: 46842d77-2706-4855-ba01-3ae79faa7531.

The uuid stored in /etc/initramfs-tools/conf.d/resume looks ok:

Code: Select all

pablo@lagvoker ~ $ cat /etc/initramfs-tools/conf.d/resume 
RESUME=UUID=46842d77-2706-4855-ba01-3ae79faa7531
Result of free -m command:

Code: Select all

pablo@lagvoker ~ $ free -m
             total       used       free     shared    buffers     cached
Mem:          3630       1981       1648          0         39        597
-/+ buffers/cache:       1344       2285
Swap:         4095          0       4095
The size of swap partition should be enough for 4GB of RAM, right?

My pm-suspend.log always looks similar to this:

Code: Select all

Initial commandline parameters: 
Mon Aug 22 22:23:18 CEST 2011: 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 lagvoker 2.6.39-2-amd64 #1 SMP Tue Jul 5 02:51:22 UTC 2011 x86_64 GNU/Linux
Module                  Size  Used by
cryptd                 14463  0 
aes_x86_64             16796  0 
aes_generic            37122  1 aes_x86_64
nls_utf8               12456  0 
isofs                  34960  1 
acpi_cpufreq           12849  1 
mperf                  12411  1 acpi_cpufreq
cpufreq_powersave      12454  0 
cpufreq_userspace      12576  0 
cpufreq_stats          12762  0 
cpufreq_conservative    13147  0 
parport_pc             22191  0 
ppdev                  12725  0 
lp                     17190  0 
parport                31650  3 parport_pc,ppdev,lp
rfcomm                 32744  8 
bnep                   17424  2 
acpi_call              12506  0 
binfmt_misc            12914  1 
ipt_REJECT             12465  1 
ipt_LOG                12605  5 
xt_limit               12638  7 
xt_tcpudp              12527  8 
xt_addrtype            12557  4 
xt_state               12503  7 
ip6table_filter        12540  1 
ip6_tables             21907  1 ip6table_filter
nf_nat_irc             12454  0 
nf_conntrack_irc       12427  1 nf_nat_irc
nf_nat_ftp             12460  0 
nf_nat                 18045  2 nf_nat_irc,nf_nat_ftp
nf_conntrack_ipv4      18081  9 nf_nat
nf_defrag_ipv4         12483  1 nf_conntrack_ipv4
nf_conntrack_ftp       12572  1 nf_nat_ftp
nf_conntrack           56001  7 xt_state,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_nat,nf_conntrack_ipv4,nf_conntrack_ftp
iptable_filter         12536  1 
ip_tables              21818  1 iptable_filter
x_tables               18886  10 ipt_REJECT,ipt_LOG,xt_limit,xt_tcpudp,xt_addrtype,xt_state,ip6table_filter,ip6_tables,iptable_filter,ip_tables
fuse                   61554  5 
loop                   22479  0 
dm_crypt               22257  0 
dm_mod                 62468  1 dm_crypt
snd_hda_codec_hdmi     22174  1 
snd_hda_codec_realtek   283734  1 
snd_hda_intel          25946  2 
arc4                   12458  2 
snd_hda_codec          67865  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13148  1 snd_hda_codec
snd_pcm_oss            40662  0 
snd_mixer_oss          17905  1 snd_pcm_oss
ecb                    12737  2 
snd_pcm                67276  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_pcm_oss
ath9k                  71748  0 
mac80211              181270  1 ath9k
snd_seq_midi           12848  0 
snd_rawmidi            22963  1 snd_seq_midi
snd_seq_midi_event     13316  1 snd_seq_midi
snd_seq                44678  2 snd_seq_midi,snd_seq_midi_event
ath9k_common           12732  1 ath9k
snd_timer              22658  2 snd_pcm,snd_seq
ath9k_hw              277119  2 ath9k,ath9k_common
ath                    21306  2 ath9k,ath9k_hw
snd_seq_device         13155  3 snd_seq_midi,snd_rawmidi,snd_seq
uvcvideo               57386  0 
btusb                  17417  2 
cfg80211              126244  3 ath9k,mac80211,ath
snd                    52324  16 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
asus_laptop            18147  0 
sparse_keymap          12760  1 asus_laptop
soundcore              13014  1 snd
intel_ips              17462  0 
bluetooth             107224  23 rfcomm,bnep,btusb
snd_page_alloc         12969  2 snd_hda_intel,snd_pcm
rfkill                 19014  5 cfg80211,asus_laptop,bluetooth
joydev                 17138  0 
videodev               66266  1 uvcvideo
media                  18148  1 videodev
v4l2_compat_ioctl32    16575  1 videodev
i915                  329754  7 
drm_kms_helper         26950  1 i915
drm                   166500  3 i915,drm_kms_helper
i2c_algo_bit           12834  1 i915
i2c_core               23766  5 videodev,i915,drm_kms_helper,drm,i2c_algo_bit
battery                13109  0 
ac                     12624  0 
power_supply           13475  2 battery,ac
wmi                    13202  0 
processor              27431  5 acpi_cpufreq
video                  17553  1 i915
evdev                  17475  16 
psmouse                55199  0 
serio_raw              12878  0 
pcspkr                 12579  0 
button                 12895  1 i915
sg                     25769  0 
sr_mod                 21824  1 
cdrom                  35134  1 sr_mod
ext4                  317160  2 
mbcache                12930  1 ext4
jbd2                   65105  1 ext4
crc16                  12343  2 bluetooth,ext4
btrfs                 473616  0 
zlib_deflate           25466  1 btrfs
crc32c                 12656  1 
libcrc32c              12426  1 btrfs
usb_storage            43639  1 
usbhid                 39946  0 
hid                    72745  1 usbhid
sd_mod                 35644  6 
crc_t10dif             12348  1 sd_mod
ahci                   25089  5 
libahci                22616  1 ahci
libata                151572  2 ahci,libahci
ehci_hcd               39487  0 
scsi_mod              161557  5 sg,sr_mod,usb_storage,sd_mod,libata
usbcore               127203  6 uvcvideo,btusb,usb_storage,usbhid,ehci_hcd
atl1c                  31796  0 
thermal                17330  0 
thermal_sys            17939  3 processor,video,thermal
             total       used       free     shared    buffers     cached
Mem:       3717292     738944    2978348          0      55824     422832
-/+ buffers/cache:     260288    3457004
Swap:      4194300          0    4194300

/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/49bluetooth suspend suspend:

/usr/lib/pm-utils/sleep.d/49bluetooth 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: 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/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 Aug 22 22:23:19 CEST 2011: performing suspend
I think the important part of the log above may be:

Code: Select all

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
There are two network interfaces:

Code: Select all

pablo@lagvoker ~ $ sudo lshw -C network
  *-network               
       description: Wireless interface
       product: AR9285 Wireless Network Adapter (PCI-Express)
       vendor: Atheros Communications Inc.
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 01
       serial: 74:f0:6d:79:63:63
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=2.6.39-2-amd64 firmware=N/A ip=192.168.1.115 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
       resources: irq:17 memory:d4c00000-d4c0ffff
  *-network
       description: Ethernet interface
       product: AR8131 Gigabit Ethernet
       vendor: Atheros Communications
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: eth1
       version: c0
       serial: 48:5b:39:41:ac:2c
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=atl1c driverversion=1.0.1.0-NAPI firmware=N/A latency=0 link=no multicast=yes port=twisted pair
       resources: irq:47 memory:d3800000-d383ffff ioport:a000(size=128)
Shutting them down in desktop-manager, as well as with

Code: Select all

sudo modprobe -r ath9k
or

Code: Select all

sudo service network-manager stop
doesn't change anything. All the time I get suspend/hibernation logs like presented before.

I don't know if it does matter, but I have installed nvidia alternative drivers from the repos (nvidia-support, nvidia-kernel-dkms etc.). What is more, I have my graphic cards configured with the debumblebee scripts, so the NVIDIA card is turned on and off only when needed.

Please let me know if there is anything I can try to make it working properly... I appreciate any help of yours. Thanks in advance!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mads

Re: LMDE suspend/hibernation failures

Post by mads »

lagvoker wrote:I think the important part of the log above may be:

Code: Select all

Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:
Having NetworkManager put all interaces to sleep...Failed.
No, I don't think so, because previously (to be more precise before kernel upgrade to version 3.0.0-1 when I had 2.6.38-2 and before that 2.6.32-5)
hibernation and suspend worked perfectly well. My pm-suspend.log showed exactly the same message as you receive (log is from the time when both hib/sus worked well):

Code: Select all

Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:
Having NetworkManager put all interaces to sleep...Failed.
...
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend:
Having NetworkManager wake interfaces back up...Failed.
My problems started with the new kernel, and removing fglrx drivers and installing mesa drivers has not helped me to resolve the issue.
Anyway just wanted to make you aware of this. Personally, I am pretty sure this is a kernel bug.
lagvoker

Re: LMDE suspend/hibernation failures

Post by lagvoker »

Hi, mads! Thank you for your fast response. Unfortunately I was awway of my computer so I was not able to post earlier. You are probably right about this kernel bug. But can anything be done about it rather than waiting for newer kernel version?

LMDE defaultly does not print out any information when the hibernation proceeds. How can i change this behaviour to see more detailed information than in my pm-suspend.log?

What is interesting, this looks like SOMETIMES I'm able to wake my notebook up after hibernating and later pressing pwr button to make it stop. As far as I noticed, it was possible only if I got low memory usage when hibernation has been started. But still, it's very unreliable solution.

If anyone can provide any helpful information, I would be really grateful. Thanks!
rafaeltosta

Re: LMDE suspend/hibernation failures

Post by rafaeltosta »

After hours of searching I found an odd solution for my hibertation/suspend bug, which is similar to yours.

http://lists.debian.org/debian-kernel/2 ... 00900.html

It was indeed related with the information on pm-suspend.log "Having NetworkManager put all interaces to sleep...Failed."

Hope it works for you too.
mjdtjm

Re: LMDE suspend/hibernation failures

Post by mjdtjm »

Hi,
I had the same problem and the following hint helped me:
http://forums.linuxmint.com/viewtopic.php?f=197&t=97684

Hope to be useful for you too.

Cheers,
MjdTjm
Locked

Return to “LMDE Archive”