this post was submitted on 16 Aug 2025
16 points (100.0% liked)

Linux

58191 readers
687 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

When using XFCE in conjunction with light-locker (the default lock screen utility), it normally takes some seconds to resume from suspend as it loads up the light-locker prompt. However, I've found that if I let the prompt load up, but then close the lid without entering the password and let it enter suspend again, light-locker is almost instantly ready the next time I resume. Is there any way to do this automate this behavior when I close the lid of my laptop?

you are viewing a single comment's thread
view the rest of the comments
[–] Ephera@lemmy.ml 3 points 4 weeks ago

Hmm, you should be able to set a custom command for it to run before suspend like this: https://unix.stackexchange.com/a/526290

And apparently, you can tell light-locker to lock immediately with light-locker-command --lock: https://manpages.debian.org/buster/light-locker/light-locker-command.1.en.html

I guess, you might want to try out, if it works at all, before you start editing files. If it works with this, then I'd expect it work when you put it in into the file, too:

light-locker-command --lock && systemctl suspend