#
…

2024-01-21

00:06ghfj has joined #asahi-dev
00:08mkurz has joined #asahi-dev
00:30ghfj has quit [Remote host closed the connection]
00:39eiln has quit [Ping timeout: 480 seconds]
01:05hightower3 has joined #asahi-dev
01:09maxg_ has joined #asahi-dev
01:10maxg_ has quit []
01:11maxg_ has joined #asahi-dev
01:12hightower2 has quit [Ping timeout: 480 seconds]
01:30maxg_ has quit [Remote host closed the connection]
01:37ghfj has joined #asahi-dev
02:49bpye has quit [Quit: The Lounge - https://thelounge.chat]
02:54bpye has joined #asahi-dev
02:58bpye has quit []
03:18bpye has joined #asahi-dev
04:42tristan2_ has joined #asahi-dev
04:44tristan2 has quit [Ping timeout: 480 seconds]
06:01eiln has joined #asahi-dev
08:07midou has joined #asahi-dev
10:12eilnso als from the aop side looks like:
10:13eilnhello/ack, load als calibration, (nothing), then aop suddenly starts reporting a stream of als data (e.g. lux, chromaticity, and etc)
10:13eilnthere's an als register being written to (stacktraces say the kext is AppleALSColorSensor) that turns on als. aop is hooked up to als s.t. aop automatically starts reporting als data when als is on. restated, als is not controlled by aop, rather its own register range (independent from aop) by some external kext
10:13eilneverything else on the aop side we can do, see https://github.com/AsahiLinux/m1n1/pull/381. you can also trace it, set ALSEndpoint VERBOSE=True
10:13eilnproblem is, we don't know the register range of als. there's no als node in adt. I realize this is stupid but I seriously cant find the als base register
10:14eilnany ideas..?
10:17vup has quit [Quit: vup]
10:33vup has joined #asahi-dev
11:09chaos_princesseiln: unfortunately the answer is "you don't", you need to figure out which specific als model is present via a separate aop subdevice, and then hardcode it.
11:11flom84 has joined #asahi-dev
11:13flom84 has quit [Remote host closed the connection]
11:16eilnchaos_princess: so it's model FireFish2/CT720, that we can probe via aop. do you might know where macos hardcodes *that* range? I tried tracing the entire mmio range but it times out
11:25kidplayer666 has joined #asahi-dev
11:30gabuscus_ has joined #asahi-dev
11:38gabuscus has quit [Ping timeout: 480 seconds]
12:18crabbedhaloablut has quit [Read error: Connection reset by peer]
12:19crabbedhaloablut has joined #asahi-dev
12:38jacksonchen666 has quit [Quit: WeeChat 4.1.2]
13:29mkurz has quit [Ping timeout: 480 seconds]
13:54KxCORP has quit [Quit: Bye!]
13:55KxCORP has joined #asahi-dev
13:56KxCORP has quit []
13:59KxCORP has joined #asahi-dev
14:01KxCORP has quit []
14:02KxCORP has joined #asahi-dev
15:11hightower3 has quit [Ping timeout: 480 seconds]
15:24eilnhehehe I got something good
15:24* eilngoogles 'lux calculation equation'
15:27j`eyeiln: found an address?
15:29eilnno that was a red herring
15:31hightower2 has joined #asahi-dev
15:53flom84 has joined #asahi-dev
15:57AnuthaDev has joined #asahi-dev
15:57flom_84 has joined #asahi-dev
15:57flom_84 has quit [Remote host closed the connection]
16:07jacksonchen666 has joined #asahi-dev
16:32flom84 has quit [Quit: Leaving]
17:08kidplayer666 has quit [Quit: Connection closed for inactivity]
17:10jacksonchen666 has quit [Quit: --help]
17:17___nick___ has joined #asahi-dev
17:18___nick___ has quit []
17:20___nick___ has joined #asahi-dev
17:32mkurz has joined #asahi-dev
18:11JayBeeFOSS has quit [Ping timeout: 480 seconds]
18:12JayBeeFOSS has joined #asahi-dev
18:41Bai-Chiang has joined #asahi-dev
18:51Burger has joined #asahi-dev
19:03AnuthaDev has quit [Quit: AnuthaDev]
19:16kidplayer666 has joined #asahi-dev
19:27eloy_ has quit []
19:28eloy_ has joined #asahi-dev
20:27___nick___ has quit [Ping timeout: 480 seconds]
20:59eilnjanneg: I am going to try to generalize afk.c to take a struct device
21:01nicolas17away from keyboard .c?
21:03leioApple Firmware Kit, if you were wondering
21:05nicolas17to talk to rtkit coprocessors?
21:06j`eyit's a layer above that
21:06leioI merely read the afk.h top comment as you got me curious on the actual meaning too, but looks like something on top of rtkit (using it)
21:13jannegeiln: good luck. do you have a device on which you can test dcp's afk use?
21:15svenwait, there’s something else that uses the mess that is afk?
21:16j`eysven: seems like AOP does
21:20svenouch. I very much did not enjoy writing that thing originally
21:53eilnjanneg: it seems the meaningful afk endpoint is dptx which ive not got
21:53eilnbut the only real difference is the ringbuf calls which should be fine with some fn ptrs
21:54jannegfor now, there are more coming. for dp/hdmi audio and additional information
21:55jannegI could see if I can get my hacky dp altmode branches to work
21:55jannegon m1 devices
22:02eilnI'll probably get a 16" m2/m3 by april ish
22:48eilnok hold on I had not considered the price would nearly double with usuable ram and ssd
22:48eilnwas originally thinking 15" m2 air. if im going m2 pro, I'd rather take a baseline m3 for avd work, but m3 pro is completely out of the question rn
22:49eilnmaybe m2 air + m3 mini but I'm not sure when I'll have the mini
22:54maxg_ has joined #asahi-dev
23:01maxg_ has quit [Quit: maxg_]
23:01maxg_ has joined #asahi-dev
23:06midou has quit [Ping timeout: 480 seconds]
23:14Bertrand___ has joined #asahi-dev
23:26kidplayer666 has quit [Quit: Connection closed for inactivity]
23:30maxg_ has quit [Quit: maxg_]
23:34nicolas17what is AOP used for in Mac apart from ALS?
23:46j`eynicolas17: mics
23:46j`eygyro, accel
23:47j`eyok, not gyro
23:48nicolas17gyro and accel are mentioned in the AOP firmware for macOS, but do Macs actually have the sensors?
23:49j`eyeiln: so does aop_als.py work standalone? since you talked about needng some hardcoded ranges, but i dont see any of that in there
23:58midou has joined #asahi-dev
…