Hi folks, sorry If if I’m in the wrong section, it’s just that maybe somebody here had similar kind of annoyance and already found the solution. An hour of gooleing around didn’t really yield any results.
I’m looking for an easy fix for slow firefox boot time. I would like to run some process in the background - similar to what chromium does. So that when I close the firefox, next time when I’m opening it again, FF started up almost immediately. When I have FF running and open another instance of it - it opens up almost immediately.
I’m not sure that it is manjaro related issue, but just in case anyone is wondering, I’m running KDE plasma.
I’m so sorry. I ran dmesg | less - the first pinned post in the “How to provide good information” thread. Wasn’t sure myself how exactly that info supposed to help. Anyway, here’s the output you have been looking for.
Thanks guys, I already tried that before creating this thread. Sorry for not mentioning it in OP. Same kind of issue. Well, not an issue really, more of an annoyance. Chromium runs something in the background and because of that opens almost immediately but Firefox does not have a daemon or anything, so first instance takes around 4-5 seconds but every other instance starts almost immediately, even faster than Chromium. So I was hoping, that maybe I can tweak FF’s about:config somehow or something quick like that.
I also cleared startup cache. Clean install of FF DE behaves in a same manner.
Chromium doesn’t run anything in the background by default unless you changed something. I think you’ll get more help by providing info about startup times for a new clean profile compared to chromium. Or what about installing nightly to see if it makes any difference?
What do you get for about:telemetry → Simple Measurements → firstPaint
Tried FF nightly - same behavior.
In chromium settings I have “Continue running background apps when Chromium is closed” ticked on - that’s why I thought that it’s running some daemon for faster start up.
not sure this still works but if you want to try.
open about:profiles
note root directory: your going to want to copy & paste the path later.
go into your autostart/startup app, depends on your desktop your using.
add:
firefox --headless -P /the/profile/path
for example i use sway, so mine looks like this to autostart apps.
Thanks a lot man, that’s a beautiful WM you have there.
I couldn’t find such folder in my DE (KDE), I think that I have to create .desktop file and place it here /usr/share/applications .
I tried running this command in terminal and got an error:
exec firefox --headless -P /home/god/.mozilla/firefox/g49zs465.default-release
*** You are running in headless mode.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
^C
Warning: Program ‘/bin/bash’ crashed.
But thanks for the effort, I really appreciate it.
Could be I screwed it up? Anyone know is there a different folder or maybe I have to create .desktop file from scratch by following KDE guide and add it through GUI “Autostart”?
okay, kde it is.
open your file manager(dolphin?), press ctrl+h to show hidden.
go .config-> autostart(create if not there)
right click-> new file-> rename-> firefox.desktop
open in your text editor
put:
[Desktop Entry]
Type=Application
Exec=firefox --headless -P /home/god/.mozilla/firefox/g49zs465.default-release
I look at the TO’s Lenovo T440s and mine, both under KDE.
T440s of the TO with i7 and 16GB RAM:
Speed: 3126 MHz
System temperature: cpu: 79.0
Fan speeds (RPM): cpu: 4172
My values T440s i5 with 16GB RAM when calling this forum with firefox:
Speed: 1198 MHz
System temperature: cpu: 47.0
Fan speeds (RPM): cpu: 0
Could this also indicate that there is another application running in the background outside of Firefox, which makes the CPU sweat and the fan roar?
not much you can do to start firefox faster.
it is what it is, i didn’t think it was that bad, 6 bounces of the firefox icon seems pretty decent to me on my rpi4 4gb.
i just loaded a fresh copy of kde on to a sd card, i have it on usb but it was getting to hot, i don’t have a fan on my rpi4.
anyways i’ll boot up kde in a bit & have a look around some more.
I think manfrago might be on the right track. Firstpaint should be less than a second with your specs. In sysguard, do you see any other processes with high CPU usage?