#asahi · 2025-08-03 00:43
chadmedit's been stalled for like two years, so probably not#asahi · 2025-08-03 00:41
druzeAlright I will give it my best! I assume it will take me some months as I'm currenlty workign full-time. Is it a chance that someone else will pick up this task while I'm at it? should I signal in some way that I'm working on it?#asahi · 2025-08-03 00:25
bgtlover[mds]druze: jump! that's the only way to learn quality stuff, no studying beforehand, just jump in there and see what years old beasts you uncover while browsing code nobody looked at in ages :p#asahi · 2025-08-03 00:25
chadmedyou wont learn how to write drivers unless you try#asahi · 2025-08-03 00:24
chadmedeverything thats left to do is challenging and/or requires more reverse engineering.#asahi · 2025-08-03 00:23
druzeare there easier tasks to get started, or do I just have to jump into it?#asahi · 2025-08-03 00:19
druzeAs said, Ive done some low-level cpp and Rust and familiar with the absolute basics of linux kernels, but have never written a hardware driver from scratch before. a h.264 decoder feels slightly out of reach for atm #asahi · 2025-08-03 00:05
j`eyhttps://github.com/eiln/avd#asahi · 2025-08-03 00:02
chadmedand as far as places to look, have a look at the python experiment in m1n1 and follow the breadcrumbs#asahi · 2025-08-03 00:02
chadmeddruze: no idea how long it would take as i have no idea what your skill level is :P #asahi · 2025-08-02 23:59
druzechadmed: Sounds interesting! Any idea of how long time it would take? Where should I look to get started?#asahi · 2025-08-02 23:49
chadmeddruze: if you want to practice on something somewhat challenging, there should be enough documentation around the place to pull together a driver for the H.264 decoder via either drm or v4l2. drm is preferred.#asahi · 2025-08-02 23:44
druzeI am very interested in kernel and driver development, but not sure if It would be too hard. I think interfacing with hardware is quite cool and stuff like performance and power management.#asahi · 2025-08-02 23:41
chadmeddruze: M2 is fine. what are you interested in working on? #asahi · 2025-08-02 23:26
druzeHi, Im interested in contributing to asahi. I recently finished my CS degree and have some experience with low-level programming. Any tips for areas or tasks that I can look into to get started? Also, planning on buying a M2 Air; would it be fine, or is M1 still strongly preferred for development? #asahi · 2025-08-02 23:16
druzeI #asahi · 2025-08-01 16:39
chaos_princessalso, bit indices of what it sets is probably unk1_2 under pmgr.devices, but they are off by one#asahi · 2025-08-01 16:36
chaos_princesslook at device tree from j314 (or probably any other m1 pro/max device), pmgr mmio range 41. Figure out the corresponding range on your m2, then figure out how that one works. It may or may not help, idk#asahi · 2025-08-01 16:35
nowayhaze_Yes, I want to understand this platfrom better anyway.#asahi · 2025-08-01 16:32
chaos_princessyou willing to do RE?#asahi · 2025-08-01 16:30
nowayhaze_I found this quote from marcan "I sort of suspect we still have at least one “stupid” power hog somewhere we haven’t found which will give us a nice boost when fixed, but it’s just a guess." from August 2023. Is this still the case? Other waiting for the busy core devs on asahi, is there any way for the broader community to help identify devices that are power hogs?#asahi · 2025-08-01 16:24
chaos_princessalso, there is no s3 at all here, it is not an acpi platform#asahi · 2025-08-01 16:24
chaos_princessyes, but again, there are other bits that need to be turned off before s3#asahi · 2025-08-01 16:24
nowayhaze_That being said, wouldn't vanilla m1/m2 users benefit from s3#asahi · 2025-08-01 16:23
nowayhaze_I'm getting -1097000 when the screen is off in asahi. I will have to get screen-off numbers on macos later.#asahi · 2025-08-01 16:16
chaos_princesspretty much#asahi · 2025-08-01 16:15
opticronI assume we'd need to better understand the power gating configuration on Pro/Max chips first (which is what improved s2idle needs anyway) to even consider s3#asahi · 2025-08-01 16:10
chaos_princess(as in, i can get 1W-ish power usage on a m1pro at idle with display off, and it is a much more power hungry machine)#asahi · 2025-08-01 16:08
chaos_princessalso, if you are measuring with screen on - your measurement is invalid#asahi · 2025-08-01 16:08
chaos_princessthis is correct and expected-ish. #asahi · 2025-08-01 16:07
nowayhaze_The sleep performance however is very different. I'm attributing this to the fact there is no proper s3 implementation. Is there any way I can help with the development on s3. I read that there is some reverse engineeering to be done to figure out the device tree in detail.#asahi · 2025-08-01 16:07
nowayhaze_Yeah, that's much worse. But my vanilla m2 has closer parity with macos.#asahi · 2025-08-01 16:06
chaos_princess-6121000 - this is m1pro with screen turned down as low as it goes at mostly-idle. #asahi · 2025-08-01 16:02
chaos_princessvanilla m1/2 are closer to macos in terms of power use. it is much worse on pro/max#asahi · 2025-08-01 16:02
nowayhaze_vanilla m2#asahi · 2025-08-01 16:01
chaos_princessnowayhaze_: turn off the screen. also, vanilla m2 or m2 pro/max#asahi · 2025-08-01 16:01
chaos_princesssomething like that, yes#asahi · 2025-08-01 16:01
nowayhaze_I have an M2 Macbook Pro, and from /sys/class/power_supply/macsmc-battery/power_now I've observed similar power consumption on asahi as MacOS while using the computer, about 3.5 W on idle.#asahi · 2025-08-01 16:00
nowayhaze_Hi, I know according to some old posts that the focus for reducing power consumption is the idle power consumption while the computer is on, which would also help s2idle. It was claimed that it is much more important than getting deeper sleep states.#asahi · 2025-08-01 02:04
fatmalamadefault#asahi · 2025-08-01 02:04
twbfatmalama: on the 16G system that oom'd, you have zswap (or zram) right? It should be on by default for Asahi installs https://web.archive.org/web/20241124120147/https://social.treehouse.systems/@marcan/113528611033546817#asahi · 2025-08-01 02:04
fatmalamalol#asahi · 2025-08-01 02:03
twbAnyway, I've had my obligatory anti-vscode rant :-)#asahi · 2025-08-01 02:03
twbRight, that's fair. I wasn't sure if that's what you were saying#asahi · 2025-08-01 02:03
fatmalamaI mean I'd like to use kate, it's got LSPs, but it's not as full fledged on the rest of itself#asahi · 2025-08-01 02:02
fatmalamaI know#asahi · 2025-08-01 02:02
twbIt should talk to the same LSPs, so the LSP part should be the same #asahi · 2025-08-01 02:01
fatmalamaI mean I'd like to use kate with the lsps but it's not as full fledged#asahi · 2025-08-01 02:01
twbUltimately it's github's fault for inventing "what if local apps were crappy web apps bundled with an old version of chromium and nodejs?" (i.e. Atom) and then Microsoft for doubling-down and expanding that into a full IDE#asahi · 2025-08-01 02:00
fatmalamamy amd desktops have 32