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.
Does easyos not support hibernation?
Moderator: BarryK
Re: Does easyos not support hibernation?
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
Re: Does easyos not support hibernation?
I can do this on Other Linux such as centos, but I CAN'T wake up my notebook on easy.
- bigpup
- Moderator
- Posts: 6929
- Joined: Tue Jul 14, 2020 11:19 pm
- Location: Earth, South Eastern U.S.
- Has thanked: 895 times
- Been thanked: 1508 times
Re: Does easyos not support hibernation?
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
Re: Does easyos not support hibernation?
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?
Isn't that what pm-suspend does?
Don't leave it commented-out in the script.
- 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?
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
- 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?
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 ...