Jump to content
2,189 posts in this topic

Recommended Posts

2 minutes ago, Andrey1970 said:

 

In HWMonitorSMC2_v2.3.0_IPG_3.5.5_beta7  and iStat shows everything correctly. An error at you.

Maybe you are right, but the fact is that here just work fine because it match the type my system provide. So can I assume that same keys can have different types. I'll do modifications that way and be dynamic instead of static.

Link to comment
Share on other sites

If I try printing it manually:

let data : Data = Data([0x0c, 0xce])

    let ws = HWMonitorSensor(key: "VC0C",

                            unit: .Volt,

                            type: "sp3c",

                            sensorType: .voltage,

                            title: "CPU Voltage",

                            canPlot: false)

    let dt = DataType(type: FourCharCode(fromString: "sp3c"), size: 2, attribute: 0x80)

    if self.validateValue(for: ws, data: data, dataType: dt) {

      print(ws.stringValue) ----> says 0.800V

    }

 

it gives me 0.800V :unsure:

Try this:HWMonitorSMC2.app_Alpha7.zip. But looks for the voltage only.

Link to comment
Share on other sites

Just now, Andrey1970 said:

Here look.

1333539303_2018-10-2820_08_28.thumb.png.dbfc1ee1b988efc9e718e259103c5373.png1884677798_2018-10-2820_00_41.thumb.png.0e006b2f2b07ad40a1e04785d4deb964.png

Bro' I said to look at the voltage only for now.

The beta7 smc parser was made in objective c and c, Alpha1-7 is made totally in swift 4.2, I need to find the bug with some tests because I dont have your PC ^_^.

P.S. "CPU Package Total" = "IA Power" (or wat was Processor Power") from the Intel Power Gadget and are redudant with the smc keys provided by AppleSMC. CPU Package GFX is also provided by Intel Power Gadget but as for me didn't work also for you just because doesn't work on each processor Intel made even if the dedicated function says that it is available (known bug at Intel).

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...