ProjectOSX

Welcome Guest!

Returning User? Login here.

Want membership privileges? Register here.

2 Pages V   1 2 >  
Start a new topic Add Reply
> Voodoobattery And Lion
sparkythewonders...
post May 31 2011, 05:03 AM
Post #1
VoodooBattery partially works anyone else with this issue?
oldnapalm
post May 31 2011, 05:53 PM
Post #2
Same problem here (and everywhere, I guess)
CODE
kernel[0]: Voodoo[0xFFFFFF7F80882B6B] poll: 267: Let's message battery 1
kernel[0]: Voodoo[0xFFFFFF7F808879DA] message: 450: Battery 1: Type: 00092BA9 Provider: VoodooBatteryController
kernel[0]: Voodoo[0xFFFFFF7F8088745E] update: 474: Battery 1: First time initialization
kernel[0]: Voodoo[0xFFFFFF7F808874C2] update: 479: Battery 1: Full update of battery is requested
kernel[0]: Voodoo[0xFFFFFF7F80887552] update: 481: Battery 1: Device status is 1f
kernel[0]: Voodoo[0xFFFFFF7F80887640] update: 491: Battery 1: Connected
kernel[0]: Voodoo[0xFFFFFF7F80884FE4] information: 548: Battery 1: Information is updating
kernel[0]: Voodoo[0xFFFFFF7F80885BE9] information: 648: Battery 1: ERROR: No battery information present
kernel[0]: Voodoo[0xFFFFFF7F80886047] information: 675: Battery 1: Committing changes
kernel[0]: Voodoo[0xFFFFFF7F80882E8A] requestPoll: 235: Increasing poll status to 56

It fails evaluating object _BIF (battery information)
CODE
            if (kIOReturnSuccess == ACPIDevice->evaluateObject("_BIF", &acpi)) {
Slice
post Jun 1 2011, 08:05 AM
Post #3
ACPIDevice->evaluateObject works for other methods?
_BIF presents in DSDT?
Does the kext work in Snow?
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
artur-pt
post Jun 1 2011, 12:16 PM
Post #4
QUOTE (Slice @ Jun 1 2011, 09:05 AM) *
ACPIDevice->evaluateObject works for other methods?
_BIF presents in DSDT?
Does the kext work in Snow?



the kext is voodoobattery 1.3.3 and works well in snow .
PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI
Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000
join me at irc.freenode.net/#olarila
oldnapalm
post Jun 1 2011, 02:41 PM
Post #5
QUOTE (Slice @ Jun 1 2011, 05:05 AM) *
ACPIDevice->evaluateObject works for other methods?

I don't think so, it's only called for _BIF and _BST.

ACPIDevice->evaluateInteger seems to work for _STA.

QUOTE (Slice @ Jun 1 2011, 05:05 AM) *
_BIF presents in DSDT?
Does the kext work in Snow?

Yes, the kext works in Snow and _BIF is inside device BAT0
CODE
Method (_BIF, 0, NotSerialized)
{
If (LNot (^^SBRG.EC0.BATP (Zero)))
{
Return (NBIF)
}
If (LEqual (^^SBRG.EC0.GBTT (Zero), 0xFF))
{
Return (NBIF)
}
BATO ()
BATS (Zero)
Store (^^SBRG.EC0.BIF9 (), Index (PBIF, 0x09))
Store (ONAM, Index (PBIF, 0x0C))
Store (^^SBRG.EC0.BIF0 (), Local0)
Store (^^SBRG.EC0.BIF1 (), Local1)
Store (^^SBRG.EC0.BIF2 (), Local2)
Store (^^SBRG.EC0.BIF3 (), Local3)
Store (^^SBRG.EC0.BIF4 (), Local4)
If (LNotEqual (Local0, Ones))
{
If (LNotEqual (Local1, Ones))
{
If (LNotEqual (Local2, Ones))
{
If (LNotEqual (Local3, Ones))
{
If (LNotEqual (Local4, Ones))
{
FBIF (Local0, Local1, Local2, Local3, Local4)
CBIF ()
}
}
}
}
}
If (LEqual (PUNT, Zero))
{
Multiply (Local2, 0x0A, Local2)
}
Store (Local2, LFCC)
BATR ()
Return (PBIF)
}
Slice
post Jun 1 2011, 06:06 PM
Post #6
And what about this kext?
Attached File  AppleACPIBatteryManager.kext.zip ( 31.14K ) Number of downloads: 128

I have no Lion to check. This one works in Snow.
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
oldnapalm
post Jun 1 2011, 06:30 PM
Post #7
This one causes KP, I tried it before

http://imageshack.us/photo/my-images/263/fotore.jpg/
Slice
post Jun 1 2011, 06:40 PM
Post #8
QUOTE (oldnapalm @ Jun 1 2011, 10:30 PM) *
This one causes KP, I tried it before

http://imageshack.us/photo/my-images/263/fotore.jpg/

Also in Snow, isn't it?
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
oldnapalm
post Jun 1 2011, 07:12 PM
Post #9
QUOTE (Slice @ Jun 1 2011, 03:40 PM) *
Also in Snow, isn't it?

No, in Snow it works.

I asked a friend who has Xcode for Lion to compile using 10.7 SDK, but it fails to load
(from http://netbook-installer.googlecode.com/sv...IBatteryManager)
CODE
/Users/oldnapalm/Downloads/AppleACPIBatteryManager.kext failed to load - (libkern/kext) link error; check the system/kernel logs for errors or try kextutil(8).

(kernel) kxld[com.apple.driver.AppleACPIBatteryManager]: The __ZTV22AppleACPIBatteryDevice is unpatchable because its class declares the method '__ZN22AppleACPIBatteryDevice13setPowerStateEmP9IOService' without providing an implementation.
(kernel) kxld[com.apple.driver.AppleACPIBatteryManager]: The __ZTV22AppleACPIBatteryDevice is unpatchable because its class declares the method '__ZN22AppleACPIBatteryDevice13setPowerStateEmP9IOService' without providing an implementation.
(kernel) Can't load kext com.apple.driver.AppleACPIBatteryManager - link failed.
(kernel) Failed to load executable for kext com.apple.driver.AppleACPIBatteryManager.
(kernel) Kext com.apple.driver.AppleACPIBatteryManager failed to load (0xdc008016).
(kernel) Failed to load kext com.apple.driver.AppleACPIBatteryManager (error 0xdc008016).
Failed to load AppleACPIBatteryManager.kext - (libkern/kext) link error.
Check library declarations for your kext with kextlibs(8).

For all architectures:
com.apple.iokit.IOACPIFamily = 1.4
com.apple.kpi.iokit = 11.0
com.apple.kpi.libkern = 11.0

For x86_64:
1 symbol not found in any library kext.

For i386:
1 symbol not found in any library kext.
Slice
post Jun 2 2011, 05:58 AM
Post #10
Check in Lion
CODE
bash-3.2# kextlibs /System/Library/Extensions/AppleACPIBatteryManager.kext/
For all architectures:
    com.apple.iokit.IOACPIFamily = 1.3
    com.apple.kpi.iokit = 10.7
    com.apple.kpi.libkern = 10.7

bash-3.2#

Seems dependencies are differ.
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
oldnapalm
post Jun 2 2011, 04:32 PM
Post #11
QUOTE (Slice @ Jun 2 2011, 02:58 AM) *
Seems dependencies are differ.

Yes, the kextlibs output is in my previous post
CODE
For all architectures:
com.apple.iokit.IOACPIFamily = 1.4
com.apple.kpi.iokit = 11.0
com.apple.kpi.libkern = 11.0

For x86_64:
1 symbol not found in any library kext.

For i386:
1 symbol not found in any library kext.

I found this guy with the same problem in Snow
http://www.insanelymac.com/forum/index.php...t&p=1449730

I did the same and now it loads and shows the battery icon. The estimated remaining time is realistic, but the percentage is zero
Attached File  Captura_de_Tela_2011_06_02_a__768_s_13.10.55.png ( 28.64K ) Number of downloads: 140

There's a positive value for CurrentCapacity in ioreg, but MaxCapacity is 0x0.

Compiled kext is attached if someone wants to test (compiled in Snow)
Attached File  AppleACPIBatteryManager.kext.zip ( 34.03K ) Number of downloads: 74
artur-pt
post Jun 2 2011, 07:28 PM
Post #12
QUOTE (Slice @ Jun 1 2011, 07:06 PM) *
And what about this kext?
Attached File  AppleACPIBatteryManager.kext.zip ( 31.14K ) Number of downloads: 128

I have no Lion to check. This one works in Snow.


i have checked dont work in lion

ioreg and kernel.log for this kextAttached File  lion_ioreg_kernellog_appleacpibaterry.zip ( 11.52K ) Number of downloads: 33


This post has been edited by artur-pt: Jun 2 2011, 07:29 PM
PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI
Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000
join me at irc.freenode.net/#olarila
sparkythewonders...
post Jun 3 2011, 05:21 PM
Post #13
QUOTE (oldnapalm @ Jun 2 2011, 10:32 AM) *
Yes, the kextlibs output is in my previous post
CODE
For all architectures:
com.apple.iokit.IOACPIFamily = 1.4
com.apple.kpi.iokit = 11.0
com.apple.kpi.libkern = 11.0

For x86_64:
1 symbol not found in any library kext.

For i386:
1 symbol not found in any library kext.

I found this guy with the same problem in Snow
http://www.insanelymac.com/forum/index.php...t&p=1449730

I did the same and now it loads and shows the battery icon. The estimated remaining time is realistic, but the percentage is zero
Attached File  Captura_de_Tela_2011_06_02_a__768_s_13.10.55.png ( 28.64K ) Number of downloads: 140

There's a positive value for CurrentCapacity in ioreg, but MaxCapacity is 0x0.

Compiled kext is attached if someone wants to test (compiled in Snow)
Attached File  AppleACPIBatteryManager.kext.zip ( 34.03K ) Number of downloads: 74

I tested in Lion DP3 same result as voodoo thank you for the work (tested on Asus G51Jx i7 Nvidia GTS 360M)
гык-sse2
post Jun 8 2011, 03:53 PM
Post #14
On my U90 the same kext as in Snow Leopard works in Lion DP1.Attached File  AppleACPIBatteryManager.kext.zip ( 20.14K ) Number of downloads: 118

76%, 1:11 remaining

This post has been edited by гык-sse2: Jun 8 2011, 03:54 PM
UEFI is a great way to get the best of the best in the world of imagination and creativity. ©Google Scribe
drew
post Jun 9 2011, 04:02 PM
Post #15
But this is only for arch i386?!

CODE
AppleACPIBatteryManager.kext/Contents/MacOS/AppleACPIBatteryManager: Mach-O object i386


Nobody have x64 version?
drew
post Jun 9 2011, 05:31 PM
Post #16
VoodooBattery x86/64 Lion build
Tested: Don't Works!!!!

QUOTE
Warings:
VoodooBattery/VoodooBattery.h
No previous prototype for 'UInt32 GetValueFromArray(OSArray*, UInt8)'
No previous prototype for 'OSSymbol* GetSymbolFromArray(OSArray*, UInt8)'
No previous prototype for 'UInt32 GetValueFromArray(OSArray*, UInt8)'
No previous prototype for 'OSSymbol* GetSymbolFromArray(OSArray*, UInt8)'

$kextlibs VoodooBattery.kext
For all architectures:
com.apple.iokit.IOACPIFamily = 1.4
com.apple.kpi.iokit = 11.0
com.apple.kpi.libkern = 11.0
com.apple.kpi.mach = 11.0

$file VoodooBattery.kext/Contents/MacOS/VoodooBattery
VoodooBattery: Mach-O universal binary with 2 architectures
VoodooBattery (for architecture x86_64): Mach-O 64-bit kext bundle x86_64
VoodooBattery (for architecture i386): Mach-O object i386



DOWNLOAD
Debug: Attached File  VoodooBattery_1.3.3_x86_x64_debug_20110609_miqlas.kext.zip ( 53.96K ) Number of downloads: 47

Release: Attached File  VoodooBattery_1.3.3_x86_x64_release_lion_20110609_miqlas.kext.zip ( 38.04K ) Number of downloads: 233
/ Link fixed
DOWNLOAD

Feel free to report back! smile.gif

Update: Tested!
I got:
QUOTE
Voodoo[0xFFFFFF7F81721359] probe: 55: Score: 0 Provider: IOResources
Voodoo[0xFFFFFF7F817201F0] probe: 331: Score: 0 Provider: BAT0
VoodooBattery 1.3 © 2008-10 Superhai, All Rights Reserved. Jun 9 2011 19:23:19 DEBUG 64 bit
Voodoo[0xFFFFFF7F81722952] start: 81: Provider: IOResources
Voodoo[0xFFFFFF7F81721DB8] start: 350: Battery N/A: Provider: BAT0
Voodoo[0xFFFFFF7F81720C9B] batteryReport: 201: Battery 1 (0xffffff800ed38200) called in: VoodooBatteryDevice
Voodoo[0xFFFFFF7F81722064] start: 376: BAT0: Received battery index 1
Voodoo[0xFFFFFF7F8172210B] start: 380: BAT0: We create and attach our powersource
Voodoo[0xFFFFFF7F81722224] start: 384: BAT0: Powersource initialized
Voodoo[0xFFFFFF7F817222E4] start: 386: BAT0: Powersource attached
Voodoo[0xFFFFFF7F817223A4] start: 388: BAT0: Powersource started


But: There is an x in the BatteryMeter icon, and it says there is "No Battery". Sometimes i got this in SL too (because i have crappy DSDT), please, test it, maybe you have more luck.

This post has been edited by drew: Jun 9 2011, 07:50 PM
sparkythewonders...
post Jun 10 2011, 03:25 PM
Post #17
QUOTE (drew @ Jun 9 2011, 11:31 AM) *
VoodooBattery x86/64 Lion build
Tested: Don't Works!!!!




DOWNLOAD
Debug: Attached File  VoodooBattery_1.3.3_x86_x64_debug_20110609_miqlas.kext.zip ( 53.96K ) Number of downloads: 47

Release: Attached File  VoodooBattery_1.3.3_x86_x64_release_lion_20110609_miqlas.kext.zip ( 38.04K ) Number of downloads: 233
/ Link fixed
DOWNLOAD

Feel free to report back! smile.gif

Update: Tested!
I got:


But: There is an x in the BatteryMeter icon, and it says there is "No Battery". Sometimes i got this in SL too (because i have crappy DSDT), please, test it, maybe you have more luck.

Tested in Dp4 same result icon with "X" saying " no battery available " But thank you for your work smile.gif
omg
post Jun 17 2011, 05:26 PM
Post #18
any news here?
drew
post Jun 18 2011, 12:35 PM
Post #19
AppleACPIBatteryManager (i386/x64 LION build)
NOT TESTED YET, PLEASE, REPORT BACK!
Binary: Attached File  AppleACPIBatteryManager_x86_x64_LION_20110618_miqlas.kext.zip ( 31.9K ) Number of downloads: 158

Sources: Attached File  AppleACPIBatteryManager_sources.zip ( 495.25K ) Number of downloads: 40



This post has been edited by drew: Jun 18 2011, 12:38 PM
med
post Jun 18 2011, 04:45 PM
Post #20
Don't work on my lappy, but thanks for your contribution.

2 Pages V   1 2 >
Add Reply Start a new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: