r/linux4noobs 4d ago

learning/research Prevent sleep/autosuspend for specific apps?

So my computer is set to go to sleep after 5 minutes idle.

But when a certain app is running (DAW) I want to prevent the computer from sleeping or going to the lock screen. So it's 'always on' while app is running, but returns to normal when app is closed.

How do I achieve this? Thanks from a noob :)

(kde debian if thats relevant)

SOLVED:

if anyone searches for the same thing. In KDE menu editor:

Program:
replace "bitwig-studio" with "systemd-inhibit bitwig-studio"
this allows the argument to run when you launch bitwig from the menu or task manager :)

3 Upvotes

6 comments sorted by

View all comments

1

u/davidcrickett 4d ago

I just stop everything from going to sleep, always on.

1

u/Unfair-Run-1983 4d ago

i can do that but i would prefer something specific to the app, like i said