#
#asahi-dev · 2025-10-25 21:14
chaos_princessthat mostly does power management, but is also a kitchen sink of stuff that apple couldn't find a better place for
#asahi-dev · 2025-10-25 21:13
chaos_princessin this case pmgr refers to a specific device in the ADT
#asahi-dev · 2025-10-25 21:13
nicolas17pmgr = power manager, MMIOs = memory-mapped I/O registers
#asahi-dev · 2025-10-25 21:13
nicolas17(all hypothetical examples)
#asahi-dev · 2025-10-25 21:12
nicolas17it won't help figure out "the Bluetooth driver doesn't even support sleep and the hardware is left turned on" :P
#asahi-dev · 2025-10-25 21:12
terri see, okay. super noob question @chaos_princess, can you elaborate on "pmgr mmios"? i haven't heard of that before
#asahi-dev · 2025-10-25 21:12
terryeah, you're right
#asahi-dev · 2025-10-25 21:11
nicolas17sleepgraph seems to be for like, "why is it taking a whole 6 seconds to enter sleep, oh most of that 6s is spent on the sleep handler of the Bluetooth driver"
#asahi-dev · 2025-10-25 21:09
chaos_princesswhat you want is to set up m1n1, trace macos writes to pmgr mmios, replicate them on linux and see which ones help.
#asahi-dev · 2025-10-25 21:09
chaos_princessno, that thing would just tell you what is happening during entry to sleep, not what happens during sleep
#asahi-dev · 2025-10-25 21:08
terryeah, that makes sense. what i don't really understand is understanding what is actually doing stuff while sleep. that's why i was thinking about sleepgraph, because of the ftrace probes, but yeah i guess that wouldn't really help after all
#asahi-dev · 2025-10-25 21:04
chaos_princessyou want to remove "fixed costs" (disable the screen, etc), and then measure system power. Then figure out how to reduce it.
#asahi-dev · 2025-10-25 21:04
chaos_princess^
#asahi-dev · 2025-10-25 21:03
nicolas17that seems to be for debugging how much time it takes to suspend?
#asahi-dev · 2025-10-25 21:03
terrseems like it somehow runs ftrace probes during sleep...? which seemed like it could be helpful for seeing what's running during suspension, but i'm new to this whole realm so maybe i'm barking up the wrong tree
#asahi-dev · 2025-10-25 21:03
terrdammit, sorry, sleepgraph: https://github.com/torvalds/linux/blob/master/tools/power/pm-graph/sleepgraph.py
#asahi-dev · 2025-10-25 21:02
terr> there seems to be 100 things called powergraph :/
#asahi-dev · 2025-10-25 21:01
nicolas17there seems to be 100 things called powergraph :/
#asahi-dev · 2025-10-25 21:01
chaos_princessanyway, if you want to measure power, look at /sys/class/power_supply/macsmc-battery/power_now
#asahi-dev · 2025-10-25 20:58
chaos_princessi do not think it matters as we are doing s2idle, not "s3 sleep" (not quite correct, but whatever). So, the timer does not need to be capable of waking the machine, only waking the cpu
#asahi-dev · 2025-10-25 20:56
terrhey folks, i'm pretty new to tinkering with asahi. i'm trying to understand power management and why suspension power consumption is so much higher than when i'm on macos (a big project, i know). to do that, i'm trying to use linux's powergraph tool, but it relies on rtcwake - it looks like my /dev/rtc0 is not wakeup-enabled. i can't seem to find much on this online, does rtcwake work for others?
#asahi-dev · 2025-10-25 11:17
jannauI want the merged patches eventually before rebasing onto the kernel which carries them so that the rebase drops them effortlessly
#asahi-dev · 2025-10-25 11:14
chadmedthis stuff wont be merged until 6.19 at the earliest anyway so i think leaving it for now is smart
#asahi-dev · 2025-10-25 11:14
jannauI guess I could add backward compat configs which select/depend on the new CONFIG
#asahi-dev · 2025-10-25 11:12
jannauchadmed: no, I didn't want to change the macsmc input config symbol again and the rest didn't look like important or differ from what I already have
#asahi-dev · 2025-10-25 11:08
chadmedjannau: did you pull in v4 of the smc series?
#asahi-dev · 2025-10-25 10:12
jannauI pushed asahi-6.17.5-1 to github
#asahi-dev · 2025-10-25 10:02
LarstiQ"The update cadence should now be a lot more frequent than biennially!" \o/
#asahi-dev · 2025-10-25 08:17
NikitaSavcThan hci logs
#asahi-dev · 2025-10-25 08:17
NikitaSavcI saw HCI loggings, but if feels that I need more info (?)
#asahi-dev · 2025-10-25 08:16
NikitaSavcI want reverse proprietary protocol for heating aids
#asahi-dev · 2025-10-25 08:15
NikitaSavcHow Can I sniff Bluetooth packets?
#asahi-dev · 2025-10-25 08:15
NikitaSavcNow I have iPhone 7 with jailbreak
#asahi-dev · 2025-10-25 08:15
NikitaSavcHi, I was asking you about MFi reversing protocol like few months ago
#asahi-dev · 2025-10-24 21:32
vtpieter*github
#asahi-dev · 2025-10-24 21:30
vtpieterAt the very least I can make a gitlab issue, none so far for it I think though https://github.com/AsahiLinux/m1n1/issues/506 is quering exactly this
#asahi-dev · 2025-10-24 21:27
vtpieterha I'd rather try spmi but why not I'll give it a go from macos 15.x to see if anything useful comes out
#asahi-dev · 2025-10-24 21:24
chaos_princessor, jump into the deep end of the pool and fix nvme too, the choice is yours :P
#asahi-dev · 2025-10-24 21:24
chaos_princessget a 14 pkg from here https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ use it to create a usb-bootable installer, create a second apfs parition, and install it there
#asahi-dev · 2025-10-24 21:23
chaos_princessyes, something changed in iirc 15.x that breaks our nvme driver... somehow
#asahi-dev · 2025-10-24 21:22
vtpieterOk gotcha! Also I just noticed I'm on maxos 15.x already sadly, what will be the impact?
#asahi-dev · 2025-10-24 21:22
chaos_princessright now there is a spmi driver, but it is extremely barebones, enough for m1/2, but will be insufficient for m3+, as they moved the usb pd controller to spmi from i2c
#asahi-dev · 2025-10-24 21:21
chaos_princesssomeone else already did a lot of RE work and made some pretty good docs
#asahi-dev · 2025-10-24 21:21
chaos_princessso, my idea is spmi
#asahi-dev · 2025-10-24 21:19
vtpieterHence shouldn't be that hard, what's the first things to focus on afterwards? I have 0 skills regarding GPUs so some other stuff (gpio, i2c, ethernet) would be a better fit
#asahi-dev · 2025-10-24 21:17
vtpieterOK thanks I'll see if I can get this going, documentation looks good!
#asahi-dev · 2025-10-24 21:16
chaos_princessanyway, m1n1 is a good start
#asahi-dev · 2025-10-24 21:16
chaos_princesswell, we all started somewhere.
#asahi-dev · 2025-10-24 21:15
vtpieterNope normally I'm struggeling already to make drivers work *with* the datasheets available :)
#asahi-dev · 2025-10-24 21:14
chaos_princessdo you have experience in specifically RE-d drivers or ones where you had the hardware reference?

plus ›