News for hackers. Stuff that matters.
Re:The Framework is the most exciting laptop I've used by ohazi on Tuesday September 21, 2021 @08:40PM (#28611836)
Generally pretty good.

With tlp and a 5.10ish kernel, my T480 handles light web browsing at 3-5 W depending on display brightness (wqhd display). Heavier websites, high-res video decoding, etc. will bring it up to 7-10 W. Maybe 20 W when compiling something, or when attempting to use the (worthless) Nvidia GPU (which I leave powered down most of the time).

It has a dual battery setup with a 24 Wh internal battery and a 72 Wh external battery (I use the bulbous 6-cell, but you can get a thinner one if you prefer), so even when setting the charge stop thresholds at 80% to preserve cell lifetime, the computer easily lasts all day on battery.

That being said, it would be easy to find a random laptop that either idles at something stupid or that can't go to sleep properly because of just one wacky peripheral, making Linux power management seem bad.

Half the battle is picking the right starting point (e.g. a Thinkpad), and then setting everything up so you can actually measure the power in all of the different states so that you can actually confirm that your setup works properly before relying on it and ending up disappointed at the airport.

Re:The Framework is the most exciting laptop I've used by robmsmt on Wednesday September 22, 2021 @08:41AM (#28615637)
if you could point to how you configured your power management that would be great
Re:The Framework is the most exciting laptop I've used by smoldesu on Wednesday September 22, 2021 @08:44AM (#28615653)
"sudo tlp start" :)
Re:The Framework is the most exciting laptop I've used by ohazi on Wednesday September 22, 2021 @02:49PM (#28620176)
Start with this. If there are peripherals you don't use (something as small as a Bluetooth adapter or as large as a GPU), figure out how to power them down, and get the computer to put them in that state by default.

On ThinkPads (and probably on others), you can monitor the instantaneous power consumption by poking around in:

    /sys/class/power_supply/*
There are widgets that can monitor this for you and alert you if anything seems amiss, but I just have a script that puts some text and symbols in my menu bar:

https://github.com/ohazi/dotfiles/blob/master/bin/battery.sh

You can use this to confirm that (for example) your wifi card is actually powering down when you ask it to.

Re:The Framework is the most exciting laptop I've used by robmsmt on Wednesday September 22, 2021 @10:50PM (#28624749)
Thanks it looks neat. I'll check out your scripts - especially interested in the power draw part for myself. I had setup the 80% cycling before but that was on my n-1 installation and haven't had chance to put that back on.

I have a friend who I convinced to buy a Thinkpad and stick ubuntu 20.04 on it. Unfortunately he got a more expensive X1 one with an Nvidia Graphics card, it strangely overheats when he needs to charge it and plugs it into the AC. I suspect the power settings are all over the place. I've not had chance to get a log from him yet. How did you "power down" your nvidia card?

Re:The Framework is the most exciting laptop I've used by ohazi on Thursday September 23, 2021 @11:22AM (#28630508)
> How did you "power down" your nvidia card?

First I made sure X was working the way I wanted with Intel graphics. There are a handful of ways to do hybrid graphics on Linux, depending on what you want to be able to do, and how old your hardware is (including "I didn't even want this thing, just keep it powered off forever"). The Arch wiki has some pretty good guides [1] that are helpful even if you're using a different system.

bbswitch seems to work on my system, and the interface is really simple [2]. But there's also this page on acpi_call [3], which suggests that bbswitch is old and unmaintained and that newer systems do something different. From a quick scan, it looks like the Arch wiki also mentions this approach.

As far as drivers go, I know everyone likes to dump on Nvidia for their closed source mess, but on every system I've used with Nvidia hardware (desktops and laptops), I've found that the Nvidia drivers have universally been more reliable than nouveau, so that's what I use.

[1] https://wiki.archlinux.org/title/hybrid_graphics (poke around in "Related Articles" too)

[2] https://github.com/Bumblebee-Project/bbswitch#turn-the-card-...

[3] https://github.com/geminis3/nvidia-gpu-off