You are not logged in.

#1 2020-04-19 08:28:42

davc0n
Member
Registered: 2020-02-01
Posts: 24

[SOLVED] Regression: wake up from suspend or hibernate

Hi,

When the system tries to wake up it completely freezes, and I see nothing available in logs related to the wake up process. As far I can see though, suspension and hibernation process works fine.
I did write amdgpu in the title, because if I switch to another tty without graphical interface before suspending, then it wakes up correctly... so might be related.
EDIT: About hibernation, no clue, since there's not a graphical login (xinit instead).

A few kernel versions ago, waking up was woring fine without any workaround, from either suspension or hibernation (even hybrid sleep). I would like to avoid testing many version to find when the regression happened and bisect (if possible).

GPU:

05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev d2)

Hibernate journalctl logs:

Apr 19 10:04:35 orion NetworkManager[490]: <info>  [1587283475.8856] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Apr 19 10:04:35 orion NetworkManager[490]: <info>  [1587283475.8858] device (enp3s0f0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Apr 19 10:04:35 orion NetworkManager[490]: <info>  [1587283475.9227] device (enp4s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Apr 19 10:04:35 orion NetworkManager[490]: <info>  [1587283475.9623] device (p2p-dev-wlp1s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Apr 19 10:04:35 orion NetworkManager[490]: <info>  [1587283475.9630] manager: NetworkManager state is now ASLEEP
Apr 19 10:04:36 orion systemd[1]: Reached target Sleep.
Apr 19 10:04:36 orion systemd[1]: Starting Hibernate...
Apr 19 10:04:36 orion systemd-sleep[1389]: Suspending system...
Apr 19 10:04:36 orion kernel: PM: hibernation: hibernation entry

Suspend journalctl logs:

Apr 19 09:59:07 orion systemd-logind[493]: Lid closed.
Apr 19 09:59:07 orion NetworkManager[492]: <info>  [1587283147.5234] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Apr 19 09:59:07 orion NetworkManager[492]: <info>  [1587283147.5235] device (enp3s0f0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Apr 19 09:59:07 orion NetworkManager[492]: <info>  [1587283147.5647] device (enp4s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Apr 19 09:59:07 orion NetworkManager[492]: <info>  [1587283147.6045] device (p2p-dev-wlp1s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Apr 19 09:59:07 orion NetworkManager[492]: <info>  [1587283147.6050] manager: NetworkManager state is now ASLEEP
Apr 19 09:59:08 orion systemd[1]: Reached target Sleep.
Apr 19 09:59:08 orion systemd[1]: Starting Suspend...
Apr 19 09:59:08 orion systemd-sleep[1337]: Suspending system...
Apr 19 09:59:08 orion kernel: PM: suspend entry (deep)

Before posting I tried to check if it has already been fixed on kernel 5.6.5.arch2-1, but nope.

Last edited by davc0n (2020-05-17 10:31:12)

Offline

#2 2020-04-19 08:39:47

lolop
Member
Registered: 2015-02-19
Posts: 37

Re: [SOLVED] Regression: wake up from suspend or hibernate

I have the same problem with a vega 8.

I found a temporary solution with some graphical degradation, use DRI 2:

cat /etc/X11/xorg.conf.d/20-amdgpu.conf
"Device" section
         Identify "AMDGPU"
         "Amdgpu" driver
         "DRI" option "2"
EndSection

Last edited by lolop (2020-04-19 20:15:05)

Offline

#3 2020-04-19 13:01:19

Lone_Gunman
Member
Registered: 2010-02-17
Posts: 9

Re: [SOLVED] Regression: wake up from suspend or hibernate

Confirmed too with AMDGPU, Vega, Kernel 5.6.4-arch1-1

Wake up from suspend freezed to black.

Offline

#4 2020-04-19 17:28:15

Preycon
Member
From: México, D.F.
Registered: 2009-02-14
Posts: 43

Re: [SOLVED] Regression: wake up from suspend or hibernate

Just login to say: me too.

It seems that linux-lts is working fine.

Last edited by Preycon (2020-04-19 17:48:57)

Offline

#5 2020-04-19 17:33:15

dimischiavone
Member
From: Turin
Registered: 2019-09-13
Posts: 14

Re: [SOLVED] Regression: wake up from suspend or hibernate

I can confirm those issues aswell. Suspend sporadically works for me but hibernation always goes to a black screen without allowing me to switch to another tty.

Offline

#6 2020-04-19 17:36:12

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,841

Re: [SOLVED] Regression: wake up from suspend or hibernate

To the last 3 posters, don't do that...

https://wiki.archlinux.org/index.php/Co … mpty_posts


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2020-04-21 19:29:45

Lone_Gunman
Member
Registered: 2010-02-17
Posts: 9

Re: [SOLVED] Regression: wake up from suspend or hibernate

Sorry Slithery but my post did bring some pieces of information that could be relevant regarding the issue (my kernel version and GPU type).
Preycon's informed us that LTS kernel did solve the issue.
By doing this, people can cross-compare their config and could narrow their search to a particular field.

I think that even if it's not much, it's still valuable info that can be time saving for any user looking for a fix.
Thank you.

Offline

#8 2020-04-22 02:38:08

Preycon
Member
From: México, D.F.
Registered: 2009-02-14
Posts: 43

Re: [SOLVED] Regression: wake up from suspend or hibernate

It seems solved in the 5.6.6-arch1-1 kernel updated.

Offline

#9 2020-04-22 06:31:14

davc0n
Member
Registered: 2020-02-01
Posts: 24

Re: [SOLVED] Regression: wake up from suspend or hibernate

Issue not solved for me. Tested on both 5.6.6 and 5.4.34-lts. Additionally, but probably not related, after a forced shutdown my KDE desktop configuration (background included) gets resetted.

Offline

#10 2020-04-22 10:30:46

dimischiavone
Member
From: Turin
Registered: 2019-09-13
Posts: 14

Re: [SOLVED] Regression: wake up from suspend or hibernate

Thinkpad t495s with amd ryzen 3700u pro here. Hibernate not working on 5.6.6.
These are the logs before hibernating:

apr 22 12:23:46 t495s systemd-sleep[4006]: Suspending system...
apr 22 12:23:46 t495s kernel: PM: hibernation: hibernation entry
-- Reboot --

The reboot is forcibly done by me because the computer just goes into a black screen and won't respond.

Edit:
I might add that i'm using kde as DE and in the power options i have enabled hibernate after suspend. All of this worked on kernel 5.5.x

Last edited by dimischiavone (2020-04-22 10:49:33)

Offline

#11 2020-04-22 14:53:18

loqs
Member
Registered: 2014-03-06
Posts: 10,644

Re: [SOLVED] Regression: wake up from suspend or hibernate

Is the issue present under linux-mainline 5.7rc2?  If it is it also present under linux-amd-staging-drm-next-git?

Offline

#12 2020-04-22 16:36:09

davc0n
Member
Registered: 2020-02-01
Posts: 24

Re: [SOLVED] Regression: wake up from suspend or hibernate

Tried mainline 5.7-rc2. Swap doesn't work, couldn't check hibernation. System can't reach sleep status succesfully.

Apr 22 18:30:02 orion NetworkManager[474]: <info>  [1587573002.3316] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Apr 22 18:30:02 orion NetworkManager[474]: <info>  [1587573002.3319] device (enp3s0f0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Apr 22 18:30:02 orion NetworkManager[474]: <info>  [1587573002.3535] device (enp4s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Apr 22 18:30:02 orion NetworkManager[474]: <info>  [1587573002.3988] device (p2p-dev-wlp1s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Apr 22 18:30:02 orion NetworkManager[474]: <info>  [1587573002.3991] manager: NetworkManager state is now ASLEEP
Apr 22 18:30:02 orion systemd[1]: Reached target Sleep.
Apr 22 18:30:02 orion systemd[1]: Starting Suspend...
Apr 22 18:30:02 orion systemd-sleep[1151]: Suspending system...
Apr 22 18:30:02 orion kernel: PM: suspend entry (deep)

Didn't try amd-staging-drm-next, is there any pre-built package available ?

Offline

#13 2020-04-22 16:53:30

loqs
Member
Registered: 2014-03-06
Posts: 10,644

Re: [SOLVED] Regression: wake up from suspend or hibernate

Not that I know of.  I would suggest enabling Makepkg#Improving_compile_times to reduce build time as much as possible.  Then leave it building overnight if it still takes an unacceptably long length of time.

Offline

#14 2020-04-22 19:28:44

davc0n
Member
Registered: 2020-02-01
Posts: 24

Re: [SOLVED] Regression: wake up from suspend or hibernate

Tested amd-staging-drm-next, doesn't work either

Offline

#15 2020-04-22 19:52:23

loqs
Member
Registered: 2014-03-06
Posts: 10,644

Re: [SOLVED] Regression: wake up from suspend or hibernate

You can try reporting the issue without the bisection to https://gitlab.freedesktop.org/drm/amd/-/issues

Offline

#16 2020-05-17 10:30:37

davc0n
Member
Registered: 2020-02-01
Posts: 24

Re: [SOLVED] Regression: wake up from suspend or hibernate

I am happy to say that both suspend and hibernate works fine without any workaround (kernel 5.6.13-arch1-1, but might have been fixed earlier).

Offline

Board footer

Powered by FluxBB