Screen does not lock when closing laptop lid

Hey all,
Whenever I close my lid my laptop suspends but when I turn it back on it doesn’t show me any login screen.
I have already tried to change the logind.conf HandleLidSwitch = lock but it didn’t work
System : endeavouros + hyprland
Hyprdots :
Any help is much appreciated!!

Wait… When you close your mouth, your laptop goes into sleep mode? What kind of tech is that? Also, why would you tear your laptop?

Jokes aside, have you read the wiki? →

Automatic screen locking and suspend

Create the following script:


swayidle -w timeout 300 ‘swaylock -f -c 000000’ \ timeout 600 ‘systemctl suspend’ \ before-sleep ‘swaylock -f -c 000000’ &


  • You can adjust the timeout periods by editing the numerical values, in seconds. 300 is 5 minutes, 600 is 10 minutes etc.
  • The script must be executable.

Then call it:


… exec-once = ~/.config/hypr/scripts/ …

EDIT: Just found this on the official Hyprland wiki →

The nvidia-open drivers are still not up to feature parity with the proprietary drivers. One issue is with suspend (e.g. closing the lid on your laptop).

Are you using Nvidia?

Yup, I have nvidia :upside_down_face:

What’s the ouput of:

pacman -Q | grep -A 2 -E "(linux|nvidia)"


Also how to change my screenshot manager from swappy to hyprshot

Check out either of the wikis from my first post for an answer to this question.

Note: When posting to the forum, screenshots should only be done if you can’t access your system and use copy and paste.

In the future, copy the text output from your terminal, paste in your reply, then select it again, and click the button highlighted below. This will format the text like it is in the terminal, and it also makes the text searchable and easier to read.


According to the GitHub link:, it looks like nvidia 555 fixes the issue for some users. However, this driver is currently in beta. In order to get that version, you’d have to replace your current driver.

Is this something you are willing to do?

Here is a link to the drivers you’d need.