<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Recovered document is missing a couple of paragraphs after battery depleted."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=129799">129799</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Recovered document is missing a couple of paragraphs after battery depleted.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0.7.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>framework
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>me@tomaszubiri.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Yesterday I was writing with my unplugged laptop, my OS warned me that my
battery was running out, I figured this was a good moment to end the day, so I
kept writing until the battery ran out. I expected the document to be there the
next time I started the libreoffice application.

There were 2 problems:
1- The paragraph I wrote before the battery warning was missing.
2- The paragraph I wrote after the battery warning and before shutdown were
missing.

There's 2 suggerted fixes, the first one is general and works for all cases.
The second one is a backup in case there's problems with the first one (there
shouldn't be, it's a great suggestion)

1-The frequency between autosaves should be increased so that even partial
paragraphs are saved, there's a lot of room for improvement with 2 paragraphs
missing.
2- Libreoffice should listen to battery notifications and autosave work.
Additionally it may shutdown early since it can't ensure the work will be
saved. This seems more complex to implement and less impactful than the 1st
solution though.

Steps to Reproduce:
1.Start writing document between 1 and 2 paragraphs long in about 2 minutes of
time.
2. Simulate a shutdown with the kill command.
3. Start libreoffice again.


Actual Results:
An empty document should appear.

Expected Results:
Gmail should be looked at for inspiration here, the document should be
autosaved:
- When the user stops typing for 5 seconds.
- Or after 10 seconds of consecutive typing.

That's it, pretty simple.


Reproducible: Always


User Profile Reset: No



Additional Info:
Other applications to look at would be google docs, microsoft 365 and the
desktop version.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>