#asahi-dev · 2023-09-18 22:37
joskethis uses undocumented APIs BTW, the header files are not available publicly AFAIK, but I just pre-declare them locally and it links#asahi-dev · 2023-09-18 22:36
joskesee https://github.com/aristocratos/btop/blob/main/src/osx/sensors.cpp#asahi-dev · 2023-09-18 22:36
joskeI wrote the sensor code for btop++ for macos (and free/openBSD). On apple silicon machines, you can't get the temperature via the SMC API, but you must use CoreFoundation#asahi-dev · 2023-09-18 19:07
ChaosPrincessjannau: aop has a hid endpoint, no?#asahi-dev · 2023-09-18 18:58
jannauunclear how that is supposed to work on non-laptops, afaik there's no hint of HID on desktop systems#asahi-dev · 2023-09-18 18:57
jannauchadmed: https://github.com/exelban/stats might be interesting as well, some/all sensors on M1 are apparently HID devices#asahi-dev · 2023-09-18 13:15
PaulFertserAre you probably able to "halt" it?#asahi-dev · 2023-09-18 13:14
sveni can't even read a single byte, it doesn't get much further than trying to identify the cpu#asahi-dev · 2023-09-18 13:14
svennope#asahi-dev · 2023-09-18 13:14
PaulFertserI mean if it's working at least somehow probably automating read attempts can get you all the data eventually.#asahi-dev · 2023-09-18 13:13
sventhe instability is likely caused by that invalid resistor or by bad soldering, i don't think that can be worked around in software#asahi-dev · 2023-09-18 13:11
PaulFertserInstability can be worked around by scripting probably.#asahi-dev · 2023-09-18 13:11
PaulFertserIs that OpenOCD? Cool to see it working for that purpose :)#asahi-dev · 2023-09-18 13:10
sven0.2% even#asahi-dev · 2023-09-18 13:09
sventhe connection seems to be rather unstable. the ti datasheets for the closest match claims it requires 15kohm with 1% tolerance. it's either that or a bad solder joint somewhere#asahi-dev · 2023-09-18 12:47
mazit's usually just a weak pull-down. anything between 2 and 10k should do the trick. now let's find about this ROM... :D#asahi-dev · 2023-09-18 12:34
svenlet's see if i can dump the rom now#asahi-dev · 2023-09-18 12:34
svenlooks like it just needs any resistor to GND and doesn't quite care about the value#asahi-dev · 2023-09-18 12:33
svenInfo : SWD DPIDR 0x0bc11477 \o/#asahi-dev · 2023-09-18 10:26
chadmedthe driver should gracefully handle invalid keys in the device tree now #asahi-dev · 2023-09-18 10:26
chadmedpushed some fixes to wip/hwmon too#asahi-dev · 2023-09-18 10:25
chadmedits only missing Tp0d #asahi-dev · 2023-09-18 10:24
chadmedyeah base m2 has them as well #asahi-dev · 2023-09-18 10:21
kettenism2 pro mini has the Tp0* keys#asahi-dev · 2023-09-18 10:17
chadmedoh no nvm on t6000 im also missing all the Tp0* keys #asahi-dev · 2023-09-18 10:17
chadmedapple create sane and standard firmware challenge (impossible challenge)#asahi-dev · 2023-09-18 10:16
chadmedim only missing Tp0d#asahi-dev · 2023-09-18 10:09
kettenishmm, my m1 mini doesn't enumerate any of the Tp0* keys#asahi-dev · 2023-09-18 10:04
chadmedyeah that will work for the ones that are valid, but one of the keys in that program is invalid on both socs ive tested#asahi-dev · 2023-09-18 10:03
kettenisguess for the core ones the thing to do is to pin a cpu-intensive process to a particular core and see if the corresponding temp sensor changes?#asahi-dev · 2023-09-18 09:57
chadmedkettenis: oh excellent, thanks :)#asahi-dev · 2023-09-18 09:48
kettenisadding a key to my openbsd driver is really easy#asahi-dev · 2023-09-18 09:48
kettenischadmed: I can help with figuring some of this out on machines you don't have#asahi-dev · 2023-09-18 09:36
j`eynice :)#asahi-dev · 2023-09-18 09:35
chadmedluckily this has revealed one of the myriad ways my driver sucks (still creates a pointer for keys that are invalid) so now i can fix that#asahi-dev · 2023-09-18 09:35
chadmedone of the keys is busted#asahi-dev · 2023-09-18 09:35
chadmedok yeah same issue on m1 pro #asahi-dev · 2023-09-18 09:13
chadmedah gotcha, makes sense#asahi-dev · 2023-09-18 09:12
j`eyok right, I was using M1 to mean !M2, hence the confusion!#asahi-dev · 2023-09-18 09:10
chadmedso i might as well give it a shot#asahi-dev · 2023-09-18 09:10
chadmedbut the code under // M1 has 8 pcores and 2 ecores, which is what m1 pro has#asahi-dev · 2023-09-18 09:10
chadmedno t6000 is m1 pro, t8103 is m1#asahi-dev · 2023-09-18 09:09
j`eynow I'm confused, t6000 *is* M1?#asahi-dev · 2023-09-18 09:04
chadmedlet me test it#asahi-dev · 2023-09-18 09:04
chadmedoh that smctemp thing is for t6000 anyway lol #asahi-dev · 2023-09-18 09:03
chadmednah i got the 14" pro, more interesting speakers :)#asahi-dev · 2023-09-18 09:03
j`eyoh ok, I thought your laptop was an m1#asahi-dev · 2023-09-18 09:02
chadmednever had one, i have a t6000, t6020 and t8112#asahi-dev · 2023-09-18 09:02
j`eychadmed: what happened to your m1?