this post was submitted on 06 Aug 2025
843 points (99.5% liked)
Programmer Humor
25671 readers
1956 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Disable suspend when the laptop lid is closed:
If you are in a TTY, you can blank the screen before closing the lid to prevent burn-in. After running this, come back later and press a key to turn the screen on again.
alias blankscreen='setterm --blank=force; read ans; setterm --blank=poke'
but my keyboard is a heatsink...
put it in /etc/systemd/logind.conf.d/nosleep.conf so that updates can't ever undo this
Thanks, but honestly, a simple cat would be more helpful than a sed line. I mean, who reads sed lines?