Ask HN: New ThinkPad battery life on Ubuntu
Earlier this year I ordered a new x13 laptop (core i7, 16gb ram, 1tb ssd).
Vanilla Ubuntu desktop (22.04) installed.
When I'm doing normal work on battery mode, I get around 4 to 6 hours out of it.
However if I hop onto a Google Meet, the battery gets rapidly depleted (lasts around 1 hour 20 minutes before it runs out).
Is this a known issue with Google Meet?
I seem to get similar rapidly decreasing battery life when watching 1080p movies on it.
It's virtually impossible to use this laptop on the move when I have online meetings.
By comparison, my wife's 10 year old Macbook still lasts 6+ hours when on the go, and that's irrespective of if she's on meetings or watching movies.
Is my x13's battery performance in Ubuntu normal?
Any advice on how to improve it (use it less)?
I've found that lowering the screen brightness helps a bit. Closing all other windows / applications makes a marginal difference.
Thanks.
47 comments
[ 2.4 ms ] story [ 101 ms ] threadThat being said, I also use Linux on my Thinkpad anyways. There are decent enough workarounds that I can keep my system up for 5-6 hours when away from AC:
- Switching into battery-saver mode will keep clock speeds down, which generally reduces power usage (as long as you aren't slamming the cores)
- tlp can help if your hardware has power-draining characteristics (I don't use it, my defaults are good enough)
- Using an auto-nicer can keep your system feeling responsive in low-resource environments: https://github.com/pop-os/system76-scheduler
So... caveat emptor, YMMV. Linux is far from the most efficient OS away from the wall, but with a little bit of configuration I feel like my system does indeed work as a "normal laptop".
Even on my old T440s, for several years, I could eek out over 12 hours of work on a single charge.
I've spent hours trying every unholy combination of browser/version/Wayland/x11/flags/command line arguments and still can't hardware decode a YouTube video on a pretty standard Intel igpu laptop. Something that should really just work out of the box.
I'm hoping that the next generation of AMD/Intel efficiency-focused laptop CPUs improve this dramatically though because it feels ridiculous that my M1 Max MBP gets better life not in power save mode while doing "real work" than I could ever get out of the Thinkpad with a light workload in power save mode. If this turns out to be true I'll be trading the Thinkpad in for a newer model.
U can still run linux in the cloud, where it works well.
Is there a way to enable hardware accelerated codecs in Chrome + Meet?
(I have no idea what that means, I'm just quoting you)
I checked my Chrome settings and "Use hardware acceleration when available" is enabled for what that's worth.
"Linux runs the US nuclear submarine fleet!"
"Of course it can run there, they have unlimited power available."
Your experience sounds par for the course!
It's more possible than one might think assuming usage of Safari with an adblocker installed and few or no electron apps running in the background. MacBook battery life for light usage has been great for a long time; where it fell short prior to the ARM transition was for heavier use cases.
it's a mix of things.
from what i remember (when i used to use google meet for work):
- meet seems to work worse on firefox than on google chrome
- if you're doing any kind of video, you need to make sure hardware encoding is enabled and being used by firefox. otherwise all video stuff will be done on the cpu (slower and uses more power). look into the vaapi configuration and intel-gpu-tools
hardware-assisted encoding/decoding can do a lot of difference on cpu usage and battery life.
I think the main thing is that standalone browser vendors aren’t incentivized to care all that much about being efficient; for them acing speed benchmarks and gee-whiz bells and whistles seems to be what sells better. By contrast OS vendors want battery life figures to look great because that sells laptops. This is why pre-Chromium MS Edge bested Chrome and Firefox for battery life on Windows and why Safari does the same on macOS today.
I'd recommend installing windows 11 if battery life is important (not trolling - windows just works with this sort of thing, Linux never does in my experience). Use WSL or docker to run Linux if you need it for development
That's assuming their device is even using hardware accelerated video (many distros don't by default) but even with it enabled on my Framework 13 I still see the same behavior as OP. About 90minutes in Google meet, 4hrs in VSCode and more vanilla browsing. 6hrs easily in Windows.
YMMV but in my experience this comes down to the quality of components used in the laptop. I've never had trouble out of Intel networking (ethernet, wifi, and bluetooth) under Linux for example, but anything else is hit or miss. It's not a perfect rule but the nicer laptops (Thinkpad X1 series for example) tend to be the ones that get components with good Linux compatibility… midrange and below by contrast is a minefield.
https://ubuntu.com/certified/laptops
https://www.howtogeek.com/google-meet-is-finally-being-fixed...