Fix: Keep HDMI enabled in installation script (needed for screen control)
This commit is contained in:
@@ -143,9 +143,9 @@ if ! sudo visudo -c; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Open all UART serial ports and disable HDMI + Bluetooth (avoid duplication)
|
# Open all UART serial ports and disable HDMI + Bluetooth (avoid duplication)
|
||||||
info "Configuring UART serial ports and disabling HDMI/Bluetooth to save power..."
|
info "Configuring UART serial ports and disabling Bluetooth to save power..."
|
||||||
if ! grep -q "enable_uart=1" /boot/firmware/config.txt; then
|
if ! grep -q "enable_uart=1" /boot/firmware/config.txt; then
|
||||||
echo -e "\nenable_uart=1\ndtoverlay=uart0\ndtoverlay=uart1\ndtoverlay=uart2\ndtoverlay=uart3\ndtoverlay=uart4\ndtoverlay=uart5\n\n# Disable HDMI to save power (~20-30mA)\nhdmi_blanking=2\n\n# Disable Bluetooth to save power (~20-30mA)\ndtoverlay=disable-bt" | sudo tee -a /boot/firmware/config.txt > /dev/null
|
echo -e "\nenable_uart=1\ndtoverlay=uart0\ndtoverlay=uart1\ndtoverlay=uart2\ndtoverlay=uart3\ndtoverlay=uart4\ndtoverlay=uart5\n\n# Disable Bluetooth to save power (~20-30mA)\ndtoverlay=disable-bt" | sudo tee -a /boot/firmware/config.txt > /dev/null
|
||||||
success "UART configuration, HDMI and Bluetooth disable added."
|
success "UART configuration, HDMI and Bluetooth disable added."
|
||||||
else
|
else
|
||||||
warning "UART configuration already set. Skipping."
|
warning "UART configuration already set. Skipping."
|
||||||
|
|||||||
Reference in New Issue
Block a user