You are not logged in.

#1 2022-05-03 07:18:07

Woodiii
Member
Registered: 2022-04-13
Posts: 14

[SOLVED] Laptop does not wake from sleep, hibernate or suspend

Hey, I am running 5.15.37-1-lts on a HP ENVY x360 Convertible 15-dr0220ng.
My problem is, that if, for example, my system goes to sleep, if I close my lid, it doesn't wake anymore and I have to press the power button to shut the system down... the same thing happens with hibernate or suspend.
I have a swap file of 17GB and my RAM is 16GB, so that should not be a problem.
I can't find useful stuff on the internet, for solving my problem...

Last edited by Woodiii (2022-11-20 09:21:14)

Offline

#2 2022-05-05 02:40:57

nick_0189
Member
Registered: 2020-12-21
Posts: 45

Re: [SOLVED] Laptop does not wake from sleep, hibernate or suspend

I had an issue similar to this once, but it might not be the same thing. Since it's been more than a day without an answer though, I'll tell you what I'm guessing anyways. Do you have tlp or powertop installed? I had an issue once where one of them would keep the computer from returning from sleep (I can't remember which one). You could try disabling and uninstalling each of those and see if the problem goes away. If so, there's a configuration file you can edit to keep them from turning off your computer if I remember correctly.

Offline

#3 2022-05-05 10:01:06

Woodiii
Member
Registered: 2022-04-13
Posts: 14

Re: [SOLVED] Laptop does not wake from sleep, hibernate or suspend

No I haven't installed tlp or powertop.
I had the same issue also with other Linux-Distros in the past. I think it could be, because of my Laptop's BIOS version. A classmate of mine has also the same laptop with arch linux installed and it works out of the box. Does anyone maybe have some experience with HP Laptops in general or with my specific model?

Offline

#4 2022-05-05 11:02:46

Ferdinand
Member
From: Norway
Registered: 2020-01-02
Posts: 331

Re: [SOLVED] Laptop does not wake from sleep, hibernate or suspend

I have run Arch on an old HP Compaq 8710w and currently on an HP EliteBook 840 G3, both work without a hitch.
Here are status and links to guides or info from other HP users: https://wiki.archlinux.org/title/Laptop/HP

If you haven't read this already, it's highly recommended: https://wiki.archlinux.org/title/Power_management

I'm on Xfce, and it has an integrated power manager. Depending on what you run, you may need to install some tool for managing power, as described in the article above, but I believe systemd should handle the basic settings out of the box, so something fishy is going on.

If you don't have any power manager installed, and you need to keep the computer from power saving, you can enter "ignore" for the ACPI events in /etc/systemd/logind.conf and "no" for the allow sleep states in /etc/systemd/sleep.conf (I'm not sure if the first is necessary if you do the latter). All is described in the power management article above.

Offline

#5 2022-05-06 06:47:39

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,568

Re: [SOLVED] Laptop does not wake from sleep, hibernate or suspend

it doesn't wake anymore and I have to press the power button to shut the system down...

Have you checked your journals to check what actually happens just before you do a hard reset?

Offline

#6 2022-05-06 09:37:27

Woodiii
Member
Registered: 2022-04-13
Posts: 14

Re: [SOLVED] Laptop does not wake from sleep, hibernate or suspend

d_fajardo wrote:

it doesn't wake anymore and I have to press the power button to shut the system down...

Have you checked your journals to check what actually happens just before you do a hard reset?

There is no mention of any error or stuff like this, if i do journalctl -a, after a sleep. If I put my laptop to sleep or hibernate it wakes up fine for a while, but if i leave it for a long time it won't wake up anymore. He also doesn't wake up when he auto-suspends...

Offline

#7 2022-05-06 09:40:34

Woodiii
Member
Registered: 2022-04-13
Posts: 14

Re: [SOLVED] Laptop does not wake from sleep, hibernate or suspend

Ferdinand wrote:

I have run Arch on an old HP Compaq 8710w and currently on an HP EliteBook 840 G3, both work without a hitch.
Here are status and links to guides or info from other HP users: https://wiki.archlinux.org/title/Laptop/HP

If you haven't read this already, it's highly recommended: https://wiki.archlinux.org/title/Power_management

I'm on Xfce, and it has an integrated power manager. Depending on what you run, you may need to install some tool for managing power, as described in the article above, but I believe systemd should handle the basic settings out of the box, so something fishy is going on.

If you don't have any power manager installed, and you need to keep the computer from power saving, you can enter "ignore" for the ACPI events in /etc/systemd/logind.conf and "no" for the allow sleep states in /etc/systemd/sleep.conf (I'm not sure if the first is necessary if you do the latter). All is described in the power management article above.

I am running dwm with xorg, so there is no integrated power management or whatsoever. So, if I enter "ignore" on every ACPI event, my laptop won't auto-suspend, right? This is my first goal, but as I mentioned I think it has something to do with my laptops BIOS or some stuff like that, because it never worked on any Linux distro...

EDIT: I also masked the systemctl commands for sleep, hibernate and suspend, but it does not made any difference for the auto-suspend problem.

Last edited by Woodiii (2022-05-06 09:41:24)

Offline

#8 2022-05-06 16:13:35

Ferdinand
Member
From: Norway
Registered: 2020-01-02
Posts: 331

Re: [SOLVED] Laptop does not wake from sleep, hibernate or suspend

You're right about the BIOS, it seems...

Check the only answer in this thread:
https://askubuntu.com/questions/1220824 … nt-suspend

Also, that answer references a topic in this forum:
https://bbs.archlinux.org/viewtopic.php?id=256365

A quick read seems to indicate it may be solved, but it doesn't seem trivial.

Offline

#9 2022-05-07 08:26:18

Woodiii
Member
Registered: 2022-04-13
Posts: 14

Re: [SOLVED] Laptop does not wake from sleep, hibernate or suspend

Ferdinand wrote:

You're right about the BIOS, it seems...

Check the only answer in this thread:
https://askubuntu.com/questions/1220824 … nt-suspend

Also, that answer references a topic in this forum:
https://bbs.archlinux.org/viewtopic.php?id=256365

A quick read seems to indicate it may be solved, but it doesn't seem trivial.

At first, a big thank you for this nice research!
I checked the output of sudo dmesg | grep -i acpi | grep supports and the output is:

[    0.389839] ACPI: PM: (supports S0 S4 S5)
[    0.437208] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI EDR HPX-Type3]

So this indicates, that hibernate should work as mentioned in the Arch wiki (https://wiki.archlinux.org/title/Power_ … _hibernate)

Suspend to disk (aka hibernate)
    The S4 sleeping state as defined by ACPI. Saves the machine's state into swap space and completely powers off the machine. When the machine is powered on, the state is restored. Until then, there is zero power consumption.

I may try the steps shown in this guide: https://delta-xi.net/blog/#056
However, I still have two questions:
Can this cause any severe damage to my system, which can't be undone in the arch-chroot?
Why is hibernate not working even if ACPI supports it and the output of free -h looks like this:

total        used        free      shared  buff/cache   available
Mem:            15Gi       1.5Gi        12Gi       624Mi       1.5Gi        12Gi
Swap:           16Gi          0B        16Gi

Offline

#10 2022-05-07 08:52:24

Ferdinand
Member
From: Norway
Registered: 2020-01-02
Posts: 331

Re: [SOLVED] Laptop does not wake from sleep, hibernate or suspend

Heeh.. I don't feel inclined to state anything conclusive about this, but point to the warning on the page you referred to:

https://delta-xi.net/blog/#056 wrote:

If you follow this guide, no one is responsible for any damage to your hardware or any other kind of harming your machine. However, we didn't hear a single report of such cases as of now, and it works fine for all of us who tried it and reported to us.

The reddit article @johnjohnlys referred to in the HP Envy x360 no S states available topic, lists the steps...

  • Copy your ACPI tables to disk.

  • Modify the DSDT table to add S3 suspend.

  • Make your kernel use the modified file instead of the table it finds in BIOS

And from my understanding then, you're getting data from the BIOS, changing it and storing it in a file that the kernel will read from instead of the BIOS - in effect not changing the BIOS then.

So in your situation, I think I would go for it - but of course, if the procedure actually changes something in the BIOS and messes up, then you may lose your computer (unless HP can repair it for you).

I see there are several places with more or less the same info, so maybe a good advice would be to study them, and see if they are actually the same, or if there are differences, try to understand what the differences are about. That way, you'll be a little more on top of it.

Good luck!

EDIT: Regarding hibernation, that should work.
Here's some info from a HP Spectre x360 15-df1010na owner.

Last edited by Ferdinand (2022-05-07 08:56:19)

Offline

#11 2022-05-07 10:08:37

Woodiii
Member
Registered: 2022-04-13
Posts: 14

Re: [SOLVED] Laptop does not wake from sleep, hibernate or suspend

Ferdinand wrote:

Heeh.. I don't feel inclined to state anything conclusive about this, but point to the warning on the page you referred to:

https://delta-xi.net/blog/#056 wrote:

If you follow this guide, no one is responsible for any damage to your hardware or any other kind of harming your machine. However, we didn't hear a single report of such cases as of now, and it works fine for all of us who tried it and reported to us.

The reddit article @johnjohnlys referred to in the HP Envy x360 no S states available topic, lists the steps...

  • Copy your ACPI tables to disk.

  • Modify the DSDT table to add S3 suspend.

  • Make your kernel use the modified file instead of the table it finds in BIOS

And from my understanding then, you're getting data from the BIOS, changing it and storing it in a file that the kernel will read from instead of the BIOS - in effect not changing the BIOS then.

So in your situation, I think I would go for it - but of course, if the procedure actually changes something in the BIOS and messes up, then you may lose your computer (unless HP can repair it for you).

I see there are several places with more or less the same info, so maybe a good advice would be to study them, and see if they are actually the same, or if there are differences, try to understand what the differences are about. That way, you'll be a little more on top of it.

Good luck!

EDIT: Regarding hibernation, that should work.
Here's some info from a HP Spectre x360 15-df1010na owner.

So, I've followed this guide: https://delta-xi.net/blog/#056 and this one: https://wiki.archlinux.org/title/HP_Spe … 5-df1010na and it worked perfectly fine.
My output of cat /sys/power/mem_sleep is now:
s2idle shallow [deep]
and deep sleep is also the prefered option.
If I close my lid or suspend manually, the power button is blinking as it should, BUT I can't awake from sleep AGAIN.... If I press a button on the keyboard, the power button stops to blink. However, my screen stays black.

The output of sudo dmesg | grep 'S3\|suspend' is:
[    0.389333] ACPI: PM: (supports S0 S1 S3 S4 S5)

Does anyone have an idea why?

EDIT: My screen only comes up again, if I do press the power button.

EDIT2: I did a little test and set the laptop to hybrid-sleep for 30minutes. It doesn't came up and I lost 4% of my battery. So it seems, as if the hybrid-sleep is not working correctly....

Last edited by Woodiii (2022-05-07 10:42:01)

Offline

Board footer

Powered by FluxBB