按照教程做了电池补丁,-v出现Capacity Read Zero(0)
在论坛学习了电池补丁制作,可是在开-v看到ACPIBatteryManager:Error:Capacity Read Zero(0),并且一直在刷,开机后电量显示为0,也打了电池显示为0的那个补丁了,求大神帮忙解决,这里附上原dsdt和我自己做的电池补丁,请大神帮忙指出错误捞一下,32位字段调用的出现了在store(xxxx,xxxx)的右边,还有范围的,不知道该怎么解决 Spxg 发表于 2018-8-16 19:32 https://www.pcbeta.com/static/image/common/back.gif
捞一下,32位字段调用的出现了在store(xxxx,xxxx)的右边,还有范围的,不知道该怎么解决
# 32-bit registers
into device label EC code_regex MZ03,\s+32 replace_matched begin Z030,8,Z031,8,Z032,8,Z033,8 end;
# fix 32-bit read methods
into method label XXXX code_regex Store\s\(MZ03, replaceall_matched begin Store(B1B4(Z030,Z031,Z032,Z033), end;
# fix 32-bit write methods
into method label XXXX code_regex Store\s\(Arg1,\sMZ03\) replaceall_matched begin Store (ShiftRight(Arg1,24),Z033)\n Store (ShiftRight(Arg1,16),Z032)\n Store (ShiftRight(Arg1,8),Z031)\n Store (Arg1,Z030) end;
limurphy 发表于 2018-8-16 21:35 https://www.pcbeta.com/static/image/common/back.gif
# 32-bit registers
into device label EC code_regex MZ03,\s+32 replace_matched begin Z030,8,Z031,8 ...
这种的怎么搞,左边是16进制的
limurphy 发表于 2018-8-16 21:35 https://www.pcbeta.com/static/image/common/back.gif
# 32-bit registers
into device label EC code_regex MZ03,\s+32 replace_matched begin Z030,8,Z031,8 ...
我这里的相关代码是Store (BCLP, ^^LPCB.H_EC.BRRP)这种的,看到教程里面左边的都有什么Arg0,Arg1,可是我这里并没有相似的,我这个是32位字段调用的在右边,这种的解决方法是不是和您提供的一样? limurphy 发表于 2018-8-16 21:35 https://www.pcbeta.com/static/image/common/back.gif
# 32-bit registers
into device label EC code_regex MZ03,\s+32 replace_matched begin Z030,8,Z031,8 ...
大神您能帮我把电池搞好么,我搞了几天了,这几个也不会改,求大神帮忙做好补丁 Spxg 发表于 2018-8-17 14:05 https://www.pcbeta.com/static/image/common/back.gif
我这里的相关代码是Store (BCLP, ^^LPCB.H_EC.BRRP)这种的,看到教程里面左边的都有什么Arg0,Arg1,可是 ...
BRRP -> BRR0 , 8, BRR1 , 8 , BRR2 , 8 ,BRR3
把 BCLP 看成 Arg1;
Store (ShiftRight(BCLP,24),BRR3)
Store (ShiftRight(BCLP,16),BRR2)
Store (ShiftRight(BCLP,8),BRR1)
Store (BCLP,BRR0) 本帖最后由 Spxg 于 2018-8-17 19:32 编辑
limurphy 发表于 2018-8-17 18:20 https://www.pcbeta.com/static/image/common/back.gif
BRRP -> BRR0 , 8, BRR1 , 8 , BRR2 , 8 ,BRR3
把 BCLP 看成 Arg1;
那Store (0x05, BRRP)的这种要如何解决,按照一般方法打补丁上去0x05会变成Zero Spxg 发表于 2018-8-17 19:28 https://www.pcbeta.com/static/image/common/back.gif
那Store (0x05, BRRP)的这种要如何解决,按照一般方法打补丁上去0x05会变成Zero
方法一樣:把 0x05 看成 Arg1:
Store (ShiftRight(0x05,24),BRR3)
Store (ShiftRight(0x05,16),BRR2)
Store (ShiftRight(0x05,8),BRR1)
Store (0x05,BRR0) limurphy 发表于 2018-8-17 21:24
方法一樣:把 0x05 看成 Arg1:
Store (ShiftRight(0x05,24),BRR3)
我试过了,可是还是同样的问题,开机不能正确读取电池容量及参数,-v也还是刷acpibattery manager的错误,您能帮我做一个让我比对看看吗 Spxg 发表于 2018-8-18 09:24 https://www.pcbeta.com/static/image/common/back.gif
我试过了,可是还是同样的问题,开机不能正确读取电池容量及参数,-v也还是刷acpibattery manager的错误, ...
你有安裝 acpibatterymanager.kext ?
https://bitbucket.org/RehabMan/os-x-acpi-battery-driver/downloads/ limurphy 发表于 2018-8-18 09:39
你有安裝 acpibatterymanager.kext ?
https://bitbucket.org/RehabMan/os-x-acpi-battery-driver/downl ...
装了,我也不知道是不是我其他地方没写好,我这个冷门机子也找不到其他人做的Efi,现在也就差电池没搞好了
limurphy 发表于 2018-8-18 10:44 https://www.pcbeta.com/static/image/common/back.gif
还是不行,config添加abm_firstpolldelay=16000也不行,只是错误出现的时间不同,驱动我也换了链接上面最新的
楼主搞定没有,我也是这个问题
自己拆的补丁,电源已经驱动。但是显示依然为0。你的问题如何解决的? 后面怎么解决,一样问题
页:
[1]