# Preventing Sleep Mode in a Display-Only Ignition Project

**URL:** <https://forum.inductiveautomation.com/t/preventing-sleep-mode-in-a-display-only-ignition-project/102862>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 25, 2025, 11:33pm UTC](https://forum.inductiveautomation.com/t/preventing-sleep-mode-in-a-display-only-ignition-project/102862 "2025-02-25T23:33:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwieringa70](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@jwieringa70](https://forum.inductiveautomation.com/u/jwieringa70)\
**Post date:** [February 25, 2025, 11:33pm UTC](https://forum.inductiveautomation.com/t/preventing-sleep-mode-in-a-display-only-ignition-project/102862/1 "2025-02-25T23:33:14Z")

</div>

A customer is running an Ignition Perspective project that includes a dashboard component displayed on a TV for real-time factory monitoring. The project is strictly for visual use, with no user interaction or input devices connected. However, company IT policies enforce a sleep mode on the local machine after 5 minutes of inactivity, which disrupts the display.

Is there a way within Ignition to programmatically trigger a system call that simulates keyboard or mouse activity to keep the machine awake? Ideally, this would be handled within Perspective.

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [February 25, 2025, 11:36pm UTC](https://forum.inductiveautomation.com/t/preventing-sleep-mode-in-a-display-only-ignition-project/102862/2 "2025-02-25T23:36:12Z")

</div>

Get a mouse jiggler dongle on Amazon. Plugs into a USB port and emulates a mouse with tiny movements that still allows you to use a mouse regularly, but keeps the PC awake.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 25, 2025, 11:36pm UTC](https://forum.inductiveautomation.com/t/preventing-sleep-mode-in-a-display-only-ignition-project/102862/3 "2025-02-25T23:36:24Z")

</div>

lol, that was going to be my suggestion too.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 25, 2025, 11:37pm UTC](https://forum.inductiveautomation.com/t/preventing-sleep-mode-in-a-display-only-ignition-project/102862/4 "2025-02-25T23:37:22Z")

</div>

Y'all are too nice. The right answer is to fix ridiculous IT policies. (Or avoid them...)

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [February 25, 2025, 11:38pm UTC](https://forum.inductiveautomation.com/t/preventing-sleep-mode-in-a-display-only-ignition-project/102862/5 "2025-02-25T23:38:37Z")

</div>

Relevant video?

[![](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/d/9d7bc5690aa543029e77cac4882758b7f3ce407b.jpeg ""Nobody's gonna know" "They're gonna know" "How are they gonna know?" Tiktok") ](https://www.youtube.com/watch?v=UODIbKWGADo)

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [February 25, 2025, 11:43pm UTC](https://forum.inductiveautomation.com/t/preventing-sleep-mode-in-a-display-only-ignition-project/102862/6 "2025-02-25T23:43:02Z")

</div>

That's the problem with some IT groups is they globally enforce policies that may be necessary for certain groups on everyone. But even if they didn't, they still get out of hand at times. My wife is an attorney and deals with big banks and credit card companies, and one law firm she worked for did a similar thing. She had to go through about 2-3 multifactor logins to remote into their systems from home, then if she left it idle to even just use the restroom, it would log her off and she'd have to do it all over again. Bought her a mouse jiggler and it solved her problem. Luckily IT didn't catch on even when she left it on all night a few times.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 26, 2025, 12:02am UTC](https://forum.inductiveautomation.com/t/preventing-sleep-mode-in-a-display-only-ignition-project/102862/7 "2025-02-26T00:02:21Z")

</div>

I think I used a Windows VB Script something like this in the past:

```python
' 'no-sleep.vbs (Note 1.)
set wsc = CreateObject("WScript.Shell")
Do
    WScript.Sleep(60 * 1000) ' Every minute.
    wsc.SendKeys("{F13}")
Loop

```

As far as I remember the F13 key exists in the OS but seldom, if ever, on the physical keyboard so it's very unlikely to cause a problem.

Save somewhere on the storage as `nosleep.vbs` and run it. If it works then you just need to see if you can have it autostart on boot up.

1 The double apostrophe on the first line is to prevent the markdown conversion treating the line as a VB string.

---

<div class="post-metadata">

**Author:** ![andrew.budaiev](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew.budaiev/32/72921_2.png) [@andrew.budaiev](https://forum.inductiveautomation.com/u/andrew.budaiev)\
**Post date:** [February 26, 2025, 9:04am UTC](https://forum.inductiveautomation.com/t/preventing-sleep-mode-in-a-display-only-ignition-project/102862/8 "2025-02-26T09:04:17Z")

</div>

You can try PowerToys Awake utility if you're on Windows.

> **[PowerToys Awake utility for Windows](https://learn.microsoft.com/en-us/windows/powertoys/awake)**
>
> A tool for a Windows computer to stay awake.
