# Prevent screen off due to idle when app is running

**URL:** <https://forum.endeavouros.com/t/prevent-screen-off-due-to-idle-when-app-is-running/20632>\
**Category:** Newbie\
**Created:** [December 3, 2021, 8:51am UTC](https://forum.endeavouros.com/t/prevent-screen-off-due-to-idle-when-app-is-running/20632 "2021-12-03T08:51:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingchad](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/k/e5b9ba/32.png) [@kingchad](https://forum.endeavouros.com/u/kingchad)\
**Post date:** [December 3, 2021, 8:51am UTC](https://forum.endeavouros.com/t/prevent-screen-off-due-to-idle-when-app-is-running/20632/1 "2021-12-03T08:51:33Z")

</div>

Hi,

I was wondering how I would go about preventing EndeavourOS from turning off the screen as long as a particular process is running.

The problem I’m trying to solve: Spotify is running, and I’m listening to it using my external monitor’s speakers. When the screen turns off after a while (idle), the monitor speakers turn off.

How would I go about preventing this?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![xircon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/xircon/32/9124_2.png) [@xircon](https://forum.endeavouros.com/u/xircon)\
**Post date:** [December 3, 2021, 10:45am UTC](https://forum.endeavouros.com/t/prevent-screen-off-due-to-idle-when-app-is-running/20632/2 "2021-12-03T10:45:50Z")

</div>

Which Desktop Environment? X or Wayland?

---

<div class="post-metadata">

**Author:** ![kingchad](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/k/e5b9ba/32.png) [@kingchad](https://forum.endeavouros.com/u/kingchad)\
**Post date:** [December 4, 2021, 3:39pm UTC](https://forum.endeavouros.com/t/prevent-screen-off-due-to-idle-when-app-is-running/20632/3 "2021-12-04T15:39:22Z")

</div>

I’m running i3wm, and X11 I guess

---

<div class="post-metadata">

**Author:** ![mbod](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/mbod/32/16833_2.png) [@mbod](https://forum.endeavouros.com/u/mbod)\
**Post date:** [December 4, 2021, 3:43pm UTC](https://forum.endeavouros.com/t/prevent-screen-off-due-to-idle-when-app-is-running/20632/4 "2021-12-04T15:43:03Z")

</div>

> [@kingchad](#):
>
> I was wondering how I would go about preventing EndeavourOS from turning off the screen as long as a particular process is running.

If you are using XFCE you could enable “Presentation Mode” with the xfce power manager plugin.

---

<div class="post-metadata">

**Author:** ![KDen](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/k/858c86/32.png) [@KDen](https://forum.endeavouros.com/u/KDen)\
**Post date:** [December 5, 2021, 4:33pm UTC](https://forum.endeavouros.com/t/prevent-screen-off-due-to-idle-when-app-is-running/20632/5 "2021-12-05T16:33:21Z")

</div>

Don’t know how i3wm handles it, but you could probably create a script using xset to toggle your power management/screen blanking for when you start and stop the app.  
[https://wiki.archlinux.org/title/Display\_Power\_Management\_Signaling](https://wiki.archlinux.org/title/Display_Power_Management_Signaling)

```auto
xset s off -dpms

```

---

<div class="post-metadata">

**Author:** ![anon63071375](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anon63071375](https://forum.endeavouros.com/u/anon63071375)\
**Post date:** [December 5, 2021, 6:05pm UTC](https://forum.endeavouros.com/t/prevent-screen-off-due-to-idle-when-app-is-running/20632/6 "2021-12-05T18:05:26Z")

</div>

Welcome!

> [@A friendly intro about our community rules and tips for the forum](https://forum.endeavouros.com/t/a-friendly-intro-about-our-community-rules-and-tips-for-the-forum/7131):
>
> We are so happy that you’ve decided to be a part of this friendly and helpful community, and frankly, we don’t care which flavour Arch you’re actually running on your machine (s), as long as you want to help your fellow community members and us, the devs, by giving advice or feedback, you are more than welcome to stay over here. This forum is a technical support forum in the first place, but there is also room for chit-chat over here. That’s why the forum has technical areas and l…

---

<div class="post-metadata">

**Author:** ![anon63071375](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anon63071375](https://forum.endeavouros.com/u/anon63071375)\
**Post date:** [December 5, 2021, 6:11pm UTC](https://forum.endeavouros.com/t/prevent-screen-off-due-to-idle-when-app-is-running/20632/7 "2021-12-05T18:11:39Z")

</div>

Your power settings in i3 will be in your config file. You can make adjustments there.

You may find this helpful.

[https://i3wm.org/docs/userguide.html](https://i3wm.org/docs/userguide.html)
