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.

  • scottywh@lemmy.world
    link
    fedilink
    arrow-up
    20
    ·
    3 years ago

    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
      link
      fedilink
      arrow-up
      9
      ·
      3 years 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

    • Synthead@lemmy.ml
      link
      fedilink
      arrow-up
      6
      ·
      3 years ago

      This is what’s important. If you don’t enable power saving in some fashion, your hardware will always be “on” at full specs. Even if the machine isn’t actually being used, it’s still powering everything to be ready to jump at any opportunity to process something quickly without ramping down.

      TLP has pretty excellent default settings. Simply turning it on will likely make your battery life go 2-3x longer than without it being on, and you will have about 80% of the performance from a UX perspective. And if you want to crunch numbers faster on battery, you can tune TLP or turn it off temporarily.

    • danhab99@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      Thanks to you I just found out that I DID enable wake-on-lan a year ago and that there’s another reason I couldn’t do it.

  • wildbus8979@sh.itjust.works
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    3 years ago

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

    • OmltCat@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 years ago

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

      • const_void@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        3 years ago

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

  • TCB13@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    3 years ago

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

  • merthyr1831@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    3 years 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
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    3 years 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.

  • hardcoreufo@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    3 years 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.

  • ShittyBeatlesFCPres@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 years ago

    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.)

    • OmltCat@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 years ago

      Yep I’m looking at system76. Not sure about how valid the 14h battery life claim is though. That seems awfully optimistic on a 10-core Intel chip.

  • mrvictory1@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    3 years ago

    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.

  • Veraxis@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 years ago

    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.

    • Dreadful6644@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      If your dGPU supports rtd3 power management, it should (almost) completely power off when not in use. For me the battery life changes a lot: is something like 2 hr vs 10hr battery life with the GPU off, which is very noticeable.

      • Veraxis@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        3 years ago

        In everything I have seen, there has been no way to turn it off fully (laptop with a GTX 1060). Nvidia x server settings shows no option for a power saver mode, and even Optimus-manager set to integrated graphics only does not seem to have changed it. It seems to continuously idle at the minimum clock speed at around 5W of draw, according to programs like nvtop.

  • HarriPotero@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    3 years 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.

  • nothacking@discuss.tchncs.de
    link
    fedilink
    arrow-up
    3
    ·
    3 years 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.

  • abuttandahalf@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    3 years 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.