this post was submitted on 14 Aug 2023
67 points (85.3% liked)

Linux

48209 readers
1445 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I will need to get a laptop in the foreseeable future, and I really want to stick to Linux. However, I may need to be out-of-home for 12+ hours straight in a day. After some research, it seems people are generally not that impressed with battery life on Linux?

The laptop does not need to do anything heavy duty, as I will remote back into my already very beefy desktop back home.

I guess a common solution to this light use case is M2 MacBook if one wants to completely throw battery concern out of the window. Well... let's just say it's a love-hate relationship.

top 50 comments
sorted by: hot top controversial new old
[–] greyscale@lemmy.sdf.org 41 points 1 year ago (2 children)

My thinkpads have always gone further on ubuntu than on windaz.

[–] ebits21@lemmy.ca 6 points 1 year ago (2 children)

Yeah my x1 carbon thinkpad has great battery life with Linux.

I’ll use power saver in fedora if needed.

[–] wheels@lemmy.world 5 points 1 year ago

My x1 carbon, with tlp and kubuntu, idling with screen on estimates 20 hours battery life. Haven't had the patience to test it yet.

load more comments (1 replies)
[–] OmltCat@lemmy.world 4 points 1 year ago (3 children)

Some addition power management tools I suppose?

[–] greyscale@lemmy.sdf.org 10 points 1 year ago

vanilla with no configuration.

[–] supert@lemmy.sdfeu.org 4 points 1 year ago

tlp is enough

load more comments (1 replies)
[–] scottywh@lemmy.world 31 points 1 year ago (2 children)

Battery life on laptops is always over exaggerated regardless what OS you run.

12+ hours of actual battery life during use just doesn't happen.

[–] Still@programming.dev 14 points 1 year ago

yeah I put Linux on my 2019 XPS 15 back in 2019 and went from 4 hours of usable productivity time to 4 hours of usable productivity time

battery degradation is a much bigger issue than Linux vs windows

load more comments (1 replies)
[–] dosse91@lemmy.trippy.pizza 16 points 1 year ago* (last edited 1 year ago)

It depends on the distro and how you configure it.

For distros that just work out of the box like ubuntu or manjaro it should be about the same as windows unless there's something weird in your laptop, but in general there are 3 really useful tools that I recommend you check out are:

  • TLPUI: a user interface for TLP, a power management tool that's used in most distros. With this you can configure your min/max clock speeds for your CPU and GPU when on battery vs plugged in, CPU governor, display brightness, automatic poweroff of drives and USB devices, and many other things
  • throttled (https://github.com/erpalma/throttled): originally created to workaround a BIOS bug on some thinkpads, this can now set things like turbo duration, power limits and undervolting, all based on whether you're on battery or plugged in
  • LACT: if you have an AMD GPU, you can use this to undervolt it or to set a better power limit

Setting these up properly on my thinkpad t480 with manjaro gave it a good 50-60% of extra battery life for what I use it for (I'm a teacher so mostly presentations and various IDEs). You should check them out.

[–] wim@lemmy.sdf.org 15 points 1 year ago

It depends. If you get a fairly standard laptop from a brand that has some Linux awareness (Lenovo, Dell, Framework,...) you should be alright out of the box.

Gaming laptops generally are a bit worse since GPU switching is not as well integrated. I managed to get mine to parity but with a lot of tweaking. Devices with only integrated graphics tend to be fine out of the box.

[–] wildbus8979@sh.itjust.works 12 points 1 year ago* (last edited 1 year ago) (2 children)

It's very dependent on the laptop. Some ThinkPad get better battery life than on Linux because a lot of kernel devs use them.

[–] cygnus@lemmy.ca 4 points 1 year ago

My X1 Carbon gets about 15% better battery life with PopOS vs. Windows.

[–] OmltCat@lemmy.world 2 points 1 year ago (1 children)

That’s new info for me thanks. Never knew thinkpad can excel in this department.

[–] const_void@lemmy.ml 2 points 1 year ago

It depends on the ThinkPad. They're not all created equally and the quality between models varies wildly.

[–] merthyr1831@lemmy.world 10 points 1 year ago

Gaming laptops will have marginally worse battery life when properly configured. But in general you'll get better battery life on Linux in my experience.

[–] rotopenguin@infosec.pub 9 points 1 year ago* (last edited 1 year ago)

I just spent two weeks trying to convince a new intel Zenbook laptop to have decent battery life. It would eat the battery both awake and asleep. Went through the Arch wiki on suspend issues. Discovered that the bios has a broken vestigial S3 suspend (which more and more vendors are shipping); the modern suspend mode is now S0ix (s2idle). Found that my system was only getting into C2 and C3 out of C10 levels of S0ix power-saving-state nirvana.

Somehow, I lucked upon finding that the Intel Rapid Storage/VMD setting in bios was what kept the processor from ever going to lower power states. Once I disabled that, nearly everything else fell into place. The cpu ran cooler at normal use, battery lasted longer, and power burn during sleep went from 4% an hour to negligible.

This was fun. Not one tool successfully pointed me at the real problem. It took one random dell support post to set me on the right path. https://bugzilla.kernel.org/show_bug.cgi?id=211879. I spent two weeks chasing the same problem that somebody else had in 2021. Linux doesn't have a [WARNING] for detecting a damned VMD, and it doesn't have a means to tell the VMD to fuck off? The stupid hardware doesn't have the sense to not fuck up the processor if it isn't attached to its Windows-only driver? I don't understand how anybody has been able to use an intel for the last couple of generations if this is how they work.

In conclusion - battery life is actually pretty great now. But it was a bloody nightmare to get here.

[–] TCB13@lemmy.world 8 points 1 year ago* (last edited 1 year ago)

HP Elitebook 840 G5 here, doubled battery time after switching from Windows 10 to Debian 12.

[–] brihuang95@sopuli.xyz 8 points 1 year ago* (last edited 1 year ago)

I've installed a few distros on my gaming laptop for fun and something I've noticed was that your desktop environment may have a large impact on your battery life.

With Mint, my battery would die in like 2.5 hours. After installing Arch with the Budgie desktop environment, I've noticed that my battery life was twice as long as when it was running on Mint.

[–] nothacking@discuss.tchncs.de 8 points 1 year ago

I actually get 2x the battery life of windows on my ThinkPad. If you run a distro like Arch or Gentoo you will have to configure some things to get good battery life, but with Mint or something it just works™. If you want a whole lot of battery life you could get a laptop that has a replaceable battery, like the T480 (still plenty powerful for Linux), then your max life is limited only by how many extra batteries you are willing to carry.

[–] pnutzh4x0r@lemmy.ndlug.org 8 points 1 year ago

It really depends on the hardware and your use cases (ie. workflow).

I have a laptop (Dell Latitude 7420) with an integrated GPU (all Intel Tiger Lake), and I regularly get between 8 - 10 hours of battery life with just using terminals and web browsers (Firefox).

On GNOME, you will want to take advantage of the power profiles. With Pop, you can take advantage of their power management system. Otherwise, you can use something like TLP to minimize your power usage.

Moreover, if you are watching videos, then you want to make sure it is GPU accelerated and using the builtin hardware codecs rather than relying on the CPU to do the decoding.

I think that 12 hours on Linux on Intel/AMD is a stretch... but 8-10 hours is achievable and realistic (from my experience anyway).

[–] Spectacle8011@lemmy.comfysnug.space 7 points 1 year ago* (last edited 1 year ago) (8 children)

Pretty bad. My gaming laptop gets 2 hours on Arch and 4 on Windows. My work laptop gets 4 hours on Arch compared to 6 hours on Windows. My 2-in-1 laptop from 8 years ago gets about the same, if not more. My 2009 laptop gets like 8 hours, and probably more than Windows would.

Edit: I use auto-cpufreq, but this doesn't help much. Power-profiles helps a little.

load more comments (8 replies)
[–] undrwater@lemmy.world 7 points 1 year ago

Not bad at all. With some tweaking, it is commensurate with other operating systems.

[–] HarriPotero@lemmy.world 6 points 1 year ago

My T480 has a very worn internal battery, but still does 8-10 hours. Thanks to the powerbridge I can hotswap a second battery to run for another 7 hours.

[–] flashgnash@lemm.ee 6 points 1 year ago

On my ThinkPad I get far more battery life than I ever did on windows

[–] offspec@lemmy.nicknakin.com 6 points 1 year ago (1 children)

I've got a Surface Laptop 3 running Fedora that is always dead after an extended sleep. Actual working battery life is not bad though.

[–] Veraxis@lemmy.world 5 points 1 year ago (6 children)

It depends on a few factors. Stock laptop experience with no power management software will likely result in poor battery life. You will need some kind of power management like TLP, auto-cpufreq, or powertop to handle your laptop's power management settings.

Second is the entire issue of dedicated GPUs and hybrid graphics in laptops, which can be a real issue for Linux laptops. In my own laptop with a dGPU, I am reasonably certain that the dGPU simply never turns off. I have yet to figure out a working solution for this, and so my battery life seems to be consistently worse than the Windows install dual-booted with it on the same machine.

load more comments (6 replies)
[–] mrvictory1@lemmy.world 5 points 1 year ago (1 children)

I doubt you can get 12h on an x86_64 computer, regardless of OS. With tweaks Linux can match Windows battery life but if you really need 12h get that M2 MacBook.

[–] provisional@lemmy.sdf.org 3 points 1 year ago (1 children)

Got it. Get a MacBook and install Asahi Linux on it. 😅

load more comments (1 replies)
[–] amd@artemis.camp 5 points 1 year ago

My exceedingly old X230 with an inefficient sandy bridge chip gets 10 hours with normal light use. If I start using CAD or something more intensive it drops a bit, but it’s still likely there’s a machine that can do a 10 hour workday with your workload.

[–] morsebipbip@lemm.ee 5 points 1 year ago (5 children)

installed Linux Mint on various apple macbooks i got second hand and the battery life is abysmal.

load more comments (5 replies)
[–] ShittyBeatlesFCPres@lemmy.world 4 points 1 year ago (2 children)

I’ve never really noticed a huge difference with the Dell XPS models we use at my work. There’s a developer edition of that laptop that ships with Ubuntu, though, so they might have more optimizations than some manufacturers.

I think most people would recommend getting a laptop that has manufacturer support for Linux, which includes dedicated Linux laptop companies (like System76) but also certain Dell and Lenovo models. (There’s several others too. Those are just the ones I know off the top of my head.)

load more comments (2 replies)
[–] gabriele97@lemmy.g97.top 4 points 1 year ago (1 children)

Considering my gaming laptop, it does 1h on Linux and, if I recall correctly, 2hrs on Windows. You can pick a laptop with a good Linux support so that you can have a good battery life

[–] Gork@lemm.ee 7 points 1 year ago

Yeah gaming laptops are notoriously bad at battery life, regardless of the OS.

[–] rodbiren@midwest.social 4 points 1 year ago

Using a 2022 Lenovo Legion 5i with 3070 and the batter life is regrettably similar. I desperately wish my Linux boot could dunk on the battery life of windows but it is extremely similar, which I guess I should take as a win.

Running Mint with 6.1 kernel, but have tried a slew of different builds and they are all within hitting distance. Again. I should be happy but I'll only be happy if all the hours I have spent screwing with my OS leads to a clear win of some sort other than the intangible benefit of sticking it ever so slightly to MS.

[–] hardcoreufo@lemmy.world 4 points 1 year ago

I have an older 6th gen Intel XPS that probably lasted 7 hours max on windows and I get 6+ on Linux. Not really noticeable to me. I should have gotten the 1080p screen instead of this 4k monstrosity and battery life would have gone up 50%. The thing is also a beast at sleeping and will go well over 2 weeks before the battery drains. Which is great because I just use it on the couch now and will open it up for a few minutes here and there before shoving it back between the cushions again.

Last year I got a 12th gen framework and battery life is disappointing under Linux. Maybe 5ish hours. I can live with that but when sleeping it still drains like 25% a day.

[–] dandroid@dandroid.app 4 points 1 year ago

I just installed openSUSE on my laptop, and I think it's actually better, mostly because it actually sleeps properly.

[–] frathiemann@feddit.de 4 points 1 year ago

My Tuxedo Pulse 15 (Gen 1) had 12h of battery life doing office work, when it was new. Now with some degradation, it still gets 9h. Of course that changes heavily depending on workload and screen brightness

[–] mvirts@lemmy.world 4 points 1 year ago

Lol I haven't had batteries in a laptop for years 😹

[–] Jerrimu2@startrek.website 3 points 1 year ago (1 children)

Use a desktop with power management and tlp, better than windows.

[–] metaStatic@kbin.social 3 points 1 year ago (1 children)

yeah, just haul a desktop around for 12 hours. I'm sure you can find an IEC cord long enough

load more comments (1 replies)
[–] OrkneyKomodo@lemmy.sdf.org 3 points 1 year ago

A lot of the newer AMD models have excellent battery life thanks to the combined efforts of Vavle & AMD on the Steam Deck.

[–] abuttandahalf@lemmy.ml 3 points 1 year ago

My lenovo yoga slim 7 pro x with a ryzen 6800hs consumed about 6 watts at idle when I used manjaro and i3 with auto-cpufreq. That meant it got around 8 hours of screen on time in the real world and up to 10 if I barely taxed it. Now on fedora with gnome and wayland and no tweaks it also consumes just over 6 watts at idle but we'll we how it pans out. If there are any power tuning tips for gnome/wayland/amd I'd like to hear them. I don't know if auto-cpufreq is still relevent with the newest kernels.

[–] circuitfarmer@lemmy.sdf.org 3 points 1 year ago

I can only speak from experience, but all three of my Thinkpads last about 20-30% longer on Linux than Windows.

load more comments
view more: next ›