Skip to content

Commit f91a268

Browse files
committed
main: Be noisier in the horrible fail case.
Signed-off-by: Hector Martin <[email protected]>
1 parent 7720c64 commit f91a268

2 files changed

Lines changed: 26 additions & 7 deletions

File tree

src/main.py

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -847,15 +847,32 @@ def main(self):
847847
if self.sysinfo.sfr_full_ver != self.sysinfo.sros_full_ver:
848848
p_error("Mismatched System Firmware / System Recovery detected!")
849849
print()
850-
p_error("Critical bugs in Apple's update process introduced in macOS Sonoma 14.0 and")
851-
p_error("macOS Ventura 13.6 can cause your System Recovery to not be updated properly.")
852-
p_error("It is not safe to install a new OS on this computer until this is resolved.")
853-
p_error("Please apply all macOS updates available and try again. If the problem remains,")
854-
p_error("you will have to wait until Apple fixes their buggy update process.")
850+
p_warning("Critical bugs in Apple's update process introduced in macOS Sonoma 14.0 and")
851+
p_warning("macOS Ventura 13.6 can cause your System Recovery to not be updated properly.")
852+
p_warning("It is not safe to install a new OS on this computer until this is resolved.")
853+
p_warning("Please apply all macOS updates available and try again. If the problem remains,")
854+
p_warning("you will have to wait until Apple fixes their buggy update process.")
855855
print()
856-
p_error("More information:")
857-
p_error("https://github.com/AsahiLinux/docs/wiki/macOS-Sonoma-Boot-Failures")
856+
p_warning("More information:")
858857
print()
858+
p_plain( f" {col(BLUE, BRIGHT)}https://github.com/AsahiLinux/docs/wiki/macOS-Sonoma-Boot-Failures{col()}")
859+
print()
860+
if (self.sysinfo.device_class in PROMOTION_DEVICES and
861+
split_ver(self.sysinfo.sfr_ver) > split_ver(BUGGY_SFR_MIN)):
862+
hz = self.sysinfo.get_refresh_rate()
863+
if hz != "120.00Hz":
864+
p_error(f"{col(BLINK)}CRITICAL WARNING: {col(NBLINK)}You have a ProMotion display machine set to a display refresh")
865+
p_error("other than 120Hz / ProMotion mode.")
866+
print()
867+
p_error("You MUST change this to ProMotion mode IMMEDIATELY. Your machine is currently")
868+
p_error("unable to use System RecoveryOS, which is a very dangerous situation.")
869+
p_error("This is a critical Apple bug.")
870+
else:
871+
p_warning(f"{col(BLINK)}WARNING:{col(NBLINK)} You have a ProMotion display machine. Your display refresh is set to")
872+
p_warning("ProMotion mode. DO NOT CHANGE THIS TO ANY OTHER MODE. Doing so would make your")
873+
p_warning("System RecoveryOS stop working, which is a very dangerous situation.")
874+
p_warning("This is a critical Apple bug.")
875+
print()
859876
sys.exit(1)
860877

861878
if (self.sysinfo.device_class in PROMOTION_DEVICES and

src/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def align_down(v, a=16384):
7272

7373
BRIGHT = 1
7474
DIM = 2
75+
BLINK = 5
76+
NBLINK = 25
7577
NORMAL = 22
7678
RESET_ALL = 0
7779

0 commit comments

Comments
 (0)