Jump to content

1,970 posts in this topic

Recommended Posts

14 hours ago, Cyberdevs said:

Here is the output of the command on disk0

S.M.A.R.T. check disk: 0  SMARTReadData() failed with e00002de
Error: S.M.A.R.T. attribute check failed for disk 0 with status -536870178

 

1 hour ago, fabiosun said:

Samsung 960 pro 1 Tb (nvme)


fabios-iMac-Pro:~ fabio$ /Users/fabio/Downloads/smarter disk0
S.M.A.R.T. check disk: 0  SMARTReadData() failed with e00002de
Error: S.M.A.R.T. attribute check failed for disk 0 with status -536870178
fabios-iMac-Pro:~ fabio$ 

Screen Shot 2018-03-21 at 7.00.38 PM.png

I made some changes (see attached smarter command line), but I can not notice that s.m.a.r.t. it is not enabled for you (see fabiosun screenshot and see mine). also read this:
https://mac-optimization.bestreviews.net/why-apple-drop-support-smart-status-late-2016-macbook-pros/

I don't think any driver or plugins will be able to read something about smart if isn't supported by Apple (or I'm wrong?), anyway should print something about "Got a NVMe disk.." to ensure the disk is found. Tell me..

 

smart_verified.png.af7fb2648ce676674c4b5272de2fc1b2.png

smarter.zip

Edited by vector sigma

Share this post


Link to post
Share on other sites
Advertisement

@vector sigma

Yeah the disk utility says that the smart is disabled on the NVMe but check these out:

These screenshots are from iStat Menu and TechTool Pro

Screen Shot 2018-03-21 at 11.21.38 PM.png

Screen Shot 2018-03-21 at 11.24.57 PM.png

Edited by Cyberdevs

Share this post


Link to post
Share on other sites

fabios-iMac-Pro:~ fabio$ /Users/fabio/Downloads/smarter-2 disk0
Got a NVMe disk..
S.M.A.R.T. check disk: 0  SMARTReadData() failed with e00002de
Error: S.M.A.R.T. attribute check failed for disk 0 with status -536870178
fabios-iMac-Pro:~ fabio$

15 minutes ago, vector sigma said:

 

I made some changes (see attached smarter command line), but I can not notice that s.m.a.r.t. it is not enabled for you (see fabiosun screenshot and see mine). also read this:
https://mac-optimization.bestreviews.net/why-apple-drop-support-smart-status-late-2016-macbook-pros/

I don't think any driver or plugins will be able to read something about smart if isn't supported by Apple (or I'm wrong?), anyway should print something about "Got a NVMe disk.." to ensure the disk is found. Tell me..

 

smart_verified.png.af7fb2648ce676674c4b5272de2fc1b2.png

smarter.zip

 

Share this post


Link to post
Share on other sites

Here's the results of the second smarter app:

Got a NVMe disk..
S.M.A.R.T. check disk: 1  SMARTReadData() failed with e00002de
Error: S.M.A.R.T. attribute check failed for disk 1 with status -536870178

Share this post


Link to post
Share on other sites

@vector sigma

My compilation log ended with

Traceback (most recent call last):
  File "/Volumes/HighHD/Users/Slice/Projects/hwsensors3/package/seticon.py", line 2, in <module>
    import Cocoa
ImportError: No module named Cocoa

The package is created but with HWMonitor v1. Why not v2?

Share this post


Link to post
Share on other sites
25 minutes ago, Slice said:

@vector sigma

My compilation log ended with


Traceback (most recent call last):
  File "/Volumes/HighHD/Users/Slice/Projects/hwsensors3/package/seticon.py", line 2, in <module>
    import Cocoa
ImportError: No module named Cocoa

The package is created but with HWMonitor v1. Why not v2?

Not sure about python, this is what I have.. the one shipped with the OS:

FrancescoRs-MacBook-Pro:~ vectorsigma$ python -V
Python 2.7.10
FrancescoRs-MacBook-Pro:~ vectorsigma$

and 

FrancescoRs-MacBook-Pro:~ vectorsigma$ which python
/usr/bin/python
FrancescoRs-MacBook-Pro:~ vectorsigma$

please ensure is the stock one. Anyway this is only used to set the image to the package.

About HWMonitorSMC.app I have Xcode 9.2 and the log should show errors or something like that:

"HWMonitorSMC.app v2.x requires Xcode 9 +"

unless the app is built to another location but these are the clear settings:

 

xcodebuild -quiet -project HWMonitorSMC.xcodeproj \
                -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=`sysctl -n hw.ncpu` \
                -sdk macosx \
                -configuration Release \
                CONFIGURATION_BUILD_DIR="${SRCROOT}/compilations/HWMonitorSMC2" \
                SYMROOT="${SRCROOT}/compilations/HWMonitorSMC2/obj"

 

Edited by vector sigma

Share this post


Link to post
Share on other sites

ssd 512 GB

fabios-iMac-Pro:~ fabio$ /Users/fabio/Downloads/smarter-3 disk0
Got a ATA like disk..
2018-03-21 22:17:30.170 smarter-3[486:5650] {
    182 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 10;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    199 =     {
        "Pre-fail" = 0;
        RawValue = 3;
        Threshold = 0;
        Value = 99;
        WorstValue = 99;
        flag = 1;
    };
    195 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 200;
        WorstValue = 200;
        flag = 1;
    };
    9 =     {
        "Pre-fail" = 0;
        RawValue = 4821;
        Threshold = 0;
        Value = 99;
        WorstValue = 99;
        flag = 1;
    };
    241 =     {
        "Pre-fail" = 0;
        RawValue = 24441189400;
        Threshold = 0;
        Value = 99;
        WorstValue = 99;
        flag = 1;
    };
    5 =     {
        "Pre-fail" = 1;
        RawValue = 0;
        Threshold = 10;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    187 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    235 =     {
        "Pre-fail" = 0;
        RawValue = 790;
        Threshold = 0;
        Value = 99;
        WorstValue = 99;
        flag = 1;
    };
    183 =     {
        "Pre-fail" = 1;
        RawValue = 0;
        Threshold = 10;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    181 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 10;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    179 =     {
        "Pre-fail" = 1;
        RawValue = 0;
        Threshold = 10;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    177 =     {
        "Pre-fail" = 1;
        RawValue = 33;
        Threshold = 0;
        Value = 99;
        WorstValue = 99;
        flag = 1;
    };
    12 =     {
        "Pre-fail" = 0;
        RawValue = 3948;
        Threshold = 0;
        Value = 96;
        WorstValue = 96;
        flag = 1;
    };
    190 =     {
        "Pre-fail" = 0;
        RawValue = 25;
        Threshold = 0;
        Value = 75;
        WorstValue = 75;
        flag = 1;
    };
}
Got ATA-like disk..
S.M.A.R.T. status: Ok
fabios-iMac-Pro:~ fabio$ 

mechanical drive 6 Tb

fabios-iMac-Pro:~ fabio$ /Users/fabio/Downloads/smarter-3 disk5
Got a ATA like disk..
2018-03-21 22:19:24.309 smarter-3[530:7412] {
    194 =     {
        "Pre-fail" = 0;
        RawValue = 51539607576;
        Threshold = 0;
        Value = 24;
        WorstValue = 24;
        flag = 1;
    };
    191 =     {
        "Pre-fail" = 0;
        RawValue = 972;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    5 =     {
        "Pre-fail" = 1;
        RawValue = 0;
        Threshold = 10;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    199 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 200;
        WorstValue = 200;
        flag = 1;
    };
    188 =     {
        "Pre-fail" = 0;
        RawValue = 549764202624;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    240 =     {
        "Pre-fail" = 0;
        RawValue = 69226282878105;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 0;
    };
    10 =     {
        "Pre-fail" = 1;
        RawValue = 0;
        Threshold = 97;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    193 =     {
        "Pre-fail" = 0;
        RawValue = 15103;
        Threshold = 0;
        Value = 93;
        WorstValue = 93;
        flag = 1;
    };
    7 =     {
        "Pre-fail" = 1;
        RawValue = 142803507;
        Threshold = 45;
        Value = 82;
        WorstValue = 82;
        flag = 1;
    };
    242 =     {
        "Pre-fail" = 0;
        RawValue = 155260308113;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 0;
    };
    190 =     {
        "Pre-fail" = 0;
        RawValue = 404095000;
        Threshold = 40;
        Value = 76;
        WorstValue = 76;
        flag = 1;
    };
    4 =     {
        "Pre-fail" = 0;
        RawValue = 3416;
        Threshold = 20;
        Value = 97;
        WorstValue = 97;
        flag = 1;
    };
    198 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 0;
    };
    187 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    12 =     {
        "Pre-fail" = 0;
        RawValue = 1719;
        Threshold = 20;
        Value = 99;
        WorstValue = 99;
        flag = 1;
    };
    1 =     {
        "Pre-fail" = 1;
        RawValue = 8756046;
        Threshold = 44;
        Value = 69;
        WorstValue = 69;
        flag = 1;
    };
    195 =     {
        "Pre-fail" = 0;
        RawValue = 8756046;
        Threshold = 0;
        Value = 1;
        WorstValue = 1;
        flag = 1;
    };
    184 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 99;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    9 =     {
        "Pre-fail" = 0;
        RawValue = 44994077395126;
        Threshold = 0;
        Value = 98;
        WorstValue = 98;
        flag = 1;
    };
    192 =     {
        "Pre-fail" = 0;
        RawValue = 309;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    241 =     {
        "Pre-fail" = 0;
        RawValue = 10157335003;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 0;
    };
    189 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    3 =     {
        "Pre-fail" = 1;
        RawValue = 0;
        Threshold = 0;
        Value = 86;
        WorstValue = 86;
        flag = 1;
    };
    197 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
}
Got ATA-like disk..
S.M.A.R.T. status: Ok

NVME 1tb Samsung 960 pro

fabios-iMac-Pro:~ fabio$ /Users/fabio/Downloads/smarter-3 disk1
Got a NVMe disk..
h is what is expected
si is what is expected
Error: S.M.A.R.T. attribute check failed for disk 1 with status -536870178
fabios-iMac-Pro:~ fabio$ 

 

Share this post


Link to post
Share on other sites
21 minutes ago, vector sigma said:

Not sure about python, this is what I have.. the one shipped with the OS:


FrancescoRs-MacBook-Pro:~ vectorsigma$ python -V
Python 2.7.10
FrancescoRs-MacBook-Pro:~ vectorsigma$

and 

FrancescoRs-MacBook-Pro:~ vectorsigma$ which python
/usr/bin/python
FrancescoRs-MacBook-Pro:~ vectorsigma$

please ensure is the stock one. Anyway this is only used to set the image to the package.

About HWMonitorSMC.app I have Xcode 9.2 and the log should show errors or something like that:

"HWMonitorSMC.app v2.x requires Xcode 9 +"

unless the app is built to another location but these are the clear settings:

 


xcodebuild -quiet -project HWMonitorSMC.xcodeproj \
                -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=`sysctl -n hw.ncpu` \
                -sdk macosx \
                -configuration Release \
                CONFIGURATION_BUILD_DIR="${SRCROOT}/compilations/HWMonitorSMC2" \
                SYMROOT="${SRCROOT}/compilations/HWMonitorSMC2/obj"

 

I have python installed with macport needed for another projects

iMac-2:hwsensors3 slice$ which python
/opt/local/bin/python
iMac-2:hwsensors3 slice$  

Python 2.7.13 (default, Apr 25 2017, 11:00:18)

And Xcode 9.2, although I have also Xcode8.3.3 on second partition.

Share this post


Link to post
Share on other sites
3 minutes ago, Slice said:

/opt/local/bin/python

Yep, not the stock one. I think that you can add a module and be fine, or I can make a new command line to set an image and get rid of python 

4 minutes ago, Slice said:

And Xcode 9.2, although I have also Xcode8.3.3 on second partition.

Ensure you are using Xcode 9.2 then. Please show the log.

Share this post


Link to post
Share on other sites
fabios-iMac-Pro:~ fabio$ /Users/fabio/Downloads/smarter-4 disk1
Got a NVMe disk..
h is what is expected
si is what is expected
2018-03-21 22:59:08.447 smarter-4[500:6055] {
    914 =     {
        "914 Number of error Log Entries (UInt64)" = 0;
        flag = 1;
    };
    912 =     {
        "912 Unsafe Shutdowns (UInt64)" = 0;
        flag = 1;
    };
    910 =     {
        "910 Power Cycles (UInt64)" = 0;
        flag = 1;
    };
    908 =     {
        "908 Host Write Commands (UInt64)" = 0;
        flag = 1;
    };
    906 =     {
        "906 Data Units Written (UInt64)" = 0;
        flag = 1;
    };
    904 =     {
        "904 Percentage Used (UInt8)" = 0;
        flag = 1;
    };
    902 =     {
        "902 Available Spare (UInt8)" = 0;
        flag = 1;
    };
    900 =     {
        "900 Critical Warning (UInt8)" = 0;
        flag = 1;
    };
    913 =     {
        "913 Media and Data Integrity Errors (UInt64)" = 0;
        flag = 1;
    };
    911 =     {
        "911 Power On Hours (UInt64)" = 0;
        flag = 1;
    };
    909 =     {
        "909 Controller Busy Time (UInt64)" = 0;
        flag = 1;
    };
    907 =     {
        "907 Host Read Commands (UInt64)" = 0;
        flag = 1;
    };
    905 =     {
        "905 Data unitd read (UInt64)" = 0;
        flag = 1;
    };
    903 =     {
        "903 Available Spare Threshold (UInt8)" = 0;
        flag = 1;
    };
    901 =     {
        "901 Temperature kelvin (UInt16)" = 65263;
        flag = 1;
    };
}
Got a NVMe disk..
h is what is expected
si is what is expected
Error: S.M.A.R.T. check downgraded result for disk1 from VERIFIED to UNKNOWN because some error(-536870178) occured.
S.M.A.R.T. status: Unknown
fabios-iMac-Pro:~ fabio$ 

 

you win :)

 

Share this post


Link to post
Share on other sites

I cam compile. It fine!

iMac-2:hwsensors3 slice$ make pkg
** Building HWSensor's extensions r112 **
   ..using the sdk: macosx10.11
** Building HWMonitorSMC.app v1 **
** Building HWMonitorSMC.app v2 **
** Building HWSensors-3_r112.pkg **
[partutil]
[seticon]
[Pre]
[HWMonitorSMC]
[kextsToSLE]
[FakeSMC]
[IntelCPUMonitor]
[AmdCPUMonitor]
[GeforceSensor]
[NVClockX]
[RadeonMonitor]
[X3100]
[F718x]
[ITEIT87x]
[PC8739x]
[W836x]
[ACPIMonitor]
[VoodooBatterySMC]
[kextsToESP]
[Post]
Package name: HWSensors-3_r112.pkg
iMac-2:hwsensors3 slice$ 

 

Share this post


Link to post
Share on other sites
On 3/22/2018 at 2:26 AM, vector sigma said:

fabiosun, Cyberdevs please try this: smarter.zip

Spoiler

Got a NVMe disk..
h is what is expected
si is what is expected
2018-03-23 10:27:08.275 smarter-4[3279:217917] {
    914 =     {
        "914 Number of error Log Entries (UInt64)" = 0;
        flag = 1;
    };
    912 =     {
        "912 Unsafe Shutdowns (UInt64)" = 0;
        flag = 1;
    };
    910 =     {
        "910 Power Cycles (UInt64)" = 0;
        flag = 1;
    };
    908 =     {
        "908 Host Write Commands (UInt64)" = 0;
        flag = 1;
    };
    906 =     {
        "906 Data Units Written (UInt64)" = 0;
        flag = 1;
    };
    904 =     {
        "904 Percentage Used (UInt8)" = 0;
        flag = 1;
    };
    902 =     {
        "902 Available Spare (UInt8)" = 0;
        flag = 1;
    };
    900 =     {
        "900 Critical Warning (UInt8)" = 0;
        flag = 1;
    };
    913 =     {
        "913 Media and Data Integrity Errors (UInt64)" = 0;
        flag = 1;
    };
    911 =     {
        "911 Power On Hours (UInt64)" = 0;
        flag = 1;
    };
    909 =     {
        "909 Controller Busy Time (UInt64)" = 0;
        flag = 1;
    };
    907 =     {
        "907 Host Read Commands (UInt64)" = 0;
        flag = 1;
    };
    905 =     {
        "905 Data unitd read (UInt64)" = 0;
        flag = 1;
    };
    903 =     {
        "903 Available Spare Threshold (UInt8)" = 0;
        flag = 1;
    };
    901 =     {
        "901 Temperature kelvin (UInt16)" = 65263;
        flag = 1;
    };
}
Got a NVMe disk..
h is what is expected
si is what is expected
Error: S.M.A.R.T. check downgraded result for disk0 from VERIFIED to UNKNOWN because some error(-536870178) occured.
S.M.A.R.T. status: Unknown

The last one is working.

Spoiler

Got a ATA like disk..
2018-03-23 10:29:28.460 smarter-4[3281:218734] {
    194 =     {
        "Pre-fail" = 0;
        RawValue = 36;
        Threshold = 0;
        Value = 107;
        WorstValue = 107;
        flag = 1;
    };
    5 =     {
        "Pre-fail" = 1;
        RawValue = 0;
        Threshold = 140;
        Value = 200;
        WorstValue = 200;
        flag = 1;
    };
    240 =     {
        "Pre-fail" = 0;
        RawValue = 1072;
        Threshold = 0;
        Value = 99;
        WorstValue = 99;
        flag = 1;
    };
    199 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 200;
        WorstValue = 200;
        flag = 1;
    };
    196 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 200;
        WorstValue = 200;
        flag = 1;
    };
    10 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    193 =     {
        "Pre-fail" = 0;
        RawValue = 181427;
        Threshold = 0;
        Value = 140;
        WorstValue = 140;
        flag = 1;
    };
    7 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 200;
        WorstValue = 200;
        flag = 1;
    };
    242 =     {
        "Pre-fail" = 0;
        RawValue = 4704679194;
        Threshold = 0;
        Value = 200;
        WorstValue = 200;
        flag = 1;
    };
    4 =     {
        "Pre-fail" = 0;
        RawValue = 200;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    198 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 200;
        WorstValue = 200;
        flag = 0;
    };
    12 =     {
        "Pre-fail" = 0;
        RawValue = 169;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    1 =     {
        "Pre-fail" = 1;
        RawValue = 0;
        Threshold = 51;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
    9 =     {
        "Pre-fail" = 0;
        RawValue = 2521;
        Threshold = 0;
        Value = 97;
        WorstValue = 97;
        flag = 1;
    };
    192 =     {
        "Pre-fail" = 0;
        RawValue = 35;
        Threshold = 0;
        Value = 200;
        WorstValue = 200;
        flag = 1;
    };
    241 =     {
        "Pre-fail" = 0;
        RawValue = 4645587437;
        Threshold = 0;
        Value = 200;
        WorstValue = 200;
        flag = 1;
    };
    200 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 200;
        WorstValue = 200;
        flag = 0;
    };
    3 =     {
        "Pre-fail" = 1;
        RawValue = 2333;
        Threshold = 21;
        Value = 173;
        WorstValue = 173;
        flag = 1;
    };
    197 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 200;
        WorstValue = 200;
        flag = 1;
    };
    11 =     {
        "Pre-fail" = 0;
        RawValue = 0;
        Threshold = 0;
        Value = 100;
        WorstValue = 100;
        flag = 1;
    };
}
Got ATA-like disk..
S.M.A.R.T. status: Ok

 

Share this post


Link to post
Share on other sites
17 hours ago, Slice said:

I tested HWMonitor2 on MacBookPro 2012 with Apple SSD 128Gb.

All works except SSD life = 0%. It means dead?

Actually the code that read s.m.a.r.t. attributes is the same as app v1 and it look for attributes 177 that is under specific vendor data. That means that vendor can use the same location or not. ...why I mentioned to import smartmontools's code. In fact they are using a database for that: https://github.com/smartmontools/smartmontools/blob/master/smartmontools/drivedb.h

..but will be a long task.. Anyway I can tell that I sobstituted my old OCZ Vertex III (2011/2012) with a Samsung EVO because the app was reporting a life of 0%, the same was in Windows with another tool.... and also the bios UEFI was giving me an error about that.

 

NOTE: I've decopiled  iStat Menu and TechTool Pro and clearly uses smartmontools

9 hours ago, Slice said:

I cam compile. It fine!


iMac-2:hwsensors3 slice$ make pkg
** Building HWSensor's extensions r112 **
   ..using the sdk: macosx10.11
** Building HWMonitorSMC.app v1 **
** Building HWMonitorSMC.app v2 **
** Building HWSensors-3_r112.pkg **
[partutil]
[seticon]
[Pre]
[HWMonitorSMC]
[kextsToSLE]
[FakeSMC]
[IntelCPUMonitor]
[AmdCPUMonitor]
[GeforceSensor]
[NVClockX]
[RadeonMonitor]
[X3100]
[F718x]
[ITEIT87x]
[PC8739x]
[W836x]
[ACPIMonitor]
[VoodooBatterySMC]
[kextsToESP]
[Post]
Package name: HWSensors-3_r112.pkg
iMac-2:hwsensors3 slice$ 

 

ok, that means that the app is compiled somewhere else other than:

"${SRCROOT}/compilations/HWMonitorSMC2"

can you tell me if the app is there (hwswnsor3/compilations/HWMonitorSMC2/) or you can locate it manually? 

 

EDIT

Please sobstitute this files:

makefile.zip

makebin.zip

makepkg.zip

and tell me if that solve the problem

Edited by vector sigma
added new makefile + scripts

Share this post


Link to post
Share on other sites
35 minutes ago, Slice said:

I am on weekend now and have no access to those computer so I can check only on monday evening. Thank you for the efforts.

No problem. Anyway I commited those changes.

35 minutes ago, Slice said:

Concerning MacBookPro it really has dead SSD. The HWMonitor is right.

Bad for the ssd, good for HWMonitor.

Share this post


Link to post
Share on other sites

This is logical mistake

      for (currentAttributeIndex = 0; currentAttributeIndex < kSMARTAttributeCount; currentAttributeIndex++) {
        IOATASmartAttribute currentAttribute = smartDataVendorSpecifics.vendorAttributes[currentAttributeIndex];
        if (currentAttribute.attributeId == kWindowSMARTsDriveTempAttribute ||
            currentAttribute.attributeId == kWindowSMARTsDriveTempAttribute2) {
          UInt8 raw = currentAttribute.rawvalue[0];
          temp = [NSNumber numberWithUnsignedInt:raw];
          foundTemperature = YES;
          break;
        }
        if (currentAttribute.attributeId == kSMARTsDriveWearLevelingCount) {
          UInt8 raw = currentAttribute.current;
          life = [NSNumber numberWithUnsignedInt:raw];
          //          foundLife = YES;
          break;
        }
        
      }

If foundTemperature then not search anything else...

May be

if (!foundTemperature && ....

and without break?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By fusion71au
      This is a brief guide on how to create a vanilla El Capitan (also same process for Sierra) OS X Installer USB with an updated prelinked kernel containing FakeSMC.

      It is tailored for those users who want to understand the “nuts and bolts” of how to create an installer and also to help brush up on their terminal skills (rather than have one made for them with the numerous automated “tools” available or even Apple’s createinstallmedia) :
       
       
      Specifically, it is also a “Proof of Concept” which shows that installation is possible without even having to rely on boot loader kext injection.

      Prerequisites
      Existing Yosemite installation (or Mavericks - see post#4 for steps 7,8) “Install OS X El Capitan.app" downloaded to the Applications folder Pacifist FakeSMC.kext - Slice or Kozlek branch Bootloader - Clover or Chameleon 8GB or larger USB drive (16GB recommended), formatted HFS+ (MBR or GUID) named “Installer”  
      Procedure
      1.  Boot into Yosemite with the kext-dev-mode=1 boot flag
      2.  Open OS X terminal and type the following lines, followed by <Enter> after each line.
          The image restore and file copying may take a while to complete, and at the end of the process, the Installer volume is renamed to “OS X Base System"....
       
      sudo -s hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg asr restore -source /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg  -target /Volumes/Installer -erase -format HFS+ -noprompt -noverify rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages cp -av /Volumes/OS\ X\ Install\ ESD/Packages /Volumes/OS\ X\ Base\ System/System/Installation cp -av /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg /Volumes/OS\ X\ Install\ ESD/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System diskutil unmount /Volumes/OS\ X\ Install\ ESD exit 3.  Right click on the “OS X Base System” Volume and click “Get Info”
       

      4.  Click on the lock icon and untick “Ignore ownership on this volume”
       

      5.  Extract/Copy the El Capitan Kernels folder into /System/Library/ of the USB with Pacifist.  NB It is found in the "Essentials.pkg" in /System/Installation/Packages
       

      6.  Delete or Rename the original /System/Library/PrelinkedKernels/prelinkedkernel —> OG.prelinkedkernel
       

      7.  Copy FakeSMC.kext and other necessary kexts (e.g. VoodooPS2Controller.kext for laptops) into the /Library/Extensions folder of the installer USB using Finder.
       

      8.  Back in terminal, type the following lines, followed by <Enter> after each line to rebuild the prelinkedkernel…..
       
      sudo -s chmod -R 755 /Volumes/OS\ X\ Base\ System/Library/Extensions chown -R 0:0 /Volumes/OS\ X\ Base\ System/Library/Extensions touch /Volumes/OS\ X\ Base\ System/System/Library/Extensions kextcache -u /Volumes/OS\ X\ Base\ System exit Any errors should be noted but the output below is normal e.g.


      9. Install your Bootloader targeting the OS X Base System volume
       
       
       
       
      10.  Boot your system with the USB without injected kexts into the OS X Installer GUI....
       
       
       
       
       
      Post Install
      The original prelinked kernel in a fresh install of El Capitan will also lack FakeSMC ie it will only be linked to Apple signed kexts.  In order to boot into El Capitan the first time around without boot loader kext injection, the PLK needs to be rebuilt for the El Capitan volume like we did for the installer:
       
      1.  Boot into Yosemite with the kext-dev-mode=1 boot flag
      2.  Delete or Rename the original /System/Library/PrelinkedKernels/prelinkedkernel for the El Capitan volume —> OG.prelinkedkernel
      3.  Copy FakeSMC.kext and other necessary kexts (e.g. VoodooPS2Controller.kext for laptops) into the /Library/Extensions folder of El Capitan using Finder
      4.  Back in terminal, type the following lines, followed by <Enter> after each line to rebuild the prelinkedkernel.  In this example, the El Capitan volume is named "El_Capitan" - change if you have named it something else...
      sudo -s chmod -R 755 /Volumes/El_Capitan/Library/Extensions chown -R 0:0 /Volumes/El_Capitan/Library/Extensions touch /Volumes/El_Capitan/System/Library/Extensions kextcache -u /Volumes/El_Capitan exit 5. Install your Bootloader targeting the El Capitan volume.  This step is only necessary if you are installing El Capitan on a new drive without existing boot loader (not required if installing on a disk with existing boot loader beside Yosemite).
      6. Reboot your system without injected kexts into El Capitan!
       
       
      Other links
      The All-In-One Guide to Vanilla OS X for beginners
       
      Updates for Sierra and High Sierra   Custom Prelinkedkernel Generator Tool I have made a custom prelinkedkernel generator "PLK.tool" for Sierra + El Capitan.  Instructions:   1.  Download and extract the attached BaseSystem_PLK.tool.zip into your ~/Downloads folder.   2.  Copy any extra kexts necessary for booting your hack to ~/Downloads/BaseSystem/ExtraKexts (e.g. FakeSMC, VoodooPS2Controller), making sure SIP is disabled. 3.  Copy BaseSystem.dmg to ~/Downloads/BaseSystem  4.  Open terminal and run the following commands... cd ~/Downloads/BaseSystem chmod +x PLK.tool ./PLK.tool ---> supply your admin password ---> will place your new custom prelinkedkernel on the desktop.       macOS High Sierra bypass Firmware and MBR checks in post#13.
      BaseSystem_PLK.tool_ElCap.zip
      BaseSystem_PLK.tool_Sierra.zip
      BaseSystem_PLK.tool_Mojave.zip (need to run in Mojave to avoid dependency errors)
      BaseSystem_PLK.tool_Catalina.zip
    • By Slice
      Dell laptops and desktop can be monitored by SMM methods as mentioned is the old topic
       
      I made a plugin SMIMonitor for FakeSMC in 2014 but it was 32bits and was not working. Only now I made it to be 64bits (as darkvoid did with kozleks branch) and got positive results
        
      and after heating 
      So I have monitoring of 4 additional temperature sensors (CPU Proximity, GPU, DIMM, and Motherboard) and a CPU fan which initially stay at 0 rpm and start rotating after heating with 2882rpm.
       
      Moreover I implemented a function for brave people to control fans
      sudo SMC_util3 -kF0As -w2 The last digit 2 is a FAN speed you want to set
      0 = Off
      1 = Low
      2 = High
      If you have more then 1 fan then you can manage other one by choosing next key F1As, F2As etc.
       
      Precaution! Writing the fan speed is dangerous and may cause a computer damage. Do this at your own risk!
      Note. SMIMonitor.kext will work only with FakeSMC v3 provided with HWSensors3 in my signature.
      Official release at sf.net contains SMIMonitor without write possibility.
       
      Please test and report your successes and fails.
       
       
      SMIMonitor.kext-110.zip
      SMC_util3.zip
      smcwrite.zip
    • By DaHarry
      I have installed Hackintosh on to my System, but the CPU cooler is obviously louder then on Windows.
      I am using right now VirtualSMC.kext, but since FakeSMC provides temperature measurement tools, and VirtualSMC not, I asked my self if that might be a hint for my loud cooler?
      My question, has somebody tried maybe both and even compared them? And is FakeSMC maybe less noisy?
      Is it enough to just mount EFI partition, and delete the VirtualSMC.kext and put instead FakeSMC.kexts ? Without any fancy kext installation tool or terminal commands, just replace files and restart in enough?
      My System:
      Mainboard: Gigabyte Aorus Z390 Ultra
      CPU: Intel i9 9900k
      CPU Cooler: BeQuiet! Dark Rock 4
      GPU: Vega 64
      Ram: 2x16GB Corsair 3200
      SSD: 1TB Adata M.2
       
      The Tutorial i have used - https://github.com/cmer/gigabyte-z390-aorus-master-hackintosh/blob/master/STEP_BY_STEP.md
       
      Really works like a charm besides, the more noisy cooler, which i bought because it is extra quietly.
      I asked first at tonymac's forum, but they deleted the post because I haven't used their tool, really disgustig.. I really hope to never use their tools, and I hope here the information freedom is more respected.
      #f. tonyhoremacs
    • By vector sigma
      HWSensor Features
      Control temperature of Intel and AMD CPU Control temperature of AMD, Intel and NVidia cards Control temperature of motherboard Control FANS Control Voltages Control HDD/SSD state (SATA & NVMe) with S.M.A.R.T. monitoring  Control frequencies Laptop Battery Monitoring Different applications support High Sierra compatible Installation to /S/L/E or in the ESP (Clover only)  
      Supported languages:
      English (base), Russian, Italian, Korean and semplified Chinese
       
      Source code: at https://sourceforge.net/p/hwsensors/hwsensors3/code3/HEAD/tree/
      Bugs report at https://sourceforge.net/p/hwsensors/hwsensors3/tickets/
      Topic for discussion at: https://www.insanelymac.com/forum/topic/299861-hwsensors3/
       
      Chief Developer @Slice, new HWMonitorSMC2.app and package by @vector sigma
×