# Powermanagement - lock screen when system is going to sleep \[SOLVED\]

**URL:** https://forum.maboxlinux.org/t/powermanagement-lock-screen-when-system-is-going-to-sleep-solved/237
**Category:** Development & Suggestions
**Created:** [November 6, 2020, 1:19pm UTC](https://forum.maboxlinux.org/t/powermanagement-lock-screen-when-system-is-going-to-sleep-solved/237 "2020-11-06T13:19:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![bootz](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/bootz/32/694_2.png) [@bootz](https://forum.maboxlinux.org/u/bootz)
#### Post date: [November 6, 2020, 1:19pm UTC](https://forum.maboxlinux.org/t/powermanagement-lock-screen-when-system-is-going-to-sleep-solved/237/1 "2020-11-06T13:19:51Z")

</div>

Hi,

I have some issues with power management. The one I’m keen of having resolved is that when I suspend or hibernate the system will lock and ask for a password while resuming.  
I already set the option “lock screen when system is going to sleep” but that seem to do anything.  
Any suggestions where to look?

---

<div class="post-metadata">

### Author: ![napcok](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/napcok/32/410_2.png) [@napcok](https://forum.maboxlinux.org/u/napcok)
#### Post date: [November 6, 2020, 1:33pm UTC](https://forum.maboxlinux.org/t/powermanagement-lock-screen-when-system-is-going-to-sleep-solved/237/2 "2020-11-06T13:33:07Z")

</div>

Mabox uses betterlockscreen.  
I dig a little bit about this…  
Seems like you need to enable systemd service for that:

```auto
systemctl enable betterlockscreen@$USER

```

Found at: [GitHub - betterlockscreen/betterlockscreen: 🍀 sweet looking lockscreen for linux system](https://github.com/pavanjadhaw/betterlockscreen#lockscreen-when-suspendedsystemd-service)  
I tested it in VirtualBox and it worked 🙂

_Topic title edited for easier searching._

---

<div class="post-metadata">

### Author: ![bootz](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/bootz/32/694_2.png) [@bootz](https://forum.maboxlinux.org/u/bootz)
#### Post date: [November 6, 2020, 1:51pm UTC](https://forum.maboxlinux.org/t/powermanagement-lock-screen-when-system-is-going-to-sleep-solved/237/3 "2020-11-06T13:51:45Z")

</div>

Wow, you never fail to amaze me! Works like a charm, thanks!

---

<div class="post-metadata">

### Author: ![horvjoe](https://forum.maboxlinux.org/letter_avatar_proxy/v4/letter/h/8e8cbc/32.png) [@horvjoe](https://forum.maboxlinux.org/u/horvjoe)
#### Post date: [December 16, 2024, 2:50am UTC](https://forum.maboxlinux.org/t/powermanagement-lock-screen-when-system-is-going-to-sleep-solved/237/4 "2024-12-16T02:50:32Z")

</div>

Hi,  
Now Mobox uses i3lock. My problem is the same. I can lock my screen, but the lid of my comp doesnt. I got the message “None of the screen runs successfully…”

Thank you for your help. 🙂  
Best regards  
j

---

<div class="post-metadata">

### Author: ![bootz](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/bootz/32/694_2.png) [@bootz](https://forum.maboxlinux.org/u/bootz)
#### Post date: [January 26, 2025, 9:57pm UTC](https://forum.maboxlinux.org/t/powermanagement-lock-screen-when-system-is-going-to-sleep-solved/237/5 "2025-01-26T21:57:03Z")

</div>

Hi, not sure what to do here. What I did before was that I made a system hook on hibernate/suspend. I believe I wrote about that here somewhere in the forum

---

<div class="post-metadata">

### Author: ![horvjoe](https://forum.maboxlinux.org/letter_avatar_proxy/v4/letter/h/8e8cbc/32.png) [@horvjoe](https://forum.maboxlinux.org/u/horvjoe)
#### Post date: [January 27, 2025, 6:40pm UTC](https://forum.maboxlinux.org/t/powermanagement-lock-screen-when-system-is-going-to-sleep-solved/237/6 "2025-01-27T18:40:19Z")

</div>

Hi,  
I think You can close it - You can delete my post aswell  
Thank you  
🙂
