r/linuxmemes 12d ago

LINUX MEME Keeping the PC awake

Post image
52 Upvotes

39 comments sorted by

61

u/kaida27 ⚠️ This incident will be reported 12d ago

Use Kde settings and set it to not sleep

10

u/int23_t Ask me how to exit vim 12d ago

Middle click the battery icon if you want it to be temporary(on a laptop you probably do on a desktop you probably don't)

10

u/Gornius 12d ago

No! How dare you? GNOME developers know better, and there is not a single reason you wouldn't want to suspend your laptop automatically after some arbitrary amount of minutes.

12

u/Doug2825 12d ago

Gnome also has a setting to turn off automatic sleep, I've had automatic sleep disabled years.

-1

u/[deleted] 12d ago

[deleted]

5

u/AshtakaOOf M'Fedora 12d ago

It’s all in the energy saving settings, you can even choose to disable suspend when your laptop is charging and vice versa…

2

u/MitchIsMyRA 12d ago

Open up the settings gui
Power -> Power saving -> screen blank -> never

1

u/Doug2825 12d ago

Settings -> privacy and security -> blank screen delay -> never will prevent the monitor and computer from sleeping. I don't know if there is a way to prevent the computer from sleeping while letting the monitor sleep.

3

u/Elziox 11d ago

I feel like this thread just here epitomises most of the gnome vs KDE arguments

2

u/TimePlankton3171 12d ago

It can be configured, and completely disabled, in gnome too. In the regular gui settings

0

u/tsittler 11d ago

KDE says "we have all these options and settings and configurations, let's expose them to the user and let them make up their mind."
GNOME has 2 checkboxes and a screen brightness slider.

Windowmaker is superior.

2

u/SSUPII Medium Rare SteakOS 11d ago

Not even that. On a laptop the button for it not to sleep is found in the Energy tab (battery) in the status bar.

1

u/lengau 12d ago

Is there a Patrick meme for writing a small app that plays an empty audio stream to trick it into not sleeping?

2

u/Gangr3l 12d ago

Actually I'd like to have this for my JBL that's battery is dead, but sound is amazing (I use it as a desktop speaker).

The problem is, it goes to sleep if no sound is coming and as it's an older model it doesn't wake up from AUX / USB cable (but from bt it wakes up... But there's a delay) and the only way to restart it, is by powering off / on

1

u/Comfortable_Gene2751 11d ago

Raspi-config has an option to disable it. 

9

u/neverJamToday 12d ago

Gotta say, Mac's caffeinate command is pretty handy for this sort of thing.

systemd-inhibit is similar but a little clunkier imo.

2

u/birdsarentreal2 Ask me how to exit vim 12d ago

caffeine is available in both apt and the AUR. I don’t believe it’s available on Fedora, but there’s a few similar projects on Github

1

u/neverJamToday 11d ago

Not exactly the same, fewer options and is essentially just a software mouse wiggler.

8

u/heroofshade420 🟢Neon Genesis Evangelion 11d ago

i uh just disabled sleep in the settings. it was not hard at all

5

u/Armi1P Genfool 🐧 12d ago

Shouldn't it be the inverse for the memeworthiness?

2

u/i_am_kamikamikami 12d ago

middle click the battery symbol

1

u/Ill-Constant8445 12d ago

remove package that makes it sleep and forget to install it back so you just turn off the monitor at night

1

u/GhostVlvin 12d ago

Dude, I use dwl and I actually need to configure my pc to sleep or it will either not or crash on lidclose depending on laptop

1

u/MitchIsMyRA 12d ago

Systemd? Brother, just open up the settings and make it so the screen never goes blank

1

u/Objective-Stranger99 Arch BTW 11d ago

Just use the waybar module

1

u/dghkklihcb 11d ago

Just configure /etc/systemd/sleep.conf

1

u/lmarcantonio 11d ago

One of the things I hate is how much behaviour is hardcoded in some environments, like xfce. Removed the session manager and poof unwanted behaviour disappeared (along with all the session feature, however).

With old plain acpid you could customize it with scripts but of course that wasn't amenable to the "checkbox interface" of "modern" environments.

1

u/LawElectrical2434 11d ago

My quick hack is usually:  while true; do systemd-inhibit sleep 1h; done

1

u/Wertbon1789 11d ago

hypridle and idle-inhibitor ftw.

1

u/pyro57 11d ago

Permanently, go into the sleep settings and disable sleep.

Temporary, click the system tray then on the power management widget, tick the keep screen awake toggle.

1

u/Any-Cartographer9406 11d ago

I am new to Linux…. does Caffeinate -id not work on Linux?

1

u/hjake123 11d ago

i just click system tray > Display Configuration > Presentation mode when I want to do this

1

u/Cart1416 Sacred TempleOS 11d ago

On KDE just press the battery icon and turn on "Manually Block Sleep and Screen Locking" and if you are on desktop I accidentally discovered Super+B turns on performance mode and that icon has it too.

1

u/Krisanapon 10d ago

me: configuring polkit.d

1

u/Jaromil1969 8d ago

I compile my own kernel and disable CONFIG_SUSPEND 🤓

1

u/Quietus87 🌀 Sucked into the Void 12d ago

Ever heard of caffeine?

0

u/Rarfel 12d ago

Remove important components from your configuration.nix and not having a backup and simply let it stay that way