On Tue, Oct 20, 2020 at 1:09 PM Samuel Sieb <samuel@sieb.net> wrote:
On 10/20/20 10:22 AM, Richard Shaw wrote:
> I recently purchased the Ryzen 5 4500U version of the HP ENVY X360
> laptop. For the most part I love it. It's fast, slim, and overall runs
> Fedora great but...
>
> The power button is located on the side and I frequently press it by
> accident. This would be just annoying but when I press the power button
> again, nothing happens, at least externally. I just tested having an SSH
> session open and about 10 seconds after I press the power button a
> second time my SSH session resumes (since I didn't wait for it to time out).

Since ssh is working, can you watch the journal to see what's happening
during suspend and resume?

It did "hang" but then responded again about 20 seconds later, it may have not been long enough to "drop" the connection. I need to do some more testing when I have time.

 
> For now I have set the power button to "do nothing" but that still
> doesn't help when the lid close situation. And the power button is per
> user, not global.

You can edit the systemd logind config to disable suspend on lid close
or suspend button.  If you're using Gnome, then the Gnome Tweak Tool can
let you disable suspend on lid close when you're logged in.

> The problem seems to be that newer laptops don't support S3 sleep and
> instead only implement the MS proprietary sleep mode which is completely
> dependent on OS support, not the BIOS.
>
> https://gitlab.freedesktop.org/drm/amd/-/issues/1230

That appears to be a different issue.  The problem there is that suspend
is not happening at all, which is not your case.

There seem to be mixed cases there. Some suspend (maybe not 100% correctly) but can't "wake up" due to not being able to wake up the GPU properly. I'm thinking that's at least part of my problem as I have seen the "ring" errors in the journal.

Thanks,
Richard