On 2020-08-27 12:07, laolux laolux wrote:
HandleLidSwitch=ignore
well, that's a crude workaround. It does permit me to carry around my laptop for short distances, but longer walks are no good because it will continue to be powered on and the fans need to get fresh air.
So still looking for a solution which solves the underlying issue: When the screen gets locked and the monitor turns off as a result, the computer will freeze. Quite aweful. I cannot even suspend my laptop, so sometimes I just leave it running and wasting energy just so that I can continue working in the morning without having to restart everything.
I suppose I misunderstood your requirement.
It sounds as if you want your laptop to hibernate or suspend and then resume where you left off when the lid is opened and the power button pressed?
You can try
HandleLidSwitch=hibernate
You may also want to test the ability of your laptop to suspend vs hibernate by testing
sudo systemctl hibernate sudo systemctl suspend
and
sudo systemctl hybrid-sleep
from the command line