Bug 128115 - Writer less efficient with battery power than gedit
Summary: Writer less efficient with battery power than gedit
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.7.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-13 01:15 UTC by Nick Levinson
Modified: 2019-11-21 12:58 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Levinson 2019-10-13 01:15:23 UTC
Description:
Using Writer and gedit for the same amount of time wears battery power out faster in Writer's case. When people need to use LO for long stretches on DC, that can become a problem.

Steps to Reproduce:
1. With a laptop, note what you plug into it, including indirectly. Assume all of it might consume power. (I usually plug in nothing but power and a flash thumb stick.)
2. Set your laptop to display how much battery capacity is left. These steps assume you'll know the percentage remaining.
3. Check that the battery is fully charged.
4. Use the laptop on battery (DC) power only. Disconnect the AC.
5. Use LO Writer continuously for a while. How long depends on battery capacity.
6. When you've used a substantial portion of battery capacity, note what percentage of the charge remains.
7. Recharge, such as by plugging into the AC, until full. During recharging, you can use any software or none and you can connect anything or nothing, as you wish.
8. Exit LibreOffice.
9. Plug into the laptop only what was plugged in for step 1 and plug nothing else into it, even indirectly.
10. Disconnect the AC and use your laptop, with the same things plugged in as in step 1.
11. Use gedit (this likely works with other text editors, too). Use gedit a lot. Don't use other apps.
12. Use the laptop until it has cosumed exactly as much battery power as it did during step 5.
13. Compare the time for step 5 to the time for step 12.

Actual Results:
Elapsed time until the battery had run to a given percentage of capacity was 25-40% shorter when the time was used up with LO Writer rather than with gedit.

Expected Results:
The elapsed time should have been only slightly different, if different at all.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
LibreOffice Writer also appears to consume laptop battery power faster than does Document Viewer, which I use for PDFs.

I don't know why there's any difference at all. I don't have a printer connected and I don't use my USB ports differently for LO. I think hard drives (where both apps are installed on my machine) spin continuously absent sleep or hibernation, so the HDD's behavior shouldn't matter, but perhaps read access is far more frequent for swapping code components in and out of memory, and gedit or Document Viewer, which have fewer settings, may not be swapping after an initial load. I do use Writer to generate a few PDFs (gedit doesn't do that) but making them doesn't take long.

I don't know if the effect is the same with other LibreOffice apps. I don't know how other word processors, text editors, PDF viewers, and other kinds of apps compare. I don't know if Writer performs differently on other platforms (mine is Fedora 30 Linux, kept evergreen). My laptop has 3.8 GiB of RAM; otherwise, I don't think the hardware platform should affect the savings for an app. I generally exit apps I don't need at the moment, including LO.

If the consumption is due to frequent swapping, perhaps LO should sense how much RAM is available and swap larger or more components at a time, reducing swap operations and reducing the need to read from the HDD.

When LibreOffice can outperform other word processors (assuming doing so gets promotion by the organization offering LO), it could gain market share, or the percentage of the installed base. Being able to work longer when not plugged into AC power is an advantage.

I am not prepared to test the latest version, meant for early adopters. This version is part of the distro I use, kept evergreen, and is still offered at the LO website.
Comment 1 Jean-Baptiste Faure 2019-10-20 21:05:21 UTC
Why do you think that the elapsed time should have been only slightly different, if different at all? LibreOffice does a lot more work than Gedit: recomputing the layout, wysiwyg, auto-correct, autosave, spellcheck, automatic formatting using styles and many other things that Gedit does not.

For me there is no bug there.

Best regards. JBF
Comment 2 Nick Levinson 2019-10-21 23:16:10 UTC
I agree that there are many differences in the feature set, but surely we can see that faster power depletion is a disadvantage and the feature set does not itself imply greater power consumption, which is why I hypothesized that it had to do with segment swaps. My hypothesis may well be wrong, but then the battery wearing out sooner should have some other explanation; features per se for users are not that.

I've changed this from a bug report to an enhancement request: that power consumption be reduced.
Comment 3 Xisco Faulí 2019-11-21 12:58:46 UTC
Even if you only use LibreOffice, the battery consumption will be different depends on what you're doing, the document you are working on, etc etc.
Of course, if you compare LibreOffice and Gerrit, Gerrit uses less resources. what would happen if you compare Eclipse and LibreOffice?
Anyway, The LibreOffice development team is constantly fixing performance issues, removing old workarounds, getting rid of bottlenecks, which defenitely improve the situation here.
Closing as RESOLVED NOTABUG since the scope of this enhancement is too generic.