Skip to content

Commit

Permalink
Merge pull request RehabMan#25 from the-darkvoid/smm-sensors
Browse files Browse the repository at this point in the history
SMMSensors - System Management Mode Sensors Plugin
  • Loading branch information
RehabMan authored Sep 15, 2018
2 parents e74c13f + 16d05a7 commit f3f9907
Show file tree
Hide file tree
Showing 9 changed files with 857 additions and 0 deletions.
124 changes: 124 additions & 0 deletions HWSensors.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
7EBEB1DB17B1754D00C114B5 /* GPUSensors.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7EBEB1D917B1754D00C114B5 /* GPUSensors.cpp */; };
7ECCB63E18537A7000D95FB4 /* cik.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7ECCB63D18537A7000D95FB4 /* cik.cpp */; };
7EDFC7581E05A9F3005A6F96 /* gp100.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7EDFC7561E05A9F3005A6F96 /* gp100.cpp */; };
D452B91921075817008456D6 /* SMMSensors.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D452B91821075817008456D6 /* SMMSensors.cpp */; };
F6D276032023D87B00D392E1 /* vega.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F6D276022023D87B00D392E1 /* vega.cpp */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -231,6 +232,12 @@
7EFF9518182AD44700C637C8 /* FakeSMCKeyStore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FakeSMCKeyStore.h; path = FakeSMCKeyStore/FakeSMCKeyStore.h; sourceTree = SOURCE_ROOT; };
7EFF9519182AD44700C637C8 /* FakeSMCKeyStoreUserClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = FakeSMCKeyStoreUserClient.cpp; path = FakeSMCKeyStore/FakeSMCKeyStoreUserClient.cpp; sourceTree = SOURCE_ROOT; };
7EFF951A182AD44700C637C8 /* FakeSMCKeyStoreUserClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FakeSMCKeyStoreUserClient.h; path = FakeSMCKeyStore/FakeSMCKeyStoreUserClient.h; sourceTree = SOURCE_ROOT; };
D424E591210829DF00ACCF15 /* smm.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = smm.h; sourceTree = "<group>"; };
D452B91621075817008456D6 /* SMMSensors.kext */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SMMSensors.kext; sourceTree = BUILT_PRODUCTS_DIR; };
D452B91821075817008456D6 /* SMMSensors.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SMMSensors.cpp; sourceTree = "<group>"; };
D452B91F21075882008456D6 /* SMMSensors.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SMMSensors.h; sourceTree = "<group>"; };
D452B92121075CEA008456D6 /* SMMSensors-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SMMSensors-Info.plist"; sourceTree = "<group>"; };
D49D43552107728A00CDC565 /* SMMSensors-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SMMSensors-Prefix.pch"; sourceTree = "<group>"; };
F6D276012023D76700D392E1 /* vega.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = vega.h; sourceTree = "<group>"; };
F6D276022023D87B00D392E1 /* vega.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = vega.cpp; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -271,6 +278,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
D452B91221075817008456D6 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -284,6 +298,7 @@
7E79B81B15BA99350079AAE8 /* CPUSensors */,
7EADE20815E5602F00FD117C /* GPUSensors */,
6A4E473A152178A00038C5DE /* LPCSensors */,
D452B91721075817008456D6 /* SMMSensors */,
1D05ABE613ED0DAD00EADBF6 /* Frameworks */,
1D05ABE513ED0DAD00EADBF6 /* Products */,
);
Expand All @@ -297,6 +312,7 @@
6A4E4739152178A00038C5DE /* LPCSensors.kext */,
7E79B81A15BA99350079AAE8 /* CPUSensors.kext */,
7EADE20715E5602E00FD117C /* GPUSensors.kext */,
D452B91621075817008456D6 /* SMMSensors.kext */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -722,6 +738,26 @@
name = Kernel;
sourceTree = "<group>";
};
D452B91721075817008456D6 /* SMMSensors */ = {
isa = PBXGroup;
children = (
D424E591210829DF00ACCF15 /* smm.h */,
D452B91821075817008456D6 /* SMMSensors.cpp */,
D452B91F21075882008456D6 /* SMMSensors.h */,
D452B91E21075847008456D6 /* Supporting Files */,
);
path = SMMSensors;
sourceTree = "<group>";
};
D452B91E21075847008456D6 /* Supporting Files */ = {
isa = PBXGroup;
children = (
D452B92121075CEA008456D6 /* SMMSensors-Info.plist */,
D49D43552107728A00CDC565 /* SMMSensors-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -810,6 +846,23 @@
productReference = 7EADE20715E5602E00FD117C /* GPUSensors.kext */;
productType = "com.apple.product-type.kernel-extension";
};
D452B91521075817008456D6 /* SMMSensors */ = {
isa = PBXNativeTarget;
buildConfigurationList = D452B91B21075817008456D6 /* Build configuration list for PBXNativeTarget "SMMSensors" */;
buildPhases = (
D452B91121075817008456D6 /* Sources */,
D452B91221075817008456D6 /* Frameworks */,
D452B91421075817008456D6 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = SMMSensors;
productName = SMMSensors;
productReference = D452B91621075817008456D6 /* SMMSensors.kext */;
productType = "com.apple.product-type.kernel-extension";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand Down Expand Up @@ -840,6 +893,7 @@
7E79B81915BA99350079AAE8 /* CPUSensors */,
7EADE20615E5602E00FD117C /* GPUSensors */,
6A4E4738152178A00038C5DE /* LPCSensors */,
D452B91521075817008456D6 /* SMMSensors */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -880,6 +934,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
D452B91421075817008456D6 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -982,6 +1043,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
D452B91121075817008456D6 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D452B91921075817008456D6 /* SMMSensors.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
Expand Down Expand Up @@ -1297,6 +1366,52 @@
};
name = Release;
};
D452B91C21075817008456D6 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COMBINE_HIDPI_IMAGES = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "SMMSensors/SMMSensors-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "SMMSensors/SMMSensors-Info.plist";
INSTALL_PATH = "$(SYSTEM_LIBRARY_DIR)/Extensions/FakeSMC.kext/Contents/PlugIns";
MODULE_NAME = org.hwsensors.SMMSensors;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGET_DIR = SMMSensors;
WRAPPER_EXTENSION = kext;
};
name = Debug;
};
D452B91D21075817008456D6 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COMBINE_HIDPI_IMAGES = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "SMMSensors/SMMSensors-Prefix.pch";
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "SMMSensors/SMMSensors-Info.plist";
INFOPLIST_PREFIX_HEADER = Shared/HWSensorsVersion.pch;
INFOPLIST_PREPROCESS = YES;
INSTALL_PATH = "$(SYSTEM_LIBRARY_DIR)/Extensions/FakeSMC.kext/Contents/PlugIns";
MODULE_NAME = org.hwsensors.SMMSensors;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGET_DIR = SMMSensors;
WRAPPER_EXTENSION = kext;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -1354,6 +1469,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
D452B91B21075817008456D6 /* Build configuration list for PBXNativeTarget "SMMSensors" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D452B91C21075817008456D6 /* Debug */,
D452B91D21075817008456D6 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 1D05ABAF13ED0D7000EADBF6 /* Project object */;
Expand Down
141 changes: 141 additions & 0 deletions SMMSensors/SMMSensors-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Source Code</key>
<string>SOURCE_CODE_LINK</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>SMMSENSORS_BUNDLE</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>HWSENSORS_VERSION</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>HWSENSORS_REVISION</string>
<key>IOKitPersonalities</key>
<dict>
<key>SMM Monitoring Plugin</key>
<dict>
<key>IOMatchCategory</key>
<string>FakeSMCPlugin</string>
<key>IOClass</key>
<string>SMMSensors</string>
<key>IOProviderClass</key>
<string>IOPlatformDevice</string>
<key>Platform Profile</key>
<dict>
<key>Dell</key>
<dict>
<key>02PG84</key>
<dict>
<key>Description</key>
<string>Dell XPS 9360 (i7-8550U)</string>
<key>Tachometers</key>
<dict>
<key>System Fan</key>
<dict>
<key>Disabled</key>
<false/>
<key>Index</key>
<integer>0</integer>
</dict>
</dict>
<key>Temperatures</key>
<dict>
<key>CPU Package</key>
<dict>
<key>Disabled</key>
<true/>
<key>Index</key>
<integer>0</integer>
</dict>
<key>Ambient</key>
<dict>
<key>Disabled</key>
<true/>
<key>Index</key>
<integer>1</integer>
</dict>
<key>Thermal Zone</key>
<dict>
<key>Disabled</key>
<true/>
<key>Index</key>
<integer>2</integer>
</dict>
<key>Mainboard</key>
<dict>
<key>Disabled</key>
<true/>
<key>Index</key>
<integer>3</integer>
</dict>
<key>Memory Module</key>
<dict>
<key>Disabled</key>
<true/>
<key>Index</key>
<integer>4</integer>
</dict>
</dict>
</dict>
</dict>
<key>Default</key>
<dict>
<key>DisableDevice</key>
<false/>
<key>FanMultiplier</key>
<integer>1</integer>
<key>ForceLoad</key>
<false/>
<key>Tachometers</key>
<dict>
<key>System Fan</key>
<dict>
<key>Disabled</key>
<false/>
<key>Index</key>
<integer>0</integer>
</dict>
</dict>
<key>Temperatures</key>
<dict>
<key>CPU Package</key>
<dict>
<key>Disabled</key>
<true/>
<key>Index</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</dict>
<key>IONameMatch</key>
<string>bios</string>
</dict>
</dict>
<key>NSHumanReadableCopyright</key>
<string>MIT License</string>
<key>OSBundleLibraries</key>
<dict>
<key>FAKESMCKEYSTORE_BUNDLE</key>
<string>FAKESMCKEYSTORE_COMPATIBLE</string>
<key>com.apple.kpi.iokit</key>
<string>10.6</string>
<key>com.apple.kpi.libkern</key>
<string>10.6</string>
<key>com.apple.kpi.mach</key>
<string>10.6</string>
<key>com.apple.kpi.unsupported</key>
<string>10.6</string>
</dict>
</dict>
</plist>
3 changes: 3 additions & 0 deletions SMMSensors/SMMSensors-Prefix.pch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//
// Prefix header for all source files of the 'SMMSensors' target in the 'SMMSensors' project
//
Loading

0 comments on commit f3f9907

Please sign in to comment.