- Joined
- Oct 27, 2011
- Messages
- 9
- CPU
- Intel core i5 450m
- Graphics
- Intel GMA 5700m HD
- Mac
- Classic Mac
- Mobile Phone
Thanks for explanation, but if i unplug ac in sleep then i wake, it shows 0x0, but it's running on battery = discharning, so it shoud be 0x1. It looks that i need recheck after sleep like in _WAK or i don't know.
Problem solved...
The problem was that ACPS does not set value to ACPF after wake and ACAP copy value from ACPF. So correct value was only in ACPS after sleep, ACPF and ACAP have the value before sleep. Usualy it does QA0 (when system running), but after sleep this method need to be triggered. So i add \_SB.PCI0.SBRG.EC0._QA0 () to _WAK and now is QA0 is also triggered after sleep and everything works.
Your tool OS-X-ACPI-Debug is amazing, thanks for that.
Hi, Mr Rehabman.
I have met a error when I try to compile ACPI Tools .
It shows "error: unknown warning option '-Woverride-init' [-Werror,-Wunknown-warning-option]" .
Like this screenshot:
View attachment 104090
I want to ask you if it can be resolved ?
( ps. The MaciASL's tree view problem with the new iasl version perplex me. So, I want to compile a modified version. But I have met the problem above. )
(pps. I am using OS X 10.9 and Xcode Command Line Tool 5.1 )
cd ~/Documents
mkdir iasl.git
git clone https://github.com/RehabMan/acpica.git iasl.git
cd iasl.git
make
No problem building my version here: https://github.com/RehabMan/acpica
as in:
Code:cd ~/Documents mkdir iasl.git git clone https://github.com/RehabMan/acpica.git iasl.git cd iasl.git make
This is my version of iasl, modified to build with xcode compiler and a few other tweaks (such as getting rid of those annoying comments that trip the MaciASL parser up)...
Ok RehabMan : I am lost.
I am trying to patch / fix battery status on my Toshiba Laptop L655 series, Core i3-350M. Everything EXCEPT battery management works. Sleep/wake is just fine, graphics, bluetooth, audio Wifi.....
1. I cannot find ANY of the values you mention in the OP in my DSDT. NOT EVEN one.
2. I use the ACPIBatteryManager.kext in S/L/E.
3. I am using you repo of Laptop patches, and applied the Toshiba patch to try.
3. The battery icon shows, but it has an "X" on it.
4, I have a Device (BAT1 not (BAT0. I changed all BAT1 to BAT0.
4. In the kext debug mode I get this
9/13/14 9:38:34.000 PM kernel[0]: AppleSmartBattery:ollingTimeOut called
9/13/14 9:38:34.000 PM kernel[0]: AppleSmartBattery:ollBatteryState: path = 0x1
9/13/14 9:38:34.000 PM kernel[0]: AppleSmartBatteryManager::getBatterySTA called
9/13/14 9:38:34.000 PM kernel[0]: AppleSmartBattery::setBatterySTA: battery_status = 0xf
9/13/14 9:38:34.000 PM kernel[0]: AppleSmartBattery: !fBatteryPresent
9/13/14 9:38:34.000 PM kernel[0]: AppleSmartBattery::clearBatteryState: do_update = true
9/13/14 9:38:34.000 PM kernel[0]: AppleSmartBattery::rebuildLegacyIOBatteryInfo called
It looks like it is not detecting a battery present.
I tried the OSFix to make Windows 2006 emulation:
***** Method (_INI, 0, NotSerialized) // _INI: Initialize
{
Store (0x07D6, OSYS)****
No luck !!
I am attaching my DSDT and I hope you can help. Please !!
Thanks in advance.
Method (_STA, 0, NotSerialized)
{
If (BTIN)
{
Return (0x1F)
}
Else
{
Return (0x0F)
}
}
Method (_STA, 0, NotSerialized)
{
BSTA() // added to update BTIN status
If (BTIN)
{
Return (0x1F)
}
Else
{
Return (0x0F)
}
}
Method (_STA, 0, NotSerialized)
{
If (LEqual (^^PCI0.LPCB.EC0.MBTS, One))
{
Return (0x1F)
}
Else
{
Return (0x0F)
}
}
Method (_STA, 0, NotSerialized)
{
Return (0x1F)
}