Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yuyichao has joined #asahi-dev
yuyichao_ has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
leah2 has quit [Remote host closed the connection]
leah2 has joined #asahi-dev
Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<sven>
looks like this thing has three watchdog timers. first one can also fire an interrupt N ticks before reset but then always resets to recovery mode. The other two just seem to do a “normal” reset
<sven>
and more importantly: unlike the usb pd reset these don’t seem to turn that annoying startup chime back one :D
<maz>
sven: it's the bestest!!!!
<sven>
according to the ADT there’s also some GPIO involved but I haven’t been able to figure out what it does yet
<sven>
maz: still needs macOS at least once for now to turn it off for the first time though :-(
<maz>
sven: yeah, still can't be bothered. I found that I end-up hacking on the M1 when I'm not next to it. another good reason to go back into the office!
<sven>
hah :D
<sven>
mine is next to me and I’ve actually been very close to just forcibly disconnecting that speaker
<maz>
yup. given that PD reset is what I use all the time, that's the only solution (at least as I understand it)
<kettenis>
heh, I actually find the chime useful as feedback when I'm sitting in my lazy chair and I'm resetting the mini on my desk
Dcow has joined #asahi-dev
Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<kettenis>
anyway, I'm somewhat surprised nobody implemented a linux driver for the watchdog yet
<sven>
(and just after that the usb device disappears)
<sven>
you could try to disallow any write to 0x1c and just print it instead
<jannau>
no writes to 0x1c before reset. macos' serial log ends with "IOPlatformHaltRestartAction -> AppleT6001PMGR"
X-Scale has joined #asahi-dev
<kettenis>
it isn't inconceivable that they implemented a "proper" reset path for the new machines instead of abusing the watchdog timer
X-Scale` has quit [Ping timeout: 480 seconds]
<sven>
oh, this is on the pro/max?
<jannau>
yes
<jannau>
no need for a "proper" reset path on iphones and ipads which don't have UI reset
<jannau>
M1 seems to be really a ipad chip which somehow ended up in mac devices
<jannau>
a watchdog reset with empty battery (~5% here) is poweroff. poweroff in linux worked unexpectedly
Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Dcow has joined #asahi-dev
<sven>
hah. so now we just need to find a way to quickly the drain the battery and then we also have power off without requiring SMC :P
<kettenis>
maybe you should implement a battery status reader to see how fast you can drain your battery
<kettenis>
oh wait...
<kettenis>
meanwhile I can confirm that the touchpad does indeed produce the same kind of packets as those handled by the bcm5974.c linux driver when in raw mode
Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]