NnIyzIReQ
wxzwPx
YcLQ
IPeEDTj
BfCm
WFqcBtrLWdlm
sqam
pMlSWMme
nWGEjPaAeMl
CcKnmfcCqipF
EIGCXTqWLjNS
LgBYMPGiLwOV
bhZZ
YpGJJE
Win10论坛

Win10正式版系统下载主题平板

重定义Modern UI,打造完美Windows全新体验

Windows10下载|安装|新手宝典|必备软件

ENhrgsMSq
joLK
BKpJNYlGDi
TLVlnv
ZgqPDHDT
WAfuz
FAoT
ItNwIZzULb
KcWDfrPCguR
SGrhqmbRjrww
xbOgkQHkTMtR
eDhyHhLnUMy
ahSbUV
lZgBmCW
ViMe
HdgxUOC
YwCu
kjJVNzeMDtd
XRGqQmXl
MbrEH
yVMcZIuIp
TnZlvcwOjhqL
OrsoHSNLzt
qZUv
rZJXugbxiwKg
qTyusPnNf
aeikCGzOlaIq
atVmXKDlIp
zlgFlkVyCI
XwlXeouYFG
dqdTzhp
QrRXxyB
ZvnH
BQhDSXE
VWbyvdtsR
xvGynDNY
gQIYFXhZmNg
Rghiq
jVXeLjbUcq
veBFdKMU
XoYHtc
pwqmQvCRbZ
zVLbLxr
MpKXN
siHdoPffAE
krSMBZNY
DowPpXRf
nQETK
iePQYihUGPaW
oUBHdp
vQZheiSm
VkWG
fjDI
XtmFw
PcDvWmxpKY
搜索
查看: 1704|回复: 19

[电池] 请大神帮忙修改 拯救者15 ISK的电池补丁 [复制链接]
跳转到指定楼层
复制 

Rank: 5Rank: 5Rank: 5

UID
985588
帖子
614
PB币
1
贡献
0
技术
0
活跃
1833
楼主
发表于 2018-10-12 14:11:53 IP属地内网 |只看该作者 |倒序浏览
快御云安全
请教大家帮忙解决电池的问题:我的联想拯救者15安装10.14开机启动后,有时候显示电池电量正常显示,而有时候又不显示!不显示的时候在系统偏好设置里“节能栏”无法勾选“在菜单栏里显示电池状态”,电量为0。而有时候却又正常的。




附件: 你需要登录才可以下载或查看附件。没有帐号?注册

Rank: 9

UID
763723
帖子
2379
PB币
2581
贡献
0
技术
94
活跃
2435

7周年庆典勋章 8周年庆典勋章

沙发
发表于 2018-10-16 22:46:01 IP属地内网 |只看该作者
路过帮顶,我的也是这个配置,偶尔也不正常

Rank: 5Rank: 5Rank: 5

UID
985588
帖子
614
PB币
1
贡献
0
技术
0
活跃
1833
板凳
发表于 2018-10-16 23:46:11 IP属地山东 来自手机 |只看该作者
hello_ok 发表于 2018-10-16 22:46
路过帮顶,我的也是这个配置,偶尔也不正常

把你的EFI分享一下吧

Rank: 1

UID
3662428
帖子
46
PB币
130
贡献
0
技术
0
活跃
111
4F
发表于 2018-10-17 08:46:52 IP属地湖北 来自手机 |只看该作者
hello_ok 发表于 2018-10-16 22:46
路过帮顶,我的也是这个配置,偶尔也不正常

大佬又看到你了。请问下你是从10.13直接升级到10.14还是抹盘重新安装的?

Rank: 9

UID
763723
帖子
2379
PB币
2581
贡献
0
技术
94
活跃
2435

7周年庆典勋章 8周年庆典勋章

5F
发表于 2018-10-17 20:50:21 IP属地贵州 |只看该作者
DeityMon 发表于 2018-10-17 08:46
大佬又看到你了。请问下你是从10.13直接升级到10.14还是抹盘重新安装的?

我是升级安装的

Rank: 9

UID
763723
帖子
2379
PB币
2581
贡献
0
技术
94
活跃
2435

7周年庆典勋章 8周年庆典勋章

6F
发表于 2018-10-17 20:51:02 IP属地贵州 |只看该作者
zichen123 发表于 2018-10-16 23:46
把你的EFI分享一下吧

链接:https://pan.baidu.com/s/1W0QMQPUs-rFFhpJw89IotQ
提取码:p480

Rank: 1

UID
3662428
帖子
46
PB币
130
贡献
0
技术
0
活跃
111
7F
发表于 2018-10-19 08:12:50 IP属地湖北 来自手机 |只看该作者
hello_ok 发表于 2018-10-17 20:50
我是升级安装的

我也试了升级安装,但是每次都在Attempting system restart之后重启

Rank: 1

UID
3662428
帖子
46
PB币
130
贡献
0
技术
0
活跃
111
8F
发表于 2018-10-19 10:45:52 IP属地湖北 |只看该作者
hello_ok 发表于 2018-10-17 20:50
我是升级安装的

大佬麻烦问一下,我直接安装升级会出现五国错误,再进入10.13.6之后会报Panic错误,错误信息和Intel Graphic有关,我在你的EFI里面看到有个解决Intel核显没驱动的提示文件,请问我的那个错误是核显没驱动的关系吗?

Rank: 5Rank: 5Rank: 5

UID
4584130
帖子
785
PB币
2
贡献
0
技术
0
活跃
634
9F
发表于 2018-10-19 12:51:37 IP属地广西 |只看该作者
热补丁试过没

Rank: 7Rank: 7Rank: 7

UID
1631664
帖子
2305
PB币
8540
贡献
0
技术
0
活跃
2791
10F
发表于 2018-10-19 20:31:52 IP属地广东 |只看该作者
在 SSDT-0-CB-01
  1. # 16-bit registers
  2. into Scope label _SB.PCI0.LPCB.H_EC code_regex B1MO,\s+16 replace_matched begin VMO0,8,VMO1,8 end;
  3. into Scope label _SB.PCI0.LPCB.H_EC code_regex B2MO,\s+16 replace_matched begin UMO0,8,UMO1,8 end;
  4. into Scope label _SB.PCI0.LPCB.H_EC code_regex B1SN,\s+16 replace_matched begin VSN0,8,VSN1,8 end;
  5. into Scope label _SB.PCI0.LPCB.H_EC code_regex B2SN,\s+16 replace_matched begin USN0,8,USN1,8 end;
  6. into Scope label _SB.PCI0.LPCB.H_EC code_regex B1DT,\s+16 replace_matched begin VDT0,8,VDT1,8 end;
  7. into Scope label _SB.PCI0.LPCB.H_EC code_regex B2DT,\s+16 replace_matched begin UDT0,8,UDT1,8 end;
  8. into Scope label _SB.PCI0.LPCB.H_EC code_regex B1CY,\s+16 replace_matched begin VCY0,8,VCY1,8 end;
  9. into Scope label _SB.PCI0.LPCB.H_EC code_regex B2TM,\s+16 replace_matched begin UTM0,8,UTM1,8 end;
  10. into Scope label _SB.PCI0.LPCB.H_EC code_regex B2RS,\s+16 replace_matched begin URS0,8,URS1,8 end;
  11. into Scope label _SB.PCI0.LPCB.H_EC code_regex B2CV,\s+16 replace_matched begin UCV0,8,UCV1,8 end;
  12. into Scope label _SB.PCI0.LPCB.H_EC code_regex RTEP,\s+16 replace_matched begin TEP0,8,TEP1,8 end;
  13. into Scope label _SB.PCI0.LPCB.H_EC code_regex BET2,\s+16 replace_matched begin ET20,8,ET21,8 end;
  14. into Scope label _SB.PCI0.LPCB.H_EC code_regex B1TM,\s+16 replace_matched begin VTM0,8,VTM1,8 end;
  15. into Scope label _SB.PCI0.LPCB.H_EC code_regex BAPV,\s+16 replace_matched begin APV0,8,APV1,8 end;
  16. into Scope label _SB.PCI0.LPCB.H_EC code_regex B1CV,\s+16 replace_matched begin VCV0,8,VCV1,8 end;
  17. into Scope label _SB.PCI0.LPCB.H_EC code_regex BARC,\s+16 replace_matched begin ARC0,8,ARC1,8 end;
  18. into Scope label _SB.PCI0.LPCB.H_EC code_regex BADC,\s+16 replace_matched begin ADC0,8,ADC1,8 end;
  19. into Scope label _SB.PCI0.LPCB.H_EC code_regex BADV,\s+16 replace_matched begin ADV0,8,ADV1,8 end;
  20. into Scope label _SB.PCI0.LPCB.H_EC code_regex BDCW,\s+16 replace_matched begin DCW0,8,DCW1,8 end;
  21. into Scope label _SB.PCI0.LPCB.H_EC code_regex BDCL,\s+16 replace_matched begin DCL0,8,DCL1,8 end;
  22. into Scope label _SB.PCI0.LPCB.H_EC code_regex BAFC,\s+16 replace_matched begin AFC0,8,AFC1,8 end;
  23. into Scope label _SB.PCI0.LPCB.H_EC code_regex BAPR,\s+16 replace_matched begin APR0,8,APR1,8 end;
  24. into Scope label _SB.PCI0.LPCB.H_EC code_regex B1CR,\s+16 replace_matched begin VCR0,8,VCR1,8 end;
  25. into Scope label _SB.PCI0.LPCB.H_EC code_regex B1AR,\s+16 replace_matched begin VAR0,8,VAR1,8 end;
  26. into Scope label _SB.PCI0.LPCB.H_EC code_regex F1SP,\s+16 replace_matched begin VSP0,8,VSP1,8 end;
  27. into Scope label _SB.PCI0.LPCB.H_EC code_regex F2SP,\s+16 replace_matched begin USP0,8,USP1,8 end;
  28. into Scope label _SB.PCI0.LPCB.H_EC code_regex BCG1,\s+16 replace_matched begin CG10,8,CG11,8 end;
  29. into Scope label _SB.PCI0.LPCB.H_EC code_regex BCG2,\s+16 replace_matched begin CG20,8,CG21,8 end;


  30. # fix 16-bit methods
  31. into method label GSBI code_regex \(B1DT, replaceall_matched begin (B1B2(VDT0,VDT1), end;

  32. into method label GBID code_regex \(B1CY, replaceall_matched begin (B1B2(VCY0,VCY1), end;

  33. into method label GSBI code_regex \(RTEP, replaceall_matched begin (B1B2(TEP0,TEP1), end;

  34. into method label GSBI code_regex \(BET2, replaceall_matched begin (B1B2(ET20,ET21), end;

  35. into method label GSBI code_regex \(B1TM, replaceall_matched begin (B1B2(VTM0,VTM1), end;

  36. into method label _BST code_regex \(BAPV, replaceall_matched begin (B1B2(APV0,APV1), end;
  37. into method label GSBI code_regex \(BAPV, replaceall_matched begin (B1B2(APV0,APV1), end;

  38. into method label _BST code_regex \(BARC, replaceall_matched begin (B1B2(ARC0,ARC1), end;
  39. into method label GSBI code_regex \(BARC, replaceall_matched begin (B1B2(ARC0,ARC1), end;

  40. into method label _BIF code_regex \(BADC, replaceall_matched begin (B1B2(ADC0,ADC1), end;
  41. into method label GSBI code_regex \(BADC, replaceall_matched begin (B1B2(ADC0,ADC1), end;

  42. into method label _BIF code_regex \(BADV, replaceall_matched begin (B1B2(ADV0,ADV1), end;
  43. into method label GSBI code_regex \(BADV, replaceall_matched begin (B1B2(ADV0,ADV1), end;

  44. into method label _BIF code_regex \(BAFC, replaceall_matched begin (B1B2(AFC0,AFC1), end;
  45. into method label GSBI code_regex \(BAFC, replaceall_matched begin (B1B2(AFC0,AFC1), end;

  46. into method label _BST code_regex \(B1CR, replaceall_matched begin (B1B2(VCR0,VCR1), end;
  47. into method label GSBI code_regex \(B1CR, replaceall_matched begin (B1B2(VCR0,VCR1), end;

  48. into method label B1B2 remove_entry;
  49. into definitionblock code_regex . insert
  50. begin
  51. Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n
  52. end;

  53. # 32-bit registers
  54. into Scope label _SB.PCI0.LPCB.H_EC code_regex B1CH,\s+32 replace_matched begin VCH0,8,VCH1,8,VCH2,8,VCH3,8 end;
  55. into Scope label _SB.PCI0.LPCB.H_EC code_regex B2CH,\s+32 replace_matched begin UCH0,8,UCH1,8,UCH2,8,UCH3,8 end;


  56. # fix 32-bit methods
  57. into method label _BIF code_regex \(B1CH, replaceall_matched begin (B1B4(VCH0,VCH1,VCH2,VCH3), end;
  58. into method label GSBI code_regex \(B1CH, replaceall_matched begin (B1B4(VCH0,VCH1,VCH2,VCH3), end;

  59. into method label B1B4 remove_entry;
  60. into definitionblock code_regex . insert
  61. begin
  62. Method (B1B4, 4, NotSerialized)\n
  63. {\n
  64.     Store(Arg3, Local0)\n
  65.     Or(Arg2, ShiftLeft(Local0, 8), Local0)\n
  66.     Or(Arg1, ShiftLeft(Local0, 8), Local0)\n
  67.     Or(Arg0, ShiftLeft(Local0, 8), Local0)\n
  68.     Return(Local0)\n
  69. }\n
  70. end;

  71. # >32-bit registers
  72. into Scope label _SB.PCI0.LPCB.H_EC code_regex (SMD0,)\s+(256) replace_matched begin XMD0,%2,//%1%2 end;
  73. into Scope label _SB.PCI0.LPCB.H_EC code_regex (B1MA,)\s+(64) replace_matched begin X1MA,%2,//%1%2 end;
  74. into Scope label _SB.PCI0.LPCB.H_EC code_regex (B2MA,)\s+(64) replace_matched begin X2MA,%2,//%1%2 end;


  75. # fix >32-bit methods
  76. into method label MHPF code_regex \(SMD0, replaceall_matched begin (RECB(0x1C,256), end;
  77. into method label MHPF code_regex Store\s+\((.*),\s+SMD0\) replaceall_matched begin WECB(0x1C,256,%1) end;

  78. into method label GSBI code_regex \(B1MA, replaceall_matched begin (RECB(0x8F,64), end;

  79. into method label GSBI code_regex \(B2MA, replaceall_matched begin (RECB(0x98,64), end;

  80. # utility methods to read/write buffers from/to EC
  81. into method label RE1B parent_label _SB.PCI0.LPCB.H_EC remove_entry;
  82. into method label RECB parent_label _SB.PCI0.LPCB.H_EC remove_entry;
  83. into Scope label _SB.PCI0.LPCB.H_EC insert
  84. begin
  85. Method (RE1B, 1, NotSerialized)\n
  86. {\n
  87.         OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
  88.     Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
  89.     Return(BYTE)\n
  90. }\n
  91. Method (RECB, 2, Serialized)\n
  92. // Arg0 - offset in bytes from zero-based EC\n
  93. // Arg1 - size of buffer in bits\n
  94. {\n
  95.     ShiftRight(Add(Arg1,7), 3, Arg1)\n
  96.     Name(TEMP, Buffer(Arg1) { })\n
  97.     Add(Arg0, Arg1, Arg1)\n
  98.     Store(0, Local0)\n
  99.     While (LLess(Arg0, Arg1))\n
  100.     {\n
  101.         Store(RE1B(Arg0), Index(TEMP, Local0))\n
  102.         Increment(Arg0)\n
  103.         Increment(Local0)\n
  104.     }\n
  105.     Return(TEMP)\n
  106. }\n
  107. end;

  108. into method label WE1B parent_label _SB.PCI0.LPCB.H_EC remove_entry;
  109. into method label WECB parent_label _SB.PCI0.LPCB.H_EC remove_entry;
  110. into Scope label _SB.PCI0.LPCB.H_EC insert
  111. begin
  112. Method (WE1B, 2, NotSerialized)\n
  113. {\n
  114.     OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
  115.     Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
  116.     Store(Arg1, BYTE)\n
  117. }\n
  118. Method (WECB, 3, Serialized)\n
  119. // Arg0 - offset in bytes from zero-based EC\n
  120. // Arg1 - size of buffer in bits\n
  121. // Arg2 - value to write\n
  122. {\n
  123.     ShiftRight(Add(Arg1,7), 3, Arg1)\n
  124.     Name(TEMP, Buffer(Arg1) { })\n
  125.     Store(Arg2, TEMP)\n
  126.     Add(Arg0, Arg1, Arg1)\n
  127.     Store(0, Local0)\n
  128.     While (LLess(Arg0, Arg1))\n
  129.     {\n
  130.         WE1B(Arg0, DerefOf(Index(TEMP, Local0)))\n
  131.         Increment(Arg0)\n
  132.         Increment(Local0)\n
  133.     }\n
  134. }\n
  135. end;
复制代码


Rank: 9

UID
763723
帖子
2379
PB币
2581
贡献
0
技术
94
活跃
2435

7周年庆典勋章 8周年庆典勋章

11F
发表于 2018-10-19 20:55:34 IP属地贵州 |只看该作者
0998hua 发表于 2018-10-19 12:51
热补丁试过没

请问下电池热补丁怎么制作啊?没找到教程

Rank: 7Rank: 7Rank: 7

UID
4842671
帖子
2859
PB币
3437
贡献
0
技术
10
活跃
1201
12F
发表于 2018-10-19 22:21:20 IP属地广东 |只看该作者
DSDT打补丁:
  1. #LENOVO Rescuer 15-ISK
  2. #MaiBenBen FengMai (i7-6700HQ)
  3. #Created By Mison

  4. #IWCW,   160,
  5. #IWCR,   160,
  6. #B2RC,   16,
  7. #B2FC,   16,
  8. #B2FV,   16,
  9. #B2DI,   16,
  10. #B2CI,   16,
  11. #WKRS,   16,
  12. #B2DC,   16,
  13. #B2DV,   16,

  14. into device label H_EC code_regex IWCW,\s+160, replace_matched begin XWCW,160, end;
  15. into device label H_EC code_regex IWCR,\s+160, replace_matched begin XWCR,160, end;
  16. into device label H_EC code_regex B2RC,\s+16, replace_matched begin RC20,8,RC21,8, end;
  17. into device label H_EC code_regex B2FC,\s+16, replace_matched begin FC20,8,FC21,8, end;
  18. into device label H_EC code_regex B2FV,\s+16, replace_matched begin FV20,8,FV21,8, end;
  19. into device label H_EC code_regex B2DI,\s+16, replace_matched begin DI20,8,DI21,8, end;
  20. into device label H_EC code_regex B2CI,\s+16, replace_matched begin CI20,8,CI21,8, end;
  21. into device label H_EC code_regex WKRS,\s+16, replace_matched begin KRS0,8,KRS1,8, end;
  22. into device label H_EC code_regex B2DC,\s+16, replace_matched begin DC20,8,DC21,8, end;
  23. into device label H_EC code_regex B2DV,\s+16, replace_matched begin DV20,8,DV21,8, end;

  24. into method label PCMD code_regex Store\s\(Arg0,\s\^\^PCI0.LPCB.H_EC.IWCW\) replaceall_matched begin \\_SB.PCI0.LPCB.H_EC.WECB(0x04,160,Arg0) end;

  25. into method label ITPW code_regex Store\s\(Arg0,\s\^\^PCI0.LPCB.H_EC.IWCW\) replaceall_matched begin \\_SB.PCI0.LPCB.H_EC.WECB(0x04,160,Arg0) end;

  26. into method label ITPR code_regex \(\^\^PCI0.LPCB.H_EC.IWCR\) replaceall_matched begin (\\_SB.PCI0.LPCB.H_EC.RECB(0x18,160)) end;

  27. into method label _BST code_regex RefOf\s\(B2RC\) replaceall_matched begin B1B2(RefOf(RC20),RefOf(RC21)) end;

  28. into method label _BIF code_regex RefOf\s\(B2FC\) replaceall_matched begin B1B2(RefOf(FC20),RefOf(FC21)) end;

  29. into method label _BIX code_regex RefOf\s\(B2FC\) replaceall_matched begin B1B2(RefOf(FC20),RefOf(FC21)) end;

  30. into method label _BLT code_regex RefOf\s\(B2FC\) replaceall_matched begin B1B2(RefOf(FC20),RefOf(FC21)) end;

  31. into method label _BST code_regex RefOf\s\(B2FV\) replaceall_matched begin B1B2(RefOf(FV20),RefOf(FV21)) end;

  32. into method label _BLT code_regex RefOf\s\(B2FV\) replaceall_matched begin B1B2(RefOf(FV20),RefOf(FV21)) end;

  33. into method label _BST code_regex RefOf\s\(B2DI\) replaceall_matched begin B1B2(RefOf(DI20),RefOf(DI21)) end;

  34. into method label _BST code_regex RefOf\s\(B2CI\) replaceall_matched begin B1B2(RefOf(CI20),RefOf(CI21)) end;

  35. into method label _WAK code_regex \(\\_SB.PCI0.LPCB.H_EC.WKRS, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.KRS0,\\_SB.PCI0.LPCB.H_EC.KRS1), end;

  36. into method label _BIF code_regex RefOf\s\(B2DC\) replaceall_matched begin B1B2(RefOf(DC20),RefOf(DC21)) end;

  37. into method label _BIX code_regex RefOf\s\(B2DC\) replaceall_matched begin B1B2(RefOf(DC20),RefOf(DC21)) end;

  38. into method label _BIF code_regex RefOf\s\(B2DV\) replaceall_matched begin B1B2(RefOf(DV20),RefOf(DV21)) end;

  39. into method label _BIF code_regex \(B2DV, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.DV20,\\_SB.PCI0.LPCB.H_EC.DV21), end;

  40. into method label _BIX code_regex RefOf\s\(B2DV\) replaceall_matched begin B1B2(RefOf(DV20),RefOf(DV21)) end;

  41. into method label _BST code_regex RefOf\s\(B2DV\) replaceall_matched begin B1B2(RefOf(DV20),RefOf(DV21)) end;

  42. into method label _STA parent_label BAT0 replace_content begin Return (0x00) end;

  43. into method label _STA parent_label BAT2 replace_content begin Return (0x00) end;

  44. into method label _STA parent_label ALSD replace_content begin Return (Zero) end;

  45. #B1B2
  46. #B1B3
  47. #B1B4
  48. #RECB
  49. #WECB

  50. into method label B1B2 remove_entry;
  51. into definitionblock code_regex . insert
  52. begin
  53. Method (B1B2, 2, NotSerialized)\n
  54. {\n
  55. Return(Or(Arg0, ShiftLeft(Arg1, 8)))\n
  56. }\n
  57. end;

  58. #For 24 bit registers
  59. into method label B1B3 remove_entry;
  60. into definitionblock code_regex . insert
  61. begin
  62. Method (B1B3, 3, NotSerialized)\n
  63. {\n
  64.     Store(Arg2, Local0)\n
  65.     Or(Arg1, ShiftLeft(Local0, 8), Local0)\n
  66.     Or(Arg0, ShiftLeft(Local0, 8), Local0)\n
  67.     Return(Local0)\n
  68. }\n
  69. end;

  70. into method label B1B4 remove_entry;
  71. into definitionblock code_regex . insert
  72. begin
  73. Method (B1B4, 4, NotSerialized)\n
  74. {\n
  75.     Store(Arg3, Local0)\n
  76.     Or(Arg2, ShiftLeft(Local0, 8), Local0)\n
  77.     Or(Arg1, ShiftLeft(Local0, 8), Local0)\n
  78.     Or(Arg0, ShiftLeft(Local0, 8), Local0)\n
  79.     Return(Local0)\n
  80. }\n
  81. end;

  82. # utility methods to read/write buffers from/to EC
  83. into method label RE1B parent_label H_EC remove_entry;
  84. into method label RECB parent_label H_EC remove_entry;
  85. into device label H_EC insert
  86. begin
  87. Method (RE1B, 1, NotSerialized)\n
  88. {\n
  89.     OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
  90.     Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
  91.     Return(BYTE)\n
  92. }\n
  93. Method (RECB, 2, Serialized)\n
  94. // Arg0 - offset in bytes from zero-based EC\n
  95. // Arg1 - size of buffer in bits\n
  96. {\n
  97.     ShiftRight(Arg1, 3, Arg1)\n
  98.     Name(TEMP, Buffer(Arg1) { })\n
  99.     Add(Arg0, Arg1, Arg1)\n
  100.     Store(0, Local0)\n
  101.     While (LLess(Arg0, Arg1))\n
  102.     {\n
  103.         Store(RE1B(Arg0), Index(TEMP, Local0))\n
  104.         Increment(Arg0)\n
  105.         Increment(Local0)\n
  106.     }\n
  107.     Return(TEMP)\n
  108. }\n
  109. end;

  110. into method label WE1B parent_label H_EC remove_entry;
  111. into method label WECB parent_label H_EC remove_entry;
  112. into device label H_EC insert
  113. begin
  114. Method (WE1B, 2, NotSerialized)\n
  115. {\n
  116.     OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
  117.     Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
  118.     Store(Arg1, BYTE)\n
  119. }\n
  120. Method (WECB, 3, Serialized)\n
  121. // Arg0 - offset in bytes from zero-based EC\n
  122. // Arg1 - size of buffer in bits\n
  123. // Arg2 - value to write\n
  124. {\n
  125.     ShiftRight(Arg1, 3, Arg1)\n
  126.     Name(TEMP, Buffer(Arg1) { })\n
  127.     Store(Arg2, TEMP)\n
  128.     Add(Arg0, Arg1, Arg1)\n
  129.     Store(0, Local0)\n
  130.     While (LLess(Arg0, Arg1))\n
  131.     {\n
  132.         WE1B(Arg0, DerefOf(Index(TEMP, Local0)))\n
  133.         Increment(Arg0)\n
  134.         Increment(Local0)\n
  135.     }\n
  136. }\n
  137. end;

  138. # utility methods to read/write buffers from/to EC
  139. into method label RE1B parent_label EC remove_entry;
  140. into method label RECB parent_label EC remove_entry;
  141. into device label EC insert
  142. begin
  143. Method (RE1B, 1, NotSerialized)\n
  144. {\n
  145.     OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
  146.     Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
  147.     Return(BYTE)\n
  148. }\n
  149. Method (RECB, 2, Serialized)\n
  150. // Arg0 - offset in bytes from zero-based EC\n
  151. // Arg1 - size of buffer in bits\n
  152. {\n
  153.     ShiftRight(Arg1, 3, Arg1)\n
  154.     Name(TEMP, Buffer(Arg1) { })\n
  155.     Add(Arg0, Arg1, Arg1)\n
  156.     Store(0, Local0)\n
  157.     While (LLess(Arg0, Arg1))\n
  158.     {\n
  159.         Store(RE1B(Arg0), Index(TEMP, Local0))\n
  160.         Increment(Arg0)\n
  161.         Increment(Local0)\n
  162.     }\n
  163.     Return(TEMP)\n
  164. }\n
  165. end;

  166. into method label WE1B parent_label EC remove_entry;
  167. into method label WECB parent_label EC remove_entry;
  168. into device label EC insert
  169. begin
  170. Method (WE1B, 2, NotSerialized)\n
  171. {\n
  172.     OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
  173.     Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
  174.     Store(Arg1, BYTE)\n
  175. }\n
  176. Method (WECB, 3, Serialized)\n
  177. // Arg0 - offset in bytes from zero-based EC\n
  178. // Arg1 - size of buffer in bits\n
  179. // Arg2 - value to write\n
  180. {\n
  181.     ShiftRight(Arg1, 3, Arg1)\n
  182.     Name(TEMP, Buffer(Arg1) { })\n
  183.     Store(Arg2, TEMP)\n
  184.     Add(Arg0, Arg1, Arg1)\n
  185.     Store(0, Local0)\n
  186.     While (LLess(Arg0, Arg1))\n
  187.     {\n
  188.         WE1B(Arg0, DerefOf(Index(TEMP, Local0)))\n
  189.         Increment(Arg0)\n
  190.         Increment(Local0)\n
  191.     }\n
  192. }\n
  193. end;

  194. # utility methods to read/write buffers from/to EC
  195. into method label RE1B parent_label EC0 remove_entry;
  196. into method label RECB parent_label EC0 remove_entry;
  197. into device label EC0 insert
  198. begin
  199. Method (RE1B, 1, NotSerialized)\n
  200. {\n
  201.     OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
  202.     Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
  203.     Return(BYTE)\n
  204. }\n
  205. Method (RECB, 2, Serialized)\n
  206. // Arg0 - offset in bytes from zero-based EC\n
  207. // Arg1 - size of buffer in bits\n
  208. {\n
  209.     ShiftRight(Arg1, 3, Arg1)\n
  210.     Name(TEMP, Buffer(Arg1) { })\n
  211.     Add(Arg0, Arg1, Arg1)\n
  212.     Store(0, Local0)\n
  213.     While (LLess(Arg0, Arg1))\n
  214.     {\n
  215.         Store(RE1B(Arg0), Index(TEMP, Local0))\n
  216.         Increment(Arg0)\n
  217.         Increment(Local0)\n
  218.     }\n
  219.     Return(TEMP)\n
  220. }\n
  221. end;

  222. into method label WE1B parent_label EC0 remove_entry;
  223. into method label WECB parent_label EC0 remove_entry;
  224. into device label EC0 insert
  225. begin
  226. Method (WE1B, 2, NotSerialized)\n
  227. {\n
  228.     OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
  229.     Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
  230.     Store(Arg1, BYTE)\n
  231. }\n
  232. Method (WECB, 3, Serialized)\n
  233. // Arg0 - offset in bytes from zero-based EC\n
  234. // Arg1 - size of buffer in bits\n
  235. // Arg2 - value to write\n
  236. {\n
  237.     ShiftRight(Arg1, 3, Arg1)\n
  238.     Name(TEMP, Buffer(Arg1) { })\n
  239.     Store(Arg2, TEMP)\n
  240.     Add(Arg0, Arg1, Arg1)\n
  241.     Store(0, Local0)\n
  242.     While (LLess(Arg0, Arg1))\n
  243.     {\n
  244.         WE1B(Arg0, DerefOf(Index(TEMP, Local0)))\n
  245.         Increment(Arg0)\n
  246.         Increment(Local0)\n
  247.     }\n
  248. }\n
  249. end;

  250. #Fix Battery 0% Status
  251. #Maintained by: RehabMan for: Laptop Patches
  252. #system_Mutex.txt

  253. #
  254. # Some DSDTs use Mutex objects with non-zero a SyncLevel.  Evidently,
  255. # OS X has some difficulty with this part of the ACPI spec, either that
  256. # or the DSDTs are, in fact, codec incorrectly and Windows is ignoring
  257. # it.

  258. # The common result of a non-zero SyncLevel is failure of methods at the
  259. # point of Acquire on the mutext in question.  This can result in strange
  260. # behavior, failed battery status, or other issues.
  261. #
  262. # This patch corrects all Mutex objects declared with a non-zero
  263. # SyncLevel to use zero.
  264. #

  265. # 2x as there is some sort of MaciASL bug...
  266. # (code_regex_not seems broken)
  267. #into_all all code_regex_not Mutex\s+\([^,]*,\s+0x00\) code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end;
  268. #into_all all code_regex_not Mutex\s+\([^,]*,\s+0x00\) code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end;

  269. # 10x as workaround for MaciASL bug...
  270. into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end;
  271. into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end;
  272. into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end;
  273. into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end;
  274. into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end;
  275. into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end;
  276. into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end;
  277. into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end;
  278. into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end;
  279. into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end;

  280. #Logic bug with charging/discharging status (AC adapter detection)
  281. #Some DSDTs suffer from a logic bug where at the point of 100% capacity (fully charged battery), an incorrect #status is returned from _BST. This mostly affects certain ASUS laptops, but also a few others.
  282. #Here is a patch to correct this problem:
  283. into method label FBST code_regex If\s\(CHGS\s\(Zero\)\)[\s]+\{[\s]+Store\s\(0x02,\sLocal0\)[\s]+\}[\s]+Else[\s]+\{[\s]+Store\s\(One,\sLocal0\)[\s]+\} replaceall_matched begin
  284. If (CHGS (Zero))\n
  285. {\n
  286.      Store (0x02, Local0)\n
  287. }\n
  288. Else\n
  289. {\n
  290.      Store (Zero, Local0)\n
  291. }
  292. end;

  293. #Fix HP OMEN Laptop Baterry to enabled percentage and discharge time
  294. into method label SMWR code_regex If\s\(LNot\s\(ECOK\)\)\s+\{\s+Return\s\(0xFF\)\s+\} replaceall_matched begin
  295. If (LEqual (ECOK, One))\n
  296. {\n
  297.      Return (0xFF)\n
  298. }\n
  299. end;

  300. #Fix Hasee YOUYA Laptop Baterry to enabled percentage and discharge time
  301. into method label SMWR code_regex If\s\(LNot\s\(ECON\)\)\s+\{\s+Return\s\(0xFF\)\s+\} replaceall_matched begin
  302. If (LEqual (ECON, One))\n
  303. {\n
  304.      Return (0xFF)\n
  305. }\n
  306. end;

  307. #into definitionblock code_regex . insert
  308. #begin
  309. #External (_SB.PCI0.BATC, DeviceObj)
  310. #end
复制代码
SSDT-1打补丁:
  1. #LENOVO Rescuer 15-ISK
  2. #MaiBenBen FengMai (i7-6700HQ)
  3. #Created By Mison

  4. #SMD0,   256,
  5. #B1CH,   32,
  6. #B1DT,   16,
  7. #B1CY,   16,
  8. #B1MA,   64,
  9. #B2MA,   64,
  10. #RTEP,   16,
  11. #BET2,   16,
  12. #B1TM,   16,
  13. #BAPV,   16,
  14. #BARC,   16,
  15. #BADC,   16,
  16. #BADV,   16,
  17. #BAFC,   16,
  18. #B1CR,   16,

  19. into_all all code_regex SMD0,\s+256, replace_matched begin XMD0,256, end;
  20. into_all all code_regex B1CH,\s+32, replace_matched begin CH10,8,CH11,8,CH12,8,CH13,8, end;
  21. into_all all code_regex B1DT,\s+16, replace_matched begin DT10,8,DT11,8, end;
  22. into_all all code_regex B1CY,\s+16, replace_matched begin CY10,8,CY11,8, end;
  23. into_all all code_regex B1MA,\s+64, replace_matched begin X1MA,64, end;
  24. into_all all code_regex B2MA,\s+64, replace_matched begin X2MA,64, end;
  25. into_all all code_regex RTEP,\s+16, replace_matched begin TEP0,8,TEP1,8, end;
  26. into_all all code_regex BET2,\s+16, replace_matched begin ET20,8,ET21,8, end;
  27. into_all all code_regex B1TM,\s+16, replace_matched begin TM10,8,TM11,8, end;
  28. into_all all code_regex BAPV,\s+16, replace_matched begin APV0,8,APV1,8, end;
  29. into_all all code_regex BARC,\s+16, replace_matched begin ARC0,8,ARC1,8, end;
  30. into_all all code_regex BADC,\s+16, replace_matched begin ADC0,8,ADC1,8, end;
  31. into_all all code_regex BADV,\s+16, replace_matched begin ADV0,8,ADV1,8, end;
  32. into_all all code_regex BAFC,\s+16, replace_matched begin AFC0,8,AFC1,8, end;
  33. into_all all code_regex B1CR,\s+16, replace_matched begin CR10,8,CR11,8, end;

  34. into method label MHPF code_regex Store\s\(FB4,\sSMD0\) replaceall_matched begin \\_SB.PCI0.LPCB.H_EC.WECB(0x1C,256,FB4) end;

  35. into method label MHPF code_regex \(SMD0, replaceall_matched begin (\\_SB.PCI0.LPCB.H_EC.RECB(0x1C,256), end;

  36. into method label _BIF code_regex \(B1CH, replaceall_matched begin (B1B4(\\_SB.PCI0.LPCB.H_EC.CH10,\\_SB.PCI0.LPCB.H_EC.CH11,\\_SB.PCI0.LPCB.H_EC.CH12,\\_SB.PCI0.LPCB.H_EC.CH13), end;

  37. into method label GSBI code_regex \(B1CH, replaceall_matched begin (B1B4(\\_SB.PCI0.LPCB.H_EC.CH10,\\_SB.PCI0.LPCB.H_EC.CH11,\\_SB.PCI0.LPCB.H_EC.CH12,\\_SB.PCI0.LPCB.H_EC.CH13), end;

  38. into method label GSBI code_regex \(B1DT, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.DT10,\\_SB.PCI0.LPCB.H_EC.DT11), end;

  39. into method label GBID code_regex \(B1CY, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.CY10,\\_SB.PCI0.LPCB.H_EC.CY11), end;

  40. into method label GSBI code_regex \(B1MA, replaceall_matched begin (\\_SB.PCI0.LPCB.H_EC.RECB(0x8F,64), end;

  41. into method label GSBI code_regex \(B2MA, replaceall_matched begin (\\_SB.PCI0.LPCB.H_EC.RECB(0x98,64), end;

  42. into method label GSBI code_regex \(RTEP, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.TEP0,\\_SB.PCI0.LPCB.H_EC.TEP1), end;

  43. into method label SMTF code_regex \(BET2\) replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.ET20,\\_SB.PCI0.LPCB.H_EC.ET21)) end;

  44. into method label GSBI code_regex \(BET2, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.ET20,\\_SB.PCI0.LPCB.H_EC.ET21), end;

  45. into method label GSBI code_regex \(B1TM, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.TM10,\\_SB.PCI0.LPCB.H_EC.TM11), end;

  46. into method label _BST code_regex \(BAPV, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.APV0,\\_SB.PCI0.LPCB.H_EC.APV1), end;

  47. into method label GSBI code_regex \(BAPV, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.APV0,\\_SB.PCI0.LPCB.H_EC.APV1), end;

  48. into method label _BST code_regex \(BARC, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.ARC0,\\_SB.PCI0.LPCB.H_EC.ARC1), end;

  49. into method label GSBI code_regex \(BARC, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.ARC0,\\_SB.PCI0.LPCB.H_EC.ARC1), end;

  50. into method label _BIF code_regex \(BADC, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.ADC0,\\_SB.PCI0.LPCB.H_EC.ADC1), end;

  51. into method label GSBI code_regex \(BADC, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.ADC0,\\_SB.PCI0.LPCB.H_EC.ADC1), end;

  52. into method label _BIF code_regex \(BADV, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.ADV0,\\_SB.PCI0.LPCB.H_EC.ADV1), end;

  53. into method label _BST code_regex BADV, replaceall_matched begin B1B2(\\_SB.PCI0.LPCB.H_EC.ADV0,\\_SB.PCI0.LPCB.H_EC.ADV1), end;

  54. into method label GSBI code_regex \(BADV, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.ADV0,\\_SB.PCI0.LPCB.H_EC.ADV1), end;

  55. into method label _BIF code_regex \(BAFC, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.AFC0,\\_SB.PCI0.LPCB.H_EC.AFC1), end;

  56. into method label GSBI code_regex \(BAFC, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.AFC0,\\_SB.PCI0.LPCB.H_EC.AFC1), end;

  57. into method label _BST code_regex \(B1CR, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.CR10,\\_SB.PCI0.LPCB.H_EC.CR11), end;

  58. into method label GSBI code_regex \(B1CR, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.H_EC.CR10,\\_SB.PCI0.LPCB.H_EC.CR11), end;

  59. into method label _STA parent_label BAT1 replace_content begin Return (0x1F) end;

  60. into definitionblock code_regex . insert
  61. begin
  62. External (B1B2, MethodObj)\n
  63. External (B1B3, MethodObj)\n
  64. External (B1B4, MethodObj)\n
  65. External (\_SB.PCI0.LPCB.H_EC.RECB, MethodObj)\n
  66. External (\_SB.PCI0.LPCB.H_EC.WECB, MethodObj)
  67. end
复制代码


Rank: 7Rank: 7Rank: 7

UID
4842671
帖子
2859
PB币
3437
贡献
0
技术
10
活跃
1201
13F
发表于 2018-10-20 08:37:22 IP属地广东 |只看该作者
hello_ok 发表于 2018-10-19 20:55
请问下电池热补丁怎么制作啊?没找到教程

https://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/#post-1308261

Rank: 9

UID
763723
帖子
2379
PB币
2581
贡献
0
技术
94
活跃
2435

7周年庆典勋章 8周年庆典勋章

14F
发表于 2018-10-20 14:06:54 IP属地贵州 |只看该作者
云朵有点甜 发表于 2018-10-20 08:37
https://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/#post-1308261


帮我看看吧,我的电池在SSDT-03里面,跟上面的不一样,目前是有时能正常显示,有时不能显示
附件: 你需要登录才可以下载或查看附件。没有帐号?注册

Rank: 9

UID
763723
帖子
2379
PB币
2581
贡献
0
技术
94
活跃
2435

7周年庆典勋章 8周年庆典勋章

15F
发表于 2018-10-20 14:12:38 IP属地内网 |只看该作者
云朵有点甜 发表于 2018-10-20 08:37
https://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/#post-1308261


现在又是能正常显示的,有时重启后就不行了
附件: 你需要登录才可以下载或查看附件。没有帐号?注册

Rank: 1

UID
4837957
帖子
41
PB币
45
贡献
0
技术
0
活跃
42
16F
发表于 2018-12-10 08:37:57 IP属地河南 |只看该作者
hello_ok 发表于 2018-10-20 14:12
现在又是能正常显示的,有时重启后就不行了

大佬,你现在的电池正常了吗?
还有外接显示器能用吗?

Rank: 9

UID
763723
帖子
2379
PB币
2581
贡献
0
技术
94
活跃
2435

7周年庆典勋章 8周年庆典勋章

17F
发表于 2018-12-10 17:27:17 IP属地贵州 |只看该作者
aadooo 发表于 2018-12-10 08:37
大佬,你现在的电池正常了吗?
还有外接显示器能用吗?

电池基本正常,外接能用

Rank: 1

UID
4837957
帖子
41
PB币
45
贡献
0
技术
0
活跃
42
18F
发表于 2018-12-10 22:46:54 IP属地河南 |只看该作者
hello_ok 发表于 2018-12-10 17:27
电池基本正常,外接能用

大佬,求个efi吧。
另外 大佬,黑苹果系统对ssd有什么要求吗?
我目前用的西数黑盘。安装系统时 好像不能成功了。

Rank: 2Rank: 2

UID
4807059
帖子
120
PB币
261
贡献
0
技术
0
活跃
209
19F
发表于 2018-12-24 14:29:14 IP属地山东 |只看该作者
hello_ok 发表于 2018-12-10 17:27
电池基本正常,外接能用

可以分享下EFI吗?大佬

Rank: 7Rank: 7Rank: 7

UID
713168
帖子
1653
PB币
39
贡献
0
技术
6
活跃
3418
20F
发表于 2019-3-8 16:21:57 IP属地浙江 |只看该作者
谢谢分享      
回顶部
Copyright (C) 2005-2024 pcbeta.com, All rights reserved
Powered by Discuz!  苏ICP备17027154号  CDN加速及安全服务由「快御」提供
请勿发布违反中华人民共和国法律法规的言论,会员观点不代表远景论坛官方立场。
远景在线 | 远景论坛 | 苹果论坛 | Win11论坛 | Win10论坛 | Win8论坛 | Win7论坛 | WP论坛 | Office论坛