Hacker Newsnew | past | comments | ask | show | jobs | submit | ellieh's commentslogin

this happens to me so often that I wonder if it's something YC suggest people do

gpui existing in the first place is a result of them raising VC

> In other words: get an actually Linux supported laptop for Linux.

40% battery for 4hrs of real work is better than pretty much any linux supported laptop I've ever used


One of my favorite machines was the MacBook Air 11 (2012). This was a pure Intel machine, except for a mediocre Broadcom wireless card. With a few udev rules, I squeezed out the same battery performance from Linux I got from OS X, down to a few minutes of advantage in favor of Linux. And all this despite Safari being a marvel of energy efficiency.

The problem with Linux performance on laptops boils down to i) no energy tweaks by default and ii) poor device drivers due to the lack of manufacturer cooperation. If you pick a machine with well supported hardware and you are diligent with some udev rules, which are quite trivial to write thanks to powertop suggestions, performance can be very good.

I am getting a bit more than 10 hours from a cheap ThinkPad E14 Gen7, with a 64 Wh battery, and light coding use. That's less than a MacBook Air, where I would be getting around 13-14 hours, but it's not bad at all. The difference comes mainly from the cheap screen that is more power consuming and ARMs superior efficiency when idling.

But I prefer not to trade the convenience and openness of x86_64 plus NixOS for a bit more battery range. IMHO, the gap is not sufficiently wide to make a big difference in most usage scenarios.


The need to tweak that deeply just to get “baseline” performance really stings, though, particularly if you’re not already accustomed to having to do that kind of thing.

It’d be a gargantuan project, but there should probably be some kind of centralized, cross-distro repository for power configuration profiles that allows users to rate them with their hardware. Once a profile has been sufficiently user-verified and is well rated, distro installers could then automatically fetch and install the profile as a post-install step, making for a much more seamless and less fiddly experience for users.


Not trying to discredit your idea, but I feel like you're misrepresenting the amount of optimization apple does by calling it baseline.

It's generally the most optimized system down to the fact that Apple controls everything about it's platform.

If that's considered baseline, then nothing but full vertical integration can compete


While you are correct, for any user this is completely irrelevant, right? I have the choice between picking up an MBA or a different laptop. One comes with a reasonable expectation of battery life. The other is a gamble


For some laptops, this applies in comparison to Windows, too though (see elsewhere in thread for examples).


The advantage of Apple is that they deal with a tiny amount of hardware. Vertical integration enables aggressive optimizations.

I agree that in case of Linux, a udev rule generator would be a fantastic step ahead in terms of usability.


> 40% battery for 4hrs of real work is better than pretty much any linux supported laptop I've ever used

Not sure what "real work" is for you, but I regularly get more than 12 hours of battery life on an old Chromebook running a Linux and the usual IDEs/dev tooling (in a Crostini VM). All the drivers just work, sleep has no detectable battery drain. It's not a workstation by any means, but dual core Intel's are great for Python/Go/TypeScript


Out of curiosity, does Google contribute the drivers for Chromebook hardware to Linux upstream or do they keep it for themselves? Could it be that they just choose the hardware that works very well out of box with Linux?


I have no idea if there's upstreaming, but the Chomium OS repo is open source so you could check.

I don't know if that would help the wider Linux laptop community, because Chromebook OEMs can only select from a small list of CPU & chipset hardware combinations blessed by Google


What's the bar here? My Thinkpad X270 gets about 16 hours under Ubuntu with swaywm.

If we really want to get pedantic, its internal battery means the external pack is hot-swappable, so I can actually get several days on a "single charge." Good machine for camping trips.


[flagged]


Please don't cross into personal attack, name-calling, or cross-examination. This is in the site guidelines: https://news.ycombinator.com/newsguidelines.html.

I see how the GP comment could be provocative, but on this site we want responses that dampen provocation, not amplify it.


The main difference otherwise is that Atuin stores much more data + syncs it

We shelled out to fzf in the very early days, but found the initial indexing to be a bit slower + add latency vs SQLite


Let me know if there’s anything I can help with!


great, will do! this really does look like the solution to having random docs and shell scripts scattered around


You’re very welcome! Glad it’s working well for you


One of the main things we’re aiming to do here is make these manual processes much less manual! I’m a big believer in automating things gradually, which runbooks enable


Not just yet! We support a bunch of features that don’t fit into markdown very well.

We will have better markdown support soon


Very happy to hear you find it so useful! Please do let me know if there’s anything we can do to make it better for you


> It could be interesting to see if it would be enough to add shell history as a completion source.

Atuin runbooks (mentioned in the article) do this! Pretty much anywhere we allow users to start typing a shell command we feed shell history into the editor


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: