I have a mid-2012 13" Unibody MacBook Pro running Ubuntu Linux 21.10. I typically use this computer to play Minecraft. When I sign in, there are no performance problems, but it refuses to lock when I close the lid. I open the lid back up and, after a few seconds, it goes right back to where I left off. I opened up the settings app and went to Power. It did not show an option for suspending on lid close. The Gnome Tweaks app says that suspend on lid close is on. I Googled my problem and got a result saying to modify a configuration file. When I opened up the configuration file, the setting I was supposed to change was just how it was supposed to be:

```
#HandleLidSwitch=suspend

```

I have no idea what to do. If I switch to the KDE desktop, I don't have this problem, but Minecraft plays better on the default desktop. As I mentioned, I typically use this computer to play Minecraft, but I do have some sensitive files, not to mention all my passwords are saved. Is the problem that the login manager is that of KDE Plasma? I could really use some help here.

UPDATE: I found another page giving me instructions to create a completely new file. I am testing these instructions, and may not need this post anymore, but please still help if you know the answer.

UPDATE: The page didn't work.

UPDATE: I just discovered that my computer is suspending; it just doesn't lock. I am curious on why this is.