Frame.work laptop battery info

This commit is contained in:
Phantop 2021-07-25 00:05:27 -04:00
parent 8862725d61
commit f3e52be48d
3 changed files with 27 additions and 0 deletions

View file

@ -28,4 +28,6 @@
[audiomass](audiomass/src)
[laptop battery](reads/battery.md)
[survival-manual](survival/Home)

21
reads/battery.md Normal file
View file

@ -0,0 +1,21 @@
[Source](https://community.frame.work/t/battery-life/861/12)
For Linux you have much more control if you wanted to control the power envelope yourself. you can use the sysfs interface for the intel-rapl driver to adjust the power limits:
Eg you can set your PL1 (long term) and PL2 (short term) power limits in uW:
echo 1 > /sys/class/powercap/intel-rapl:0/enabled
#PL1
echo 28000000 > /sys/class/powercap/intel-rapl:0/constraint_0_power_limit_uw
#PL2
echo 64000000 > /sys/class/powercap/intel-rapl:0/constraint_1_power_limit_uw
From what I have found there is not a good way for the major window managers to control power profiles that are built into gnome/kde/etc. But it would be interesting to explore more.
You can read about the interface here, it is pretty cool because you can also use this to monitor power usage too:
https://www.kernel.org/doc/html/latest/power/powercap/powercap.html
There are a few mentions of intel projects for linux.
https://01.org/linux-thermal-daemon/documentation/introduction-thermal-daemon
https://github.com/intel/dptf
https://01.org/blogs/2014/running-average-power-limit-%E2%80%93-rapl

View file

@ -70,6 +70,10 @@
[Command Line Interface Guidelines](https://clig.dev/)
[Compression Comparison](https://linuxreviews.org/Comparison_of_Compression_Algorithms)
[Insane Compression Comparison](http://mattmahoney.net/dc/text.html)
## Qemu
[Drew Devault's Getting Started](https://drewdevault.com/2018/09/10/Getting-started-with-qemu.html)