Does easyos not support hibernation?
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.
Discussion, talk and tips
https://forum.puppylinux.com/
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.
Press the power button briefly after opening the lid.
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.
I can do this on Other Linux such as centos, but I CAN'T wake up my notebook on easy.
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?
Thanos wrote: Sat May 18, 2024 6:50 amI 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.
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
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 ...