Possible battery and performance improvement - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114) +--- Thread: Possible battery and performance improvement (/showthread.php?tid=12070) |
Possible battery and performance improvement - xehartnort - 11-08-2020 Dear pinebook pro users, I have spent a certain amount of time reading about the pinebook pro cpu voltages (rk3399) in pine64 wiki overclocking and I have come up with two ideas: 1 - Improve battery by adding a slight undervolt: The default cpu clocks and voltages for rk3399 big cores are the following (Extracted from https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi): Cpu clock - Cpu voltage 408Mhz - 800mV 600Mhz - 800mV 816Mhz - 825mV 1008MHz - 875mV 1200MHz - 950mV 1416MHz - 1025mV 1608Mhz - 1100mV 1800Mhz - 1200mV As suggested by the wiki, more optimised voltages can be found in: https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi which are the voltages used in some chromebooks with the rk3399: Cpu clock - Cpu voltage 408Mhz - 800mV 600Mhz - 800mV 816Mhz - 825mV 1008MHz - 850mV 1200MHz - 900mV 1416MHz - 975mV 1608Mhz - 1050mV 1800Mhz - 1115mV 2016Mhz - 1250mV [last freq can be skipped as it requires a slight overclock] 1.1 - How to apply such improved voltages? The default ones can be overrided in arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts . This has been already done by tsys in its kernel to overclock to 2000Mhz - 1300mV ( https://gitlab.manjaro.org/tsys/linux-pinebook-pro/-/blob/master/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts ): Code: &cluster1_opp { So in our case we want to change it to the following: Code: &cluster1_opp { 2 - Improve CPU performance with a small overclock: The main concern with overclocking the CPU in this laptop is that when attached to the charger, the battery will discharge when it is under a big load. My guess is that with the overclock proposed in rk3399-op1-opp.dtsi , the discharging problem can be solved as we are not exceeding the "The highest safe voltage [...] for the big cores is 1.25V" (extracted from the overclocking wiki mentioned at the beginning of the post): 2016Mhz - 1250mV 2.1 - How to apply such overclock? Following the same guide as for the improved voltages (Section 1.1), we need to add: Code: opp08{ As I don't own a pinebook pro, I can't test any of the proposed changes. Would anyone try them and report if they are stable? Possible battery improment [CPU undervolt] and performance improvement [overclock] - eKeith - 11-08-2020 Thank you very much! Sent from my PH-1 using Tapatalk RE: Possible battery and performance improvement - rimaille - 11-08-2020 I confirm these voltages are working for a daily driver, i even got a 2088Mhz oc@1,25v. https://github.com/TuxThePenguin0/linux-pbp/blob/master/overclock.patch RE: Possible battery and performance improvement - xehartnort - 11-08-2020 (11-08-2020, 02:09 PM)rimaille Wrote: I confirm these voltages are working for a daily driver, i even got a 2088Mhz oc@1,25v. Thank you for sharing it, I will add it to the wiki I have one more question, does the battery drain while you are charging it (under high workloads such as compiling stuff)? RE: Possible battery and performance improvement - rimaille - 11-09-2020 (11-08-2020, 03:34 PM)xehartnort Wrote: I have one more question, does the battery drain while you are charging it (under high workloads such as compiling stuff)? I have a superlight desktop environnement, as much as i can built from scratch on archlinux. Screen luminosity is set to 50%, nor nvme or sdcard. CPU OC and UV (big 2,088Ghz@1,25V, little 1.6Ghz) After 10 min of stress --cpu 6 , i got a peak power usage at 9,7W, with a median at 9,4W (because of wifi usage). CPU max temp is 57 C Battery drain from 100% to 98%, i plugged back the barel power supply, stress test always running : verdict... always a drain, slow, but still : after 15 min, battery went to 95%. Also i would say this use case does not represent the reality, when compiling, cpu have alternance of full load and average load, i/o are sometimes the bottleneck... On everyday usage, i never saw any limitation due to power drain : most of the time pbp is between 2,5W and 3,5W. |