Code Monkey home page Code Monkey logo

os-x-acpi-battery-driver's Introduction

ACPIBatteryManager by RehabMan

How to Install:

Install the kext using your favorite kext installer utility, such as Kext Wizard. The Debug director is for troubleshooting only, in normal "working" installs, you should install the Release version.

Please read this post if you need to make DSDT edits: http://www.tonymacx86.com/mavericks-laptop-support/116102-how-patch-dsdt-working-battery-status.html

Downloads:

Downloads are available on Bitbucket:

https://bitbucket.org/RehabMan/os-x-acpi-battery-driver/downloads/

Archived builds are available on Google Code:

https://code.google.com/p/os-x-acpi-battery-driver/downloads/list

Build Environment

My build environment is currently Xcode 7.3, using SDK 10.8, targeting OS X 10.6.

No other build environment is supported.

32-bit Builds

Currently, builds are provided only for 64-bit systems. 32-bit/64-bit FAT binaries are not provided. But you can build your own should you need them. I do not test 32-bit, and there may be times when the repo is broken with respect to 32-bit builds, but I do check on major releases to see if the build still works for 32-bit.

Here's how to build 32-bit (universal):

  • xcode 4.6.3
  • open ACPIBatteryManager.xcodeproj
  • click on ACPIBatteryManager at the top of the project tree
  • select ACPIBatteryManager under Project
  • change Architectures to 'Standard (32/64-bit Intel)'

probably not necessary, but a good idea to check that the targets don't have overrides:

  • multi-select all the Targets
  • check/change Architectures to 'Standard (32/64-bit Intel)'
  • build (either w/ menu or with make)

Or, if you have the command line tools installed, just run:

  • For FAT binary (32-bit and 64-bit in one binary) make BITS=3264

  • For 32-bit only make BITS=32

Source Code:

The source code is maintained at the following sites:

https://github.com/RehabMan/OS-X-ACPI-Battery-Driver

https://bitbucket.org/RehabMan/os-x-acpi-battery-driver

Feedback:

Please use this thread on tonymacx86.com for feedback, questions, and help:

http://www.tonymacx86.com/hp-probook/69472-battery-manager-fix-boot-without-batteries.html

Known issues:

  • Most DSDTs need to be patched in order to work properly with OS X.

  • OS X does not deal well with dual-batteries: Consider SSDT-BATC, which will combine two batteries to a single battery.

Change Log:

2018-10-5 v1.90.1

  • fix a crash in ACPIBatteryManager due to notifications received very early in startup (may be in invalid configurations)

2018-09-15 v1.90

  • merge 'refactor' branch from the-darkvoid (details below)

  • removed BatteryTracker and allow existing services to communicate directly

  • drive AC status purely through ACPIACAdapter, not through battery charging/discharging status

2017-10-01 v1.81.4

  • add kernel flag "abm_firstpolldelay" to allow override of FirstPollDelay with simple kernel flag entry (config.plist/Boot/Arguments). For example, to set FirstPollDelay to 16000 (16 seconds), use abm_firstpolldelay=16000

2017-09-01 v1.81.3

  • Revert more 10.13 changes when running 10.12 and earlier (runtime checks). These changes are an attempt to solve issue #22

2017-08-30 v1.81.2

  • Revert some of the 10.13 changes for 10.12 and earlier (runtime checks)

2017-08-30 v1.81.1 (removed from bitbucket)

  • Change FirstPollDelay to 4000

2017-08-29 v1.81

  • More experiments for 10.13 and the startup problem.

  • Now we wait for AppleSMC to load before ACPIBatteryManager starts. This provides a better "anchor" for the FirstPollDelay wait.

  • FirstPollDelay now 1000. Tested on my 4530s (HDD, Sandy Bridge Core i3). It works with 500 (and with other larger values), but fails and 250. Decided to try 1000 as a default.

  • Avoid a problem where power management registration caues an early (but not real early) call to setPowerState which was triggering a pollBatteryState prior to the delay specified by FirstPollDelay.

2017-08-28 v1.80

  • Fix problem of losing battery icon on 10.13 High Sierra beta. It is a new timing bug introduced in High Sierra. Delaying the first poll and battery status publish fixes it. StartupDelay configuration is removed (not used, has no effect if specified in ACPI override). New configuration item FirstPollDelay is default at 7500. Slower computers may need a longer delay (for my Lenovo u430, 3500 is too short, 4000 is long enough).

2017-08-26 v1.71

  • Fix problem with Activity Monitor "Energy" tab, by changing class names to AppleSmartBatteryManager and AppleSmartBattery

2017-04-28 v1.70.3

  • Add quick polling for the first 10 seconds of startup for the case the EC/ACPI does not respond correctly at startup. This quick poll will be cancelled once a battery status is succesfully acquired, or after the 10 seconds.

2016-11-18 v1.70.2

  • Fix problem where incorrect _BST code returns status of "discharging" when at full charge, AC adapter still plugged in.

2016-06-28 v1.70.1

  • Fix bug involving BatterySerialNumber (always showing -Unknown)

  • Handle ACPI returning a blank string for serial# in _BIF (use "Unknown" in that case)

  • no longer setting Temperature when it is not available from ACPI

  • misc cleanup

2016-05-31 v1.70.0

  • added SSDT-BATC.dsl which allows multiple batteries to be dealt with as a single ACPI battery

  • changed the code that responds to battery notifications so it is not sensitive to incorrect remove/add flags

  • misc cleanup

2015-12-30 v1.60.5

  • Fixed bug with zero length dictionary (ACPI-based configuration)

  • correct capacities only if non-zero

  • change StartupDelay to 0ms

2015-11-09 v1.60.4

  • added configurable StartupDelay

  • changed default StartupDelay from 500ms to 50ms

2015-10-29 v1.60.3

  • Add correction for capacities that don't conform to OS X expectations (CurrentCapacity<=MaxCapacity<=DesignCapacity)'

2015-09-30 v1.60

  • Add CurrentDischargeRateMax configuration key as a way to cap the discharge rate against bad data from ACPI _BST

  • Add ACPI method for overriding configuration data in Info.plist. See config_override.txt for more info

2015-01-23 v1.55

  • Add 500ms delay before polling initial battery state (_STA) to account for battery devices at are not ready early in the boot process. This avoids dimming the display when booting on battery, as the system doesn't detect it as a battery present->battery removed transition.

  • some minor fixes for watts when CurrentRate is ACPI_UNKNOWN

  • debug messages are now in decimal

2014-10-16 v1.53

  • added debug output for _BIX

2014-02-07 v1.52

  • Fix deadlock caused by changes made for multiple batteries. See issue #3.

  • When determining if other batteries are discharging, ignore batteries that are not connected. See issue #2.

  • To provide AC status changes quicker after an AC change, poll battery objects more often after such a change. See issue #4.

2014-01-21 v1.51

  • Some fixes related to multiple batteries. Work in progress.

2013-12-04 v1.50

  • Added ACPIACAdapter implementation, which implemeents an ACPI compliant object to track status changes of the AC adapter. As the status change, the battery objects are notified.

prior fixes:

  • I didn't really track a change log prior to now. Read the threads linked or the commit log in git.

History

See original post at: http://www.insanelymac.com/forum/index.php?s=bfca1f05adde52f77c9d5c0caa1250f7&showtopic=264597&view=findpost&p=1729132

See updated wiki documentation at: https://github.com/gsly/OS-X-ACPI-Battery-Driver/wiki

Original Credits

Most of the base code for AppleSmartBatteryManager and AppleSmartBattery created by gsly on insanelymac.com, no doubt with influences from the many other ACPI battery implementations that were out there.

Other ideas brought in by myself, some borrowed from zprood on insanelymac.com.

RehabMan - recent enhancements/bug fixes Zprood - cycle count hack in _BIF gsly - base code for RehabMan enhancements

os-x-acpi-battery-driver's People

Contributors

gsly avatar jafd avatar rehabman avatar the-darkvoid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

os-x-acpi-battery-driver's Issues

inaccurate reading

ON my hack, battery dropped down from 14% to 5%

even though i have 2 batteries, its already patched. And this happened while it was running geekbench

Laptop not charging

Hi, I have HP Pavilion 15-bc207nl I used HP-Pavilion-n012tx patch which is the closest to my model, and I also use your battery kext. My battery has been recognized by the OS and the percentage is true but my laptop is not charging when Hackintosh is on. Is it about incorrect DSDT patch or something else?

Also I will be very very glad if you can make a DSDT patch for HP Pavilion 15-bc207nl.

Thanks!

Strange symptom on laptop with AMT

System: HP Elitebook 2570p - Intel Core i5 3360m

It seems anytime AMT is involved in the BIOS, i cant get this to work. It will work and the battery % is correct and when AC is plugged in it will work correctly when i tell the bios to "Unconfigure AMT on next reboot" but as soon as a next reboot/shutdown takes place this goes back to not working!

What happens? Well it seems AMT is causing the battery % and status to be reported incorrectly. When plugged in It will also say "BATTERY IS NOT CHARGING"

There doesnt seem to be a way to permanently disable AMT either despite HP's own document stating howto get into the firmware management (CTRL+P)

Have no problems on a same model HP 2570p unit with a I5 processor (without 'V-Pro')

Couldnt show battery when startup...

With the new kext it couldnt show battert icon when startup and must showit by myself and when restart it still disappear.

Old kext dont have this problem..

Deadlock with notifyBatteryManagers

Evidently, on some machines this is not called on the workloop thread. When the target code calls back into check if there are any batteries discharging (from another thread), it results in deadlock (locking battery tracker IORecursiveLock) and battery status updates stop.

Will need to push this through a command gate, such that the code is executed on the workloop thread.

Note: I already have a fix for this sitting on the machine that I discovered it with, but that machine doesn't have network access, so it will be a bit...

22 Seconds Delay when power adapter is disconnected

I am experiencing an issue when power adapter is disconnected.

Charging state is automatically updated
It takes around 22 Seconds to switch Power source from "Power Adapter" to "Battery"

I use Lenovo X220

I have patched EC Multibyte and added BATC changing all the Notif methods to BATC

Additionally I had to patch device(AC) in order for ACPIACAdapter to be loadded by adding
Name (_PWR, Package (){0x18, 0x3})

Can this issue be related to DSDT or it is a bug in Driver ?

When it runs on battery and AC adapter is connected status icon is updated automatically

OSX Version is 10.14 Mojave Public Beta (18A389)

Battery status not appearing on High Sierra 10.13

On 10.13, battery status will not be detected at startup.

Workaround: At login screen, unplug AC adapter, plug back in (or opposite if starting on battery power).

It appears to be a timing issue.

Note: Sometimes it works, but it is rare.

10.10 issue

Battery status shows 0% at startup. Unplug and plug power cord solve the problem. Anything to do with the kext?

Thanks

After update to 1.50, the system reports contradictory state

After update to the latest git master (as of today, January 23, 2014), the kext still cannot find and properly show the battery status (reporting overall read timeouts), but the thing that changed is that the OS now thinks it is on battery power.

screen shot 2014-01-23 at 19 05 09

Can't there be a fallback to assume the system is always on AC if the information can't be read?

(I understand I must first fix the DSDT, but the discussion of that belongs elsewhere, I assume.)

battery not charge, even boot to windows

I patched dsdt and install AcpiBatteryManager.kext, battery status is shown, but when adaper plug in, It's show battery not charge, from log, I found the charging bit never set, unplug in status is 1, plug in status is 0.

dig into dsdt,I found it just set PCI0.LPCB.EC0.MBST to status word.

If I reset EC, and boot to windows, then battery charge again, but once if I have boot macos, then back to windows, battery not charge again.
I dont know what cause this happen, blow is my _BST/UPBS/IVBS.

Method (_BST, 0, NotSerialized)
{
If (LEqual (^^PCI0.LPCB.EC0.ECOK, One))
{
If (^^PCI0.LPCB.EC0.MBTS)
{
UPBS ()
}
Else
{
IVBS ()
}
}
Else
{
IVBS ()
}

            If (LEqual (BRTE, Zero))
            {
                Store (0xFFFFFFFF, Index (PBST, One))
            }

            Return (PBST)
        }

Method (IVBS, 0, NotSerialized)
{
Store (Zero, Index (PBST, Zero))
Store (0xFFFFFFFF, Index (PBST, One))
Store (0xFFFFFFFF, Index (PBST, 0x02))
Store (0x2710, Index (PBST, 0x03))
}
Method (UPBS, 0, NotSerialized)
{
Store (B1B2(^^PCI0.LPCB.EC0.CUR0, ^^PCI0.LPCB.EC0.CUR1), Local0)
If (And (Local0, 0x8000))
{
If (LEqual (Local0, 0xFFFF))
{
Store (0xFFFFFFFF, Index (PBST, One))
}
Else
{
Not (Local0, Local1)
Increment (Local1)
And (Local1, 0xFFFF, Local3)
Store (Local3, Index (PBST, One))
}
}
Else
{
Store (Local0, Index (PBST, One))
}
Store (B1B2(^^PCI0.LPCB.EC0.BRM0, ^^PCI0.LPCB.EC0.BRM1), Local5)
If (LNot (And (Local5, 0x8000)))
{
ShiftRight (Local5, 0x05, Local5)
ShiftLeft (Local5, 0x05, Local5)
If (LNotEqual (Local5, DerefOf (Index (PBST, 0x02))))
{
Store (Local5, Index (PBST, 0x02))
}
}
If (LAnd (LNot (^^PCI0.LPCB.EC0.SW2S), LEqual (^^PCI0.LPCB.EC0.BACR, One)))
{
Store (FABL, Index (PBST, 0x02))
}
Store (B1B2(^^PCI0.LPCB.EC0.BCV0, ^^PCI0.LPCB.EC0.BCV1), Index (PBST, 0x03))
Store (^^PCI0.LPCB.EC0.MBST, Index (PBST, Zero))
}

Idling to sleep is prevented under both 10.6 and 10.7 in 32-bit mode

After installing the kext (compiled for 32-bit mode) under either 10.6 and 10.7 on a Dell Inspiron 1520, automatic sleep doesn't work anymore. Sleep itself still works. 64-bit mode is untested as the laptop has GMA X3100 and thus requires a 32-bit kernel. I'm currently running a fully updated 10.6.8 install.

Force refresh on all batteries

Hi RM,

As requested here :-

http://www.tonymacx86.com/mountain-lion-laptop-support/69472-battery-manager-fix-boot-without-batteries-58.html#post784853

When running dual batteries the battery menu icon % very often stalls and fails to update when discharging from (BAT2), manually forcing a refresh by de-selecting & re-selecting "Show Percentage" via the battery context menu usually updates the menu %. Once the laptop switches to discharging from BAT1 the menu % seems to update ok.

For further details on this issue see my post here:-

http://www.tonymacx86.com/mavericks-laptop-support/114961-jays-monkeybook-pro-ultimate-sony-vpc-se-customac-build-51.html#post782440

As discussed I believe that most of these issues are caused by a bug in the OSX battery monitor process. However you suggested that it may be possible to force an update on all batteries from within your kext:-

http://www.tonymacx86.com/mountain-lion-laptop-support/69472-battery-manager-fix-boot-without-batteries-58.html#post784587

Let me know if i can be of any further help when/if you come to address this issue.

Cheers
Jay

_BIF causes periodic cursor jumps with VoodooI2C

I think I've found a workaround for this. The conflict is in this code in AppleSmartBattery.cpp:

bool AppleSmartBattery::pollBatteryState(int path)
{
    // ...
    fProvider->getBatterySTA();
    if (fBatteryPresent)
    {
        if (fUseBatteryExtendedInformation)
            fProvider->getBatteryBIX();
        else
            fProvider->getBatteryBIF();
        if (fUseBatteryExtraInformation)
            fProvider->getBatteryBBIX();
    }
    fProvider->getBatteryBST();
    // ...
}

What happens is whenever the poll starts, _BIF is called on my machine and causes a brisk interruption in the movement of the cursor, and if the cursor is being moved when this happens, a leap/jump occurs.

I wonder if _BIF (not sure about the others) is really necessary for a frequent poll like this, so my proposal is to add a requirement for the execution of these taxing calls only when fStartupFastPoll || path == kNewBatteryPath .

I'm testing it right now and have yet observed any side effects.

More than two battery devices

What about machines that have more than just two battery devices? For example my asus zenbook ux331un has BAT0, BAT1 and BAT2. BAT0 located within both EC0 and H_EC while BAT1 and BAT2 are located under H_EC only. How should I apply this fix in my situation? I want to try this because I am having kernel panic when waking from sleep only if the computer is on battery power, while sleep works fine when on ac power.

after update to 10.10.2 - i am getting powerd message in the log every 30 seconds.

here is cut and paste from /var/log/system.log - is this a DSDT issue?

Jan 29 11:33:00 Toms-Mac.local powerd[29]: Failed to read current rating(0xe00002f0)
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::pollingTimeOut called
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::pollBatteryState: path = 1
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBatteryManager::getBatterySTA called
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatterySTA: battery_status = 0x1f
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBatteryManager::getBatteryBIF called
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBatteryManager::getBatteryBIF: validateObject return 0x0
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBIF: acpibat_bif size = 13
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBIF: fPowerUnit = 0x0
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBIF: fDesignCapacity = 84240
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBIF: fMaxCapacity = 77720
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBIF: fBatteryTech = 0x1
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBIF: fDesignVoltage = 10800
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBIF: fCapacityWarning = 3886
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBIF: fLowWarning = 200
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBIF: fDeviceName = 'Battery'
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBIF: fSerialNumber = 'xxxxx'
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBIF: fType = 'LION'
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBIF: fManufacturer = 'LENOVO'
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBatteryManager::getBatteryBST called
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBST: acpibat_bst size = 4
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBST: fPowerUnit = 0x0
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBST: currentStatus = 0x0
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentRate = 0
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentCapacity = 76620
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentVoltage = 12068
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBST: Calculating for WATTS
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentRate = 0
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentCapacity = 7094
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::setBatteryBST: fAverageRate = 0
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery: Battery is charged.
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::constructAppleSerialNumber called
Jan 29 11:33:30 Toms-Mac kernel[0]: AppleSmartBattery::rebuildLegacyIOBatteryInfo called
Jan 29 11:33:30 Toms-Mac.local powerd[29]: Failed to read current rating(0xe00002f0)

Issue with ACPI-Battery

I use your last BatteryManager kext (download from here) and I encounter an "issue" with it about the battery status icon.

When I'm charging the battery, normal icon (the battery with the "power" inside). However, when the battery is finished to be charge, the battery icon change to the default battery one - the one you've got in fact when you're on battery (and normally discharging it) remaining at 100% charge (and when I check the status, it says that the power is coming from battery, not from wall plug). So, the icon didn't change to the normal "electrical plug" one. It is the same if I remove the charger, let the battery discharge only few % (I know that in this case, battery will not charge after to avoid "memory" ) and plug again the transformer on the laptop, the battery icon doesn't change and remain "on battery"... However, for sure, battery % didn't decrease...

I don't have this behavior (in fact I've got the normal one) with the Zprood kext (the old from) from here http://www.insanelymac.com/forum/topic/272...nager-for-lion/. However, this kext is not able to read correctly battery count cycle for my battery.

So, can I help you to track this ?

Thanks.

Fred.

P.S.: I've got an Asus Zenbook UX32LN patched with your MacIASL "repository" change 4.08. I can forward you my patched DSDT and SSDTs if necessary.

Menu Bar power indicator doesn't update in High Sierra

The menu bar power indicator doesn't update the battery/power status properly in High Sierra. (Works fine in Sierra).

The ACPI itself is working fine, as coconutBattery updates fine when the device is plugged in/unplugged and the battery percentage changes, even in High Sierra.

Problem with splitting bytes

Hello,Rehabman!

This is a 16-bit byte:
MCUR, 16,
Store (^^PCI0.LPCB.EC0.ECRD (RefOf (^^PCI0.LPCB.EC0.MCUR)), Local5)

and I use the B1B2:
MCU0, 8,MCU1, 8,
Store (^^PCI0.LPCB.EC0.ECRD (RefOf (B1B2(^^PCI0.LPCB.EC0.MCU0,^^PCI0.LPCB.EC0.MCU1))), Local5)

He will report an error:
37462, 6126, syntax error, unexpected PARSEOP_CLOSE_PAREN, expecting PARSEOP_EXP_INDEX_LEFT

I think the problem is“refof”
I don't know what should I do,can you help me?
Thank you!

Changed from Chameleon to Clover, no more battery icon

Hi, I experienced a little bug but I wasn't sure where to post the issue, here or open a ticket on Clover SourceForge.

As I have seen you more active and I saw all your configs are made with Clover as boot maybe you experienced this issue.

I have originally generated a DSDT with MaciASL and applied only patches from your repo. The battery icon was working really well with Chameleon but since I have changed to Clover the battery icon disappeared.

HWMonitor show the battery status wich is weird.

Your Battery Kext loaded correctly and the DSDT is also loading fine because I also applied the fix for the screen brightness and the brightness bar appear on Settings>Displays.

Also the FakeSMC (I know this is a different driver) is also not working anymore. I noticed this because the Voltage, CPU usage doesn't show up on HWMonitor.

I have used this Clover config from your Clover-Laptop-Config repo
https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/config_HD3000_1366x768.plist

I am attaching some screenshots from IOReg wich shows that everything should be ok but it's not.

captura de pantalla 2015-07-03 a las 12 11 53
captura de pantalla 2015-07-03 a las 12 12 28
captura de pantalla 2015-07-03 a las 12 14 02

Percentage of both batteries

ACPI battery manager is able to detect more than 1 battery merge it, and show it to macos bla bla bla. Any chance a client can be made for this kext that shows the percentage of both batteries in the laptop?

Battery at 0%, all the time.

Hi. Running OS X Yosemite on ASUS Vivobook s500ca here, and trying to use this kext for battery. However, although your kext makes the battery indicator appear, it is always at 0%. Although this is my first attempt at hackintosh, I suspect it has something to do with DSDT needing to be patched. I don't know what it is (and I don't think I have one), but I think I saw something about that in Chameleon Wizard (I'm using Chameleon as a bootloader). If my DSDT does need to be patched, can you please walk me through it?

Battery on 10.10.3

Hello RehabMan.
I use your kext and dsdt patch (battery_HP-DV7-6xxx.txt) for the battery
Before version 10.10.3 everything worked perfectly.
(The indicator does not appear or does not work at all)
And this problem still occurs in some people.

You can see what is the reason?
I can provide reports on demand.

Slow to update AC status with some computers

Some DSDTs will provide an AC status update and then provide incorrect information about the state of the charge/discharge on the battery. That is, they will notify that AC is connected, but then not show battery charging until some delay.

To work around this, the battery manager should poll more often after an AC state change.

Discharging View with 2 Batteries on 10.11.6 stays red on battery switch

I'm using the Thinkpad T440s with 2 batteries without the battery-merge hack. its running quite well. except a minor bug: when one battery is empty, its shown with a red battery indicator symbol in the menu bar as desired. but after bios switch to the second (fully charged) battery, it keeps red instead of switching to a black (non critical) feedback symbol, although it show the percentage correctly.

Anyway to support UART batteries? (Surface Gen 5 devices)

Hi,

Surface Gen 5 devices (Surface Book 2 / Surface Pro 6 / Surface Laptop, etc.) uses UART to fetch its battery status, which makes their DSDT does not contain "EmbeddedControl" at all.

However, in jakeday/linux-surface#28 , some legendary hackers finished the research and provided a proof of concept: https://gist.github.com/qzed/01a93568efb863f1b7887f0f375c03fc

It then becomes a linux kernel patch ( jakeday/linux-surface#321 ). But before that, people are using cron jobs to run the POC script and update their battery status using its output.

Is there a way we could achieve something similar? Or should we work with https://github.com/VoodooI2C/VoodooI2C as they may have some experiences dealing with UART?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.