Jump to content

1,969 posts in this topic

Recommended Posts

@Slice (and all) sorry but only during this vacation I've found the time. Attached a version of the HWMonitorSMC.app that did not show battery info if no battery is detected. Before doing anything on the repo please test it.

 

P.S. also I modified a bit the memory management by just switching to use ARC's keywords to transfer memory ownership of CF objects.

It looks like

Снимок экрана 2017-12-27 в 19.51.36.png

Share this post


Link to post
Share on other sites
Advertisement

Take, please, the version for test

attachicon.gifGeforceSensor.kext.zip

Thank you, that got it running.

But it only works with provided FakeSMC, which brings number of other issues, particularly

  • Macs Fan Control can't see CPU temp
  • iStat Cpu Package Multiplier goes crazy

post-971287-0-83155700-1514394513_thumb.pngpost-971287-0-17612100-1514394529_thumb.png

post-971287-0-61764500-1514394539_thumb.pngpost-971287-0-67932300-1514394549_thumb.png

Share this post


Link to post
Share on other sites

@DMMA

Take, please, the version for test

attachicon.gifGeforceSensor.kext.zip

 

@vector sigma

Thanks, and I wait you committed the changes.

Done, sf is a pain... often you cannot connect to it..

 

Look at "IOBatteryStatus.m" in getBatteryAmperageFrom and getBatteryVoltageFrom:

if ([IOPMPowerSource objectForKey:@kIOPMPSBatteryInstalledKey] != nil &&
        [[IOPMPowerSource objectForKey:@kIOPMPSBatteryInstalledKey] boolValue]) {
.....

to return zero, looks like your driver publish that "kIOPMPSBatteryInstalledKey" = true

even if a battery is not present, otherwise should return "BAT0_NOT_FOUND" (i.e. -1). Is that possible?

Anyway retry with new changes, and me I'm going to try with VoodooBattery to see if that happen.

 

EDIT

 

ok, Clearly does not return zero, is just empty in your picture. Need to figure out why here does not do the same.

Share this post


Link to post
Share on other sites

@Slice, the bug is that VoodooBatterSMC.kext says there is a battery even if does not exist:

BatteryPowerSource[battery]->setBatteryInstalled(true);

this should be conditional, but can we also assume no one will install VoodooBatterySMC.kext on a Desktop pc Lol. Try w/o it.

On a laptop without battery is another story, we need to check if the battery exist for true. Searching for a workaround...

 

EDIT

Fixed, check r84

 

EDIT 2

app r84 attached.

 

EDIT 3
@Slice you should increase the app version... I've found the short version is 1.3.2 while the bundle version is 732 :surprised:

HWMonitorSMC.app_r84.zip

Edited by vector sigma

Share this post


Link to post
Share on other sites

Thank you, that got it running.

But it only works with provided FakeSMC, which brings number of other issues, particularly

  • Macs Fan Control can't see CPU temp
  • iStat Cpu Package Multiplier goes crazy

attachicon.gifMacs Fan Control - before.pngattachicon.gifMacs Fan Control - after.png

attachicon.gifiStat - before.pngattachicon.gifiStat - after.png

It is your choice what to use.

Share this post


Link to post
Share on other sites

@Slice, the bug is that VoodooBatterSMC.kext says there is a battery even if does not exist:

BatteryPowerSource[battery]->setBatteryInstalled(true);

this should be conditional, but can we also assume no one will install VoodooBatterySMC.kext on a Desktop pc Lol. Try w/o it.

On a laptop without battery is another story, we need to check if the battery exist for true. Searching for a workaround...

 

EDIT

Fixed, check r84

 

EDIT 2

app r84 attached.

 

EDIT 3

@Slice you should increase the app version... I've found the short version is 1.3.2 while the bundle version is 732 :surprised:

You forgot to send temperature_small_dark.png. I did this.

And it looks better

Снимок экрана 2017-12-28 в 20.33.04.png

Share this post


Link to post
Share on other sites

bad copy/paste from a temporary project inside my Desktop, anyway was white like your. Yeah, so in dark mode is even better:

post-2078499-0-04553900-1514488997.pngpost-2078499-0-40364800-1514489006_thumb.png

 

I think is possible to remove also this:

post-2078499-0-99653900-1514485800.png

if no other batteries of any kind are found. 

 

For tens of CPU do you like to regroup them into a sub menu like the following?

 

CPU 0

CPU 1

CPU 2

CPU 3

Other CPU ➪

                        CPU 4

                        CPU 5

                        CPU 6

                        CPU 7

                        etc..

Share this post


Link to post
Share on other sites

Good idea!

 

Ok, had to hack (sub-class) something in the Cocoa framenfork , now I'll start to elaborate a way to do that in a simple way. Just a question, is there any reason why there's a limit of 0xA enumerating CPUs? If I'm not mistaken there is a CPU with 22 cores out there  and mobos with more then one CPU ha ha. Let me know

Share this post


Link to post
Share on other sites

Yep, also new 2066 7980xe extreme (18 cores+18 threads)

and mine 2696 v4 (22 cores/44threads)

Ok, had to hack (sub-class) something in the Cocoa framenfork , now I'll start to elaborate a way to do that in a simple way. Just a question, is there any reason why there's a limit of 0xA enumerating CPUs? If I'm not mistaken there is a CPU with 22 cores out there  and mobos with more then one CPU ha ha. Let me know

 

post-468967-0-14347300-1514829172_thumb.png

Share this post


Link to post
Share on other sites

Ok, looks good (29 core? ha ha), just need to be grouped, Frequencies as well (also the numeration must be decimal instead of hexadecimal)

Grazie (ma ti ci vuole uno schermo a 50 pollici :hysterical: ). Ok need a sub menu.

 

Anyone else with less cpu and anyway > 4?

Share this post


Link to post
Share on other sites

beh basta un monitor 4k..e poi un buon coder potrebbe mettere delle toolbar scrolling bar per sezione!  :)

 

Translation

 

No it is enough a 4k monitor..other things are a joke! :-)

Share this post


Link to post
Share on other sites

so no scrolling bar per section for "poor" user with 44 cores or more? :-)))

thank you for your effort

 

haha nope, I mean the app will show native language detected from the OS  ;)

Share this post


Link to post
Share on other sites

It's called NSScrollView and can contain different kind of object (Safari in that case contains a WebKitView). Unfurtunately this require everythings to be redone from scratch and honestly, my time is running out... soon at job again.

Share this post


Link to post
Share on other sites

Guys tell me, do you want to see info for only phisycal cpu, I'm wrong? Otherwise doesn't make sense to me... 

Attached a tiny command line I made, double click on it:

 

name:             Intel® Core i5-3210M CPU @ 2.50GHz

phisycal core n.: 2

logical  core n.: 4

active   core n.: 4

 

I'm referring to blue line

 

PS What I want to do is to keep HWMonitor auto-detect number of cpu and limit it to that, using this code.

cpuinfo.zip

Share this post


Link to post
Share on other sites

Mon Jan  1 23:06:26 on console

 

cpuinfo 

 

name  Intel® Xeon® CPU W5590  @ 3.33GHz

 

phisycal core n.: 4

 

logical  core n.: 16

 

active   core n.: 16   :thumbsup_anim: 

 

 

 

 

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

  • 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
×