Merge pull request #344 from makermelissa/main
Add some checks to remove displaying errors
This commit is contained in:
commit
a29da80873
1 changed files with 3 additions and 2 deletions
|
|
@ -654,7 +654,8 @@ WantedBy=multi-user.target
|
||||||
def uninstall_fbcp():
|
def uninstall_fbcp():
|
||||||
uninstall_fbcp_rclocal()
|
uninstall_fbcp_rclocal()
|
||||||
# Enable overscan compensation
|
# Enable overscan compensation
|
||||||
shell.run_command("sudo systemctl disable fbcp.service")
|
if shell.exists("/etc/systemd/system/fbcp.service"):
|
||||||
|
shell.run_command("sudo systemctl disable fbcp.service")
|
||||||
# Set up HDMI parameters:
|
# Set up HDMI parameters:
|
||||||
shell.run_command("raspi-config nonint do_overscan 0")
|
shell.run_command("raspi-config nonint do_overscan 0")
|
||||||
print("Configuring boot/config.txt for default HDMI")
|
print("Configuring boot/config.txt for default HDMI")
|
||||||
|
|
@ -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_mode=87.*$')
|
||||||
shell.pattern_replace(f"{boot_dir}/config.txt", '^hdmi_cvt=.*$')
|
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...")
|
print("Restoring Wayland as default display manager...")
|
||||||
shell.set_window_manager("wayland")
|
shell.set_window_manager("wayland")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue