nisargjhaveri / WirelessAndroidAutoDongle

Use Wireless Android Auto with a car that supports only wired Android Auto using a Raspberry Pi.
MIT License
747 stars 86 forks source link

Preformance boost #197

Open japuzzo opened 2 months ago

japuzzo commented 2 months ago

Given a new Raspberry Pi Zero 2W Edited /boot/config.txt

# Overclocking Rpi Z-2W slightly. Does not need heat-sink to support these slight improvements 
arm_freq=1085
gpu_freq=530
over_voltage=2
core_freq=515
sdram_freq=533
over_voltage_sdram=1

It did improve touch response times. Did not fix audio stuttering of FLAC files, but did help with MP3.

WARNING! If you do not know what over-clocking is do not attempt, do not modify! If you do not know what you are doing, you will brick your Rasbery Pi, destroy your car's internals leading to your tragic death! Thus DO NOT ATTEMPT anything if you don't understand what you are doing!!! You have been WARNED!!!

japuzzo commented 2 months ago

Did some more tweaking after looking at: https://www.raspberrypi.com/documentation/computers/config_txt.html

Upped the min frequency by the same about as the max. Did not force turbo because it may overheat unit. Removed GPU setting as that is not needed.

# Overclocking Rpi Zero 2W slightly. Does not need heat-sink to support these slight improvements 
arm_freq=1085
arm_freq_min=685
core_freq=515
core_freq_min=365
over_voltage=2
sdram_freq=533
over_voltage_sdram=1

WARNING! If you do not know what you are doing, you will brick your Pi, destroy your car which will cause your tragic death!

wsadzc commented 2 months ago

I'm very happy that this has effectively improved my unstable situation. I've also added passive cooling, otherwise the heat would be quite severe and could lead to damage.

japuzzo commented 1 month ago

When out and purchased a heatsink for my Rpi-Z-W to test the maximum overclocking setting on the dongle:

# Overclocking Rpi Z 2W == with a heavy duty heatsink ONLY
arm_freq=1150
arm_freq_min=750
core_freq=600
core_freq_min=450
over_voltage=6
sdram_freq=600
over_voltage_sdram=4
sdram_schmoo=0x02000020

These settings will void your warranty ( the over_voltage=6 blows a fuse that's how they can tell ) so don't do it unless you know what you are doing and also have really good cooling! Since the voltage is increased, there will be more heat! I have not found any reports of a stable Rpi-Z with settings of greater then arm_freq=1150

japuzzo commented 1 month ago

Heatsink used in testing:

61Mve0FvTcL _SL1500_