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.

    • ebits21@lemmy.ca
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

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

      I’ll use power saver in fedora if needed.

      • wheels@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        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.

      • Greyscale@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Is that just forcing the cpu scheduler? I use ubuntu-mate, and theres just a dropdown widget to switch between balanced/power/powersave.

      • Addv4@kbin.social
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Tlp and Intel xtu for undervolting (lowers temps and power consumption, but newer cpus don’t support it) are pretty good ideas. If battery life is your perogative, try avoiding discrete gpus, they can be a pain to make sure they don’t drain battery in Linux. 14hrs is possible, but you have to spec properly (think thinkpad t480 with dual batteries, and a low power display).

  • scottywh@lemmy.world
    link
    fedilink
    arrow-up
    32
    arrow-down
    1
    ·
    1 year 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
      14
      ·
      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

    • boonhet@lemm.ee
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      1 year ago

      12+ hours of actual usage is doable on Apple Silicon, but it does depend on what your usage is. If you’re compiling something 50% of the time then probably not. If you spend most time writing code and then testing the application after compiling? Yeah it’ll last you 12.

      I know that’s not what OP has and it’s not what they should get for Linux usage, but I’ve worked with 3 now (one personal, two at different jobs) and these things are the holy grail of battery life. First day on my M1 Air, taking it off the charger, 2 hours in it had used maybe 5% battery watching a udemy course and playing around in xcode.

      So I think we should demand better of our laptops. I do believe AMD has done a lot, they had an entire generation where all they advertised was the increased power efficiency.

    • Synthead@lemmy.ml
      link
      fedilink
      arrow-up
      9
      ·
      1 year 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
      4
      ·
      edit-2
      1 year 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.

  • dosse91@lemmy.trippy.pizza
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    edit-2
    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
    link
    fedilink
    arrow-up
    15
    ·
    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
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    1 year 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
      ·
      1 year 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
        ·
        1 year ago

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

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

  • pnutzh4x0r@lemmy.ndlug.org
    link
    fedilink
    English
    arrow-up
    8
    ·
    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).

  • Bri Guy @sopuli.xyz
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    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
    link
    fedilink
    arrow-up
    8
    ·
    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.

  • TCB13@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    1 year ago

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

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