#
✕ nick:marcan
#asahi · 2022-08-01 05:21
marcanso it can just do it itself, while the CPU is off
#asahi · 2022-08-01 05:21
marcannicolas17: the WLAN firmware on these macs has mDNS support (and ARP and ICMP I think)
#asahi · 2022-08-01 05:15
marcanif anyone is bored enough, have fun :-) (that's a crackme)
#asahi · 2022-08-01 05:15
marcancommand code is 0x1300
#asahi · 2022-08-01 05:15
marcanactually, I guess I should post the Euskal Encounter Hack It level #5: https://mrcn.st/t/hackit2022-5-m1n1.bin.gz
#asahi · 2022-08-01 05:15
marcanthat's bad
#asahi · 2022-08-01 05:15
marcanuh
#asahi · 2022-08-01 05:15
marcanI thought firmware-level hibernation was only a thing in the bad old APM days
#asahi · 2022-08-01 05:14
marcanoh, that's weird.
#asahi · 2022-08-01 05:14
marcanah yeah, that's common
#asahi · 2022-08-01 05:13
marcane.g. right now I think we only really wake up on power button/lid open for the s2idle mode
#asahi · 2022-08-01 05:12
marcanso it's a lot easier to make them not happen unless they should
#asahi · 2022-08-01 05:12
marcanthe "nice" thing about s2idle is that it isn't really sleep, which means wakeups are entirely up to the kernel anyway
#asahi · 2022-08-01 05:11
marcanI left an MBP sleeping before going on vacation, >2 weeks later when I came back it was still alive at 1% battery
#asahi · 2022-08-01 05:11
marcanMacs have fairly impressive sleep time, and I'm convinced it's worse than it should be due to macOS doing stupid stuff
#asahi · 2022-08-01 05:10
marcan(I've written a bunch even)
#asahi · 2022-08-01 05:09
marcanbut there are plenty of CTF challenges / crackmes that are the exact same thing but perfectly legal to do :)
#asahi · 2022-08-01 05:09
marcanyeah, the technical aspect has some similarities, I just don't want to promote what ultimately is copyright infringement (even if just for a "closed beta" deal), so just avoid that subject here
#asahi · 2022-08-01 05:08
marcanmost of what we work on is closer to the embedded development angle, i.e. the arduino -> general microcontroller development -> driver development kind of pipeline, I'd say
#asahi · 2022-08-01 05:07
marcankind of, though not exactly what we do here (and also, not a very appropriate subject tbh)
#asahi · 2022-08-01 05:06
marcanhack a lot on stuff :)
#asahi · 2022-08-01 05:04
marcanso I guess my things to work on the next few weeks are: 1. u-boot MTP support, 2. USB xHCI firmware loading, 3. WiFi shenanigans (tracer, make sleep work, fix AP mode, btcoex), 4. s2idle (mostly just testing after WiFi works), 5. PSCI
#asahi · 2022-08-01 05:03
marcanbetter get that out of the way
#asahi · 2022-08-01 05:02
marcanalso I need to throw in the xHCI firmware thing
#asahi · 2022-08-01 05:02
marcanthen the cpu deep sleep stuff depends on the psci story, but I'll be looking at that after
#asahi · 2022-08-01 05:01
marcanonce that works it'll at least be good enough to stuff in bags (cpus won't go into deep sleep, but it still freezes userspace so it's good enough to say "my laptop won't cook itself by accident")
#asahi · 2022-08-01 05:01
marcanfwiw s2idle works already, except for pci/wifi; that's the only blocker
#asahi · 2022-08-01 05:00
marcanyeah, I saw
#asahi · 2022-08-01 04:57
marcan(well, that plus CPU sleep)
#asahi · 2022-08-01 04:56
marcan(s2idle will be good enough for ~everyone, given what I've seen on macOS)
#asahi · 2022-08-01 04:56
marcansjs: full-system sleep mode is probably a ways away but doesn't *actually* matter much. s2idle isn't ready on any platform yet but I'm going to be working on that ~next
#asahi · 2022-08-01 04:55
marcanthat might make it a lot easier to get actionable reports from users
#asahi · 2022-08-01 04:55
marcanlike "asahi rebind-touchpad" to work around that problem, "asahi trace start spi" to enable spi tracing, "asahi trace save spi" to save it out to a file, etc. could even have some kind of auto-submission thing
#asahi · 2022-08-01 04:55
marcanI was also just thinking I want to make an "asahi" catch-all tool/script, to just throw kitchen sink utilitles in there
#asahi · 2022-08-01 04:54
marcanyeah, same, I was reading up on it a bit during the trip
#asahi · 2022-08-01 04:53
marcanbetter than printking all the things
#asahi · 2022-08-01 04:53
marcanso we can just log e.g. every SPI event, and when bad stuff happens, dump that out
#asahi · 2022-08-01 04:53
marcanthe event trace buffer thing
#asahi · 2022-08-01 04:53
marcanI want to starting throwing kernel probe stuff everywhere
#asahi · 2022-08-01 04:49
marcan(I bet some of the knowledge from the MTP stuff also might transfer)
#asahi · 2022-08-01 04:49
marcanspi-hid driver probably needs an overhaul anyway
#asahi · 2022-08-01 04:49
marcanalso the SPI checksum failures still bug me, I need to figure out what's up with that
#asahi · 2022-08-01 04:49
marcan- there's some issue with the trackpad driver, sometimes (after shutting the lid?) it dies. re-binding magicmouse fixes it, so it looks like a HID level issue? not sure, need to try to repro
#asahi · 2022-08-01 04:48
marcanthe boot framebuffer stuff? I think the DCP shutdown hack largely took care of that
#asahi · 2022-08-01 04:48
marcan- screen-off (lid shut) idle time is a good 16+ hours going by the battery estimate (which again is evidence it's not actually putting out that much power)
#asahi · 2022-08-01 04:47
marcanI *think* ultimately what's happening is there is no dissipation with no airflow, so the big chunky chassis ends up collecting heat, but it's not like the SoC is getting very hot itself when the machine mostly idle
#asahi · 2022-08-01 04:46
marcan- yes, it does somewhat cook itself if you stuff it in a bag (no sleep mode yet), but not *that* badly. it gets pretty warm, but not like emergency shutdown warm or burning your hands warm.
#asahi · 2022-08-01 04:45
marcanoh yeah, things I noticed while using it for travel:
#asahi · 2022-08-01 04:45
marcan(Linus really needs that to travel with it, and I agree it really sucks not to have)
#asahi · 2022-08-01 04:45
marcanas in I might stream it in a few minutes

plus ›