Page 1 of 1

Does easyos not support hibernation?

Posted: Thu May 16, 2024 4:59 am
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.


Re: Does easyos not support hibernation?

Posted: Thu May 16, 2024 12:26 pm
by BarryK

Press the power button briefly after opening the lid.


Re: Does easyos not support hibernation?

Posted: Thu May 16, 2024 12:50 pm
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.


Re: Does easyos not support hibernation?

Posted: Fri May 17, 2024 2:05 pm
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.


Re: Does easyos not support hibernation?

Posted: Fri May 17, 2024 3:26 pm
by bigpup

What specific version of EasyOS???


Re: Does easyos not support hibernation?

Posted: Sat May 18, 2024 6:50 am
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?


Re: Does easyos not support hibernation?

Posted: Sat May 18, 2024 9:06 am
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.


Re: Does easyos not support hibernation?

Posted: Mon Jun 03, 2024 10:00 pm
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


Re: Does easyos not support hibernation?

Posted: Mon Jun 03, 2024 10:21 pm
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 ...