diff --git a/index.md b/index.md index 591816b..cccb3b2 100644 --- a/index.md +++ b/index.md @@ -28,4 +28,6 @@ [audiomass](audiomass/src) +[laptop battery](reads/battery.md) + [survival-manual](survival/Home) diff --git a/reads/battery.md b/reads/battery.md new file mode 100644 index 0000000..f7c18c7 --- /dev/null +++ b/reads/battery.md @@ -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 diff --git a/reads/guides.md b/reads/guides.md index 3b9ea07..d7921eb 100644 --- a/reads/guides.md +++ b/reads/guides.md @@ -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)