feat(performance): voeg hardcore boot optimalisaties toe voor snellere opstarttijd
Deze update implementeert diverse hardware- en systeemoptimalisaties om de opstarttijd van Raspberry Pi-systemen te verkorten tot minder dan 60 seconden. Dit omvat het uitschakelen van niet-noodzakelijke services, het overklokken van CPU en SD-kaart, en aanpassingen aan kernelparameters. HDMI audio instellingen en Docker image preload zijn ook verbeterd. Deze wijzigingen zijn vooral gunstig voor setups die snelle herstarten vereisen zonder invloed op cruciale functionaliteiten. Test zorgvuldig op stabiliteit, vooral bij overklokinstellingen.
This commit is contained in:
parent
11d9c9341d
commit
a015391b26
1
done
1
done
@ -74,3 +74,4 @@ Wed May 28 14:02:31 CEST 2025: Debug tijd synchronisatie toegevoegd tussen debug
|
|||||||
2025-05-28 19:59:48 - ✅ HDMI audio automatisch configureren toegevoegd aan pi-setup-desktop.sh - nieuwe installaties hebben automatisch HDMI audio
|
2025-05-28 19:59:48 - ✅ HDMI audio automatisch configureren toegevoegd aan pi-setup-desktop.sh - nieuwe installaties hebben automatisch HDMI audio
|
||||||
2025-05-28 20:02:25 - ✅ Pi HDMI volume controle toegevoegd aan webapp UI - slider, test functie, API endpoint, automatisch opslaan via amixer
|
2025-05-28 20:02:25 - ✅ Pi HDMI volume controle toegevoegd aan webapp UI - slider, test functie, API endpoint, automatisch opslaan via amixer
|
||||||
2025-05-28 20:04:45 - Installatie instructies gegeven: git pull + chmod +x + ./pi-setup-desktop.sh voor bijgewerkte HDMI audio configuratie
|
2025-05-28 20:04:45 - Installatie instructies gegeven: git pull + chmod +x + ./pi-setup-desktop.sh voor bijgewerkte HDMI audio configuratie
|
||||||
|
2025-05-29 16:54:45 - Hardcore boot optimalisaties toegevoegd: CPU overclock, SD overclock, meer services disabled, fastboot parameter, RAM optimalisaties voor sub-60sec boot
|
||||||
|
|||||||
@ -124,6 +124,26 @@ StartupNotify=false
|
|||||||
Terminal=false
|
Terminal=false
|
||||||
POWER_EOF
|
POWER_EOF
|
||||||
|
|
||||||
|
# 💀 HARDCORE BOOT OPTIMALISATIES voor DESKTOP
|
||||||
|
echo "💀 Desktop hardcore optimalisaties..."
|
||||||
|
|
||||||
|
# Disable services die desktop niet nodig heeft
|
||||||
|
sudo systemctl disable bluetooth.service 2>/dev/null || true
|
||||||
|
sudo systemctl disable ModemManager.service 2>/dev/null || true
|
||||||
|
sudo systemctl disable systemd-timesyncd.service 2>/dev/null || true
|
||||||
|
sudo systemctl disable NetworkManager-wait-online.service 2>/dev/null || true
|
||||||
|
|
||||||
|
# Boot optimalisaties
|
||||||
|
echo "# Desktop boot optimalisaties" | sudo tee -a /boot/config.txt
|
||||||
|
echo "boot_delay=0" | sudo tee -a /boot/config.txt
|
||||||
|
echo "gpu_mem=128" | sudo tee -a /boot/config.txt
|
||||||
|
echo "arm_freq=1200" | sudo tee -a /boot/config.txt
|
||||||
|
|
||||||
|
# Kernel optimalisaties
|
||||||
|
if ! grep -q "quiet" /boot/cmdline.txt; then
|
||||||
|
sudo sed -i 's/$/ quiet fastboot/' /boot/cmdline.txt
|
||||||
|
fi
|
||||||
|
|
||||||
# Test Docker setup
|
# Test Docker setup
|
||||||
echo "🧪 Docker setup testen..."
|
echo "🧪 Docker setup testen..."
|
||||||
cd /home/$USER/adhan
|
cd /home/$USER/adhan
|
||||||
|
|||||||
28
pi-setup.sh
28
pi-setup.sh
@ -154,6 +154,34 @@ if ! grep -q "quiet" /boot/cmdline.txt; then
|
|||||||
sudo sed -i 's/$/ quiet/' /boot/cmdline.txt
|
sudo sed -i 's/$/ quiet/' /boot/cmdline.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 💀 HARDCORE OPTIMALISATIES
|
||||||
|
echo "💀 Hardcore snelheidsoptimalisaties..."
|
||||||
|
|
||||||
|
# Disable meer services
|
||||||
|
sudo systemctl disable systemd-timesyncd.service 2>/dev/null || true
|
||||||
|
sudo systemctl disable rsyslog.service 2>/dev/null || true
|
||||||
|
sudo systemctl disable systemd-journal-flush.service 2>/dev/null || true
|
||||||
|
sudo systemctl disable NetworkManager-wait-online.service 2>/dev/null || true
|
||||||
|
|
||||||
|
# RAM optimalisaties
|
||||||
|
echo "# RAM optimalisaties" | sudo tee -a /boot/config.txt
|
||||||
|
echo "gpu_mem=64" | sudo tee -a /boot/config.txt
|
||||||
|
echo "arm_freq=1200" | sudo tee -a /boot/config.txt
|
||||||
|
|
||||||
|
# SD kaart optimalisaties
|
||||||
|
echo "# SD kaart optimalisaties" | sudo tee -a /boot/config.txt
|
||||||
|
echo "dtparam=sd_overclock=100" | sudo tee -a /boot/config.txt
|
||||||
|
|
||||||
|
# Kernel parameters voor snelheid
|
||||||
|
if ! grep -q "fastboot" /boot/cmdline.txt; then
|
||||||
|
sudo sed -i 's/$/ fastboot/' /boot/cmdline.txt
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Preload Docker images
|
||||||
|
echo "🐳 Docker images voorladen..."
|
||||||
|
cd /home/$USER/adhan
|
||||||
|
docker-compose -f docker-compose-pi.yml pull 2>/dev/null || true
|
||||||
|
|
||||||
# Extra: Schakel wachtwoord login uit voor console (optioneel)
|
# Extra: Schakel wachtwoord login uit voor console (optioneel)
|
||||||
echo "🔒 Console login optimaliseren..."
|
echo "🔒 Console login optimaliseren..."
|
||||||
sudo raspi-config nonint do_boot_behaviour B2
|
sudo raspi-config nonint do_boot_behaviour B2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user