Hacker News new | ask | show | jobs
by steinuil 883 days ago
I have a Framework 13 12th gen i5 as well, running NixOS, but I definitely get a lot more than 3 hours! I'm usually running some terminals and Firefox.

I definitely had to play with powertop a bit and remove some programs that consumed a lot of battery (for example, the blueman tray applet had to go). I'd recommend setting powerManagement.enable = true and powerManagement.powertop.enable = true, and letting powertop run in the background while on battery for a few hours to identify the worst offenders.

This is my configuration: https://kirarin.hootr.club/git/steinuil/flakes/src/branch/ma...

1 comments

Your flake is very helpful, thanks! I cargo-culted tlp configuration, will see how it goes.

> and letting powertop run in the background while on battery for a few hours to identify the worst offenders.

How do you do the analysis after running powertop in the background?

Sorry, didn't notice the reply; if you let it running for a few while eventually it'll collect enough samples to show you the power consumption of the processes you have running in the terminal UI. Then you just look at the top ones in the list and see if there's a way to reduce power consumption, or quit using them altogether. I haven't used it enough to figure out how the reports work.