by gandalfgeek · 4y ago · 0 comments
I'm running a very recent kernel in Fedora and have tried numerous power saving mechanisms (currently autocpufreq, although it's results are not much different from gnome PPD) and I'm lucky if I get 3 hours from the thing while running 10-15 FF tabs and a single instance of VSCode+Remote SSH extension. This is ~1/2 of what I can get in Windows.
I think a lot of Linux users would be surpised how good their battery life would be if they installed Windows on their laptops. It's not Linux's fault per se, it's just that there's considerably less engineering manpower going into tuning the power efficiency of laptop hardware on Linux. People get up in arms because they can't reconcile the fact that "Windows is bloated" with the fact that it gets better battery life, but if you think about it for a few seconds it really shouldn't surprise anyone.
It IS linux's fault, in the way that whenever someone new comes into the ecosystem and says "hey this important thing doesn't work well or is broken for me" and get accosted from all directions by crazy people who haven't touched mac or windows in 20 years who insist that what you describe isn't possible, linux is super easy to fix yourself (lol), and that ideas from computing in the 60s are unambiguously the best ideas ever made in computing.
The linux ecosystem doesn't even have a legitimate window manager. When people tell the linux world "hey there's an issue" the linux world always responds with "fuck off"
MacOS is especially bad because they don't even try to address their deficiencies. They just bandaid over it with an app ecosystem and then don't give that ecosystem an API that's to sufficient to do the job (e.g. the limitations of amethyst and amphetamine re: focus control and lid closing).
This is possible because the machine is basically a pure Intel device, so in-kernel support for most hardware components is good. The key aspect is to implement fairly aggressive udev rules and to use no desktop environment, so that the CPU stays in powersaving states for as long as possible. This is where Linux really shines, as X plus a window manager is much lighter than anything else.
There is still some room for improvement with a custom kernel, a custom Firefox build or a better wireless card, the only non-Intel component. Broadcom Linux drivers are awful. Also Safari is a marvel in terms of efficiency.
The rest is largely correct, but this part is completely wrong. Linux has a bunch of legitimate window managers, most of them much better than MacOSX or Windows.
The problems with window managers on Linux are: 1) fragmentation: there's a bunch of them, all competing with each other, but with insufficient dev resources, so they all feel half-baked, 2) unreliability: because of #1, they have a lot of bugs 3) churn: with Gnome and KDE specifically, they keep throwing things out just as they finally make their product mature and starting over every so often, subjecting users to systems that are never really mature or reliable.
Let alone arcane tech like "search in list of open windows"
You just have to recompile the kernal.
Linux just is worse on battery than any of the other mainstream OSs in my experience, though the margin has reduced over time. It's still my platform of choice (because even now, in 2022, the choices available are crap), but denial makes them disappear only from the imagination, not reality.
> It's not Linux's fault per se, it's just that there's considerably less engineering manpower going into tuning the power efficiency of laptop hardware on Linux.
You're not wrong, but it's worse than that. A lot of the power management is tied in to proprietary firmware. Then there's the whole Intel Gen12 debacle...
I would argue that Chromebooks are pretty solid proof that it isn't Linux's fault, because they by and large Linux systems that get fantastic power management results.
> People get up in arms because they can't reconcile the fact that "Windows is bloated" with the fact that it gets better battery life, but if you think about it for a few seconds it really shouldn't surprise anyone.
Windows gets better battery life on laptops designed for better battery life with Windows. At the same time, it is often surprising how running a program under WINE on Linux will outperform the same program running on Windows. ;-)
Sorry, that should read:
"I would argue that Chromebooks are pretty solid proof that it isn't Linux's fault, because they are Linux systems that by and large get fantastic power management results.
The firmware involved is also distinctly non-trivial.
Even if those laptops don't support Linux as well as they claim to, it seems like it'd be less of a headache to deal with than Framework with their unique dongle situation.
Install TLP, uninstall thermald, and make sure turbo mode is off (it's on by default in Linux - probably applies to Intel only).
Under light load the system is using 6-8w (about 9-10h of usage on the 80WH battery), under 4w when completely idle. This is latest Fedora on a ThinkPad X1 Extreme with KDE. I want to see that with Windows.
You have to invest a bit more time with Linux (for example the fingerprint reader on my Laptop prevented the CPU from going into lower power modes), and that part is unfortunate.
On the other hand I never experience things randomly not working like it was with Windows.
Your mileage may vary.
Sorry, but that's not a good argument in favor of Linux when basic power management is not part of the OS and you need to set it up yourself manually. Can you imagine Microsoft or Apple shipping their OSs without power management? I need an OS to work out of the box so I can get to work/entertainment, not a hobby to tinker with. I still enjoy tinkering with Linux but it should be only when I want-to, not a need-to.
> I want to see that with Windows.
Yeah, you can get Linux to be more economical than Windows by manually installing a bunch of tools that throttle down the CPU into its lowest power mode and running it at 600MHz fixed all the time, and now you have a laptop that's super slow, all for the sake of battery life and winning online arguments. Good job. /s You can force that in Windows as well, but why would you?
I want to see Linux automatically scale the CPU power and frequency based on the load put on it like Windows does: idles at 600MHz when doing nothing, click on the Firefox tab and it shoots up to 3,6GHz, then back down to 800MHz. That's what any sane OS should do out of the box, not have you install and fiddle with a bunch of tools and maybe still not be as good.
>On the other hand I never experience things randomly not working like it was with Windows.
I have way more things randomly not working on Ubuntu 22.04 Gnome at work than on Windows 11 at home (none actually on this one).
And I'm saying this an Linux/FOSS user and fan.
Ships with Linux, some good marketing. I think PopOS! has lost the thread on why they exist, in that it started as an 'it just works' version of linux, and it seems to be managed as yet another enthusiast grade linux. It doesn't take much time over at r/popos to see this sentiment spelled out.
I'm not leaving the linux ecosystem, but I can tell you i'd be shocked if I go with either Framework again. Majorly disappointed for what should have been a top tier system when I bought it. I'm on the fence about PopOS. I need an OS that works out of the gate and doesn't break things like audio and bluetooth down the road (both of which are borked in the current version).
Idk. Hard time to be committed to FOSS, but the options aren't better.
I had Motile M141 laptop with Ryzen 3200U and it had better battery life on Linux than Windows.
800MHz would be more than enough processing power for most things I do. Just about virtually everything we do now, we were doing when 400MHz Celerons existed.
Nobody does efficient coding any longer.
The framework laptop would also seem to suffer from using user-replaceable DDR4 instead of, say, LPDDR5 like 12th gen compatriots generally do (higher performance, less power).
I think the biggest thing is not having a discrete GPU.
I got all the extra USB features working. It should be possible to support everything else too. If I learn this I'll add support for all the laptops I buy in the future too.
Or any other "performance"-component for that matter, which typically requires proprietary software counterpart (drivers) to run efficiently. Most vendors only ship decent Windows drivers, and the Linux counterpart (if any) is considered "good enough".
I would not consider this the fault of kernel developers. Often there is basically nothing they can do. You just need to look at what hoops the Nouveau-devs have to jump through - colossal effort, little appreciation from users.
Do you know how I can check if the discrete card is being used / drawing power?
It all comes down to driver support. If you manufacturer doesn't have proper drivers, your experience will suck. It says a lot about Lenovo that open source Linux drivers work better than their proprietary ones, but that probably comes with the territory if you combine Intel and Nvidia.
https://lore.kernel.org/all/20220901221720.1105021-1-joel@jo...
One thing I noticed almost immediately when running linux is that when I was just farting around learning the OS, the laptop would get stone cold. But when I did something large, like compile a kernel, while the laptop was actually on my lap I could physically feel the heat from the CPU start to leak through the case.
I find it much more damming that Apple smokes Windows in battery life even despite Microsoft having its own line of laptops (Surface) and having the money to pour into it vs Linux.
If you're on Gnome use "power saving" performance mode. Proprietary OSes throttle aggressively whereas Linux doesn't on "balanced" mode.
Linux is great
Not sure why this is getting downvoted
So now my battery is just a UPS. Which is actually kind of nice at times!
Now if only everything else worked flawlessly out of the box.
I got it for half the price of equivalent hardware in a MacBook Pro (8-cores/16 threads, 64 gb ram, 3 TB NVME storage, monster graphics card.)
Come on...
That's like saying: this piece of software is great but only under very specific conditions, everything else is non standard and you can't complain.
If the OEM provides spec/drivers/assistance to microsoft and not to anybody else, yes, it's their fault.
Even more so if collaboration is done only under NDA. And it's been happening for decades.
(Pretty sad that nowadays HN does not even understand such basic stuff)
Also, no need for the snark.
> everything else is non standard and you can't complain.
No, you can first get a correct understanding and then complain to who is really responsible.
Again, no need for the snark.
I like this in general, but $2400 + $100 shipping for an i7-12700H / 32GB DDR5 / 2TB 980 Pro / non-OLED display is a bit high. I'm personally waiting for this Vivobook Pro 16x to drop later this year: https://www.asus.com/laptops/for-creators/vivobook/vivobook-...
- Ryzen 9 6900HX (8-core / 4.9Ghz) - RTX 3060 / 6GB GDDR6 - Choice between 4K/60 OLED or 3200x2000/120 OLED, both with >=550nits and TUV cert - 2x NVMe slots so 8TB max SSD? - 90whr battery - The current model is $1650 / free shipping on Amazon so expected pricing is the same as it replaces that model (current: M7600RE-XB99, new: M7601)
For $2400 you can get a ProArt Studiobook H5600QR-XB99 with Ryzen 9 5900HX | 64GB | 2TB | RTX 3070 or for $2200 (on sale right now) a Razer Blade 14 with 6900HX |RTX 3070 Ti| 14" QHD 165Hz | 16GB DDR5 RAM | 1TB, so those are what this is competing with, and those others come with Windows licenses too (it looks like the Vivobook MIGHT be available without an OS, but no word on what configurations offer that).
- 16" 3.2K 120 Hz OLED
Apparently part of the genius of the chip is that they baked a large chunk of the power management logic into the chip itself.
I think Linux has work it could do to be more efficient, but really we should just be mad at Intel/AMD for not doing what Apple did years ago. They never even offered an option for those willing to sacrifice compatibility. And now they're going to start looking the entire portable electronics market (little bit hyperbole, but I don't see my self buying any new computer that isn't an M1 something for a long time especially as Asahi Linux is making such good progress and I can use Linux on whatever Apple releases in the future).
[1]: https://twitter.com/marcan42/status/1592508953933778945?s=20...
I'll stick to second-hand thinkpads for now, but I'd really like to have a thinkpad with some ARM resembling M1.
We had a good shot with frame.work but it seems nobody is going to make other boards nor are keyboards really replaceable with thinkpad-like keyboards, so the swappable parts concept falls very short for now.
The X13s can run Linux fairly well right now, so it's promising.
IMHO, ARM CPUs are going to eat the low and mid-end laptop market due to their energy-saving advantage.
May be, was not paying attention to it, I'm overall skeptical of Linux-on-desktop camp.
Or see what happens when you use Chrome or Firefox instead of Safari on a MacBook. One of these three vendors plainly cares a lot about battery life. The other two do not care as much.
https://hacks.mozilla.org/2022/10/improving-firefox-responsi...
By breaking background services more and more with every release. By doing less, your battery lasts longer, but for what if you want to make use of that battery? (I'm an Android user because iOS is simply not an option for tinkering, but I am sour about the breakage with every version.)
I don’t know, just the other day I saw someone warning against falling for M1/M2 for StableDiffusion inference(people buy new computers to run SD apparently!), claiming that same code take two orders of magnitude longer on M1/M2 against a 3080.
So maybe an M1/M2 Air isn’t faster than Intel(+NVIDIA) machine at TDP, maybe it’s magnificent that it’s only 100 times slower than a proper desktop, maybe it is still a lightweight ARM laptop, just (salivatingly) nice ones.
Apple tightly controls both software and hardware, and major Apple-provided software, such as Safari, is specifically optimized. Run Firefox on an M1, and see how much more battery it eats with the same tabs open.
Hence an Apple-only laptop has a spectacular battery life, which is reported. With real-world non-Apple software it could be a bit different, even though M1 CPU is really more energy-efficient than a mobile x86 CPU.
This is not touching the GPU anyway.
12700H has comparable single core performance and significantly faster multi core performance than M1.
It's seem to be about at the same level as M1 Pro/Ultra just with much poorer energy efficiency.
Also I'm not sure how mature performance/efficiency cores are supported on Linux right now.