Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sometimes system does not wake up from sleep.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Rodgrod
n00b
n00b


Joined: 06 Aug 2016
Posts: 2

PostPosted: Sat Aug 13, 2016 8:24 am    Post subject: Sometimes system does not wake up from sleep. Reply with quote

Hey there,

I'm running Gentoo ~amd64 with kernel 4.7.0-gentoo for a couple of days now on my new machine and so far everything seemed to work just fine. Yesterday, all of a sudden, the system would not resume from sleep. The fans were turning on, by the system did not respond to anything. The screen stayed black, it did not react to keyboard input (hitting numlock had no effect) and if I inserted a USB drive, there did not seem to be any access to it (LED not flashing). What's really problematic, is that this behaviour happens in about 1 out of 10 cases. I tried to reproduce that problem, but I did not find out when the problem occurs.

Here is a successful sleep-wakeup-cycle from pm-suspend.log:
Code:
Initial commandline parameters:
Blacklisting 01grub.
Blacklisting 90clock.
Sat Aug 13 01:33:08 CEST 2016: Running hooks for suspend.
Running hook /usr/lib64/pm-utils/sleep.d/00logging suspend suspend:
Linux belial 4.7.0-gentoo-custom #12 SMP Tue Aug 9 17:30:54 CEST 2016 x86_64 Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz GenuineIntel GNU/Linux
Module                  Size  Used by
ipt_MASQUERADE          1277  3
nf_nat_masquerade_ipv4     1993  1 ipt_MASQUERADE
iptable_nat             2015  1
nf_nat_ipv4             4763  1 iptable_nat
nf_nat                 11690  2 nf_nat_ipv4,nf_nat_masquerade_ipv4
x86_pkg_temp_thermal     5445  0
efivarfs                5343  1
              total        used        free      shared  buff/cache   available
Mem:       32896980      192944    31969412        1520      734624    32411952
Swap:      12462260           0    12462260
/usr/lib64/pm-utils/sleep.d/00logging suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/00powersave suspend suspend:
Blacklisting 01grub.
Blacklisting 90clock.
/usr/lib64/pm-utils/sleep.d/00powersave suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/01grub suspend suspend:
/usr/lib64/pm-utils/sleep.d/01grub suspend suspend: disabled.

Running hook /usr/lib64/pm-utils/sleep.d/50unload_alx suspend suspend:
/usr/lib64/pm-utils/sleep.d/50unload_alx suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/75modules suspend suspend:
/usr/lib64/pm-utils/sleep.d/75modules suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/90clock suspend suspend:
/usr/lib64/pm-utils/sleep.d/90clock suspend suspend: disabled.

Running hook /usr/lib64/pm-utils/sleep.d/94cpufreq suspend suspend:
/usr/lib64/pm-utils/sleep.d/94cpufreq suspend suspend: success.

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

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

Running hook /usr/lib64/pm-utils/sleep.d/99video suspend suspend:
kernel.acpi_video_flags = 0
/usr/lib64/pm-utils/sleep.d/99video suspend suspend: success.

Sat Aug 13 01:33:08 CEST 2016: performing suspend
Sat Aug 13 01:33:21 CEST 2016: Awake.
Sat Aug 13 01:33:21 CEST 2016: Running hooks for resume
Running hook /usr/lib64/pm-utils/sleep.d/99video resume suspend:
/usr/lib64/pm-utils/sleep.d/99video resume suspend: success.

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

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

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

Running hook /usr/lib64/pm-utils/sleep.d/90clock resume suspend:
/usr/lib64/pm-utils/sleep.d/90clock resume suspend: disabled.

Running hook /usr/lib64/pm-utils/sleep.d/75modules resume suspend:
Reloaded unloaded modules.
/usr/lib64/pm-utils/sleep.d/75modules resume suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/50unload_alx resume suspend:
/usr/lib64/pm-utils/sleep.d/50unload_alx resume suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/01grub resume suspend:
/usr/lib64/pm-utils/sleep.d/01grub resume suspend: disabled.

Running hook /usr/lib64/pm-utils/sleep.d/00powersave resume suspend:
Blacklisting 01grub.
Blacklisting 90clock.
/usr/lib64/pm-utils/sleep.d/00powersave resume suspend: success.

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

Sat Aug 13 01:33:21 CEST 2016: Finished.


And here's a failed one:
Code:
Initial commandline parameters:
Blacklisting 01grub.
Blacklisting 90clock.
Sat Aug 13 01:28:39 CEST 2016: Running hooks for suspend.
Running hook /usr/lib64/pm-utils/sleep.d/00logging suspend suspend:
Linux belial 4.7.0-gentoo-custom #12 SMP Tue Aug 9 17:30:54 CEST 2016 x86_64 Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz GenuineIntel GNU/Linux
Module                  Size  Used by
ipt_MASQUERADE          1277  3
nf_nat_masquerade_ipv4     1993  1 ipt_MASQUERADE
iptable_nat             2015  1
nf_nat_ipv4             4763  1 iptable_nat
nf_nat                 11690  2 nf_nat_ipv4,nf_nat_masquerade_ipv4
x86_pkg_temp_thermal     5445  0
efivarfs                5343  1
              total        used        free      shared  buff/cache   available
Mem:       32896980    14778832    14886500      447348     3231648    17334392
Swap:      12462260           0    12462260
/usr/lib64/pm-utils/sleep.d/00logging suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/00powersave suspend suspend:
Blacklisting 01grub.
Blacklisting 90clock.
/usr/lib64/pm-utils/sleep.d/00powersave suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/01grub suspend suspend:
/usr/lib64/pm-utils/sleep.d/01grub suspend suspend: disabled.

Running hook /usr/lib64/pm-utils/sleep.d/50unload_alx suspend suspend:
/usr/lib64/pm-utils/sleep.d/50unload_alx suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/75modules suspend suspend:
/usr/lib64/pm-utils/sleep.d/75modules suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/90clock suspend suspend:
/usr/lib64/pm-utils/sleep.d/90clock suspend suspend: disabled.

Running hook /usr/lib64/pm-utils/sleep.d/94cpufreq suspend suspend:
/usr/lib64/pm-utils/sleep.d/94cpufreq suspend suspend: success.

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

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

Running hook /usr/lib64/pm-utils/sleep.d/99video suspend suspend:
kernel.acpi_video_flags = 0
/usr/lib64/pm-utils/sleep.d/99video suspend suspend: success.

Sat Aug 13 01:28:39 CEST 2016: performing suspend


Note that there are no messages when trying to perform the wakeup. kern.log wasn't helpful either.

The hardware in the system is a Core i5-6600, Gigabyte Z170N-WIFI, Samsung EVO 850 and a Radeon RX 480 with AMDGPU and RadeonSI.

Can you help me track down the problem?


- rodgrod

//EDIT: Here's the kern.log from today. I had at least on successful attempt of sleep/resume and in the end a failed one: http://pastebin.com/UiiSj8Tg
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Sat Aug 13, 2016 8:26 pm    Post subject: Reply with quote

yes I've had a similar issue ..but network reconnection related only on wake-up.. reverted to 4.6.6 to test if the issue is kernel related or some otjher software .. still wating to see a network freeze-up... perhaps something is not fully recovering with kernel 4.7.0 .. time to search kernel.org for bugs
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Sat Aug 13, 2016 8:49 pm    Post subject: Reply with quote

yes I've had a similar issue ..but network reconnection related only on wake-up.. reverted to 4.6.6 to test if the issue is kernel related or some otjher software .. still wating to see a network freeze-up... perhaps something is not fully recovering with kernel 4.7.0 .. time to search kernel.org for bugs .. there are a few related to my iwlwifi .. in various places ..

thus .. I checked your paste.bin .. looks like you have errors in libglib .. suggest a recompile perhaps .. have you recently changed/upgraded compilers?

gcc ujpgrades at the moment are not necessarily ABI compatible especially for c++ based programs .. I tend to rebuild @system when changing gcc versions just in case .. YMMV
Back to top
View user's profile Send private message
Rodgrod
n00b
n00b


Joined: 06 Aug 2016
Posts: 2

PostPosted: Sat Aug 13, 2016 9:09 pm    Post subject: Reply with quote

derk wrote:
yes I've had a similar issue ..but network reconnection related only on wake-up.. reverted to 4.6.6 to test if the issue is kernel related or some otjher software .. still wating to see a network freeze-up... perhaps something is not fully recovering with kernel 4.7.0 .. time to search kernel.org for bugs .. there are a few related to my iwlwifi .. in various places ..

I found nothing related to my problem on kernel.org so far. Not using 4.7 is not an option since my video card is not supported by earlier versions. I may try to go to 4.8-rc1.
derk wrote:
thus .. I checked your paste.bin .. looks like you have errors in libglib .. suggest a recompile perhaps .. have you recently changed/upgraded compilers?

Re-emerging dev-libs/glib and sys-auth/consolekit with pm-utils USE flag did not fix the problem. Since I'm on ~amd64, GCC 5.4.0 is my compiler right from the install. I also get that error message on every shutdown but not necessarily on every suspend/resume.
derk wrote:
gcc ujpgrades at the moment are not necessarily ABI compatible especially for c++ based programs .. I tend to rebuild @system when changing gcc versions just in case .. YMMV

I might try rebuilding @system. Thanks for your help so far.

- rodgrod
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum