beltex / SMCKit

Apple SMC library & tool
https://beltex.github.io/SMCKit
MIT License
477 stars 55 forks source link

SMCKeys on Ventura are completely (almost) different from that on Monterey. #48

Open alaneuler opened 2 years ago

alaneuler commented 2 years ago

Currently getting the battery info will produce error: keyNotFound(code: "BNum").

SMCKeys on Ventura 13.0:

#KEY
AC-B
AC-C
AC-E
AC-F
AC-I
AC-J
AC-M
AC-N
AC-P
AC-Q
AC-R
AC-S
AC-T
AC-U
AC-W
AC-X
AC-h
AC-i
AC-l
AC-m
AC-n
AC-p
AC-w
AC-x
ACDI
ACFP
ACKG
ACKL
ACKR
ACKS
ACLC
ACLM
ACMg
ACPK
ACPO
ACPW
ACSt
ACVS
AOPb
B0AC
B0AP
B0AT
B0AV
B0BL
B0CA
B0CC
B0CF
B0CH
B0CI
B0CJ
B0CM
B0CS
B0CT
B0CU
B0DC
B0ET
B0FC
B0FD
B0FG
B0FH
B0FI
B0FU
B0FV
B0HM
B0I2
B0IF
B0IM
B0IS
B0IV
B0MS
B0NC
B0OC
B0OS
B0OV
B0PS
B0QD
B0QS
B0R1
B0R2
B0R3
B0RC
B0RI
B0RM
B0RS
B0RV
B0S1
B0SC
B0SR
B0SS
B0TC
B0TE
B0TF
B0TI
B0Ti
B0UC
B1AT
B1SS
B1TI
B1WI
B2AT
BAAC
BACC
BAPS
BAST
BBAD
BC1A
BC1I
BC1V
BC2A
BC2I
BC2V
BC3I
BC3V
BC4I
BCBL
BCCA
BCDC
BCDD
BCDW
BCF0
BCFB
BCFD
BCFO
BCFP
BCFR
BCFS
BCFT
BCFV
BCHT
BCMV
BCMW
BCSS
BCST
BDD1
BDD2
BDD3
BDLB
BDLC
BDLI
BFC1
BFC2
BFCT
BFLO
BFLV
BFS0
BFWC
BHT0
BHT1
BHT2
BHT3
BHT4
BHT5
BHT6
BHT7
BHT8
BHT9
BHTA
BHTB
BHTL
BIMX
BIPD
BISS
BITV
BL0A
BL0B
BL0C
BL0D
BLCC
BLCM
BLCR
BLCX
BLH0
B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1a
gp08
gp0b
gp0e
iaD1
iaD2
iaD3
iaD4
isNn
isP0
isP1
isPB
isPC
isPD
isPa
isPm
isPw
isPz
isU0
isU1
mTPL
mUTL
maP0
maP1
maPB
maPC
maPD
maPa
maPe
maPw
maU0
maU1
mlD0
mlD1
mlD2
mlD3
mlD4
mlP0
mlP1
mlPB
mlPC
mlPD
mlPa
mlPw
mlT0
mlT1
mlTh
mlTp
mlU0
mlU1
mmPN
mxT0
nn00
oF00
oF01
oKI4
oKI5
oKI6
oKI7
oKP4
oKP5
oKP6
oKP7
ocex
ocey
of00
of01
of10
of11
of12
ofE0
ofE1
oft1
oft3
oft5
oft7
oft9
oftb
oftd
oftf
ofti
oisu
oisy
oke0
oke1
oki0
oki1
okia
okib
okic
okid
okie
okin
okix
okiy
okp0
okp1
okpa
okpb
okpc
okpd
okpe
okpn
okpx
okpy
oof0
oof1
oof2
oof3
oof4
oof5
oof6
oof7
oof8
oof9
oofA
oofa
oofb
oofc
oofd
oofe
ooff
oofg
oop1
oop2
opmn
opmx
otSC
oumn
oumx
ov01
ov02
ov03
ov04
ov10
ov11
ov12
ov13
ov14
ov15
ov16
ov20
ov21
ov22
ov23
ov24
ov25
ov26
ovC1
ovC2
ovC3
ovC4
ovC5
ovE0
ovE1
ovE2
ovE3
ovE4
ovE5
ovE6
ovE7
ovE8
ovE9
ovEa
ovEb
ovEc
ovEd
ovEe
ovEf
ovEg
ovEh
ovEi
ovEj
ovEk
ovEl
ovEm
ovEn
ovEo
ovEt
ovEy
ovEz
ovM1
ovM2
ovM3
ovM4
ovM5
ovPT
ovpt
pcAD
pcBK
pcBS
pcHS
pcIO
pcLD
pcRT
pmFC
pmHC
pmVC
rARA
rARa
rASO
rASo
rBK0
rBK1
rBK2
rBK3
rBK4
rBK5
rBK6
rBK7
rBK8
rBK9
rBKa
rBKb
rBKd
rBSW
rCPU
rCTL
rLD0
rLD1
rLD2
rLD3
rLD5
rLD7
rLD8
rLDa
rLDb
rLDd
rLDe
rLDg
r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