Writing to SMC keys
jlehrer1 opened this issue · 1 comments
jlehrer1 commented
Hi,
I can't believe I haven't found this repo before! Incredible. I didn't think I'd be able to find the new SMC keys. Anyways, is there a way to write values to these keys? For context, I'm trying to write an open source Fan Control app for the T2 Intel Macs, and smcFanControl
no longer works on Catalina.
dkorunic commented
Hey @jlehrer1 , you can write values to keys by importing github.com/panotza/gosmc
and calling gosmc.SMCWriteKey()
. Make sure to read key first with gosmc.SMCReadKey()
to get DataSize
and DataType
as you will need to know those for value conversions (for more info see conv.go) and for gosmc.SMCWriteKey()
calls.