# Disable the inactivity timer

**URL:** <https://forum.collaboraonline.com/t/disable-the-inactivity-timer/100>\
**Category:** User Support\
**Created:** [December 9, 2020, 6:04pm UTC](https://forum.collaboraonline.com/t/disable-the-inactivity-timer/100 "2020-12-09T18:04:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![compsearcy](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@compsearcy](https://forum.collaboraonline.com/u/compsearcy)\
**Post date:** [December 9, 2020, 6:04pm UTC](https://forum.collaboraonline.com/t/disable-the-inactivity-timer/100/1 "2020-12-09T18:04:02Z")

</div>

Is there a way to disable the inactivity timer?

We are looking at using a TV for a “heads-up” display to always display a spreadsheet in collabora, but we need to disable the timer so it always shows active changes.

I found in another forum that this might lie in the map.js but I was unable to find it there.

Can anyone point me in the right direction? thanks

---

<div class="post-metadata">

**Author:** ![pedro.silva](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/pedro.silva/32/4_2.png) [@pedro.silva](https://forum.collaboraonline.com/u/pedro.silva)\
**Post date:** [December 10, 2020, 8:51am UTC](https://forum.collaboraonline.com/t/disable-the-inactivity-timer/100/2 "2020-12-10T08:51:06Z")

</div>

oh that’s sounds cool : )

so as far as I know the easiest way would be to simply edit `loolwsd.xml`. In the section **per\_view** you can modify the timeout for: out of focus and idle status.

```xml
[...]
    <per_view desc="View-specific settings.">
        <out_of_focus_timeout_secs desc="The maximum number of seconds before dimming and stopping updates when the browser tab is no longer in focus. Defaults to 120 seconds." type="uint" default="120">120</out_of_focus_timeout_secs>
        <idle_timeout_secs desc="The maximum number of seconds before dimming and stopping updates when the user is no longer active (even if the browser is in focus). Defaults to 15 minutes." type="uint" default="900">900</idle_timeout_secs>
    </per_view>
[...]

```

---

<div class="post-metadata">

**Author:** ![compsearcy](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@compsearcy](https://forum.collaboraonline.com/u/compsearcy)\
**Post date:** [December 10, 2020, 4:41pm UTC](https://forum.collaboraonline.com/t/disable-the-inactivity-timer/100/3 "2020-12-10T16:41:25Z")

</div>

> [@pedro.silva](#):
>
> ```auto
> 
> ```

Awesome, Thank you!

I wonder if there is a maximum value there, or if I can just set it to something really high.

---

<div class="post-metadata">

**Author:** ![bearon](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@bearon](https://forum.collaboraonline.com/u/bearon)\
**Post date:** [December 11, 2020, 7:54am UTC](https://forum.collaboraonline.com/t/disable-the-inactivity-timer/100/4 "2020-12-11T07:54:52Z")

</div>

The mobile app uses 1000000.

---

<div class="post-metadata">

**Author:** ![compsearcy](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@compsearcy](https://forum.collaboraonline.com/u/compsearcy)\
**Post date:** [January 14, 2021, 8:47pm UTC](https://forum.collaboraonline.com/t/disable-the-inactivity-timer/100/5 "2021-01-14T20:47:00Z")

</div>

I am just now getting back around to giving this a try. Any idea where I would find that file in my Nextcloud VM?

---

<div class="post-metadata">

**Author:** ![compsearcy](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@compsearcy](https://forum.collaboraonline.com/u/compsearcy)\
**Post date:** [February 4, 2021, 12:26am UTC](https://forum.collaboraonline.com/t/disable-the-inactivity-timer/100/6 "2021-02-04T00:26:50Z")

</div>

So just an update here, I don’t know if Nextcloud uses some sort of different implementation of Collabora but I have tried the install via the pre-compiled VM, installing via snap on Ubuntu Server 20.04 and manually installing on Ubuntu Server 20.04.

The result is always the same, no loolwsd.xml to be found anywhere…

---

<div class="post-metadata">

**Author:** ![bearon](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@bearon](https://forum.collaboraonline.com/u/bearon)\
**Post date:** [February 11, 2021, 9:47pm UTC](https://forum.collaboraonline.com/t/disable-the-inactivity-timer/100/7 "2021-02-11T21:47:28Z")

</div>

Are you using the Built-in CODE server? That isn’t meant to be configured this way.  
If you install CODE via the packages, or using a Docker container, then you can find /etc/loolwsd/loolwsd.xml either in your system, or inside the container.

---

<div class="post-metadata">

**Author:** ![compsearcy](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@compsearcy](https://forum.collaboraonline.com/u/compsearcy)\
**Post date:** [February 11, 2021, 10:01pm UTC](https://forum.collaboraonline.com/t/disable-the-inactivity-timer/100/8 "2021-02-11T22:01:43Z")

</div>

I actually meant to come back here and update this…

I was finally able to determine that Nextcloud uses a read-only Linux Appimage to install the built-in CODE server.

Once I installed CODE manually I was able to edit the loolwsd.xml, but there actually is 3 places in the file that the timeout need be set… Next time I am logged into that server I will take a look at it in case anyone runs into this in the future.

---

<div class="post-metadata">

**Author:** ![bearon](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@bearon](https://forum.collaboraonline.com/u/bearon)\
**Post date:** [February 12, 2021, 5:11am UTC](https://forum.collaboraonline.com/t/disable-the-inactivity-timer/100/9 "2021-02-12T05:11:54Z")

</div>

Yes, the two `per_view` timeouts mentioned by @pedro.silva above, plus `<idle_timeout_secs>` under `<per_document>`, which terminates the session after a fairly long inactivity period (1 hour by default).
