JavaScript eats battery and Safari is the only of the three major macOS browsers that takes power use seriously. If you live in webapps and Electron you’re gonna have battery trouble no matter what.
That said, my linux laptops, where I use the same apps and where I have no safari, have far better battery life. So it is not only that.
There is Linux and there is Linux. Do you run KDE? It's basically the heaviest DE around, so it's bound to impact power-management.
https://www.forbes.com/sites/jasonevangelho/2019/10/23/bold-...
GNOME has really progressed since the 18.04 LTS days, but I am still on the edge of going back to it (currently I use XFCE).
JavaScript everywhere since version 3 and adamant refusal to support shaded windows is what puts me off. If I wanted that I would be using ChromeOS.
Watching powertop, the biggest consumers for my battery after the screen are:
- the keyboard backlight (1W)
- bluetooth left on
- pulseaudio needing a restart (fuck pulseaudio's session management)
- iwlwifi power saving mode being misconfigured
- Skype
If any of these situations are happening then I only get 4 to 6 hours. Short bursts of CPU/GPU activity like desktop transitions don't last long enough to make a significant impact.
Other than Skype being poorly written, this stuff could all be automatically detected by a daemon or by the software itself.