RCOO Posted July 8, 2014 Share Posted July 8, 2014 Minha bateria funcionava sempre, na menu bar, colocando uma versão mais antiga do AppleACPIPlatform.kext e do AppleSmartBatteryManager.kext. Agora, se der rollback ao AppleACPIPlatform tenho um kernel panic. Como posso pôr a bteria a funcionar novamente? :s Quote Link to comment Share on other sites More sharing options...
pernacabeluda Posted July 8, 2014 Share Posted July 8, 2014 Fazendo os ajustes necessários na DSDT, para que a AppleSmartBatteryManager funcione com a AppleACPIPlatform atual http://www.insanelymac.com/forum/topic/272459-appleacpibatterymanagerapplesmartbatterymanager-for-lion/ Aqui tem o patch para diversos laptops https://github.com/RehabMan/Laptop-DSDT-Patch/tree/master/battery Quote Donation with Paypal | Mercado Livre | Premium and Donators Users | Installation GUIDE Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 Donation with PicPay @danielnmaldonado Donated? Send me PM with files or use DSDT Patch Requests Link to comment Share on other sites More sharing options...
RCOO Posted July 8, 2014 Author Share Posted July 8, 2014 Meu laptop não está na lista de patches =\ É um Toshiba P755-103. De forma manual não consigo encontrar uma parte do código que devo alterar. Tem como me ajudar? Quote Link to comment Share on other sites More sharing options...
pernacabeluda Posted July 8, 2014 Share Posted July 8, 2014 Tem um Toshiba na lista, tenta se basear nele, deve ser parecido. Resumidamente o que precisa fazer é localizar os registradores maiores que 8 bits que são lidos pelos métodos da bateria e substituir por 2 ou mais de 8 bits, por exemplo CECE, 16 trocar por ECE0, 8 ECE1, 8 e onde ele é acessado trocar por B1B2(ECE0,ECE1) O método B1B2 deve ser inserido na DSDT Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) } Quote Donation with Paypal | Mercado Livre | Premium and Donators Users | Installation GUIDE Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 Donation with PicPay @danielnmaldonado Donated? Send me PM with files or use DSDT Patch Requests Link to comment Share on other sites More sharing options...
RCOO Posted July 8, 2014 Author Share Posted July 8, 2014 No meu caso, por exemplo, o CECE só é declarado, nunca é usado. Mas o BRC0 é no seguinte código: Store (^^EC0.BRC0, Index (PBST, 0x02)) Devo substituir por Store (B1B2(^^EC0.RC00,^^EC0.RC01), Index (PBST, 0x02)) ? Faço isso apenas para os que têm mais que 16 bits? E se os registradores são usados do lado direito do store? Também converto em registradores de 8 bits? Quote Link to comment Share on other sites More sharing options...
RCOO Posted July 8, 2014 Author Share Posted July 8, 2014 Acabei de ver que no patch para o Toshiba tem lá que funciona com o # Toshiba Satellite P755-1004XT. Vou tentar aplicar o patch no meu dsdt. Depois de aplicar e compilar devo instalar mais algum kext? Quote Link to comment Share on other sites More sharing options...
pernacabeluda Posted July 8, 2014 Share Posted July 8, 2014 Isso mesmo, troca sempre que for usado, caso contrário nem vai compilar, pois o objeto original não existe mais. https://github.com/RehabMan/Laptop-DSDT-Patch/blob/master/battery/battery_Toshiba-A660-16Z.txt # works for:# Toshiba Satellite A660-16Z # Toshiba Satellite P755-1004XT É bem capaz de funcionar no seu, tenta aplicar com o MaciASL e vê se ele não rejeita os patches. Usa esta kext https://github.com/RehabMan/OS-X-ACPI-Battery-Driver Quote Donation with Paypal | Mercado Livre | Premium and Donators Users | Installation GUIDE Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 Donation with PicPay @danielnmaldonado Donated? Send me PM with files or use DSDT Patch Requests Link to comment Share on other sites More sharing options...
RCOO Posted July 8, 2014 Author Share Posted July 8, 2014 Só deu warnings. Sem erros. Vou tentar aplicar o kext e dar reboot. Quote Link to comment Share on other sites More sharing options...
RCOO Posted July 8, 2014 Author Share Posted July 8, 2014 Funcionou perfeitamente Obrigado! Quote Link to comment Share on other sites More sharing options...