Cara membuat Laptop Ubuntu Server 24 tidak mati saat di tutup layarnya

Buka file

sudo nano /etc/systemd/logind.conf

Tambahkan ini di dalam file :

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
LidSwitchIgnoreInhibited=no

Simpan perubahan dan Restart

sudo systemctl restart systemd-logind

Alternatif

Matikan Fungsi Sleep

Edit
sudo nano /etc/systemd/sleep.conf
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no