Slice Posted September 16, 2017 Share Posted September 16, 2017 Laptop battery monitoring Using this driver you have to exclude other battery drivers: ACPIBatteryManager, AppleSmartBattery and so on. This driver assumes to using HWSensors3 with FakeSMC 3.5 as being part of it. 19.01.2018 Updated version of VoodooBatterySMC will get extended battery information and so it will be more exact. VoodooBatterySMC.kext.zip Updated HWMonitorSMC by vector-sigma HWMonitorSMC.app.zip HWMonitor2 by vector-sigma https://sourceforge.net/projects/hwsensors3.hwsensors.p/files/latest/download 07.03.2023 New HWMonitor from old sources, working with battery HWMonitorSMC.app.zip 8 Link to comment Share on other sites More sharing options...
Sherlocks Posted September 16, 2017 Share Posted September 16, 2017 Laptop battery monitoring Screen Shot 2017-09-16 at 08.45.08.png VoodooBatterySMC.kext.zip HWMonitorSMC.app.zip New kext. I will test on Sierra, HS.Thanks 나의 LG-F800S 의 Tapatalk에서 보냄 Link to comment Share on other sites More sharing options...
artur_pt Posted September 16, 2017 Share Posted September 16, 2017 hello like always nice work Slice thanks 3 Link to comment Share on other sites More sharing options...
Badruzeus Posted October 8, 2017 Share Posted October 8, 2017 With VoodooBattery it shows the indicator on 10.13 (17A365) Menu Bar.. (ignoring 0% caused of battery device fault). Link to comment Share on other sites More sharing options...
Slice Posted October 9, 2017 Author Share Posted October 9, 2017 With VoodooBattery it shows the indicator on 10.13 (17A365) Menu Bar.. (ignoring 0% caused of battery device fault). May be you should correct your DSDT to make laptop battery monitoring. Something about 16 bit EC registers. It is common requirement while Dell laptops already have good DSDT. 1 Link to comment Share on other sites More sharing options...
Badruzeus Posted October 9, 2017 Share Posted October 9, 2017 May be you should correct your DSDT to make laptop battery monitoring. Something about 16 bit EC registers. It is common requirement while Dell laptops already have good DSDT. OK, NP now it gives normal indicator after I disassembled my laptop parts and may be EC reset, as "Charged / Full" instead of "0%".. but, any idea how to disable this warning message upon every boot? [Warning] Battery 0 has no remaining capacity reported Thanks @Slice. Link to comment Share on other sites More sharing options...
Slice Posted October 9, 2017 Author Share Posted October 9, 2017 OK, NP now it gives normal indicator after I disassembled my laptop parts and may be EC reset, as "Charged / Full" instead of "0%".. but, any idea how to disable this warning message upon every boot? [Warning] Battery 0 has no remaining capacity reported Thanks @Slice. may be set Name(_STA, 0) for this battery? 1 Link to comment Share on other sites More sharing options...
Badruzeus Posted October 9, 2017 Share Posted October 9, 2017 may be set Name(_STA, 0) for this battery? OK, but since under linux with "nosplash debug --verbose" also got similar warning about battery; I think simply ignoring above message due to my battery fault. Thanks anyway. Link to comment Share on other sites More sharing options...
Slice Posted October 10, 2017 Author Share Posted October 10, 2017 OK, but since under linux with "nosplash debug --verbose" also got similar warning about battery; I think simply ignoring above message due to my battery fault. Thanks anyway. A fortiori you have to set Name(_STA, 0) for failed battery. 1 Link to comment Share on other sites More sharing options...
Slice Posted October 10, 2017 Author Share Posted October 10, 2017 10.10.2017 Updated kexts, recommended to all laptop users. VoodooBatterySMC.kext-143.zip ACPIMonitor.kext-103.zip 1 Link to comment Share on other sites More sharing options...
Sherlocks Posted October 11, 2017 Share Posted October 11, 2017 thank you for voodoobatterysmc i report experienced problem. my laptop connected power cable. first, dark theme, icon is black, need to change white icon if use black theme on setting. two i used rehabman's acpibatterymanager.kext before. case1. only rehabman's acpibatterymanager he's kext shown manufacture info and battery case2. rehabman's acpibatterymanager + voodoobatterysmc.kext i lost manufacture and shown differ battery size. thanks in advance EDIT1. i will get exact battery size info in windows. then will write here. EDIT2. i can't get battery cycle. because i used windows7. only rehabman kext shown more correct battery info in macos. The battery capacity is slightly different, but it is almost the same. EDIT3. on slice's kext, battery capacity is more corrected Link to comment Share on other sites More sharing options...
Slice Posted October 11, 2017 Author Share Posted October 11, 2017 Rehabman kext uses extended information _BIX while I didn't make it yet. Hope improve soon. About battery capacity look Windows tells in mWh, while MacOS in mAh. Multilier is Voltage. So Windows value 34610mWh / 8.643V = 4004mAh Compare! PS. Using VoodooBatterySMC assumes you need no double it by ACPIBatteryManager. 1 Link to comment Share on other sites More sharing options...
Sherlocks Posted October 11, 2017 Share Posted October 11, 2017 Rehabman kext uses extended information _BIX while I didn't make it yet. Hope improve soon. About battery capacity look Windows tells in mWh, while MacOS in mAh. Multilier is Voltage. So Windows value 34610mWh / 8.643V = 4004mAh Compare! PS. Using VoodooBatterySMC assumes you need no double it by ACPIBatteryManager. I learned it from you. I will report it to rehabman. Thank you so much. 나의 LG-F800S 의 Tapatalk에서 보냄 Link to comment Share on other sites More sharing options...
vector sigma Posted October 11, 2017 Share Posted October 11, 2017 Rehabman kext uses extended information _BIX while I didn't make it yet. Hope improve soon. About battery capacity look Windows tells in mWh, while MacOS in mAh. Multilier is Voltage. So Windows value 34610mWh / 8.643V = 4004mAh Compare! PS. Using VoodooBatterySMC assumes you need no double it by ACPIBatteryManager. Using Rehabman's kext I can easily get some info: 2017-10-12 01:42:49.779 HWMonitorSMC[2331:128832] { Amperage = 0; AtCriticalLevel = 0; AtWarnLevel = 0; AvgTimeToEmpty = 65535; AvgTimeToFull = 65535; BatteryInstalled = 1; BatteryInvalidWakeSeconds = 30; BatterySerialNumber = "Primary- 2993"; BatteryType = Lion; CellVoltage = ( 3168, 3168, 3168, 3170 ); CurrentCapacity = 3962; CycleCount = 0; DesignCapacity = 8719; DeviceName = Primary; ExternalChargeCapable = 1; ExternalConnected = 1; FirmwareSerialNumber = 11346; FullyCharged = 1; IOGeneralInterest = "IOCommand is not serializable"; InstantAmperage = 0; InstantTimeToEmpty = 65535; InstantTimeToFull = 65535; IsCharging = 0; LegacyBatteryInfo = { Amperage = 0; Capacity = 8719; Current = 3962; "Cycle Count" = 0; Flags = 5; Voltage = 12674; }; ManufactureDate = 0; Manufacturer = "Hewlett-Packard "; MaxCapacity = 8719; MaxErr = 0; PermanentFailureStatus = 0; PostChargeWaitSeconds = 120; PostDischargeWaitSeconds = 120; "Quick Poll" = 0; Serial = " 2893"; Temperature = 0; TimeRemaining = 65535; Voltage = 12674; } CFMutableDictionaryRef m , dict = NULL; io_registry_entry_t entry = 0; m = IOServiceMatching( "IOPMPowerSource" ); ... bla bla Isn't voodobattery published in the same path? Link to comment Share on other sites More sharing options...
Slice Posted October 12, 2017 Author Share Posted October 12, 2017 Using Rehabman's kext I can easily get some info: 2017-10-12 01:42:49.779 HWMonitorSMC[2331:128832] { Amperage = 0; AtCriticalLevel = 0; AtWarnLevel = 0; AvgTimeToEmpty = 65535; AvgTimeToFull = 65535; BatteryInstalled = 1; BatteryInvalidWakeSeconds = 30; BatterySerialNumber = "Primary- 2993"; BatteryType = Lion; CellVoltage = ( 3168, 3168, 3168, 3170 ); CurrentCapacity = 3962; CycleCount = 0; DesignCapacity = 8719; DeviceName = Primary; ExternalChargeCapable = 1; ExternalConnected = 1; FirmwareSerialNumber = 11346; FullyCharged = 1; IOGeneralInterest = "IOCommand is not serializable"; InstantAmperage = 0; InstantTimeToEmpty = 65535; InstantTimeToFull = 65535; IsCharging = 0; LegacyBatteryInfo = { Amperage = 0; Capacity = 8719; Current = 3962; "Cycle Count" = 0; Flags = 5; Voltage = 12674; }; ManufactureDate = 0; Manufacturer = "Hewlett-Packard "; MaxCapacity = 8719; MaxErr = 0; PermanentFailureStatus = 0; PostChargeWaitSeconds = 120; PostDischargeWaitSeconds = 120; "Quick Poll" = 0; Serial = " 2893"; Temperature = 0; TimeRemaining = 65535; Voltage = 12674; } CFMutableDictionaryRef m , dict = NULL; io_registry_entry_t entry = 0; m = IOServiceMatching( "IOPMPowerSource" ); ... bla bla Isn't voodobattery published in the same path? Exactly class AppleSmartBattery : public IOPMPowerSource { 2 Link to comment Share on other sites More sharing options...
vector sigma Posted October 12, 2017 Share Posted October 12, 2017 About battery capacity look Windows tells in mWh, while MacOS in mAh. Multilier is Voltage. So Windows value 34610mWh / 8.643V = 4004mAh Compare! PS. Using VoodooBatterySMC assumes you need no double it by ACPIBatteryManager. So "Battery Amperage, mA" should be "Battery Amperage, mAh"? And this refear to the current capacity then? Link to comment Share on other sites More sharing options...
vector sigma Posted October 12, 2017 Share Posted October 12, 2017 Exactly class AppleSmartBattery : public IOPMPowerSource { i reworked the app, now show voltage and amperage using rehabman's kext by just reading kIOPMPSVoltageKey and kIOPMPSCurrentCapacityKey. Did not test your kext yet but it should work if mentioned keys are present and populated by voodoobattery. Source and precompiled app attached. P.S. I introduced I little bug and by clicking voltage it may be always displayed in the top bar. Don't panic I'll fix it.... now I'v to go. please let me know HWMonitorSMC.app.zip HWMonitorSMC.zip Link to comment Share on other sites More sharing options...
Slice Posted October 15, 2017 Author Share Posted October 15, 2017 So "Battery Amperage, mA" should be "Battery Amperage, mAh"? And this refear to the current capacity then? No, mA means current in units "milliAmpers". mAh means capacity in units mA * hours. How many hours the laptop can work with battery can be calculated from capacity and current Hours = mAh/mA So, If I'll use your kext, I need to delete the RehabMan's kext? Yes 2 Link to comment Share on other sites More sharing options...
Slice Posted January 20, 2018 Author Share Posted January 20, 2018 The topic updated. Link to comment Share on other sites More sharing options...
Slice Posted March 7, 2023 Author Share Posted March 7, 2023 I have to update HWMonitor application because latest one is not shown battery information. New version is in topic. Now OK 1 Link to comment Share on other sites More sharing options...
deeveedee Posted March 7, 2023 Share Posted March 7, 2023 (edited) I love FakeSMC3 and VoodooBatterySMC. My HackBookPro6,2 boots and runs perfectly after the switch to FakeSMC3 from VirtualSMC. I just tried the "new" HWMonitor2 with my HackBookPro6,2. It looks great! HWMonitor2 shows my Battery Amperage as 1 when charging and 2.7+A when running on battery. HWMonitor2 running on Battery Spoiler HWMonitor2 with AC Adapter connected (battery is charging) (Battery mVA = 1) Spoiler IOReg Spoiler My configuration is as follows: OpenCore 0.9.0 FakeSMC.kext 3.5.5 (November 23, 2022) VoodooBatterySMC.kext 1.2.1 (November 23, 2022) GeForceSensor.kext 1.2.4 (November 23, 2022) IntelCPUMonitor.kext 1.2.6 (November 23, 2022) HWMonitorSMC 1.3.4 (March 6, 2023) Edited March 7, 2023 by deeveedee 1 Link to comment Share on other sites More sharing options...
matgeo Posted March 27, 2023 Share Posted March 27, 2023 Can someone compile FakeSMC with plugins from the latest commits https://github.com/CloverHackyColor/FakeSMC3_with_plugins/commit/3518049c0d450249833bf1022a24dba312d72068 ? Link to comment Share on other sites More sharing options...
STLVNUB Posted March 27, 2023 Share Posted March 27, 2023 (edited) Will This Work On MacBooks? Works good on MacBook Air, but not as good as HWmonitor I try it works well on desktop Edited March 27, 2023 by STLVNUB Link to comment Share on other sites More sharing options...
Slice Posted March 27, 2023 Author Share Posted March 27, 2023 12 hours ago, matgeo said: Can someone compile FakeSMC with plugins from the latest commits https://github.com/CloverHackyColor/FakeSMC3_with_plugins/commit/3518049c0d450249833bf1022a24dba312d72068 ? I can as I committed just now. But I compiled in Mojave with Xcode11.3.1. For newer Xcode there must be new efforts. Link to comment Share on other sites More sharing options...
matgeo Posted March 28, 2023 Share Posted March 28, 2023 9 hours ago, Slice said: I can as I committed just now. But I compiled in Mojave with Xcode11.3.1. For newer Xcode there must be new efforts. I'm sorry , I'm not familiar with Xcode and compilations. Is there going to be a new release with the latest commits? Really looking forward to it. Link to comment Share on other sites More sharing options...
Recommended Posts