Product Information:
- Which OS (Operating System)? - endeavourOS (Arch-based)
- Which release of your OS (Operating System / Windows 10, 11, Distribution of Linux)? - Rolling
- Which Framework laptop (11th, 12th or 13th generation Framework laptop) are you asking for support with? - Framework 16 DIY (Ryzen 7 7840HS)
- If this is a Linux issue, please use the Linux tag or at least put Linux in the title. - Done.
- If there is no information pertaining to your issue or question, please let us know here: Framework | Support Framework | Fix Consumer Electronics - N/A
tl;dr - Firefox is using significant amount of CPU (6-8% with the Firefox home tab, average 3Ghz CPU clock) when open on the current virtual desktop. Powertop to report 25-35w (sometimes more) and also corroborates the high CPU usage. When moving to another virtual desktop, CPU usage drops and powertop reports 10-15w power consumption (the 15w is the upper end, it seems to drop the longer I go without Firefox on the virtual desktop; it seems to be around 10-12w usually).
I received my Framework 16 laptop recently, and was a little disappointed with the battery life. I did a fresh install of endeavourOS on this machine.
With the Balanced power profile and some light web browsing, listening to music (with wired headphones only and Bluetooth disabled), and basic system configuration activity, I am getting at best about 4-5 hours, and the machine runs pretty hot (45-50c) with the fans regularly blowing out hot air.
I read a thread where many people reported on Arch Linux that at idle, their machine was using around 10-15w of power. I installed powertop and found that my machine is using 25-35w (sometimes more) with just powertop running with Firefox in the background. This is going by the “The battery reports a discharge rate of 29.6 W” message on powertop.
I decided to test this idling at a different virtual desktop, and found that on displays without Firefox open, the reported usage drops drastically down to - surprise - 10-15w! Using a few different System Monitor tools I can see that Firefox is using significant CPU time for being idle with the Firefox homepage tab (6-8% for just this, although never much more even with more tabs and pages opened). Powertop shows many of its processes. Simply having Firefox focused for a while and then checking Plasma System Monitor shows that it is usually using about 8% of my CPU. CPU clock is all over the place with Firefox opened, peaking at about 3.2Ghz and only going down so low as about 2.4Ghz.
With all of this, I believe Firefox to be using significant CPU time, impacting the power usage of this laptop. I have not tested the machine with Firefox closed to know for sure, but if powertop can be trusted to be reporting accurately / if I am reading it correctly, then the lower CPU usage+clock speed and thus power usage in powertop being cut by a third with Firefox not in use, I am assuming that Firefox is the culprit of my power drain.
I am not interested in using Chrome or a Chromium-based browser, as I intentionally switched to Firefox some years back on my PC and previous laptop which did not have power consumption issues. I have tried Firefox and Firefox Developer Edition (the latter is my preferred), but both seem to have this problem.
Is there a way I can check if specific extensions are causing power drain, or further diagnose the issue? Or perhaps others have hit this and there is a setting I can change in about:config
? Any troubleshooting advice would be appreciated!