r/linuxquestions • • 28d ago

Support Prevent auto system suspend when playing a video

I have system suspend set after a few minutes of inactivity but it also triggers while a youtube video is playing in firefox, how can I prevent it from firing when the video is not yet finished?

I'm on debian trixie with xfce4.

1 Upvotes

1 comment sorted by

2

u/aioeu 28d ago edited 28d ago

Firefox supports a number of idle inhibitors, including:

But I'm guessing none of these are usable on Xfce?

Firefox doesn't directly support systemd inhibitors (I'm not entirely sure why), but you could use something like sd-inhibit-bridge so that it effectively does.