News for hackers. Stuff that matters.
Re:Open-Sourcing our Firmware by rnk on Friday January 21, 2022 @02:08PM (#30028420)
Seems too good to be true. Reasonable prices, upgradable, no soldered ram. So has it been a reliable Linux laptop, what's the battery life with your options?
Re:Open-Sourcing our Firmware by bo1024 on Friday January 21, 2022 @02:44PM (#30028959)
You nailed it, battery is the only downside I’ve had, not awful but probably say 3 hours of video playback, or 5-6 hours of web use. Haven’t used it unplugged all that much so very rough guesses. Bigger problem with my fedora install at least is battery draining while the lid is closed.

Overall great machine

Edit: I may be missing software updates that improve this, no idea

Re:Open-Sourcing our Firmware by reacharavindh on Friday January 21, 2022 @03:10PM (#30029301)
I very much wanted to hear about this and damn :-( Video playback must be hardware accelerated by now and be super efficient. Another worry was about low power sleep modes and waking up, and looks like it is not solved too. I might have to suck it up and buy the Mac for my needs after all. I have my trusty Linux desktop for all my big compute needs. I was hoping to make the mobile machine also run Linux, but the specific needs there (crisp display, nice battery life, Linux friendliness) seems to be an elusive goal.
Re:Open-Sourcing our Firmware by Teknoman117 on Friday January 21, 2022 @04:03PM (#30029965)
It's still a real pain to get hardware accelerated video in a browser on Linux. Google is still outright refusing to support it in chromium, even though they do support it inside Chrome OS. There are few community patches floating around if you're willing to roll your own chromium to enable to Chrome OS hardware decode pathways on generic Linux.

You can mostly get it working on Firefox if you play around with the config options, but it only works with AMD and Intel GPUs (anything supporting vaapi).

Re:Open-Sourcing our Firmware by 42jd on Friday January 21, 2022 @09:27PM (#30032645)
As a heads up they fixed the intel xe graphics sandboxing issue in firefox 96. See https://bugzilla.mozilla.org/show_bug.cgi?id=1698778 It works great on my Framework with NixOS. My about:config settings (taken from my home-manager):

graphics = { "media.ffmpeg.vaapi.enabled" = true; "media.rdd-ffmpeg.enabled" = true; "media.navigator.medidataencoder_vpx_enabled" = true; };

Re:Open-Sourcing our Firmware by fubbyy on Friday January 21, 2022 @05:54PM (#30031010)
Really? I’m pretty sure chromium has decent VAAPI support.
Re:Open-Sourcing our Firmware by Teknoman117 on Friday January 21, 2022 @06:54PM (#30031543)
Oh! Looks like they finally started adding official support last summer (June 2021). It still appears disabled by default though.
Re:Open-Sourcing our Firmware by xvector on Friday January 21, 2022 @03:56PM (#30029879)
The M1 MacBook Air honestly feels so far ahead of any other laptop I've used that it's not even funny. Fanless, powerful, absolutely bonkers battery life.

M1 + Nix is ideal, IMO.

Re:Open-Sourcing our Firmware by nathancahill on Friday January 21, 2022 @04:03PM (#30029972)
You have Nix running on M1?
Re:Open-Sourcing our Firmware by shepherdjerred on Friday January 21, 2022 @05:01PM (#30030530)
Nix is the package manager, NixOS is the OS.

https://nix.dev/tutorials/install-nix#macos

Re:Open-Sourcing our Firmware by bo1024 on Friday January 21, 2022 @06:39PM (#30031417)
I’m very happy with purism’s librem 14 but the display is not as nice as frameworks.
Re:Open-Sourcing our Firmware by DrBenCarson on Friday January 21, 2022 @03:50PM (#30029812)
* crisp display

* nice battery life

* Linux friendliness

Not elusive at all, you can find an M1 MacBook Pro at any Apple, Best Buy, or Costco store.

Re:Open-Sourcing our Firmware by Kinrany on Friday January 21, 2022 @03:58PM (#30029902)
M1 are not Linux-friendly at all.
Re:Open-Sourcing our Firmware by DrBenCarson on Saturday January 22, 2022 @04:38PM (#30041078)
I can run a Linux vm emulating x64 or aarch64 right now on M1…

Not to mention zsh is the login shell out of the box…

It’s more flexible that WSL2 in my opinion

See https://github.com/lima-vm/lima for a very friendly QEMU wrapper running on M1

Re:Open-Sourcing our Firmware by astrange on Friday January 21, 2022 @10:40PM (#30033199)
Run it in a VM. Works fine.
Re:Open-Sourcing our Firmware by Shared404 on Saturday January 22, 2022 @02:20AM (#30034482)
This is like responding "well you can make the civic look like a sports car, that should cover you!" when someone says "I want to drive fast".
Re:Open-Sourcing our Firmware by astrange on Saturday January 22, 2022 @06:57PM (#30042140)
There's some concerns about paravirtualized GPU performance, but the equivalent of "sports car" (workstation/server-like workloads) runs in VMs in cloud providers all the time.
Re:Open-Sourcing our Firmware by vorpalhex on Friday January 21, 2022 @05:18PM (#30030687)
You can't even run unsigned apps on your M1. There is linux support slowly coming thanks to the fine folks on Asahi, but it is very pre-beta.
Re:Open-Sourcing our Firmware by DrBenCarson on Saturday January 22, 2022 @04:37PM (#30041070)
I can run a Linux vm emulating x64 or aarch64 right now on M1…

It’s more flexible that WSL2 in my opinion

See https://github.com/lima-vm/lima for a very friendly QEMU wrapper

Re:Open-Sourcing our Firmware by vorpalhex on Sunday January 23, 2022 @12:26AM (#30043866)
I can write a program and send it to my friend - and they can actually run it - without me paying $99/year to Apple.

Try that on your M1.

Re:Open-Sourcing our Firmware by DrBenCarson on Sunday January 23, 2022 @06:09AM (#30045312)
You can run unsigned software on an M1 Mac, clicking “run anyway” isn’t that hard lol
Re:Open-Sourcing our Firmware by vorpalhex on Sunday January 23, 2022 @04:27PM (#30050594)
That is untrue for native arm apps. The OS actually requires signing. If you are running an x86 app through Rosetta you can currently avoid code signing requirement.

https://eclecticlight.co/2020/08/22/apple-silicon-macs-will-...

Re:Open-Sourcing our Firmware by DrBenCarson on Tuesday January 25, 2022 @10:49PM (#30081442)
What’s the big deal? They don’t require it to be notarized. You can self-sign.

Quite frankly no one should be running unsigned binaries regardless of OS or architecture.

Re:Open-Sourcing our Firmware by dheera on Friday January 21, 2022 @02:10PM (#30028454)
I've been using a Framework laptop for a month on Ubuntu 21.10 and pretty happy with it. Some hiccups but mostly answered by digging through forums.

Battery life in operation is excellent, but it does drain 30% in 8 hours when on suspend which is a bit much. Not a dealbreaker but hope this can be solved.

Re:Open-Sourcing our Firmware by throwaway2568 on Friday January 21, 2022 @03:17PM (#30029397)
High battery drain during standby on Linux can be due to the system not entering the proper sleep state. I had this happen to me on an AMD machine lately, in that case disabling secure boot solved the issue.

Here is a pretty detailed blog post in checking if that is the problem and how to deal with it on intel systems

https://01.org/blogs/qwang59/2018/how-achieve-s0ix-states-li...

Re:Open-Sourcing our Firmware by tata71 on Friday January 21, 2022 @05:48PM (#30030961)
> disabling secure boot solved the issue

Lovely...

Re:Open-Sourcing our Firmware by dheera on Friday January 21, 2022 @06:28PM (#30031310)
Isn't secure boot just a Microsoft thing to try to stymie competition by preventing booting OSes other than Windows?
Re:Open-Sourcing our Firmware by AndroidKitKat on Friday January 21, 2022 @10:19PM (#30033042)
Debian seems to indicate otherwise: https://wiki.debian.org/SecureBoot
Re:Open-Sourcing our Firmware by addcninblue on Friday January 21, 2022 @02:36PM (#30028849)
Out of my element here, but would be curious to see if this is something solvable in firmware (now open-sourced!) or if it's a hardware problem to begin with (power states? etc).

Edit: Also curious if this issue is generally a hardware or firmware issue in most laptops, or if it's a mix of both.

Re:Open-Sourcing our Firmware by 4cao on Friday January 21, 2022 @02:40PM (#30028906)
Could be caused by Modern Standby (by default newer laptops remain on even when nominally off, which has been known to cause issues). Some more details here:

https://www.tenforums.com/tutorials/145891-how-check-if-mode...

Re:Open-Sourcing our Firmware by BlackLotus89 on Friday January 21, 2022 @03:55PM (#30029870)
> cat /sys/power/mem_sleep

If deep isn't selected do so and try again. You could have problems with your nvme coming out of suspend though.

I got similar problems on my pinebook pro, but sadly this is all too common.

Re:Open-Sourcing our Firmware by sydney6 on Friday January 21, 2022 @02:47PM (#30028996)
I can imagine that the power draw in S3 could come from having (replacable) DDR Memory instead of (mostly soldered) LP-DDR Memory.

edit: typo.

Re:Open-Sourcing our Firmware by bestouff on Friday January 21, 2022 @03:03PM (#30029204)
The problem is that current Intel laptops don't use S3 anymore, they use S0ix a.k.a. "modern standby", an abomination where the CPU doesn't really sleep and the battery drains fast.

Dell, Lenovo, HP etc. all have the same problem.

Re:Open-Sourcing our Firmware by sydney6 on Friday January 21, 2022 @04:40PM (#30030361)
I have a Thinkpad X1 from 2018 and by default it came with S0ix enabled and Lenovo later on added the S3 sleep state option through a BIOS update, called "Linux compatibility something".. Before that, one had to manually edit the DSD table to get rid of this evil burning-sleeping-laptop-in-backpack-feature called S0ix.

Does the Framework Laptop, or other popular models from the other manfacturers you mentioned, not have a S3 sleep state option these days, i.e. S0ix only?

Re:Open-Sourcing our Firmware by bubblethink on Friday January 21, 2022 @05:22PM (#30030721)
So it was believed that S3 is deprecated on TGL, but it probably works. I remember reading about it on some coreboot channels. Starlabs may have enabled it. Grep for S3 on https://support.starlabs.systems/kb/bios-and-firmware/bios-a...
Re:Open-Sourcing our Firmware by jpetso on Monday January 24, 2022 @09:42AM (#30058130)
S0ix has stronger requirements on the "correct" interaction between firmware/BIOS and OS, it offloads more work to the OS. Poorly implemented S0ix will drain the battery faster, but correctly implemented S0ix is as good as S3 or even better.

Lenovo put out a buggy S3 implementation on some systems that hasn't been tested well because it's only an optional "Linux suspend" setting. Drains twice as fast as Linux with correctly implemented S0ix. And the worst thing is, nobody except Lenovo do can fix it because it's all on the BIOS level, and their China-based firmware team has other priorities.

Well-implemented S3 is nice. But it's going to disappear. Both Intel and AMD are switching away with full force, vendors won't have S3 options in the BIOS going forward and the ones that remain will likely suck. On the other hand, S0ix support is coming together even on AMD platforms which were a little late to the party. Once it's working decently, I'd rather trust my OS than my laptop manufacturer's firmware team to suspend components correctly.

Re:Open-Sourcing our Firmware by willmorrison on Friday January 21, 2022 @10:05PM (#30032940)
Battery life on mine with a pretty minimal Arch install and TTY is around 10 hours when doing light web browsing and programming. Only problems I’ve had are hardware related. The trackpad isn’t 100% reliable (sometimes clicks don’t work and I have to press hard to get it to work again) and the hinge is far too loose. Love the laptop overall.
Re:Open-Sourcing our Firmware by Rebelgecko on Friday January 21, 2022 @03:14PM (#30029355)
From what I've heard battery life is much worse on Linux than Windows. If you're willing to spend some time hacking around you can close the gap a bit, but it'll still be a gap.
Re:Open-Sourcing our Firmware by sva_ on Friday January 21, 2022 @03:29PM (#30029555)
Personally I can't confirm this. I've recently replaced the battery on my 2014 Thinkpad, and on low brightness I get around 8h of battery. That is of course, while not doing a lot of compute (compiling).

I don't think this was much higher, back when I used Windows all those years ago, so I'm not sure what people are saying with low battery with Linux? I don't see how Windows could get me much more? And why would it?

Re:Open-Sourcing our Firmware by Rebelgecko on Friday January 21, 2022 @03:38PM (#30029670)
If you have a Thinkpad, then the issues with the Framework (CPU sleep states, needing to turn of secure boot to hibernate properly, power management issues in Framework BIOS 3.06, etc) wouldn't necessarily apply to your laptop
Re:Open-Sourcing our Firmware by shriek on Saturday January 22, 2022 @07:00AM (#30035920)
I haven't run Windows in my Framework laptop so I can't really say if there's a difference but the issue in Linux was mostly because deep sleep wasn't enabled for some distros.
Re:Open-Sourcing our Firmware by james-redwood on Friday January 21, 2022 @05:41PM (#30030899)
I’ve found this to be variable in my personal experience based on OS, hardware, and use of TLP.
Re:Open-Sourcing our Firmware by _zooted on Friday January 21, 2022 @02:38PM (#30028883)
Having come from elementaryOS I can say that Fedora 35 is awesome. So much better!
Re:Open-Sourcing our Firmware by carlhjerpe on Friday January 21, 2022 @02:59PM (#30029143)
Having come from Debian, Ubuntu, and Manjaro I settled on what feels like the last distro I will use on my own systems: NixOS. It's not so much better, it's so much different.

Every(ish) single package, every single line of configuration(ish) is under version control in a(couple) nix files. I share (most) of it between my systems. With flakes (and it's lockfile) it's a 100%(ish) deterministic system.

Downside: The language is arcane to me and the tooling is dogshit. Not that I could've made it any better, but running my config repo through entre to rebuild on every write to get some promiscuous error nobody has had before sucks major D.

Therefore I still have an Ubuntu container (because every desktop application targets Ubuntu) running with X11 forwarding for the few packages that aren't in nixpkgs that I wanna run.

I also don't use home-manager, but chezmoi for my dotfiles. Since I want my home configuration to work on MacOS and other distros I might SSH.

Atomic upgrades and downgrades are such a great feature I don't know how people can live without it now that I've experienced it.

Note: The default configuration NixOS gives you is also shit, out of the box they don't ship a system like you'd want to consume it (nixos-generate-config). An anecdotal example is that Avahi isn't installed by default, which means chromecasting won't work until you figure out that you need Avahi, i18n config is shit too.

So it's not all green grass, but definitely worth it, since every Nix line you write is an investment into making your experience better "forever" (I don't see NixOS going away anytime soon, very healthy activity on the project).

Now after praising NixOS for awhile, let's praise the developers of all packages that are compiled into the lovely distros you all use. For me the KDE team can't get enough praise, the software is so damn good.

Re:Open-Sourcing our Firmware by Ericson2314 on Friday January 21, 2022 @05:23PM (#30030742)
> I also don't use home-manager, but chezmoi for my dotfiles. Since I want my home configuration to work on MacOS and other distros I might SSH.

FYI, home manager works on MacOS just fine. I usually tell people to start with Home Manager as I think it's the best gateway drug to Nix stuff at the moment.

Re:Open-Sourcing our Firmware by carlhjerpe on Friday January 21, 2022 @07:21PM (#30031728)
Yes indeed, I should've expanded to requiring user namespaces and other kernel magic I can't expect from any random box i wanna work on.

I'm looking forward to checking Darwin nix stuff out.

Re:Open-Sourcing our Firmware by Ericson2314 on Friday January 21, 2022 @08:31PM (#30032211)
> Yes indeed, I should've expanded to requiring user namespaces and other kernel magic I can't expect from any random box i wanna work on.

That's fair, do have to make sure to avoid to modules that do user systemd services.

Longer term, though, I am hoping https://github.com/InitWare/InitWare will help with the userland part. And I hope to personally help with things like

https://lists.freebsd.org/archives/freebsd-arch/2022-January...

https://lore.kernel.org/lkml/f8457e20-c3cc-6e56-96a4-3090d7d...

to get us more sane cross-platform system calls.

Re:Open-Sourcing our Firmware by mplanchard on Friday January 21, 2022 @07:41PM (#30031863)
Just wanted to echo all of this. I started with home-manager and then moved to NixOS over the holiday. It’s really been great: easy to set up, relatively easy to configure most things, and it’s so lovely to know that the changes I make are checked into version control for easy use across machines.
Re:Open-Sourcing our Firmware by fhaldridge7 on Friday January 21, 2022 @09:15PM (#30032545)
Same here. Over the holidays I first tried NixOS in a VM and really liked it. I had a lot of fun setting up the system. A week later I installed it as my main OS and is has been great so far
Re:Open-Sourcing our Firmware by sneak on Friday January 21, 2022 @02:58PM (#30029130)
The screen is very low-res and the GPU is weak. This is why I don't have one.

If you don't care about pixels (seems common in PC-land), this is probably a good thing re: power consumption.

I look at text all day, every day, and want it to be high res. It's been high res on my Macs for half a decade, and my XPS is even better. I'll get one of these once they fix the screen.

Re:Open-Sourcing our Firmware by aquova on Friday January 21, 2022 @03:30PM (#30029572)
The Framework has a 200 DPI screen. It's lower than say a MacBook, but I wouldn't consider that to be "low-res", especially in the laptop space.
Re:Open-Sourcing our Firmware by jonaustin on Friday January 21, 2022 @03:58PM (#30029905)
This 'low-res' comment makes no sense, I'll never go back to 1080p, but 2256x1504 is plenty IMO for text (I live in a CLI all day pretty much).
Re:Open-Sourcing our Firmware by gorjusborg on Friday January 21, 2022 @04:30PM (#30030246)
Especially on a 13" screen. I have an XPS 13 with a 4k screen and I never use it at native resolution undocked because I'd need a magnifying glass to read anything on it.
Re:Open-Sourcing our Firmware by toastal on Saturday January 22, 2022 @04:04AM (#30034994)
That's been the unfortunate part: "do you want 4K or 1080?" has been the question for the longest part without consideration that many people want something in between--hiDPI without going into sizing where you can't tell the different. I have only had 4K screens (15", 14", & 13") since 2015 and can't handle 1080, but I don't want the wasted battery from 4K on smaller sizes.
Re:Open-Sourcing our Firmware by sneak on Friday January 21, 2022 @04:32PM (#30030270)
You're always using it at native resolution, you're just adjusting your renderer settings.

Nobody's saying your fonts should be tiny. I'm saying they should be rendered in high resolution.

I have the same computer and display. I run it at 4k native but nothing is small, no magnifying glass required.

Re:Open-Sourcing our Firmware by gorjusborg on Friday January 21, 2022 @05:48PM (#30030959)
> You're always using it at native resolution, you're just adjusting your renderer settings.

No, when I wrote 'native resolution' I meant 1:1 pixel mapping, which is pretty obvious by context. Nobody has a laptop with a CRT on it these days.

Re:Open-Sourcing our Firmware by sneak on Friday January 21, 2022 @04:31PM (#30030254)
Once you get used to 220+ ppi, it's very difficult to go back.

I even don't like my 218ppi displays that much, they are a little fuzzy compared to my 300+ ppi displays.

It's not a matter of opinion what is "low" or "high" when dealing with integers for resolution. It's evident that you think a low-res (by 2022 market options) display is sufficient. That's fine, but it doesn't make it high res.

There are people who think an analog serial console with 24 lines and 80 columns is sufficient resolution for text. That's not what's being discussed: simply the resolution of the display in the computer. It's low by modern laptop standards.