armandopk wrote:I had the same problem, and the solution that worked was I apply this script Download here...Execute it, and reboot the system... In my case that was enough
PD: the script only add one line to the file /etc/hosts, I do not know because that speeds up LibreOffice and Firefox , but it really does.
That script seems to be for a different issue: slow startup time.
Here's the script:
#!/bin/bash # This script was made by Alonso Murillo to speedup LibreOffice startup, enjoy it. # Clear the console to see better messages clear # Make sure that the script is run as root if [[ $EUID -ne 0 ]]; then echo "This script must be run as root, run: sudo su" 2>&1 exit 1 fi # Load NewHostLine variable with the host name and IP address NewHostLine="127.0.0.1 $HOSTNAME localhost $HOSTNAME.(none)" # Check if the Tweak line have already being applied! var=$(grep -lir "$NewHostLine" /etc/hosts) # If not added to the hosts files if [ "$var" == "" ] ; then mv /etc/hosts /etc/hosts.bak sed "1i\\$NewHostLine" </etc/hosts.bak >/etc/hosts echo 'New host line added to hosts' fi
(I would not advise running a script like this unless you examine the code and fully understand it.)
I had the same problem, and the solution that worked was I apply this script Download here...Execute it, and reboot the system... In my case that was enough
PD: the script only add one line to the file /etc/hosts, I do not know because that speeds up LibreOffice and Firefox , but it really does.
That script seems to be for a different issue: slow startup time.
Here's the script:
#!/bin/bash
# This script was made by Alonso Murillo to speedup LibreOffice startup, enjoy it.
# Clear the console to see better messages
clear
# Make sure that the script is run as root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root, run: sudo su" 2>&1
exit 1
fi
# Load NewHostLine variable with the host name and IP address
NewHostLine="127.0.0.1 $HOSTNAME localhost $HOSTNAME.(none)"
# Check if the Tweak line have already being applied!
var=$(grep -lir "$NewHostLine" /etc/hosts)
# If not added to the hosts files
if [ "$var" == "" ] ; then
mv /etc/hosts /etc/hosts.bak
sed "1i\\$NewHostLine" </etc/hosts.bak >/etc/hosts
echo 'New host line added to hosts'
fi
(I would not advise running a script like this unless you examine the code and fully understand it.)
]]>PD: the script only add one line to the file /etc/hosts, I do not know because that speeds up LibreOffice and Firefox , but it really does.
]]>EDIT: I am unable to get the setting of
export SAL_USE_VCLPLUGIN=gtk3
to be exported. I have edited /etc/profile.d/libreoffice-fresh.[c]sh, logged out & back in and the env var isn't present. (I'm running Fresh.)
Just put the line inside ~/.profile and it will be automatically sourced on login.
]]>i3-wm here, LO without a theme parameter (all $SAL_USE_VCLPLUGIN are commented in /etc/profile.d/libreoffice-fresh.{csh,sh}) I have seen zaro performance issue up to LO v5.2.0.4 on my Core desktop and good ol' Atom (monocore).
Thanks for your reply. So it must be KDE (or Qt) specific...
in this thread https://bbs.archlinux.org/viewtopic.php?id=215662 . Did you happen to try out the Plasma user hack?
I read that thread.
Which Plasma user hack?
EDIT: Just tried with `SAL_USE_VCLPLUGIN={gtk,gen,gtk3}` with no perf. issue at all on Calc. But one X crash when launching back rapidly with 'gtk' after having runned it with 'gtk3' (I could not reproduce)
EDIT2:
EDIT: I am unable to get the setting of
export SAL_USE_VCLPLUGIN=gtk3
to be exported.
I just read other users with Plasma and LXQt solve their 'SAL_USE_VCLPLUGIN=VAR-not-being-taken-in-notice' issue in this thread https://bbs.archlinux.org/viewtopic.php?id=215662 . Did you happen to try out the Plasma user hack?
]]>libreoffice-fresh-5.1.4-2 - ok
libreoffice-fresh-5.2.0-1 - slow
libreoffice-still-5.0.6-3 - ok
libreoffice-still-5.1.5-1 - slow
Bit weird that there are seperate version number sequences between 'fresh' and 'still' to consider, and that makes me less confident in saying this but nevertheless, perhaps this started between 5.1.4 and 5.1.5? Here are the upstream changelogs - I briefly browsed the files with "5.1.5" in the name but nothing obvious jumped out at me so far.
]]>1. Editing /etc/profile.d/libreoffice-fresh.sh doesn't make any difference. Apparently something else is controlling the LO theme in my case. I'm running KDE with Breeze Dark theme and LO opens with the dark theme regardless of the changes I make to this file. (EDIT: I see the same behavior with the standard Breeze theme, so this is not exclusive to Breeze Dark.)
2. Launching LO from a terminal with the following command solves the performance issue for me:
SAL_USE_VCLPLUGIN=gtk3 libreoffice --calc
And LO opens with a light theme.
3. Launching LO from a terminal with the following command results in the horrible slow performance again:
SAL_USE_VCLPLUGIN=kde4 libreoffice --calc
LO opens with a light theme.
4. I also see the terrible slow performance when using
SAL_USE_VCLPLUGIN=gtk libreoffice --calc
LO opens with a light theme.
Here is the output I see in the terminal:
$ SAL_USE_VCLPLUGIN=gtk libreoffice --calc
Warning: failed to read path from javaldx
(soffice:28085): Gtk-WARNING **: Theme file for default has no name
(soffice:28085): Gtk-WARNING **: Theme file for default has no directories
Simple operations like scrolling a sheet (for example) causes Xorg to use 100% CPU and my system becomes unresponsive for extended periods of time.
Can anyone suggest a good comprehensive theme resource for fixing Plasma 5 support of GTK apps? It seems themes are screwed up in multiple ways. In addition to the current issue, which thanks to this thread I now see is theme-related, I have other issues such as some menu entries being unreadable (across many apps).
EDIT: I am unable to get the setting of
export SAL_USE_VCLPLUGIN=gtk3
to be exported. I have edited /etc/profile.d/libreoffice-fresh.[c]sh, logged out & back in and the env var isn't present. (I'm running Fresh.)
]]>But I do have the menu flickering described in the post above by FelledTreeNo9.
]]>Looking at my logs, those troubles were in response to an upgrade of libreoffice-still from 5.0.6-2 to 5.1.5-2, so the roots of this performance issue are probably also in that version range.
EDIT: If I turn off my desktop compositor then the menu headings don't flicker, but it is still slow. And, this is on all Libreoffice themes except for the GTK 3 one.
]]>I just switched from Still to Fresh myself in the hope that it would help but it made no difference.
I myself normally use Libreoffice with the GTK 2 look, by having this environment variable set:
SAL_USE_VCLPLUGIN=gtk
So I went through just now and tried all the other possible theme values (from here):
SAL_USE_VCLPLUGIN=kde4
SAL_USE_VCLPLUGIN=gen
SAL_USE_VCLPLUGIN=gtk3
With both 'kde4' and 'gen', the spreadsheet is also terribly slow (in each case I do see the expected UI changes, by the way, so I know that the program is heeding my settings). With 'gtk3', it runs at normal speed.
A few weeks ago, 'gtk3' became the default setting for this environment variable. I had been happily using Libreoffice (under XFCE) for ages with no particular environment variable set during which it looked like a GTK 2 program, then it suddenly changed to the super-bright, baby-scrollbar GTK 3 style, which I dislike. I used this thread to find out about the existence of the above environment variable and subsequently set it to 'gtk' on my system to get the old look back (it didn't exist in my environment, before).
I can't say for sure, but it's possible that this slowdown to the non-GTK 3 themes came in at the same time as the GTK 3 theme became default. When I fixed my issue a few weeks ago, I don't remember noticing any performance change then, but maybe I only tested it with Writer. And, I haven't done super-thorough testing yet today but it looks like this regression may affect Calc, specifically.
Confusingly, I found a couple of recent-ish threads in today's googling from Ubuntu users who experienced performance regressions caused by the update to GTK 3 and suggest they have have fixed it by using the environment variable to go back to GTK 2.
@ewaller: Just tried starting from a terminal and I get no messages at all during startup and as I scroll stutteringly around the spreadsheet. (I did then open a file selector and got a bunch of unrelated messages, so I know my terminal is functional).
]]>