Merge pull request #344 from makermelissa/main

Add some checks to remove displaying errors
This commit is contained in:
Limor "Ladyada" Fried 2025-05-21 13:57:38 -04:00 committed by GitHub
commit a29da80873
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -654,6 +654,7 @@ WantedBy=multi-user.target
def uninstall_fbcp():
uninstall_fbcp_rclocal()
# Enable overscan compensation
if shell.exists("/etc/systemd/system/fbcp.service"):
shell.run_command("sudo systemctl disable fbcp.service")
# Set up HDMI parameters:
shell.run_command("raspi-config nonint do_overscan 0")
@ -665,7 +666,7 @@ def uninstall_fbcp():
shell.pattern_replace(f"{boot_dir}/config.txt", '^hdmi_mode=87.*$')
shell.pattern_replace(f"{boot_dir}/config.txt", '^hdmi_cvt=.*$')
if not wayland and not is_bullseye:
if not wayland and not is_bullseye and shell.exists("/etc/lightdm"):
print("Restoring Wayland as default display manager...")
shell.set_window_manager("wayland")