remove drm hardcode

switch to tinydrm_install logic
This commit is contained in:
Mikey Sklar 2024-05-03 12:11:25 -07:00
parent fb589e49b7
commit 2309e7b8ea

View file

@ -118,7 +118,7 @@ config = [
"270": "touch-swapxy,touch-invy",
},
},
"overlay": "dtoverlay=pitft35-resistive,rotate={pitftrot},speed=20000000,fps=20,drm",
"overlay": "dtoverlay=pitft35-resistive,rotate={pitftrot},speed=20000000,fps=20",
"overlay_drm_option": "drm",
"force_x11": True,
"calibrations": {
@ -902,7 +902,7 @@ restart the script and choose a different orientation.""".format(rotation=pitftr
shell.bail("Unable to install display drivers")
shell.info(f"Updating {boot_dir}/config.txt...")
if not update_configtxt(tinydrm_install=wayland):
if not update_configtxt(tinydrm_install=(not is_bullseye)):
shell.bail(f"Unable to update {boot_dir}/config.txt")
if "touchscreen" in pitft_config: