[Solved] ZimaOS on Laptop, Lid Close = Sleep

Hi team, I want to report a “problem”.

I will describe this problem as follows:

[When i close the lid the system goes to sleep]

And I can reproduce the problem like this:
[Just close the lid - system sleeps / lift the lid = Resume]

And here are the specs of my machine:
[HP - ProBook 450 G7 - 16GB RAM - i5 - 750GB HDD SATA - 512GB SSD M.2 NVME]
[ZimaOS v1.4.2]

I have installed ZimaOS on a HP laptop for testing on the go,
Most things are ok and I still have a lot to learn and find,
I did not expect the OS to read and act on lid close, since it was designed for the cube ( no such function )
Could i redirect the built in devices - Keyboard mouse camera even screen - to a VM or app ?
Workstation on top of ZimaOS?

Thank you for your hard work and support, love what i see and hope you are not to annoyed with crazy tests :slight_smile:

If its not possible by using bios try.

sudo nano /etc/systemd/logind.conf

Look for HandleLidSwitch=suspend and make sure it active.

Not sure its working on this distro (It’s from Ubuntu forum I think)

1 Like

Hey, could you please investigate this post?

Hello,

You pointed in the right direction,
Uncommenting ( removing # so it takes line it into account ) the line and changing it from suspend to ignore + reboot ( i do not know if you can reload the conf while running ) worked just fine.

so from
#HandleLidSwitch=suspend
to
HandleLidSwitch=ignore

Here is an extract of the conf ( did not change anything else and it’s fine for me )
"
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#HandleRebootKey=reboot
#HandleRebootKeyLongPress=poweroff
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore"

Thank you so much

P.S.
Ctrl+O Enter then Ctrl+X to save :slight_smile:

also sudo reboot if you want to do it from ssh
( it was hard for me at the start so i am including all the comments I would have needed :slight_smile: )

2 Likes