#asahi-dev · 2021-10-19 00:03
alyssameanwhile my kernel isn't booting today#asahi-dev · 2021-10-18 23:53
alyssaDelightful#asahi-dev · 2021-10-18 23:48
alyssa---or shut them off for that matter#asahi-dev · 2021-10-18 23:48
alyssado normies reboot their phones?#asahi-dev · 2021-10-18 23:48
alyssaTouche.#asahi-dev · 2021-10-18 23:42
alyssa(Re iPhone shut down time -- it's about 7 seconds.)#asahi-dev · 2021-10-18 23:41
alyssaThey can and do. Unless you force a mode set -- and they try hard on recent macOS to keep you from doing so, guarding real mode sets behind an option key or something in "Displays" -- it'll just software scale.#asahi-dev · 2021-10-18 23:40
alyssa"Sure, whatever," you say. "Surely they can't do that for external displays?"#asahi-dev · 2021-10-18 23:40
alyssaActually, they have only a single resolution, full stop. Different modes in "Displays" are just software scaling ("Looks like 1920x1080")#asahi-dev · 2021-10-18 23:39
alyssaAnother classic is the M1 MacBooks that switch resolution "instantly"#asahi-dev · 2021-10-18 23:39
alyssaApple has a lot of stage magic like this...#asahi-dev · 2021-10-18 23:39
alyssaIn reality shut down is not instant, but if you turn off the backlight immediately and do the rest of shutdown "in the dark", the user *thinks* it's instant.#asahi-dev · 2021-10-18 23:39
alyssaHere we poke behind the curtain at another bit of Apple stage magic... turn off the backlight first in shutdown, and then the user thinks the phone is shutdown#asahi-dev · 2021-10-18 23:38
alyssaRelatedly, when shutting down the dark phone with inversion, a white screen persists for quite a while after the phone allegedly shut off.#asahi-dev · 2021-10-18 23:37
alyssaknocks at every tenant and asks for the colour of their phone#asahi-dev · 2021-10-18 23:37
alyssaThe handoff between the early and late framebuffers (which is supposed to be seamless and invisible) is suddenly noticeable.#asahi-dev · 2021-10-18 23:37
alyssaThe boot starts as white-on-black and towards the end flips to black-on-white#asahi-dev · 2021-10-18 23:36
alyssaDark iPhone, with the "Invert colours" accessibility feature,#asahi-dev · 2021-10-18 23:36
alyssaOk, this is interesting--#asahi-dev · 2021-10-18 23:36
alyssawell, 3, and also a screw driver#asahi-dev · 2021-10-18 23:36
alyssayou're telling me I need to buy *2* iPhones? :-p#asahi-dev · 2021-10-18 23:32
alyssaI guess I need to go turn on and off an iPhone now for... research#asahi-dev · 2021-10-18 23:32
alyssaI'd believe it#asahi-dev · 2021-10-18 23:28
alyssaNo idea what that has to do with backlight on shutdown though.#asahi-dev · 2021-10-18 23:28
alyssaNice one 👍#asahi-dev · 2021-10-18 23:28
alyssaAh, I did not know that about the iPhones. Yep, that'd be it :-)#asahi-dev · 2021-10-18 23:23
alyssaI suppose the real answer is to get rock solid power management ahead of people trying to daily drive asahi on MacBooks :0#asahi-dev · 2021-10-18 23:23
alyssamarcan: ^^ Not sure if you have thoughts on the above.#asahi-dev · 2021-10-18 23:22
alyssaFor now#asahi-dev · 2021-10-18 23:22
alyssaIf you don't handle it, the display stack hangs.#asahi-dev · 2021-10-18 23:22
alyssaIf you handle it, all is well.#asahi-dev · 2021-10-18 23:22
alyssaWhat happens if the firmware decides to query dark boot at some other time?#asahi-dev · 2021-10-18 23:22
alyssaDxxx callbacks can come from the firmware at any time for any reason.#asahi-dev · 2021-10-18 23:21
alyssahttps://apple.stackexchange.com/questions/313246/what-affects-the-colour-of-the-startup-screen#asahi-dev · 2021-10-18 23:20
alyssaMumble.#asahi-dev · 2021-10-18 23:18
alyssaIf the backlight is on, you know shutdown didn't happen..?#asahi-dev · 2021-10-18 23:18
alyssaWhat's wrong with "backlight stays on, display is off."?#asahi-dev · 2021-10-18 23:17
alyssa(I am good with that solution.)#asahi-dev · 2021-10-18 23:17
alyssaBut it sounds like you're in favour of handling D117 as true to keep the backlight on and then we can stop bickering about the shutdown code? :)#asahi-dev · 2021-10-18 23:16
alyssajmr2: Just to make sure you're following -- NOP is wrong because the return value of D117 is a bool and NOP returns a void. So the results will be unreliable, since the DCP will read garbage memory and will behave like TRUE if the garbage was nonzero and like FALSE if the garbage was zero.#asahi-dev · 2021-10-18 23:15
alyssaAlright#asahi-dev · 2021-10-18 23:15
alyssasome flag backed by NVRAM#asahi-dev · 2021-10-18 23:13
alyssaCONFIG_DARKBOOT is a thing in the open source XNU release#asahi-dev · 2021-10-18 23:13
alyssaBut failing to handle it at all would be wrong#asahi-dev · 2021-10-18 23:12
alyssaA priori either FALSE or TRUE is fine.#asahi-dev · 2021-10-18 23:11
alyssaso TRUE tells the DCP you want dark boot, whatever that is#asahi-dev · 2021-10-18 23:10
alyssaproxyclient/hv/trace_dcp.py: "D117": "bool UnifiedPipeline2::is_dark_boot()",#asahi-dev · 2021-10-18 23:10
alyssaI'm explaining why the DCP driver needs to handle everything and make the shutdown callback; omitting either would be incorrect#asahi-dev · 2021-10-18 23:09
alyssaIf we don't have a handler, we don't ack the call, and then the DCP just hangs forever.#asahi-dev · 2021-10-18 23:09
alyssaOmitting any handler that the DCP tries to use is wrong.