Difference between revisions of "Overclocking"

Jump to navigation Jump to search
Line 4: Line 4:


Overclocking is a way to get more performance out of the system by running it at higher clock speeds than the factory default, usually while putting out more heat and using more power (You can also downclock to possibly reduce power consumption and thermals at the cost of performance). It is highly recommended that you avoid overvolting the device, as that has a high risk of damaging the hardware, hence the warning at the beginning of this page. However, just some slight overclocks without the added voltage can not only improve performance, but carry little risk to your device. It should be noted however that overclocking can cause instability, so you will need to test and see what values work best with your device (There is a silicon lottery for the Pinephone's hardware).
Overclocking is a way to get more performance out of the system by running it at higher clock speeds than the factory default, usually while putting out more heat and using more power (You can also downclock to possibly reduce power consumption and thermals at the cost of performance). It is highly recommended that you avoid overvolting the device, as that has a high risk of damaging the hardware, hence the warning at the beginning of this page. However, just some slight overclocks without the added voltage can not only improve performance, but carry little risk to your device. It should be noted however that overclocking can cause instability, so you will need to test and see what values work best with your device (There is a silicon lottery for the Pinephone's hardware).
= Instructions and Information =


=== Edit Pinephone DTS ===
=== Edit Pinephone DTS ===
Line 22: Line 20:
=== Extra information ===
=== Extra information ===


In the future it is possible that there will be a driver to adjust clockspeeds of the A64 from userspace without the need to recompile. Currently the only way to overclock is to either compile your own kernel, or modify just the DTB (instructions above).
In the future it is possible that there will be a driver to adjust clockspeeds of the A64 from userspace without the need to recompile. Currently the only way to overclock is to either compile your own kernel, or modify just the DTB (instructions above)


= A64-based boards =
= A64-based boards =
== Edit Pinephone DTS ==
In order to overclock the Pinephone you will have to first convert the DTB file in <code>/boot/dtbs/allwinner/</code> to a DTS file. You will see <code>sun50i-a64-pinephone-1.2.dtb</code>, and also two other files with different pinephone mainboard revisions (1.1 and 1.0). You will want to select the correct file for your pinephone (Most like 1.2 if you have a PostmarketOS or newer).
Once you've found the file, you can run the following command to convert the DTB to DTS:
<code>dtc -I dtb -O dts /boot/dtbs/allwinner/sun50i-a64-pinephone-1.2.dtb -o /boot/dtbs/allwinner/sun50i-a64-pinephone-1.2.dts</code>
Finally, modify the newly converted .dts file and change the clockspeeds you wish to modify.
To convert back to DTB:
<code>dtc -I dts -O dtb /boot/dtbs/allwinner/sun50i-a64-pinephone-1.2.dts -o /boot/dtbs/allwinner/sun50i-a64-pinephone-1.2.dtb</code>
{{note|In the future it is possible that there will be a driver to adjust clockspeeds of the A64 from userspace without the need to recompile. Currently the only way to overclock is to either compile your own kernel, or modify just the DTB (instructions above).}}
== GPU ==
== GPU ==
Open <code>arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi</code> (You will have to find the source of the kernel used by your distribution) in a text editor.
Open <code>arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi</code> (You will have to find the source of the kernel used by your distribution) in a text editor.