Does easyos not support hibernation?

Moderator: BarryK

Post Reply
Thanos
Posts: 92
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 3 times
Been thanked: 14 times

Does easyos not support hibernation?

Post by Thanos »

When I run easyos on my laptop, I close the lid and open it again then I can't get into the system, just a black screen.

User avatar
BarryK
Posts: 2698
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 739 times

Re: Does easyos not support hibernation?

Post by BarryK »

Press the power button briefly after opening the lid.

User avatar
Federico
Posts: 290
Joined: Tue Jun 20, 2023 2:40 pm
Has thanked: 1 time
Been thanked: 36 times

Re: Does easyos not support hibernation?

Post by Federico »

If you don't like / want the hibernation when you close the lid, if I remember well, you can just edit the file lid.sh file, located inside the folder /etc/acpi/ and simply comment the line which says << /usr/sbin/pm-suspend >>.
The file should look as follows:

Code: Select all

#!/bin/sh
/bin/grep -q open /proc/acpi/button/lid/LID/state && exit 0
#/usr/sbin/pm-suspend

But, in this case the screen will stay on even if you close the lid. There are pros and cons.

Desktop PC
Case: Sharkoon S25-W MB: Asus Rog Strix B550-A PSU: XFX Pro 750W CPU: AMD Ryzen 5700X @ 4.6 GHz RAM: Corsair 32 GB DDR4 @ 3000 MHz Heatsink: Scythe Mugen 5 rev. B VGA: Asus Tuf RTX 3080 12 GB OC

Laptop PC: Asus Zenbook UX325E

Thanos
Posts: 92
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 3 times
Been thanked: 14 times

Re: Does easyos not support hibernation?

Post by Thanos »

BarryK wrote: Thu May 16, 2024 12:26 pm

Press the power button briefly after opening the lid.

I can do this on Other Linux such as centos, but I CAN'T wake up my notebook on easy.

User avatar
bigpup
Moderator
Posts: 6999
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

Re: Does easyos not support hibernation?

Post by bigpup »

What specific version of EasyOS???

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Thanos
Posts: 92
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 3 times
Been thanked: 14 times

Re: Does easyos not support hibernation?

Post by Thanos »

bigpup wrote: Fri May 17, 2024 3:26 pm

What specific version of EasyOS???

Since I know easyos, every version is so.
Now it is 5.81.

There is not the file "/proc/acpi/button/lid/LID/state" on my easyos file system, but I found "/proc/acpi/button/lid/LID0/state". Maybe this is the reason?

I have made a test:

Code: Select all

# pm-is-supported --hibernate
# echo $?
1
# pm-is-supported --suspend
# echo $?
0
# pm-is-supported --suspend-hybrid
# echo $?
1

I modified the file lid.sh

Code: Select all

#!/bin/sh
/bin/grep -q open /proc/acpi/button/lid/LID0/state && exit 0
#/usr/sbin/pm-suspend

I can close the lid safely now.
But I want to close the monitor too like other linux.
What can I do to solve this problem?

User avatar
BarryK
Posts: 2698
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 739 times

Re: Does easyos not support hibernation?

Post by BarryK »

Thanos wrote: Sat May 18, 2024 6:50 am

I can close the lid safely now.
But I want to close the monitor too like other linux.
What can I do to solve this problem?

Isn't that what pm-suspend does?
Don't leave it commented-out in the script.

User avatar
mann
Posts: 12
Joined: Mon Sep 21, 2020 3:47 pm
Location: Austria, Europe
Has thanked: 7 times
Been thanked: 1 time

Re: Does easyos not support hibernation?

Post by mann »

Exactly the same with my Lenovo G580 [ Easyos Dunfell 3.1 amd64 ]
Thanks for picking up the breadcrumbs until a solution was found - great, like in a Karl-May-novel!
I feel it in my keyboard, that many users out there do neither look for nor find - nor can they perform this patch.

Is it worth implementing a more general solution? -

dir=/proc/acpi/button/lid
statefile="$(find $dir -type f -name state | head -n 1)"
/bin/grep -q open "$statefile" && exit 0
/usr/sbin/pm-suspend

User avatar
mann
Posts: 12
Joined: Mon Sep 21, 2020 3:47 pm
Location: Austria, Europe
Has thanked: 7 times
Been thanked: 1 time

Re: Does easyos not support hibernation?

Post by mann »

Or, if I'm not the only one without a working screensaver, let's add one now.
I'm - by far - not up to date with my EasyOS from 2021, so
maybe there is a package already out there and I did not see?

In short: I added a line in /usr/bin/wmpoweroff to start **
/usr/local/apps/Xlock/AppRun (displaying my favourite screensaver "spiral")
First I changed settings:
Menu ... "ScreenSaver Control" ... Delay ... 60 min, (and I removed the hook for "blank",relevant or not)
Menu ... "System" ... "Puppy EventManager" ... POWERTIMEOUT=6

And as a not so clean solution I had to extend the "Power-Off"
(in the Menu "/etc/xdg/templates/_root_.jwmrc")
by a parameter:
"exec wmpoweroff" became "exec wmpoweroff real"
**so "real" is parameter $1 and is the condition for the
"/usr/bin/wmpoweroff" to IGNORE the "/usr/local/apps/Xlock/AppRun"

Now, after 6 minutes of inacivity the "sprial" screensaver starts instead of a black screen
I'd like to append a suspend or whatever ...

Post Reply

Return to “EasyOS”