ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
ghfj has joined #asahi-dev
mkurz has joined #asahi-dev
ghfj has quit [Remote host closed the connection]
eiln has quit [Ping timeout: 480 seconds]
hightower3 has joined #asahi-dev
maxg_ has joined #asahi-dev
maxg_ has quit []
maxg_ has joined #asahi-dev
hightower2 has quit [Ping timeout: 480 seconds]
maxg_ has quit [Remote host closed the connection]
ghfj has joined #asahi-dev
bpye has quit [Quit: The Lounge - https://thelounge.chat]
bpye has joined #asahi-dev
bpye has quit []
bpye has joined #asahi-dev
tristan2_ has joined #asahi-dev
tristan2 has quit [Ping timeout: 480 seconds]
eiln has joined #asahi-dev
midou has joined #asahi-dev
<eiln> so als from the aop side looks like:
<eiln> hello/ack, load als calibration, (nothing), then aop suddenly starts reporting a stream of als data (e.g. lux, chromaticity, and etc)
<eiln> there'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
<eiln> everything 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
<eiln> problem 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
<eiln> any ideas..?
vup has quit [Quit: vup]
vup has joined #asahi-dev
<chaos_princess> eiln: 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.
flom84 has joined #asahi-dev
flom84 has quit [Remote host closed the connection]
<eiln> chaos_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
kidplayer666 has joined #asahi-dev
gabuscus_ has joined #asahi-dev
gabuscus has quit [Ping timeout: 480 seconds]
crabbedhaloablut has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #asahi-dev
jacksonchen666 has quit [Quit: WeeChat 4.1.2]
mkurz has quit [Ping timeout: 480 seconds]
KxCORP has quit [Quit: Bye!]
KxCORP has joined #asahi-dev
KxCORP has quit []
KxCORP has joined #asahi-dev
KxCORP has quit []
KxCORP has joined #asahi-dev
hightower3 has quit [Ping timeout: 480 seconds]
<eiln> hehehe I got something good
* eiln googles 'lux calculation equation'
<j`ey> eiln: found an address?
<eiln> no that was a red herring
hightower2 has joined #asahi-dev
flom84 has joined #asahi-dev
AnuthaDev has joined #asahi-dev
flom_84 has joined #asahi-dev
flom_84 has quit [Remote host closed the connection]
jacksonchen666 has joined #asahi-dev
flom84 has quit [Quit: Leaving]
kidplayer666 has quit [Quit: Connection closed for inactivity]
jacksonchen666 has quit [Quit: --help]
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
mkurz has joined #asahi-dev
JayBeeFOSS has quit [Ping timeout: 480 seconds]
JayBeeFOSS has joined #asahi-dev
Bai-Chiang has joined #asahi-dev
Burger has joined #asahi-dev
AnuthaDev has quit [Quit: AnuthaDev]
kidplayer666 has joined #asahi-dev
eloy_ has quit []
eloy_ has joined #asahi-dev
___nick___ has quit [Ping timeout: 480 seconds]
<eiln> janneg: I am going to try to generalize afk.c to take a struct device
<nicolas17> away from keyboard .c?
<leio> Apple Firmware Kit, if you were wondering
<nicolas17> to talk to rtkit coprocessors?
<j`ey> it's a layer above that
<leio> I 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)
<janneg> eiln: good luck. do you have a device on which you can test dcp's afk use?
<sven> wait, there’s something else that uses the mess that is afk?
<j`ey> sven: seems like AOP does
<sven> ouch. I very much did not enjoy writing that thing originally
<eiln> janneg: it seems the meaningful afk endpoint is dptx which ive not got
<eiln> but the only real difference is the ringbuf calls which should be fine with some fn ptrs
<janneg> for now, there are more coming. for dp/hdmi audio and additional information
<janneg> I could see if I can get my hacky dp altmode branches to work
<janneg> on m1 devices
<eiln> I'll probably get a 16" m2/m3 by april ish
<eiln> ok hold on I had not considered the price would nearly double with usuable ram and ssd
<eiln> was 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
<eiln> maybe m2 air + m3 mini but I'm not sure when I'll have the mini
maxg_ has joined #asahi-dev
maxg_ has quit [Quit: maxg_]
maxg_ has joined #asahi-dev
midou has quit [Ping timeout: 480 seconds]
Bertrand___ has joined #asahi-dev
kidplayer666 has quit [Quit: Connection closed for inactivity]
maxg_ has quit [Quit: maxg_]
<nicolas17> what is AOP used for in Mac apart from ALS?
<j`ey> nicolas17: mics
<j`ey> gyro, accel
<j`ey> ok, not gyro
<nicolas17> gyro and accel are mentioned in the AOP firmware for macOS, but do Macs actually have the sensors?
<j`ey> eiln: so does aop_als.py work standalone? since you talked about needng some hardcoded ranges, but i dont see any of that in there
midou has joined #asahi-dev