├── .gitignore ├── .maciasl ├── LICENSE ├── NullPatch.txt ├── README.md ├── bateria ├── ASUS-GL702VMK.txt ├── ASUS-TP412U.txt ├── ASUS-X45C-Series.txt ├── ASUS-X510UR-BQ291T.txt ├── ASUS-X510UR-BQ378T.txt ├── Acer-E1-571.txt ├── Acer-E5-573.txt ├── Acer-E5-574-307M.txt ├── Acer-E5-575.txt ├── Acer-ES1-572-3562.txt ├── Acer-F5-573G-50KS.txt ├── CCE-N345.txt ├── Dell-Inspiron-5447.txt ├── Dell-Inspiron-5448.txt ├── Dell-Inspiron-5537.txt ├── Dell-Vostro-3360.txt ├── Dell-Vostro-5480.txt ├── GPD-Pocket-MiniLaptop.txt ├── HP-240-G3.txt ├── HP-240-G6.txt ├── HP-240-G7.txt ├── HP-Laptop-15-da1xxx.txt ├── HP-PROBOOK-430-G6.txt ├── HP-PROBOOK-6560B.txt ├── Itautec-InfoWay-Note-W7730.txt ├── LG-A530.txt ├── LG-Gram-15Z980-G.txt ├── Lenovo-G40-70.txt ├── Lenovo-G40-80.txt ├── Lenovo-G400S.txt ├── Lenovo-Ideapad-310-15isk.txt ├── Lenovo-Ideapad-330S.txt ├── Lenovo-Ideapad-S145-IKB.txt ├── Lenovo-LNV-L1325.txt ├── Multilaser-ultra-ub521x.txt ├── Positivo-Master-N190I.txt ├── Positivo-Motion-I34500AI-15.txt ├── Positivo-Premiun-XS7320.txt ├── Samsung-NP270E5G-XD1BR.txt ├── Samsung-NP270E5J-XD1BR.txt ├── Samsung-NP300E4A-BD2BR.txt ├── Samsung-NP350XAA-VD1BR.txt ├── Samsung-NP370E4K-KD2BR.txt ├── Samsung-NP500R4L-KS1BR.txt ├── Samsung-NP550XCJ-XS1BR.txt ├── Samsung-NP800G5M-XG1BR.txt ├── Sony-Vaio-Fit-15.txt └── Sony-Vaio-SVS13A17GBB.txt ├── fnkeys ├── FnKeys-ASUS-X510UR.txt ├── FnKeys-Acer-E1-571.txt ├── FnKeys-Acer-E5-574-307M.txt ├── FnKeys-Acer-F5-573G.txt ├── FnKeys-Acer-NE56R13b.txt ├── FnKeys-BRT6.txt ├── FnKeys-DELL-5557.txt ├── FnKeys-HP-240-G6.txt ├── FnKeys-Lenovo-Ideapad-320.txt ├── FnKeys-Lenovo-Ideapad-330.txt ├── FnKeys-Lenovo-ThinkPad-T440.txt ├── FnKeys-Lenovo-Thinkpad-E470.txt ├── FnKeys-Lenovo-b490.txt ├── FnKeys-Positivo-XCI-7660.txt ├── FnKeys-Samsung-NP300XAA-KF3BR.txt ├── FnKeys-Samsung-NP370E4K-KD2BR.txt └── FnKeys-Samsung-NP550XCJ-XS1BR.txt ├── i2c ├── ALPS-ELAN-Lenovo-Ideapad-330-B330.txt ├── ATMEL-Samsung-Essentials-E30.txt ├── DELL08CC-Dell-Vostro-3583-V3.txt ├── DELL08CE-Dell-Inspiron-3481.txt ├── ELAN-Synaptics-Lenovo-Ideapad-320.txt ├── ELAN-Synaptics-Lenovo-Ideapad-330.txt ├── ELAN0504-Acer-A515-54.txt ├── ELAN1000-ASUS-X556URK.txt ├── ELAN1200-ASUS-X510UR.txt ├── Synaptics-Lenovo-Ideapad-330S.txt └── Synaptics-Lenovo-Ideapad-S145.txt └── outros ├── DTGP.txt ├── Fake-EC.txt ├── Fix-AWAC.txt ├── Fix-SBRN.txt ├── Insert-DMAC.txt ├── Insert-PMCR.txt ├── Renomear-EC0-EC.txt └── Renomear-H_EC-EC.txt /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /.maciasl: -------------------------------------------------------------------------------- 1 | [BAT] --> Bateria Patches NullPatch.txt 2 | [BAT] Acer E1 571 bateria/Acer-E1-571.txt 3 | [BAT] Acer E5 573 bateria/Acer-E5-573.txt 4 | [BAT] Acer E5 574-307M bateria/Acer-E5-574-307M.txt 5 | [BAT] Acer E5 575 bateria/Acer-E5-575.txt 6 | [BAT] Acer ES1 572-3562 bateria/Acer-ES1-572-3562.txt 7 | [BAT] Acer F5 573g 50ks bateria/Acer-F5-573G-50KS.txt 8 | [BAT] Acer A515-54 bateria/Acer-F5-573G-50KS.txt 9 | [BAT] ASUS A43E bateria/ASUS-X45C-Series.txt 10 | [BAT] ASUS GL702VMK bateria/ASUS-GL702VMK.txt 11 | [BAT] ASUS S550CA bateria/ASUS-GL702VMK.txt 12 | [BAT] ASUS TP412U bateria/ASUS-TP412U.txt 13 | [BAT] ASUS X45C Series bateria/ASUS-X45C-Series.txt 14 | [BAT] ASUS X510UR-BQ291T bateria/ASUS-X510UR-BQ291T.txt 15 | [BAT] ASUS X510UR-BQ378T bateria/ASUS-X510UR-BQ378T.txt 16 | [BAT] CCE Ultra Thin 345 bateria/CCE-N345.txt 17 | [BAT] Dell Inspiron 5447 bateria/Dell-Inspiron-5447.txt 18 | [BAT] Dell Inspiron 5448 bateria/Dell-Inspiron-5448.txt 19 | [BAT] Dell Inspiron 5537 bateria/Dell-Inspiron-5537.txt 20 | [BAT] Dell Vostro 3360 bateria/Dell-Vostro-3360.txt 21 | [BAT] Dell Vostro 5480 bateria/Dell-Vostro-5480.txt 22 | [BAT] GPD Pocket 2 MiniLaptop bateria/GPD-Pocket-MiniLaptop.txt 23 | [BAT] HP 240 G3 bateria/HP-240-G3.txt 24 | [BAT] HP 240 G6 bateria/HP-240-G6.txt 25 | [BAT] HP 240 G7 bateria/HP-240-G7.txt 26 | [BAT] HP EliteBook 8460p bateria/HP-PROBOOK-6560B.txt 27 | [BAT] HP Laptop 15-da1xxx bateria/HP-Laptop-15-da1xxx.txt 28 | [BAT] HP Probook 430 G6 bateria/HP-PROBOOK-430-G6.txt 29 | [BAT] HP Probook 6560b bateria/HP-PROBOOK-6560B.txt 30 | [BAT] HP Probook 640 G1 bateria/HP-PROBOOK-6560B.txt 31 | [BAT] Itautec InfoWay Note W7730 bateria/Itautec-InfoWay-Note-W7730.txt 32 | [BAT] Lenovo G40-70 bateria/Lenovo-G40-70.txt 33 | [BAT] Lenovo G40-80 bateria/Lenovo-G40-80.txt 34 | [BAT] Lenovo G400S bateria/Lenovo-G400S.txt 35 | [BAT] Lenovo Ideapad 310 15iks bateria/Lenovo-Ideapad-310-15isk.txt 36 | [BAT] Lenovo Ideapad 330 bateria/Lenovo-Ideapad-330S.txt 37 | [BAT] Lenovo Ideapad 330S bateria/Lenovo-Ideapad-330S.txt 38 | [BAT] Lenovo Ideapad S145-IKB bateria/Lenovo-Ideapad-S145-IKB.txt 39 | [BAT] Lenovo Ideapad S145-IWL bateria/Lenovo-Ideapad-S145-IKB.txt 40 | [BAT] Lenovo LNV L1325 bateria/Lenovo-LNV-L1325.txt 41 | [BAT] LG A530 bateria/LG-A530.txt 42 | [BAT] LG Gram 15Z980 bateria/LG-Gram-15Z980-G.txt 43 | [BAT] Multilaser Ultra UB521x bateria/Multilaser-ultra-ub521x.txt 44 | [BAT] Positivo Master N190I bateria/Positivo-Master-N190I.txt 45 | [BAT] Positivo XC7660 bateria/Positivo-Master-N190I.txt 46 | [BAT] Positivo Motion I34500AI-15 bateria/Positivo-Motion-I34500AI-15.txt 47 | [BAT] Positivo Premiun-XS7320 bateria/Positivo-Premiun-XS7320.txt 48 | [BAT] Samsung NP270E5G-XD1BR bateria/Samsung-NP270E5G-XD1BR.txt 49 | [BAT] Samsung NP270E5J-XD1BR bateria/Samsung-NP270E5J-XD1BR.txt 50 | [BAT] Samsung NP270E5J-XD3BR bateria/Samsung-NP270E5J-XD1BR.txt 51 | [BAT] Samsung NP300E4A-BD2BR bateria/Samsung-NP300E4A-BD2BR.txt 52 | [BAT] Samsung NP300E4C-AD2BR bateria/Samsung-NP270E5G-XD1BR.txt 53 | [BAT] Samsung NP300E5M-XD1BR bateria/Samsung-NP270E5J-XD1BR.txt 54 | [BAT] Samsung NP350XAA-VD1BR bateria/Samsung-NP350XAA-VD1BR.txt 55 | [BAT] Samsung NP350XAA-KFWBR bateria/Samsung-NP350XAA-VD1BR.txt 56 | [BAT] Samsung NP370E4K-KD2BR bateria/Samsung-NP370E4K-KD2BR.txt 57 | [BAT] Samsung NP500R4L-KS1BR bateria/Samsung-NP500R4L-KS1BR.txt 58 | [BAT] Samsung NP530U3C-KD2BR bateria/Samsung-NP270E5G-XD1BR.txt 59 | [BAT] Samsung NP550XCJ-XF1BR bateria/Samsung-NP550XCJ-XS1BR.txt 60 | [BAT] Samsung NP550XCJ-XS1BR bateria/Samsung-NP550XCJ-XS1BR.txt 61 | [BAT] Samsung NP800G5M-XG1BR bateria/Samsung-NP800G5M-XG1BR.txt 62 | [BAT] Samsung RV411 bateria/Samsung-NP300E4A-BD2BR.txt 63 | [BAT] Samsung RV420 bateria/Samsung-NP300E4A-BD2BR.txt 64 | [BAT] Sony Vaio SVS13A17GBB bateria/Sony-Vaio-SVS13A17GBB.txt 65 | [FNK] --> FnKeys Patches NullPatch.txt 66 | [FNK] Fn Keys Acer E1 571 fnkeys/FnKeys-Acer-E1-571.txt 67 | [FNK] Fn Keys BRT6 patch fnkeys/FnKeys-BRT6.txt 68 | [FNK] Fn Keys Acer E5-574-307M fnkeys/FnKeys-Acer-E5-574-307M.txt 69 | [FNK] Fn Keys Acer F5-573G fnkeys/FnKeys-Acer-F5-573G.txt 70 | [FNK] Fn Keys Acer F5-573G-50KS fnkeys/FnKeys-Acer-E5-574-307M.txt 71 | [FNK] Fn Keys Acer NE56R13b fnkeys/FnKeys-Acer-NE56R13b.txt 72 | [FNK] Fn Keys ASUS X510UR fnkeys/FnKeys-ASUS-X510UR.txt 73 | [FNK] Fn Keys Dell 5557 fnkeys/FnKeys-DELL-5557.txt 74 | [FNK] Fn Keys Lenovo Ideapad 320 fnkeys/FnKeys-Lenovo-Ideapad-320.txt 75 | [FNK] Fn Keys Lenovo Ideapad 330 fnkeys/FnKeys-Lenovo-Ideapad-330.txt 76 | [FNK] Fn Keys Lenovo Ideapad B330 fnkeys/FnKeys-Lenovo-Ideapad-330.txt 77 | [FNK] Fn Keys Lenovo ThinkPad E470 fnkeys/FnKeys-Lenovo-Thinkpad-E470.txt 78 | [FNK] Fn Keys Lenovo ThinkPad T440 fnkeys/FnKeys-Lenovo-ThinkPad-T440.txt 79 | [FNK] Fn Keys Lenovo b490 fnkeys/FnKeys-Lenovo-b490.txt 80 | [FNK] Fn Keys Positivo XCI 7660 fnkeys/FnKeys-Positivo-XCI-7660.txt 81 | [FNK] Fn Keys Samsung NP300XAA KF3BR fnkeys/FnKeys-Samsung-NP300XAA-KF3BR.txt 82 | [FNK] Fn Keys Samsung NP370E4K KD2BR fnkeys/FnKeys-Samsung-NP370E4K-KD2BR.txt 83 | [FNK] Fn Keys Samsung NP550XCJ XS1BR fnkeys/FnKeys-Samsung-NP550XCJ-XS1BR.txt 84 | [I2C] --> Touchpad I2C Patches NullPatch.txt 85 | [I2C] ALPS ELAN Lenovo Ideapad 330 / B330 i2c/ALPS-ELAN-Lenovo-Ideapad-330-B330.txt 86 | [I2C] ATMEL Samsung Essentials E30 i2c/ATMEL-Samsung-Essentials-E30.txt 87 | [I2C] DELL08CC Dell Vostro 3583 i2c/DELL08CC-Dell-Vostro-3583-V3.txt 88 | [I2C] DELL08CE Dell Inspiron 3481 i2c/DELL08CE-Dell-Inspiron-3481.txt 89 | [I2C] ELAN Synaptics Lenovo Ideapad 320 i2c/ELAN-Synaptics-Lenovo-Ideapad-320.txt 90 | [I2C] ELAN Synaptics Lenovo Ideapad 330 i2c/ELAN-Synaptics-Lenovo-Ideapad-330.txt 91 | [I2C] ELAN0504 Acer A515-54 i2c/ELAN0504-Acer-A515-54.txt 92 | [I2C] ELAN1000 ASUS X556URK i2c/ELAN1000-ASUS-X556URK.txt 93 | [I2C] ELAN1200 ASUS X510UR i2c/ELAN1200-ASUS-X510UR.txt 94 | [I2C] Synaptics Lenovo Ideapad 330S i2c/Synaptics-Lenovo-Ideapad-330S.txt 95 | [I2C] Synaptics Lenovo Ideapad S145 i2c/Synaptics-Lenovo-Ideapad-S145.txt 96 | [OUTROS] --> Outros Patches NullPatch.txt 97 | [OUTROS] Fake EC outros/Fake-EC.txt 98 | [OUTROS] Insert DTGP outros/DTGP.txt 99 | [OUTROS] Insert DMAC outros/Insert-DMAC.txt 100 | [OUTROS] Insert PMCR outros/Insert-PMCR.txt 101 | [OUTROS] Fix AWAC outros/Fix-AWAC.txt 102 | [OUTROS] Fix SBRN outros/Fix-SBRN.txt 103 | [OUTROS] Renomear H_EC para EC outros/Renomear-H_EC-EC.txt 104 | -------------------------------------------------------------------------------- /NullPatch.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Isso não é um patch. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Notebook-DSDT-Patch 2 | DSDT Patch para Notebooks 3 | -------------------------------------------------------------------------------- /bateria/ASUS-GL702VMK.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # ASUS GL702VMK 8 | # ASUS S550CA 9 | 10 | into device label EC0 code_regex B0C3,\s+16, replace_matched begin XC31,8,XC32,8, end; 11 | into device label EC0 code_regex B0SN,\s+16, replace_matched begin XNS1,8,XNS2,8, end; 12 | into device label EC0 code_regex B0VL,\s+16, replace_matched begin XVL1,8,XVL2,8, end; 13 | into device label EC0 code_regex B0RC,\s+16, replace_matched begin XCR1,8,XCR2,8, end; 14 | into device label EC0 code_regex B0FC,\s+16, replace_matched begin XCF1,8,XCF2,8, end; 15 | into device label EC0 code_regex B0MD,\s+16, replace_matched begin XMD1,8,XMD2,8, end; 16 | into device label EC0 code_regex B0ST,\s+16, replace_matched begin XST1,8,XST2,8, end; 17 | into device label EC0 code_regex B0CC,\s+16, replace_matched begin XCC1,8,XCC2,8, end; 18 | into device label EC0 code_regex B0DC,\s+16, replace_matched begin XBD1,8,XBD2,8, end; 19 | into device label EC0 code_regex B0DV,\s+16, replace_matched begin XVB1,8,XVB2,8, end; 20 | into device label EC0 code_regex B1VL,\s+16, replace_matched begin XBV1,8,XBV2,8, end; 21 | into device label EC0 code_regex B1RC,\s+16, replace_matched begin XRC1,8,XRC2,8, end; 22 | into device label EC0 code_regex B1FC,\s+16, replace_matched begin XBC1,8,XBC2,8, end; 23 | into device label EC0 code_regex B1MD,\s+16, replace_matched begin XMB1,8,XMB2,8, end; 24 | into device label EC0 code_regex B1ST,\s+16, replace_matched begin XSB1,8,XSB2,8, end; 25 | into device label EC0 code_regex B1CC,\s+16, replace_matched begin XB11,8,XB12,8, end; 26 | into device label EC0 code_regex B1DC,\s+16, replace_matched begin X1D1,8,X1D2,8, end; 27 | into device label EC0 code_regex B1DV,\s+16 replace_matched begin XV11,8,XV12,8 end; 28 | into device label EC0 code_regex B1SN,\s+16 replace_matched begin XSN1,8,XSN2,8 end; 29 | into device label EC0 code_regex DT2B,\s+16 replace_matched begin T2B1,8,T2B2,8 end; 30 | 31 | # 32 | # 33 | # 34 | into method label SMBR code_regex DT2B replaceall_matched begin B1B2(T2B1, T2B2) end; 35 | into method label SMBW code_regex DT2B replaceall_matched begin B1B2(T2B1, T2B2) end; 36 | 37 | into method label _BIX code_regex \^\^LPCB\.EC0\.B0C3 replaceall_matched begin B1B2(^^LPCB.EC0.XC31, ^^LPCB.EC0.XC32) end; 38 | into method label _BIX code_regex B0C3 replaceall_matched begin B1B2(XC31, XC32) end; 39 | into method label BIFA code_regex B0SN replaceall_matched begin B1B2(XNS1, XNS2) end; 40 | into method label BVOT code_regex B0VL replaceall_matched begin B1B2(XVL1, XVL2) end; 41 | 42 | into method label WMNB code_regex \^\^PCI0\.LPCB\.EC0\.B0RC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.XCR1, ^^PCI0.LPCB.EC0.XCR2) end; 43 | into method label BRCP code_regex B0RC replaceall_matched begin B1B2(XCR1, XCR2) end; 44 | 45 | into method label WMNB code_regex \^\^PCI0\.LPCB\.EC0\.B0FC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.XCF1, ^^PCI0.LPCB.EC0.XCF2) end; 46 | into method label BIF2 code_regex B0FC replaceall_matched begin B1B2(XCF1, XCF2) end; 47 | 48 | into method label BIF0 code_regex B0MD replaceall_matched begin B1B2(XMD1, XMD2) end; 49 | into method label BIF3 code_regex B0MD replaceall_matched begin B1B2(XMD1, XMD2) end; 50 | into method label BSTS code_regex B0ST replaceall_matched begin B1B2(XST1, XST2) end; 51 | into method label BCRT code_regex B0CC replaceall_matched begin B1B2(XCC1, XCC2) end; 52 | into method label BIF1 code_regex B0DC replaceall_matched begin B1B2(XBD1, XBD2) end; 53 | 54 | into method label WMNB code_regex \^\^PCI0\.LPCB\.EC0\.B0DV replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.XVB1, ^^PCI0.LPCB.EC0.XVB2) end; 55 | into method label FBST code_regex \^\^LPCB\.EC0\.B0DV replaceall_matched begin B1B2(^^LPCB.EC0.XVB1, ^^LPCB.EC0.XVB2) end; 56 | into method label CBST code_regex \^\^LPCB\.EC0\.B0DV replaceall_matched begin B1B2(^^LPCB.EC0.XVB1, ^^LPCB.EC0.XVB2) end; 57 | into method label FBST code_regex B0DV replaceall_matched begin B1B2(XVB1, XVB2) end; 58 | into method label CBST code_regex B0DV replaceall_matched begin B1B2(XVB1, XVB2) end; 59 | into method label BIF4 code_regex B0DV replaceall_matched begin B1B2(XVB1, XVB2) end; 60 | 61 | into method label BVOT code_regex B1VL replaceall_matched begin B1B2(XBV1, XBV2) end; 62 | 63 | into method label WMNB code_regex \^\^PCI0\.LPCB\.EC0\.B1RC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.XRC1, ^^PCI0.LPCB.EC0.XRC2) end; 64 | into method label BRCP code_regex B1RC replaceall_matched begin B1B2(XRC1, XRC2) end; 65 | 66 | into method label WMNB code_regex \^\^PCI0\.LPCB\.EC0\.B1FC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.XBC1, ^^PCI0.LPCB.EC0.XBC2) end; 67 | into method label BIF2 code_regex B1FC replaceall_matched begin B1B2(XBC1, XBC2) end; 68 | 69 | into method label BIF0 code_regex B1MD replaceall_matched begin B1B2(XBC1, XBC2) end; 70 | into method label BIF3 code_regex B1MD replaceall_matched begin B1B2(XMB1, XMB2) end; 71 | 72 | into method label BSTS code_regex B1ST replaceall_matched begin B1B2(XSB1, XSB2) end; 73 | into method label BCRT code_regex B1CC replaceall_matched begin B1B2(XB11, XB12) end; 74 | 75 | into method label BIF1 code_regex B1DC replaceall_matched begin B1B2(X1D1, X1D2) end; 76 | 77 | into method label WMNB code_regex \^\^PCI0\.LPCB\.EC0\.B1DV replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.XV11, ^^PCI0.LPCB.EC0.XV12) end; 78 | into method label BIF4 code_regex B1DV replaceall_matched begin B1B2(XV11, XV12) end; 79 | 80 | into method label BIFA code_regex B1SN replaceall_matched begin B1B2(XSN1, XSN2) end; 81 | 82 | # 83 | # 84 | # 85 | into method label B1B2 remove_entry; 86 | into definitionblock code_regex . insert 87 | begin 88 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 89 | end; 90 | 91 | # 92 | # 93 | # 94 | into device label EC0 code_regex BDAT,\s+256, replace_matched begin BDAX, 256, end; 95 | into device label EC0 code_regex BDA2,\s+256, replace_matched begin BDAY, 256, end; 96 | 97 | into method label SMBR code_regex BDAT\s+=\s+(.*) replaceall_matched begin WECB(0x1c,256,%1) end; 98 | into method label SMBR code_regex (.*)\s+=\s+BDAT replaceall_matched begin RECB(0x44,256) end; 99 | into method label SMBW code_regex BDAT\s+=\s+(.*) replaceall_matched begin WECB(0x1c,256,%1) end; 100 | 101 | into method label ECSB code_regex BDAT\s+=\s+(.*) replaceall_matched begin WECB(0x1c,256,%1) end; 102 | into method label ECSB code_regex ((.*))\s+=\s+BDAT replaceall_matched begin RECB(%1,256) end; 103 | 104 | into method label ECSB code_regex BDA2\s+=\s+(.*) replaceall_matched begin WECB(0x1c,256,%1) end; 105 | into method label ECSB code_regex ((.*))\s+=\s+BDA2 replaceall_matched begin RECB(%1,256) end; 106 | 107 | into method label RE1B parent_label EC0 remove_entry; 108 | into method label RECB parent_label EC0 remove_entry; 109 | into device label EC0 insert 110 | begin 111 | Method (RE1B, 1, NotSerialized)\n 112 | {\n 113 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 114 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 115 | Return(BYTE)\n 116 | }\n 117 | Method (RECB, 2, Serialized)\n 118 | {\n 119 | ShiftRight(Arg1, 3, Arg1)\n 120 | Name(TEMP, Buffer(Arg1) { })\n 121 | Add(Arg0, Arg1, Arg1)\n 122 | Store(0, Local0)\n 123 | While (LLess(Arg0, Arg1))\n 124 | {\n 125 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 126 | Increment(Arg0)\n 127 | Increment(Local0)\n 128 | }\n 129 | Return(TEMP)\n 130 | }\n 131 | end; 132 | 133 | into method label WE1B parent_label EC0 remove_entry; 134 | into method label WECB parent_label EC0 remove_entry; 135 | into device label EC0 insert 136 | begin 137 | Method (WE1B, 2, NotSerialized)\n 138 | {\n 139 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 140 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 141 | Store(Arg1, BYTE)\n 142 | }\n 143 | Method (WECB, 3, Serialized)\n 144 | {\n 145 | ShiftRight(Arg1, 3, Arg1)\n 146 | Name(TEMP, Buffer(Arg1) { })\n 147 | Store(Arg2, TEMP)\n 148 | Add(Arg0, Arg1, Arg1)\n 149 | Store(0, Local0)\n 150 | While (LLess(Arg0, Arg1))\n 151 | {\n 152 | WE1B(Arg0, DerefOf(Index(TEMP, Local0)))\n 153 | Increment(Arg0)\n 154 | Increment(Local0)\n 155 | }\n 156 | }\n 157 | end; -------------------------------------------------------------------------------- /bateria/ASUS-TP412U.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # ASUS TP412U 8 | 9 | into device label H_EC code_regex B1DC,\s+16, replace_matched begin X1D1,8,X1D2,8, end; 10 | into method label _BIF code_regex B1DC replaceall_matched begin B1B2(X1D1, X1D2) end; 11 | 12 | into device label H_EC code_regex B1FV,\s+16, replace_matched begin XVF1,8,XVF2,8, end; 13 | into method label _BIF code_regex B1FV replaceall_matched begin B1B2(XVF1, XVF2) end; 14 | into method label _BST code_regex B1FV replaceall_matched begin B1B2(XVF1, XVF2) end; 15 | 16 | into device label H_EC code_regex B1FC,\s+16, replace_matched begin XBF1,8,XBF2,8, end; 17 | into method label _BIF code_regex B1FC replaceall_matched begin B1B2(XBF1, XBF2) end; 18 | 19 | into device label H_EC code_regex B1CR,\s+16, replace_matched begin XCR1,8,XCR2,8, end; 20 | into method label _BST code_regex B1CR replaceall_matched begin B1B2(XCR1, XCR2) end; 21 | 22 | into device label H_EC code_regex B1RC,\s+16, replace_matched begin XRC1,8,XRC2,8, end; 23 | into method label _BST code_regex B1RC replaceall_matched begin B1B2(XRC1, XRC2) end; 24 | 25 | into device label H_EC code_regex B1LC,\s+16, replace_matched begin XLC1,8,XLC2,8, end; 26 | into method label _BIX code_regex B1LC replaceall_matched begin B1B2(XLC1, XLC2) end; 27 | 28 | # 29 | # 30 | # 31 | into method label B1B2 remove_entry; 32 | into definitionblock code_regex . insert 33 | begin 34 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 35 | end; -------------------------------------------------------------------------------- /bateria/ASUS-X45C-Series.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Baseado no Lenovo-y580 by RehabMan. 8 | # 9 | # ASUS GL702VMK 10 | # ASUS X45C Series 11 | # ASUS A43E 12 | 13 | 14 | into device label EC0 code_regex TAH0,\s+16, replace_matched begin XHA1,8,XHA2,8, end; 15 | into device label EC0 code_regex TAH1,\s+16, replace_matched begin XH11,8,XH12,8, end; 16 | into device label EC0 code_regex B0C3,\s+16, replace_matched begin XC31,8,XC32,8, end; 17 | into device label EC0 code_regex B0SN,\s+16, replace_matched begin XNS1,8,XNS2,8, end; 18 | into device label EC0 code_regex B0VL,\s+16, replace_matched begin XVL1,8,XVL2,8, end; 19 | into device label EC0 code_regex B0RC,\s+16, replace_matched begin XCR1,8,XCR2,8, end; 20 | into device label EC0 code_regex B0FC,\s+16, replace_matched begin XCF1,8,XCF2,8, end; 21 | into device label EC0 code_regex B0MD,\s+16, replace_matched begin XMD1,8,XMD2,8, end; 22 | into device label EC0 code_regex B0ST,\s+16, replace_matched begin XST1,8,XST2,8, end; 23 | into device label EC0 code_regex B0CC,\s+16, replace_matched begin XCC1,8,XCC2,8, end; 24 | into device label EC0 code_regex B0DC,\s+16, replace_matched begin XBD1,8,XBD2,8, end; 25 | into device label EC0 code_regex B0DV,\s+16, replace_matched begin XVB1,8,XVB2,8, end; 26 | into device label EC0 code_regex B1VL,\s+16, replace_matched begin XBV1,8,XBV2,8, end; 27 | into device label EC0 code_regex B1RC,\s+16, replace_matched begin XRC1,8,XRC2,8, end; 28 | into device label EC0 code_regex B1FC,\s+16, replace_matched begin XBC1,8,XBC2,8, end; 29 | into device label EC0 code_regex B1MD,\s+16, replace_matched begin XMB1,8,XMB2,8, end; 30 | into device label EC0 code_regex B1ST,\s+16, replace_matched begin XSB1,8,XSB2,8, end; 31 | into device label EC0 code_regex B1CC,\s+16, replace_matched begin XB11,8,XB12,8, end; 32 | into device label EC0 code_regex B1DC,\s+16, replace_matched begin X1D1,8,X1D2,8, end; 33 | into device label EC0 code_regex B1DV,\s+16 replace_matched begin XV11,8,XV12,8 end; 34 | into device label EC0 code_regex B1SN,\s+16 replace_matched begin XSN1,8,XSN2,8 end; 35 | into device label EC0 code_regex DT2B,\s+16 replace_matched begin T2B1,8,T2B2,8 end; 36 | 37 | # 38 | # 39 | # 40 | into method label TACH code_regex TAH0 replaceall_matched begin B1B2(XHA1, XHA2) end; 41 | into method label TACH code_regex TAH1 replaceall_matched begin B1B2(XH11, XH12) end; 42 | into method label _BIX code_regex \^\^LPCB\.EC0\.B0C3 replaceall_matched begin B1B2(^^LPCB.EC0.XC31, ^^LPCB.EC0.XC32) end; 43 | into method label _BIX code_regex B0C3 replaceall_matched begin B1B2(XC31, XC32) end; 44 | into method label BIFA code_regex B0SN replaceall_matched begin B1B2(XNS1, XNS2) end; 45 | into method label BVOT code_regex B0VL replaceall_matched begin B1B2(XVL1, XVL2) end; 46 | 47 | into method label WMNB code_regex \^\^PCI0\.LPCB\.EC0\.B0RC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.XCR1, ^^PCI0.LPCB.EC0.XCR2) end; 48 | into method label BRCP code_regex B0RC replaceall_matched begin B1B2(XCR1, XCR2) end; 49 | into method label WMNB code_regex \^\^PCI0\.LPCB\.EC0\.B0FC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.XCF1, ^^PCI0.LPCB.EC0.XCF2) end; 50 | into method label BIF2 code_regex B0FC replaceall_matched begin B1B2(XCF1, XCF2) end; 51 | 52 | into_all all code_regex \\_SB.PCI0.SBRG.EC0.B0DC replaceall_matched begin B1B2(\\_SB.PCI0.SBRG.EC0.XCF1, \\_SB.PCI0.SBRG.EC0.XCF2) end; 53 | 54 | into method label BIF0 code_regex B0MD replaceall_matched begin B1B2(XMD1, XMD2) end; 55 | into method label BIF3 code_regex B0MD replaceall_matched begin B1B2(XMD1, XMD2) end; 56 | into method label BSTS code_regex B0ST replaceall_matched begin B1B2(XST1, XST2) end; 57 | into method label BCRT code_regex B0CC replaceall_matched begin B1B2(XCC1, XCC2) end; 58 | into method label BIF1 code_regex B0DC replaceall_matched begin B1B2(XBD1, XBD2) end; 59 | 60 | into method label WMNB code_regex \^\^PCI0\.LPCB\.EC0\.B0DV replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.XVB1, ^^PCI0.LPCB.EC0.XVB2) end; 61 | into method label FBST code_regex \^\^LPCB\.EC0\.B0DV replaceall_matched begin B1B2(^^LPCB.EC0.XVB1, ^^LPCB.EC0.XVB2) end; 62 | into method label CBST code_regex \^\^LPCB\.EC0\.B0DV replaceall_matched begin B1B2(^^LPCB.EC0.XVB1, ^^LPCB.EC0.XVB2) end; 63 | into method label FBST code_regex B0DV replaceall_matched begin B1B2(XVB1, XVB2) end; 64 | into method label CBST code_regex B0DV replaceall_matched begin B1B2(XVB1, XVB2) end; 65 | into method label BIF4 code_regex B0DV replaceall_matched begin B1B2(XVB1, XVB2) end; 66 | 67 | into method label BVOT code_regex B1VL replaceall_matched begin B1B2(XBV1, XBV2) end; 68 | 69 | into method label WMNB code_regex \^\^PCI0\.LPCB\.EC0\.B1RC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.XRC1, ^^PCI0.LPCB.EC0.XRC2) end; 70 | into method label BRCP code_regex B1RC replaceall_matched begin B1B2(XRC1, XRC2) end; 71 | 72 | into method label WMNB code_regex \^\^PCI0\.LPCB\.EC0\.B1FC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.XBC1, ^^PCI0.LPCB.EC0.XBC2) end; 73 | into method label BIF2 code_regex B1FC replaceall_matched begin B1B2(XBC1, XBC2) end; 74 | 75 | into method label BIF0 code_regex B1MD replaceall_matched begin B1B2(XBC1, XBC2) end; 76 | into method label BIF3 code_regex B1MD replaceall_matched begin B1B2(XMB1, XMB2) end; 77 | 78 | into method label BSTS code_regex B1ST replaceall_matched begin B1B2(XSB1, XSB2) end; 79 | into method label BCRT code_regex B1CC replaceall_matched begin B1B2(XB11, XB12) end; 80 | 81 | into method label BIF1 code_regex B1DC replaceall_matched begin B1B2(X1D1, X1D2) end; 82 | 83 | into method label WMNB code_regex \^\^PCI0\.LPCB\.EC0\.B1DV replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.XV11, ^^PCI0.LPCB.EC0.XV12) end; 84 | into method label BIF4 code_regex B1DV replaceall_matched begin B1B2(XV11, XV12) end; 85 | 86 | into method label BIFA code_regex B1SN replaceall_matched begin B1B2(XSN1, XSN2) end; 87 | into method label SMBR code_regex DT2B replaceall_matched begin B1B2(T2B1, T2B2) end; 88 | into method label SMBW code_regex DT2B replaceall_matched begin B1B2(T2B1, T2B2) end; 89 | 90 | # 91 | # 92 | # 93 | into method label B1B2 remove_entry; 94 | into definitionblock code_regex . insert 95 | begin 96 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 97 | end; 98 | 99 | # 100 | # 101 | # 102 | into device label EC0 code_regex BDAT,\s+256, replace_matched begin BDAX, 256, end; 103 | into device label EC0 code_regex BDA2,\s+256, replace_matched begin BDAY, 256, end; 104 | 105 | into method label SMBR code_regex Store\s+\((.*),\s+BDAT\) replaceall_matched begin WECB(0x1c,256,%1) end; 106 | into method label SMBW code_regex Store\s+\((.*),\s+BDAT\) replaceall_matched begin WECB(0x1c,256,%1) end; 107 | into method label ECSB code_regex Store\s+\((.*),\s+BDAT\) replaceall_matched begin WECB(0x1c,256,%1) end; 108 | into method label ECSB code_regex Store\s+\((.*),\s+BDA2\) replaceall_matched begin WECB(0x44,256,%1) end; 109 | into method label ECSB code_regex \(BDAT, replaceall_matched begin (RECB(0x1c,256), end; 110 | into method label ECSB code_regex \(BDA2, replaceall_matched begin (RECB(0x44,256), end; 111 | into method label SMBR code_regex \(BDAT, replaceall_matched begin (RECB(0x1c,256), end; 112 | 113 | 114 | 115 | into method label RE1B parent_label EC0 remove_entry; 116 | into method label RECB parent_label EC0 remove_entry; 117 | into device label EC0 insert 118 | begin 119 | Method (RE1B, 1, NotSerialized)\n 120 | {\n 121 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 122 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 123 | Return(BYTE)\n 124 | }\n 125 | Method (RECB, 2, Serialized)\n 126 | {\n 127 | ShiftRight(Arg1, 3, Arg1)\n 128 | Name(TEMP, Buffer(Arg1) { })\n 129 | Add(Arg0, Arg1, Arg1)\n 130 | Store(0, Local0)\n 131 | While (LLess(Arg0, Arg1))\n 132 | {\n 133 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 134 | Increment(Arg0)\n 135 | Increment(Local0)\n 136 | }\n 137 | Return(TEMP)\n 138 | }\n 139 | end; 140 | 141 | into method label WE1B parent_label EC0 remove_entry; 142 | into method label WECB parent_label EC0 remove_entry; 143 | into device label EC0 insert 144 | begin 145 | Method (WE1B, 2, NotSerialized)\n 146 | {\n 147 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 148 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 149 | Store(Arg1, BYTE)\n 150 | }\n 151 | Method (WECB, 3, Serialized)\n 152 | {\n 153 | ShiftRight(Arg1, 3, Arg1)\n 154 | Name(TEMP, Buffer(Arg1) { })\n 155 | Store(Arg2, TEMP)\n 156 | Add(Arg0, Arg1, Arg1)\n 157 | Store(0, Local0)\n 158 | While (LLess(Arg0, Arg1))\n 159 | {\n 160 | WE1B(Arg0, DerefOf(Index(TEMP, Local0)))\n 161 | Increment(Arg0)\n 162 | Increment(Local0)\n 163 | }\n 164 | }\n 165 | end; -------------------------------------------------------------------------------- /bateria/ASUS-X510UR-BQ291T.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # ASUS X510UR-291T 8 | 9 | into device label EC0 code_regex B0C3,\s+16, replace_matched begin B030,8,B031,8, end; 10 | into device label EC0 code_regex B0SN,\s+16, replace_matched begin B0N0,8,B0N1,8, end; 11 | into device label EC0 code_regex B1SN,\s+16 replace_matched begin B1N0,8,B1N1,8, end; 12 | 13 | into method label _BIX code_regex B0C3 replaceall_matched begin B1B2(B030,B031) end; 14 | into method label BIFA code_regex B0SN replaceall_matched begin B1B2(B0N0,B0N1) end; 15 | into method label BIFA code_regex B1SN replaceall_matched begin B1B2(B1N0,B1N1) end; 16 | 17 | into method label B1B2 remove_entry; 18 | into definitionblock code_regex . insert 19 | begin 20 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 21 | end; -------------------------------------------------------------------------------- /bateria/ASUS-X510UR-BQ378T.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # ASUS X510UR-BQ378T 8 | 9 | into device label EC code_regex B0C3,\s+16, replace_matched begin B030,8,B031,8, end; 10 | into device label EC code_regex B0SN,\s+16, replace_matched begin B0N0,8,B0N1,8, end; 11 | into device label EC code_regex B1SN,\s+16 replace_matched begin B1N0,8,B1N1,8, end; 12 | into device label EC code_regex DT2B,\s+16 replace_matched begin T2B0,8,T2B1,8, end; 13 | 14 | into method label _BIX code_regex \(B0C3, replaceall_matched begin (B1B2(B030,B031), end; 15 | into method label BIFA code_regex \(B0SN, replaceall_matched begin (B1B2(B0N0,B0N1), end; 16 | into method label BIFA code_regex \(B1SN, replaceall_matched begin (B1B2(B1N0,B1N1), end; 17 | into method label SMBR code_regex \(DT2B, replaceall_matched begin (B1B2(T2B0,T2B1), end; 18 | into method label SMBW code_regex Store\s+\((.*),\s+DT2B\) replace_matched 19 | begin 20 | Store(%1, T2B0) Store(ShiftRight(%1,8), T2B1) 21 | end; 22 | 23 | into method label B1B2 remove_entry; 24 | into definitionblock code_regex . insert 25 | begin 26 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 27 | end; -------------------------------------------------------------------------------- /bateria/Acer-E1-571.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Acer E1 571 8 | 9 | into device label EC0 code_regex BSN0,\s+16, replace_matched begin BN01,8,BN02,8, end; 10 | into device label EC0 code_regex BPV0,\s+16, replace_matched begin BP01,8,BP02,8, end; 11 | into device label EC0 code_regex BDV0,\s+16, replace_matched begin BD01,8,BD02,8, end; 12 | into device label EC0 code_regex BDC0,\s+16, replace_matched begin BC01,8,BC02,8, end; 13 | into device label EC0 code_regex BFC0,\s+16, replace_matched begin BF01,8,BF02,8, end; 14 | into device label EC0 code_regex BAC0,\s+16, replace_matched begin BAC1,8,BAC2,8, end; 15 | into device label EC0 code_regex ERIB,\s+16, replace_matched begin IB00,8,IB01,8, end; 16 | into device label EC0 code_regex (SMD0,)\s+(256) replace_matched begin SMDX,%2,//%1%2 end; 17 | 18 | into method label GUBS code_regex \(BSN0, replaceall_matched begin (B1B2(^^EC0.BN01,^^EC0.BN02), end; 19 | into method label _BST code_regex \(\^\^EC0\.BPV0, replaceall_matched begin (B1B2(^^EC0.BP01,^^EC0.BP02), end; 20 | into method label _BIF code_regex \(\^\^EC0\.BDV0, replaceall_matched begin (B1B2(^^EC0.BD01,^^EC0.BD02), end; 21 | into method label _BIF code_regex \(\^\^EC0\.BDC0, replaceall_matched begin (B1B2(^^EC0.BC01,^^EC0.BC02), end; 22 | into method label _BIF code_regex \(\^\^EC0\.BFC0, replaceall_matched begin (B1B2(^^EC0.BF01,^^EC0.BF02), end; 23 | into method label _BST code_regex \(\^\^EC0\.BAC0, replaceall_matched begin (B1B2(^^EC0.BAC1,^^EC0.BAC2), end; 24 | into method label CFUN code_regex \(SMD0 replaceall_matched begin (RECB(0x64,256) end; 25 | into method label CFUN code_regex Store\s+\((.*),\s+SMD0\) replaceall_matched begin WECB(0x64,256,%1) end; 26 | 27 | into method label FANG code_regex Store\s+\((.*),\s+ERIB\) replaceall_matched 28 | begin 29 | Store(%1,IB00) 30 | Store(ShiftRight(%1,8),IB01) 31 | end; 32 | 33 | into method label FANW code_regex Store\s+\((.*),\s+ERIB\) replaceall_matched 34 | begin 35 | Store(%1,IB00) 36 | Store(ShiftRight(%1,8),IB01) 37 | end; 38 | 39 | into method label B1B2 remove_entry; 40 | into definitionblock code_regex . insert 41 | begin 42 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 43 | end; 44 | 45 | into method label RE1B parent_label EC0 remove_entry; 46 | into method label RECB parent_label EC0 remove_entry; 47 | into device label EC0 insert 48 | begin 49 | Method (RE1B, 1, NotSerialized)\n 50 | {\n 51 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 52 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 53 | Return(BYTE)\n 54 | }\n 55 | Method (RECB, 2, Serialized)\n 56 | {\n 57 | ShiftRight(Arg1, 3, Arg1)\n 58 | Name(TEMP, Buffer(Arg1) { })\n 59 | Add(Arg0, Arg1, Arg1)\n 60 | Store(0, Local0)\n 61 | While (LLess(Arg0, Arg1))\n 62 | {\n 63 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 64 | Increment(Arg0)\n 65 | Increment(Local0)\n 66 | }\n 67 | Return(TEMP)\n 68 | }\n 69 | end; 70 | into method label WE1B parent_label EC0 remove_entry; 71 | into method label WECB parent_label EC0 remove_entry; 72 | into device label EC0 insert 73 | begin 74 | Method (WE1B, 2, NotSerialized)\n 75 | {\n 76 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 77 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 78 | Store(Arg1, BYTE)\n 79 | }\n 80 | Method (WECB, 3, Serialized)\n 81 | {\n 82 | ShiftRight(Arg1, 3, Arg1)\n 83 | Name(TEMP, Buffer(Arg1) { })\n 84 | Store(Arg2, TEMP)\n 85 | Add(Arg0, Arg1, Arg1)\n 86 | Store(0, Local0)\n 87 | While (LLess(Arg0, Arg1))\n 88 | {\n 89 | WE1B(Arg0, DerefOf(Index(TEMP, Local0)))\n 90 | Increment(Arg0)\n 91 | Increment(Local0)\n 92 | }\n 93 | }\n 94 | end; -------------------------------------------------------------------------------- /bateria/Acer-E5-573.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Acer E5 573 8 | 9 | into device label EC0 code_regex MCUR,\s+16, replace_matched begin MC01,8,MC02,8, end; 10 | into device label EC0 code_regex MBRM,\s+16, replace_matched begin MB01,8,MB02,8, end; 11 | into device label EC0 code_regex MBVG,\s+16, replace_matched begin MV01,8,MV02,8, end; 12 | into device label EC0 code_regex LFCC,\s+16, replace_matched begin FC01,8,FC02,8, end; 13 | into device label EC0 code_regex BTSN,\s+16, replace_matched begin BT01,8,BT02,8, end; 14 | into device label EC0 code_regex BTDC,\s+16, replace_matched begin BD01,8,BD02,8, end; 15 | into device label EC0 code_regex BTDV,\s+16, replace_matched begin BV01,8,BV02,8, end; 16 | 17 | into method label B1B2 remove_entry; 18 | into definitionblock code_regex . insert 19 | begin 20 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 21 | end; 22 | 23 | into method label _BST code_regex \(\^\^PCI0\.LPCB\.EC0\.MCUR, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.MC01, ^^PCI0.LPCB.EC0.MC02), end; 24 | into method label _BST code_regex \(\^\^PCI0\.LPCB\.EC0\.MBRM, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.MB01, ^^PCI0.LPCB.EC0.MB02), end; 25 | into method label _BST code_regex \(\^\^PCI0\.LPCB\.EC0\.MBVG, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.MV01, ^^PCI0.LPCB.EC0.MV02), end; 26 | 27 | into method label UBIF code_regex \(\^\^PCI0\.LPCB\.EC0\.LFCC, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.FC01, ^^PCI0.LPCB.EC0.FC02), end; 28 | into method label UBIX code_regex \(\^\^PCI0\.LPCB\.EC0\.LFCC, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.FC01, ^^PCI0.LPCB.EC0.FC02), end; 29 | 30 | into method label UBIF code_regex \(\^\^PCI0\.LPCB\.EC0\.BTSN, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BT01, ^^PCI0.LPCB.EC0.BT02), end; 31 | into method label UBIX code_regex \(\^\^PCI0\.LPCB\.EC0\.BTSN, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BT01, ^^PCI0.LPCB.EC0.BT02), end; 32 | 33 | into method label UBIF code_regex \(\^\^PCI0\.LPCB\.EC0\.BTDC, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BD01, ^^PCI0.LPCB.EC0.BD02), end; 34 | into method label UBIX code_regex \(\^\^PCI0\.LPCB\.EC0\.BTDC, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BD01, ^^PCI0.LPCB.EC0.BD02), end; 35 | 36 | into method label UBIF code_regex \(\^\^PCI0\.LPCB\.EC0\.BTDV, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BV01, ^^PCI0.LPCB.EC0.BV02), end; 37 | into method label UBIX code_regex \(\^\^PCI0\.LPCB\.EC0\.BTDV, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BV01, ^^PCI0.LPCB.EC0.BV02), end; 38 | -------------------------------------------------------------------------------- /bateria/Acer-E5-574-307M.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Acer E5 574-307M 8 | 9 | into device label EC0 code_regex MCUR,\s+16, replace_matched begin MCU1,8,MCU2,8, end; 10 | into device label EC0 code_regex MBRM,\s+16, replace_matched begin MBR1,8,MBR2,8, end; 11 | into device label EC0 code_regex MBVG,\s+16, replace_matched begin MBV1,8,MBV2,8, end; 12 | into device label EC0 code_regex LFCC,\s+16, replace_matched begin LFC1,8,LFC2,8, end; 13 | into device label EC0 code_regex BTSN,\s+16, replace_matched begin BTN1,8,BTN2,8, end; 14 | into device label EC0 code_regex BTDC,\s+16, replace_matched begin BTD1,8,BTD2,8, end; 15 | into device label EC0 code_regex BTDV,\s+16, replace_matched begin BTV1,8,BTV2,8, end; 16 | 17 | into method label _BST code_regex \(\^\^PCI0\.LPCB\.EC0\.MCUR, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.MCU1,^^PCI0.LPCB.EC0.MCU2), end; 18 | into method label _BST code_regex \(\^\^PCI0\.LPCB\.EC0\.MBRM, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.MBR1,^^PCI0.LPCB.EC0.MCU2), end; 19 | into method label _BST code_regex \(\^\^PCI0\.LPCB\.EC0\.MBVG, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.MBV1,^^PCI0.LPCB.EC0.MBV2), end; 20 | 21 | into method label UBIX code_regex \(\^\^PCI0\.LPCB\.EC0\.LFCC, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.LFC1,^^PCI0.LPCB.EC0.LFC2), end; 22 | into method label UBIF code_regex \(\^\^PCI0\.LPCB\.EC0\.LFCC, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.LFC1,^^PCI0.LPCB.EC0.LFC2), end; 23 | 24 | into method label UBIX code_regex \(\^\^PCI0\.LPCB\.EC0\.BTSN, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BTN1,^^PCI0.LPCB.EC0.BTN1), end; 25 | into method label UBIF code_regex \(\^\^PCI0\.LPCB\.EC0\.BTSN, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BTN1,^^PCI0.LPCB.EC0.BTN1), end; 26 | 27 | into method label UBIX code_regex \(\^\^PCI0\.LPCB\.EC0\.BTDC, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BTD1,^^PCI0.LPCB.EC0.BTD2), end; 28 | into method label UBIF code_regex \(\^\^PCI0\.LPCB\.EC0\.BTDC, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BTD1,^^PCI0.LPCB.EC0.BTD2), end; 29 | 30 | into method label UBIX code_regex \(\^\^PCI0\.LPCB\.EC0\.BTDV, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BTV1,^^PCI0.LPCB.EC0.BTD2), end; 31 | into method label UBIF code_regex \(\^\^PCI0\.LPCB\.EC0\.BTDV, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BTV1,^^PCI0.LPCB.EC0.BTD2), end; 32 | 33 | 34 | into method label B1B2 remove_entry; 35 | into definitionblock code_regex . insert 36 | begin 37 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 38 | end; -------------------------------------------------------------------------------- /bateria/Acer-E5-575.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Acer E5 575 8 | 9 | into device label EC0 code_regex MCUR,\s+16, replace_matched begin MC01,8,MC02,8, end; 10 | into device label EC0 code_regex MBRM,\s+16, replace_matched begin MB01,8,MB02,8, end; 11 | into device label EC0 code_regex MBVG,\s+16, replace_matched begin MV01,8,MV02,8, end; 12 | into device label EC0 code_regex LFCC,\s+16, replace_matched begin FC01,8,FC02,8, end; 13 | into device label EC0 code_regex BTSN,\s+16, replace_matched begin BT01,8,BT02,8, end; 14 | into device label EC0 code_regex BTDC,\s+16, replace_matched begin BD01,8,BD02,8, end; 15 | into device label EC0 code_regex BTDV,\s+16, replace_matched begin BV01,8,BV02,8, end; 16 | 17 | into method label _BST code_regex \^\^PCI0\.LPCB\.EC0\.MCUR replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.MC01, ^^PCI0.LPCB.EC0.MC02) end; 18 | into method label _BST code_regex \^\^PCI0\.LPCB\.EC0\.MBRM replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.MB01, ^^PCI0.LPCB.EC0.MB02) end; 19 | into method label _BST code_regex \^\^PCI0\.LPCB\.EC0\.MBVG replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.MV01, ^^PCI0.LPCB.EC0.MV02) end; 20 | 21 | into method label UBIF code_regex \^\^PCI0\.LPCB\.EC0\.LFCC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.FC01, ^^PCI0.LPCB.EC0.FC02) end; 22 | into method label UBIX code_regex \^\^PCI0\.LPCB\.EC0\.LFCC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.FC01, ^^PCI0.LPCB.EC0.FC02) end; 23 | 24 | into method label UBIF code_regex \^\^PCI0\.LPCB\.EC0\.BTSN replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.BT01, ^^PCI0.LPCB.EC0.BT02) end; 25 | into method label UBIX code_regex \^\^PCI0\.LPCB\.EC0\.BTSN replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.BT01, ^^PCI0.LPCB.EC0.BT02) end; 26 | 27 | into method label UBIF code_regex \^\^PCI0\.LPCB\.EC0\.BTDC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.BD01, ^^PCI0.LPCB.EC0.BD02) end; 28 | into method label UBIX code_regex \^\^PCI0\.LPCB\.EC0\.BTDC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.BD01, ^^PCI0.LPCB.EC0.BD02) end; 29 | 30 | into method label UBIF code_regex \^\^PCI0\.LPCB\.EC0\.BTDV replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.BV01, ^^PCI0.LPCB.EC0.BV02) end; 31 | into method label UBIX code_regex \^\^PCI0\.LPCB\.EC0\.BTDV replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.BV01, ^^PCI0.LPCB.EC0.BV02) end; 32 | 33 | # 34 | # 35 | # 36 | into method label B1B2 remove_entry; 37 | into definitionblock code_regex . insert 38 | begin 39 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 40 | end; -------------------------------------------------------------------------------- /bateria/Acer-ES1-572-3562.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Acer Es1 572-3562 8 | 9 | # 10 | # 11 | # 12 | into device label EC0 code_regex BSN0,\s+16, replace_matched begin BN01,8,BN02,8, end; 13 | into device label EC0 code_regex BPV0,\s+16, replace_matched begin BP01,8,BP02,8, end; 14 | into device label EC0 code_regex BDV0,\s+16, replace_matched begin BD01,8,BD02,8, end; 15 | into device label EC0 code_regex BDC0,\s+16, replace_matched begin BC01,8,BC02,8, end; 16 | into device label EC0 code_regex BFC0,\s+16, replace_matched begin BF01,8,BF02,8, end; 17 | into device label EC0 code_regex BAC0,\s+16, replace_matched begin BAC1,8,BAC2,8, end; 18 | into device label EC0 code_regex ERIB,\s+16, replace_matched begin IB00,8,IB01,8, end; 19 | into device label EC0 code_regex (SMD0,)\s+(256) replace_matched begin SMDX,%2,//%1%2 end; 20 | 21 | 22 | # 23 | # 24 | into method label GUBS code_regex \(BSN0, replaceall_matched begin (B1B2(^^EC0.BN01,^^EC0.BN02), end; 25 | 26 | into_all all code_regex \^\^EC0.BDV0 replace_matched begin B1B2(^^EC0.BD01,^^EC0.BD02) end; 27 | into_all all code_regex \^\^EC0.BPV0 replaceall_matched begin B1B2(^^EC0.BP01,^^EC0.BP02) end; 28 | into_all all code_regex \^\^EC0.BDC0 replaceall_matched begin B1B2(^^EC0.BC01,^^EC0.BC02) end; 29 | into_all all code_regex \^\^EC0.BFC0 replace_matched begin B1B2(^^EC0.BF01,^^EC0.BF02) end; 30 | into_all all code_regex \^\^EC0.BAC0 replaceall_matched begin B1B2(^^EC0.BAC1,^^EC0.BAC2) end; 31 | 32 | into method label CFUN code_regex \(SMD0 replaceall_matched begin (RECB(0x64,256) end; 33 | into method label CFUN code_regex Store\s+\((.*),\s+SMD0\) replaceall_matched begin WECB(0x64,256,%1) end; 34 | 35 | into_all all code_regex ERIB replace_matched begin B1B2(^^EC0.BP01,^^EC0.BP02) end; 36 | 37 | # 38 | # 39 | # 40 | into method label B1B2 remove_entry; 41 | into definitionblock code_regex . insert 42 | begin 43 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 44 | end; 45 | 46 | # 47 | # 48 | # 49 | into method label RE1B parent_label EC0 remove_entry; 50 | into method label RECB parent_label EC0 remove_entry; 51 | into device label EC0 insert 52 | begin 53 | Method (RE1B, 1, NotSerialized)\n 54 | {\n 55 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 56 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 57 | Return(BYTE)\n 58 | }\n 59 | Method (RECB, 2, Serialized)\n 60 | {\n 61 | ShiftRight(Arg1, 3, Arg1)\n 62 | Name(TEMP, Buffer(Arg1) { })\n 63 | Add(Arg0, Arg1, Arg1)\n 64 | Store(0, Local0)\n 65 | While (LLess(Arg0, Arg1))\n 66 | {\n 67 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 68 | Increment(Arg0)\n 69 | Increment(Local0)\n 70 | }\n 71 | Return(TEMP)\n 72 | }\n 73 | end; 74 | into method label WE1B parent_label EC0 remove_entry; 75 | into method label WECB parent_label EC0 remove_entry; 76 | into device label EC0 insert 77 | begin 78 | Method (WE1B, 2, NotSerialized)\n 79 | {\n 80 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 81 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 82 | Store(Arg1, BYTE)\n 83 | }\n 84 | Method (WECB, 3, Serialized)\n 85 | {\n 86 | ShiftRight(Arg1, 3, Arg1)\n 87 | Name(TEMP, Buffer(Arg1) { })\n 88 | Store(Arg2, TEMP)\n 89 | Add(Arg0, Arg1, Arg1)\n 90 | Store(0, Local0)\n 91 | While (LLess(Arg0, Arg1))\n 92 | {\n 93 | WE1B(Arg0, DerefOf(Index(TEMP, Local0)))\n 94 | Increment(Arg0)\n 95 | Increment(Local0)\n 96 | }\n 97 | }\n 98 | end; -------------------------------------------------------------------------------- /bateria/Acer-F5-573G-50KS.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman) 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # Acer F5 573g 50ks 8 | # Acer A515-54 9 | 10 | # METHOD FOR 16 BITS - CREDITS REHABMAN 11 | into method label B1B2 remove_entry; 12 | into definitionblock code_regex . insert 13 | begin 14 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 15 | end; 16 | 17 | # FIX 16 BITS 18 | 19 | into device label EC0 code_regex BATD,\s+16 replace_matched begin TD00,8,TD01,8 end; 20 | into device label EC0 code_regex MCUR,\s+16 replace_matched begin UR00,8,UR01,8 end; 21 | into device label EC0 code_regex MBRM,\s+16 replace_matched begin RM00,8,RM01,8 end; 22 | into device label EC0 code_regex MBVG,\s+16 replace_matched begin VG00,8,VG01,8 end; 23 | into device label EC0 code_regex LFCC,\s+16 replace_matched begin CC00,8,CC01,8 end; 24 | into device label EC0 code_regex BTSN,\s+16 replace_matched begin SN00,8,SN01,8 end; 25 | into device label EC0 code_regex BTDC,\s+16 replace_matched begin DC00,8,DC01,8 end; 26 | into device label EC0 code_regex BTDV,\s+16 replace_matched begin DV00,8,DV01,8 end; 27 | 28 | into method label UBIF code_regex \(\^\^PCI0.LPCB.EC0.LFCC, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.CC00,\^\^PCI0.LPCB.EC0.CC01), end; 29 | into method label UBIF code_regex \(\^\^PCI0.LPCB.EC0.BTSN, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.SN00,\^\^PCI0.LPCB.EC0.SN01), end; 30 | into method label UBIF code_regex \(\^\^PCI0.LPCB.EC0.BTDC, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.DC00,\^\^PCI0.LPCB.EC0.DC01), end; 31 | into method label UBIF code_regex \(\^\^PCI0.LPCB.EC0.BTDV, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.DV00,\^\^PCI0.LPCB.EC0.DV01), end; 32 | 33 | into method label UBIX code_regex \(\^\^PCI0.LPCB.EC0.LFCC, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.CC00,\^\^PCI0.LPCB.EC0.CC01), end; 34 | into method label UBIX code_regex \(\^\^PCI0.LPCB.EC0.BTSN, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.SN00,\^\^PCI0.LPCB.EC0.SN01), end; 35 | into method label UBIX code_regex \(\^\^PCI0.LPCB.EC0.BTDC, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.DC00,\^\^PCI0.LPCB.EC0.DC01), end; 36 | into method label UBIX code_regex \(\^\^PCI0.LPCB.EC0.BTDV, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.DV00,\^\^PCI0.LPCB.EC0.DV01), end; 37 | 38 | into method label _BST code_regex \(\^\^PCI0.LPCB.EC0.MCUR, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.UR00,\^\^PCI0.LPCB.EC0.UR01), end; 39 | into method label _BST code_regex \(\^\^PCI0.LPCB.EC0.MBRM, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.RM00,\^\^PCI0.LPCB.EC0.RM01), end; 40 | into method label _BST code_regex \(\^\^PCI0.LPCB.EC0.MBVG, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.VG00,\^\^PCI0.LPCB.EC0.VG01), end; 41 | 42 | into method label _Q20 code_regex \(BATD, replaceall_matched begin (B1B2(TD00,TD01), end; 43 | 44 | into method label SELE code_regex \(BATD, replaceall_matched begin (B1B2(TD00,TD01), end; 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /bateria/CCE-N345.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman) 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # CCE Ultra Thin N345 8 | # 9 | 10 | # METHOD FOR 16 BITS - CREDITS REHABMAN 11 | into method label B1B2 remove_entry; 12 | into definitionblock code_regex . insert 13 | begin 14 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 15 | end; 16 | 17 | # FIX 16 BITS 18 | 19 | into device label EC0 code_regex XST0,\s+16 replace_matched begin ST00,8,ST01,8 end; 20 | into device label EC0 code_regex XST1,\s+16 replace_matched begin ST10,8,ST11,8 end; 21 | into device label EC0 code_regex XST2,\s+16 replace_matched begin ST20,8,ST21,8 end; 22 | into device label EC0 code_regex XST3,\s+16 replace_matched begin ST30,8,ST31,8 end; 23 | 24 | into device label EC0 code_regex XIF0,\s+16 replace_matched begin F000,8,F001,8 end; 25 | into device label EC0 code_regex XIF1,\s+16 replace_matched begin F100,8,F101,8 end; 26 | into device label EC0 code_regex XIF2,\s+16 replace_matched begin F200,8,F201,8 end; 27 | into device label EC0 code_regex XIF3,\s+16 replace_matched begin F300,8,F301,8 end; 28 | into device label EC0 code_regex XIF4,\s+16 replace_matched begin F400,8,F401,8 end; 29 | into device label EC0 code_regex XIF7,\s+16 replace_matched begin F700,8,F701,8 end; 30 | 31 | into method label _BST code_regex \(\^\^PCI0.LPCB.EC0.XST0, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.ST00,\^\^PCI0.LPCB.EC0.ST01), end; 32 | into method label _BST code_regex \(\^\^PCI0.LPCB.EC0.XST1, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.ST10,\^\^PCI0.LPCB.EC0.ST11), end; 33 | into method label _BST code_regex \(\^\^PCI0.LPCB.EC0.XST2, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.ST20,\^\^PCI0.LPCB.EC0.ST21), end; 34 | into method label _BST code_regex \(\^\^PCI0.LPCB.EC0.XST3, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.ST30,\^\^PCI0.LPCB.EC0.ST31), end; 35 | 36 | into method label _BIF code_regex \(\^\^PCI0.LPCB.EC0.XIF0, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.F000,\^\^PCI0.LPCB.EC0.F001), end; 37 | into method label _BIF code_regex \(\^\^PCI0.LPCB.EC0.XIF1, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.F100,\^\^PCI0.LPCB.EC0.F101), end; 38 | into method label _BIF code_regex \(\^\^PCI0.LPCB.EC0.XIF2, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.F200,\^\^PCI0.LPCB.EC0.F201), end; 39 | into method label _BIF code_regex \(\^\^PCI0.LPCB.EC0.XIF3, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.F300,\^\^PCI0.LPCB.EC0.F301), end; 40 | into method label _BIF code_regex \(\^\^PCI0.LPCB.EC0.XIF4, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.F400,\^\^PCI0.LPCB.EC0.F401), end; 41 | into method label _BIF code_regex \(\^\^PCI0.LPCB.EC0.XIF7, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.F700,\^\^PCI0.LPCB.EC0.F701), end; 42 | -------------------------------------------------------------------------------- /bateria/Dell-Inspiron-5447.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Baseado no Dell Inspiron 5548 by RehabMan. 8 | # 9 | # Dell Inspiron 5447 10 | 11 | into device label EC0 code_regex BRC0,\s+16, replace_matched begin RC00,8,RC01,8, end; 12 | into device label EC0 code_regex BSN0,\s+16, replace_matched begin SN00,8,SN01,8, end; 13 | into device label EC0 code_regex BPV0,\s+16, replace_matched begin PV00,8,PV01,8, end; 14 | into device label EC0 code_regex BDV0,\s+16, replace_matched begin DV00,8,DV01,8, end; 15 | into device label EC0 code_regex BDC0,\s+16, replace_matched begin DC00,8,DC01,8, end; 16 | into device label EC0 code_regex BFC0,\s+16, replace_matched begin FC00,8,FC01,8, end; 17 | into device label EC0 code_regex BAC0,\s+16, replace_matched begin AC00,8,AC01,8, end; 18 | into device label EC0 code_regex ERIB,\s+16, replace_matched begin ERI0,8,ERI1,8, end; 19 | 20 | into method label _BIF code_regex \(\^\^EC0\.BDV0, replaceall_matched begin (B1B2(^^EC0.DV00,^^EC0.DV01), end; 21 | into method label _BIF code_regex \(\^\^EC0\.BDC0, replaceall_matched begin (B1B2(^^EC0.DC00,^^EC0.DC01), end; 22 | into method label _BIF code_regex \(\^\^EC0\.BFC0, replaceall_matched begin (B1B2(^^EC0.FC00,^^EC0.FC01), end; 23 | 24 | into method label GUBS code_regex \(\^EC0\.BSN0, replaceall_matched begin (B1B2(^EC0.SN00,^EC0.SN01), end; 25 | 26 | into method label _BST code_regex \(\^\^EC0\.BRC0, replaceall_matched begin (B1B2(^^EC0.RC00,^^EC0.RC01), end; 27 | into method label _BST code_regex \^\^EC0\.BPV0 replaceall_matched begin B1B2(^^EC0.PV00,^^EC0.PV01) end;; 28 | into method label _BST code_regex \^\^EC0\.BAC0 replaceall_matched begin B1B2(^^EC0.AC00,^^EC0.AC01) end; 29 | 30 | into method label FANG code_regex Store\s+\(Arg0,\s+ERIB\) replace_matched begin Store(Arg0, ERI0) Store(ShiftRight(Arg0, 8), ERI1) end; 31 | into method label FANW code_regex Store\s+\(Arg0,\s+ERIB\) replace_matched begin Store(Arg0, ERI0) Store(ShiftRight(Arg0, 8), ERI1) end; 32 | 33 | into device label EC0 code_regex (BATN,)\s+(128) replace_matched begin BATX,%2,//%1%2 end; 34 | into method label GBMN code_regex \(\^\EC0\.BATN, replaceall_matched begin (^EC0.RECB(0x90,128), end; 35 | 36 | # 37 | # 38 | # 39 | into method label B1B2 remove_entry; 40 | into definitionblock code_regex . insert 41 | begin 42 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 43 | end; 44 | 45 | into method label RE1B parent_label EC0 remove_entry; 46 | into method label RECB parent_label EC0 remove_entry; 47 | into device label EC0 insert 48 | begin 49 | Method (RE1B, 1, NotSerialized)\n 50 | {\n 51 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 52 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 53 | Return(BYTE)\n 54 | }\n 55 | Method (RECB, 2, Serialized)\n 56 | {\n 57 | ShiftRight(Arg1, 3, Arg1)\n 58 | Name(TEMP, Buffer(Arg1) { })\n 59 | Add(Arg0, Arg1, Arg1)\n 60 | Store(0, Local0)\n 61 | While (LLess(Arg0, Arg1))\n 62 | {\n 63 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 64 | Increment(Arg0)\n 65 | Increment(Local0)\n 66 | }\n 67 | Return(TEMP)\n 68 | }\n 69 | end; -------------------------------------------------------------------------------- /bateria/Dell-Inspiron-5448.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Rehabman). 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # Baseado no Dell Inspiron 5548 by RehabMan. 8 | # 9 | # Dell Inspiron 5448 10 | 11 | into device label EC0 code_regex BRC0,\s+16, replace_matched begin RC00,8,RC01,8, end; 12 | into device label EC0 code_regex BSN0,\s+16, replace_matched begin SN00,8,SN01,8, end; 13 | into device label EC0 code_regex BPV0,\s+16, replace_matched begin PV00,8,PV01,8, end; 14 | into device label EC0 code_regex BDV0,\s+16, replace_matched begin DV00,8,DV01,8, end; 15 | into device label EC0 code_regex BDC0,\s+16, replace_matched begin DC00,8,DC01,8, end; 16 | into device label EC0 code_regex BFC0,\s+16, replace_matched begin FC00,8,FC01,8, end; 17 | into device label EC0 code_regex BFCB,\s+16, replace_matched begin FB00,8,FB01,8, end; 18 | into device label EC0 code_regex BAC0,\s+16, replace_matched begin AC00,8,AC01,8, end; 19 | into device label EC0 code_regex ERIB,\s+16, replace_matched begin ERI0,8,ERI1,8, end; 20 | 21 | into method label _BST code_regex \^\^EC0\.BRC0 replaceall_matched begin B1B2(^^EC0.RC00,^^EC0.RC01) end; 22 | into method label GUBS code_regex \^EC0\.BSN0 replaceall_matched begin B1B2(^EC0.SN00,^EC0.SN01) end; 23 | into method label _BST code_regex \^\^EC0\.BPV0 replaceall_matched begin B1B2(^^EC0.PV00,^^EC0.PV01) end;; 24 | 25 | into method label BIFX code_regex \^\^EC0\.BDV0 replaceall_matched begin B1B2(^^EC0.DV00,^^EC0.DV01) end; 26 | into method label BIFX code_regex \^\^EC0\.BDC0 replaceall_matched begin B1B2(^^EC0.DC00,^^EC0.DC01) end; 27 | into method label BIFX code_regex \^\^EC0\.BFC0 replaceall_matched begin B1B2(^^EC0.FC00,^^EC0.FC01) end; 28 | into method label BIFX code_regex \^\^EC0\.BFCB replaceall_matched begin B1B2(^^EC0.FB00,^^EC0.FB01) end; 29 | 30 | into method label _BST code_regex \^\^EC0\.BAC0 replaceall_matched begin B1B2(^^EC0.AC00,^^EC0.AC01) end; 31 | 32 | into method label FANG code_regex Store\s+\(Arg0,\s+ERIB\) replace_matched begin Store(Arg0, ERI0) Store(ShiftRight(Arg0, 8), ERI1) end; 33 | into method label FANW code_regex Store\s+\(Arg0,\s+ERIB\) replace_matched begin Store(Arg0, ERI0) Store(ShiftRight(Arg0, 8), ERI1) end; 34 | 35 | # 36 | # BATN 37 | # 38 | into device label EC0 code_regex (BATN,)\s+(128) replace_matched begin BATX,%2,//%1%2 end; 39 | into method label GBMN code_regex \(\^\EC0\.BATN, replaceall_matched begin (^EC0.RECB(0x90,128), end; 40 | 41 | # 42 | # 43 | # 44 | into method label RE1B parent_label EC0 remove_entry; 45 | into method label RECB parent_label EC0 remove_entry; 46 | into device label EC0 insert 47 | begin 48 | Method (RE1B, 1, NotSerialized)\n 49 | {\n 50 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 51 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 52 | Return(BYTE)\n 53 | }\n 54 | Method (RECB, 2, Serialized)\n 55 | {\n 56 | ShiftRight(Arg1, 3, Arg1)\n 57 | Name(TEMP, Buffer(Arg1) { })\n 58 | Add(Arg0, Arg1, Arg1)\n 59 | Store(0, Local0)\n 60 | While (LLess(Arg0, Arg1))\n 61 | {\n 62 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 63 | Increment(Arg0)\n 64 | Increment(Local0)\n 65 | }\n 66 | Return(TEMP)\n 67 | }\n 68 | end; 69 | 70 | # 71 | # 72 | # 73 | into method label B1B2 remove_entry; 74 | into definitionblock code_regex . insert 75 | begin 76 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 77 | end; -------------------------------------------------------------------------------- /bateria/Dell-Inspiron-5537.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Rehabman). 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # Baseado no Dell Inspiron 5548 by RehabMan. 8 | # 9 | # Dell Inspiron 5537 10 | 11 | into device label EC0 code_regex BRC0,\s+16, replace_matched begin RC00,8,RC01,8, end; 12 | into device label EC0 code_regex BSN0,\s+16, replace_matched begin SN00,8,SN01,8, end; 13 | into device label EC0 code_regex BPV0,\s+16, replace_matched begin PV00,8,PV01,8, end; 14 | into device label EC0 code_regex BDV0,\s+16, replace_matched begin DV00,8,DV01,8, end; 15 | into device label EC0 code_regex BDC0,\s+16, replace_matched begin DC00,8,DC01,8, end; 16 | into device label EC0 code_regex BFC0,\s+16, replace_matched begin FC00,8,FC01,8, end; 17 | into device label EC0 code_regex BAC0,\s+16, replace_matched begin AC00,8,AC01,8, end; 18 | into device label EC0 code_regex ERIB,\s+16, replace_matched begin ERI0,8,ERI1,8, end; 19 | 20 | into method label _BIF code_regex \(\^\^EC0\.BDV0, replaceall_matched begin (B1B2(^^EC0.DV00,^^EC0.DV01), end; 21 | into method label _BIF code_regex \(\^\^EC0\.BDC0, replaceall_matched begin (B1B2(^^EC0.DC00,^^EC0.DC01), end; 22 | into method label _BIF code_regex \(\^\^EC0\.BFC0, replaceall_matched begin (B1B2(^^EC0.FC00,^^EC0.FC01), end; 23 | 24 | into method label GUBS code_regex \(\^EC0\.BSN0, replaceall_matched begin (B1B2(^EC0.SN00,^EC0.SN01), end; 25 | 26 | into method label _BST code_regex \(\^\^EC0\.BRC0, replaceall_matched begin (B1B2(^^EC0.RC00,^^EC0.RC01), end; 27 | into method label _BST code_regex \^\^EC0\.BPV0 replaceall_matched begin B1B2(^^EC0.PV00,^^EC0.PV01) end;; 28 | into method label _BST code_regex \^\^EC0\.BAC0 replaceall_matched begin B1B2(^^EC0.AC00,^^EC0.AC01) end; 29 | 30 | into_all method code_regex ERIB replaceall_matched begin B1B2(^^EC0.ERI0,^^EC0.ERI1) end; 31 | 32 | into device label EC0 code_regex (BATN,)\s+(128) replace_matched begin BATX,%2,//%1%2 end; 33 | into method label GBMN code_regex \(\^\EC0\.BATN, replaceall_matched begin (^EC0.RECB(0x90,128), end; 34 | 35 | # 36 | # 37 | # 38 | into method label B1B2 remove_entry; 39 | into definitionblock code_regex . insert 40 | begin 41 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 42 | end; 43 | 44 | into method label RE1B parent_label EC0 remove_entry; 45 | into method label RECB parent_label EC0 remove_entry; 46 | into device label EC0 insert 47 | begin 48 | Method (RE1B, 1, NotSerialized)\n 49 | {\n 50 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 51 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 52 | Return(BYTE)\n 53 | }\n 54 | Method (RECB, 2, Serialized)\n 55 | {\n 56 | ShiftRight(Arg1, 3, Arg1)\n 57 | Name(TEMP, Buffer(Arg1) { })\n 58 | Add(Arg0, Arg1, Arg1)\n 59 | Store(0, Local0)\n 60 | While (LLess(Arg0, Arg1))\n 61 | {\n 62 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 63 | Increment(Arg0)\n 64 | Increment(Local0)\n 65 | }\n 66 | Return(TEMP)\n 67 | }\n 68 | end; -------------------------------------------------------------------------------- /bateria/Dell-Vostro-3360.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # Baseado no patch do Dell Vostro 5480 do Samuel Cabral 4 | # https://hackintoshbrasil.com 5 | # 6 | # Compatível com MaciASL (fork Rehabman) 7 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 8 | # 9 | # Dell Vostro 3360 10 | # 11 | # METHOD FOR 16 BITS - CREDITS REHABMAN 12 | into method label B1B2 remove_entry; 13 | into definitionblock code_regex . insert 14 | begin 15 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 16 | end; 17 | 18 | into device label EC0 code_regex CAP0,\s+16, replace_matched begin CPS1,8,CPS2,8, end; 19 | into device label EC0 code_regex VOT0,\s+16, replace_matched begin CPA1,8,CPA2,8, end; 20 | into device label EC0 code_regex CRT0,\s+16, replace_matched begin GVS1,8,GVS2,8, end; 21 | into device label EC0 code_regex FCP0,\s+16, replace_matched begin RUC1,8,RUC2,8, end; 22 | into device label EC0 code_regex DCP0,\s+16, replace_matched begin MRB1,8,MRB2,8, end; 23 | into device label EC0 code_regex DVT0,\s+16, replace_matched begin VCB1,8,VCB2,8, end; 24 | into device label EC0 code_regex BSN0,\s+16, replace_matched begin NSB1,8,NSB2,8, end; 25 | 26 | into method label _BST code_regex \^\^PCI0.LPCB.EC0.CAP0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CPS1, ^^PCI0.LPCB.EC0.CPS2) end; 27 | into method label _BST code_regex \^\^PCI0.LPCB.EC0.VOT0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CPA1, ^^PCI0.LPCB.EC0.CPA2) end; 28 | into method label _BST code_regex \^\^PCI0.LPCB.EC0.CRT0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.GVS1, ^^PCI0.LPCB.EC0.GVS2) end; 29 | into method label _BIF code_regex \^\^PCI0.LPCB.EC0.FCP0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.RUC1, ^^PCI0.LPCB.EC0.RUC2) end; 30 | into method label _BIF code_regex \^\^PCI0.LPCB.EC0.DCP0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.MRB1, ^^PCI0.LPCB.EC0.MRB2) end; 31 | into method label _BIF code_regex \^\^PCI0.LPCB.EC0.DVT0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.VCB1, ^^PCI0.LPCB.EC0.VCB2) end; 32 | into method label _BIF code_regex \^\^PCI0.LPCB.EC0.BSN0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.NSB1, ^^PCI0.LPCB.EC0.NSB2) end; 33 | -------------------------------------------------------------------------------- /bateria/Dell-Vostro-5480.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Dell Vostro 5480 8 | 9 | into device label EC code_regex CAP0,\s+16, replace_matched begin CPS1,8,CPS2,8, end; 10 | into device label EC code_regex VOT0,\s+16, replace_matched begin CPA1,8,CPA2,8, end; 11 | into device label EC code_regex CRT0,\s+16, replace_matched begin GVS1,8,GVS2,8, end; 12 | into device label EC code_regex FCP0,\s+16, replace_matched begin RUC1,8,RUC2,8, end; 13 | into device label EC code_regex DCP0,\s+16, replace_matched begin MRB1,8,MRB2,8, end; 14 | into device label EC code_regex DVT0,\s+16, replace_matched begin VCB1,8,VCB2,8, end; 15 | into device label EC code_regex BSN0,\s+16, replace_matched begin NSB1,8,NSB2,8, end; 16 | 17 | into method label _BST code_regex \^\^EC\.CAP0 replaceall_matched begin B1B2(^^EC.CPS1, ^^EC.CPS2) end; 18 | into method label _BST code_regex \^\^EC\.VOT0 replaceall_matched begin B1B2(^^EC.CPA1, ^^EC.CPA2) end; 19 | into method label _BST code_regex \^\^EC\.CRT0 replaceall_matched begin B1B2(^^EC.GVS1, ^^EC.GVS2) end; 20 | into method label _BIF code_regex \^\^EC\.FCP0 replaceall_matched begin B1B2(^^EC.RUC1, ^^EC.RUC2) end; 21 | into method label _BIF code_regex \^\^EC\.DCP0 replaceall_matched begin B1B2(^^EC.MRB1, ^^EC.MRB2) end; 22 | into method label _BIF code_regex \^\^EC\.DVT0 replaceall_matched begin B1B2(^^EC.VCB1, ^^EC.VCB2) end; 23 | into method label _BIF code_regex \^\^EC\.BSN0 replaceall_matched begin B1B2(^^EC.NSB1, ^^EC.NSB2) end; 24 | 25 | # 26 | # 27 | # 28 | into method label B1B2 remove_entry; 29 | into definitionblock code_regex . insert 30 | begin 31 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 32 | end; -------------------------------------------------------------------------------- /bateria/GPD-Pocket-MiniLaptop.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # GPD Pocket 2 (MiniLaptop) 8 | # https://gpd.hk/gpdpocket2 9 | 10 | into device label H_EC code_regex B1DC,\s+16, replace_matched begin CD11,8,CD12,8, end; 11 | into device label H_EC code_regex B1FV,\s+16, replace_matched begin VF11,8,VF12,8, end; 12 | into device label H_EC code_regex B1FC,\s+16, replace_matched begin CF11,8,CF12,8, end; 13 | into device label H_EC code_regex B1CR,\s+16, replace_matched begin RC11,8,RC12,8, end; 14 | into device label H_EC code_regex B1VT,\s+16, replace_matched begin TV11,8,TV12,8, end; 15 | 16 | 17 | into method label _BIF code_regex B1DC replaceall_matched begin B1B2(CD11, CD12) end; 18 | into method label _BIF code_regex B1FV replaceall_matched begin B1B2(VF11, VF12) end; 19 | into method label _BST code_regex B1FV replaceall_matched begin B1B2(VF11, VF12) end; 20 | into method label _BIF code_regex B1FC replaceall_matched begin B1B2(CF11, CF12) end; 21 | into method label _BST code_regex B1FC replaceall_matched begin B1B2(CF11, CF12) end; 22 | into method label _BST code_regex B1CR replaceall_matched begin B1B2(RC11, RC12) end; 23 | into method label _BST code_regex B1VT replaceall_matched begin B1B2(TV11, TV12) end; 24 | 25 | # 26 | # 27 | # 28 | into method label B1B2 remove_entry; 29 | into definitionblock code_regex . insert 30 | begin 31 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 32 | end; -------------------------------------------------------------------------------- /bateria/HP-240-G3.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # HP 240G3 8 | # 9 | 10 | into device label EC0 code_regex BRC0,\s+16, replaceall_matched begin CRB1,8,CRB2,8, end; 11 | into method label _BST code_regex \^\^EC0\.BRC0 replaceall_matched begin B1B2(^^EC0.CRB1, ^^EC0.CRB2) end; 12 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BRC0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CRB1, ^^PCI0.LPCB.EC0.CRB2) end; 13 | 14 | into device label EC0 code_regex BSN0,\s+16, replaceall_matched begin NSB1,8,NSB2,8, end; 15 | into method label GUBS code_regex BSN0 replaceall_matched begin B1B2(NSB1, NSB2) end; 16 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BSN0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.NSB1, ^^PCI0.LPCB.EC0.NSB2) end; 17 | 18 | into device label EC0 code_regex BPV0,\s+16, replaceall_matched begin VPB1,8,VPB2,8, end; 19 | into method label _BST code_regex \^\^EC0\.BPV0 replaceall_matched begin B1B2(^^EC0.VPB1, ^^EC0.VPB2) end; 20 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BPV0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.VPB1, ^^PCI0.LPCB.EC0.VPB2) end; 21 | 22 | into device label EC0 code_regex BDV0,\s+16, replaceall_matched begin VDB1,8,VDB2,8, end; 23 | into method label _BIF code_regex \^\^EC0\.BDV0 replaceall_matched begin B1B2(^^EC0.VDB1, ^^EC0.VDB2) end; 24 | into method label _BST code_regex \^\^EC0\.BDV0 replaceall_matched begin B1B2(^^EC0.VDB1, ^^EC0.VDB2) end; 25 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BDV0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.VDB1, ^^PCI0.LPCB.EC0.VDB2) end; 26 | 27 | into device label EC0 code_regex BFC0,\s+16, replaceall_matched begin CFB1,8,CFB2,8, end; 28 | into method label _BIF code_regex \^\^EC0\.BFC0 replaceall_matched begin B1B2(^^EC0.CFB1, ^^EC0.CFB2) end; 29 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BFC0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CFB1, ^^PCI0.LPCB.EC0.CFB2) end; 30 | 31 | into device label EC0 code_regex BPC0,\s+16, replaceall_matched begin CPB1,8,CPB2,8, end; 32 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BPC0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CPB1, ^^PCI0.LPCB.EC0.CPB2) end; 33 | 34 | into device label EC0 code_regex BAC0,\s+16, replaceall_matched begin CAB1,8,CAB2,8, end; 35 | into method label _BST code_regex \^\^EC0\.BAC0 replaceall_matched begin B1B2(^^EC0.CAB1, ^^EC0.CAB2) end; 36 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BAC0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CAB1, ^^PCI0.LPCB.EC0.CAB2) end; 37 | 38 | into device label EC0 code_regex BCG0,\s+16, replaceall_matched begin GCB1,8,GCB2,8, end; 39 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BCG0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.GCB1, ^^PCI0.LPCB.EC0.GCB2) end; 40 | 41 | into device label EC0 code_regex BSSB,\s+16, replaceall_matched begin BSS1,8,BSS2,8, end; 42 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BSSB replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.BSS1, ^^PCI0.LPCB.EC0.BSS2) end; 43 | 44 | into device label EC0 code_regex BCV1,\s+16, replaceall_matched begin VC11,8,VC12,8, end; 45 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BCV1 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.VC11, ^^PCI0.LPCB.EC0.VC12) end; 46 | 47 | into device label EC0 code_regex BCV2,\s+16, replaceall_matched begin VC21,8,VC22,8, end; 48 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BCV2 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.VC21, ^^PCI0.LPCB.EC0.VC22) end; 49 | 50 | into device label EC0 code_regex BCV3,\s+16, replaceall_matched begin VC31,8,VC32,8, end; 51 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BCV3 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.VC31, ^^PCI0.LPCB.EC0.VC32) end; 52 | 53 | into device label EC0 code_regex BCV4,\s+16, replaceall_matched begin VC41,8,VC42,8, end; 54 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BCV4 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.VC41, ^^PCI0.LPCB.EC0.VC42) end; 55 | 56 | into device label EC0 code_regex BMD0,\s+16, replaceall_matched begin DMB1,8,DMB2,8, end; 57 | into method label GUBS code_regex BMD0 replaceall_matched begin B1B2(DMB1, DMB2) end; 58 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BMD0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.DMB1, ^^PCI0.LPCB.EC0.DMB2) end; 59 | 60 | into device label EC0 code_regex BACV,\s+16, replaceall_matched begin VCA1,8,VCA2,8, end; 61 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BACV replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.VCA1, ^^PCI0.LPCB.EC0.VCA2) end; 62 | 63 | into device label EC0 code_regex BFCB,\s+16, replaceall_matched begin BFC1,8,BFC2,8, end; 64 | into method label _BIF code_regex \^\^EC0\.BFCB replaceall_matched begin B1B2(^^EC0.BFC1, ^^EC0.BFC2) end; 65 | 66 | into device label EC0 code_regex BTPB,\s+16, replaceall_matched begin BPT1,8,BPT2,8, end; 67 | into method label _BTP code_regex \^\^EC0\.BTPB replaceall_matched begin B1B2(^^EC0.BPT1, ^^EC0.BPT2) end; 68 | 69 | into device label EC0 code_regex MUAC,\s+16, replaceall_matched begin CAU1,8,CAU2,8, end; 70 | into method label BATT code_regex \^\^PCI0.LPCB\.EC0\.MUAC replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CAU1, ^^PCI0.LPCB.EC0.CAU2) end; 71 | 72 | into device label EC0 code_regex ATTE,\s+16, replaceall_matched begin ETA1,8,ETA2,8, end; 73 | into method label BATT code_regex \^\^PCI0.LPCB\.EC0\.ATTE replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.ETA1, ^^PCI0.LPCB.EC0.ETA2) end; 74 | 75 | into device label EC0 code_regex RTTE,\s+16, replaceall_matched begin ETR1,8,ETR2,8, end; 76 | into method label BATT code_regex \^\^PCI0.LPCB\.EC0\.RTTE replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.ETR1, ^^PCI0.LPCB.EC0.ETR2) end; 77 | 78 | into device label EC0 code_regex ATTF,\s+16, replaceall_matched begin FTA1,8,FTA2,8, end; 79 | into method label BATT code_regex \^\^PCI0.LPCB\.EC0\.ATTF replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.FTA1, ^^PCI0.LPCB.EC0.FTA2) end; 80 | 81 | into device label EC0 code_regex ERIB,\s+16, replaceall_matched begin BIR1,8,BIR2,8, end; 82 | into method label FANG code_regex ERIB replaceall_matched begin B1B2(BIR1, BIR2) end; 83 | into method label FANW code_regex ERIB replaceall_matched begin B1B2(BIR1, BIR2) end; 84 | 85 | into device label EC0 code_regex PRTM,\s+16, replaceall_matched begin MTR1,8,MTR2,8, end; 86 | into method label ESDT code_regex \^\^PCI0.LPCB\.EC0\.PRTM replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.MTR1, ^^PCI0.LPCB.EC0.MTR2) end; 87 | 88 | # 89 | # 90 | # 91 | into method label B1B2 remove_entry; 92 | into definitionblock code_regex . insert 93 | begin 94 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 95 | end; 96 | 97 | # 98 | # 99 | # 100 | into device label EC0 code_regex SMD0,\s+256 replace_matched 101 | begin 102 | SM00,8,SM01,8,SM02,8,SM03,8,\n 103 | SM04,8,SM05,8,SM06,8,SM07,8,\n 104 | SM08,8,SM09,8,SM10,8,SM11,8,\n 105 | SM12,8,SM13,8,SM14,8,SM15,8,\n 106 | SM16,8,SM17,8,SM18,8,SM19,8,\n 107 | SM20,8,SM21,8,SM22,8,SM23,8,\n 108 | SM24,8,SM25,8,SM26,8,SM27,8,\n 109 | SM28,8,SM29,8,SM30,8,SM31,8 110 | end; 111 | 112 | into device label EC0 insert 113 | begin 114 | Method (RSMD, 0, Serialized)\n 115 | {\n 116 | Name (TEMP, Buffer(0x20) { })\n 117 | Store (SM00, Index(TEMP, 0x00))\n 118 | Store (SM01, Index(TEMP, 0x01))\n 119 | Store (SM02, Index(TEMP, 0x02))\n 120 | Store (SM03, Index(TEMP, 0x03))\n 121 | Store (SM04, Index(TEMP, 0x04))\n 122 | Store (SM05, Index(TEMP, 0x05))\n 123 | Store (SM06, Index(TEMP, 0x06))\n 124 | Store (SM07, Index(TEMP, 0x07))\n 125 | Store (SM08, Index(TEMP, 0x08))\n 126 | Store (SM09, Index(TEMP, 0x09))\n 127 | Store (SM10, Index(TEMP, 0x0A))\n 128 | Store (SM11, Index(TEMP, 0x0B))\n 129 | Store (SM12, Index(TEMP, 0x0C))\n 130 | Store (SM13, Index(TEMP, 0x0D))\n 131 | Store (SM14, Index(TEMP, 0x0E))\n 132 | Store (SM15, Index(TEMP, 0x0F))\n 133 | Store (SM16, Index(TEMP, 0x10))\n 134 | Store (SM17, Index(TEMP, 0x11))\n 135 | Store (SM18, Index(TEMP, 0x12))\n 136 | Store (SM19, Index(TEMP, 0x13))\n 137 | Store (SM20, Index(TEMP, 0x14))\n 138 | Store (SM21, Index(TEMP, 0x15))\n 139 | Store (SM22, Index(TEMP, 0x16))\n 140 | Store (SM23, Index(TEMP, 0x17))\n 141 | Store (SM24, Index(TEMP, 0x18))\n 142 | Store (SM25, Index(TEMP, 0x19))\n 143 | Store (SM26, Index(TEMP, 0x1A))\n 144 | Store (SM27, Index(TEMP, 0x1B))\n 145 | Store (SM28, Index(TEMP, 0x1C))\n 146 | Store (SM29, Index(TEMP, 0x1D))\n 147 | Store (SM30, Index(TEMP, 0x1E))\n 148 | Store (SM31, Index(TEMP, 0x1F))\n 149 | Return (TEMP)\n 150 | }\n 151 | end; 152 | 153 | into device label EC0 insert 154 | begin 155 | Method (WSMD, 1, Serialized)\n 156 | {\n 157 | Name (TEMP, Buffer(0x20) { })\n 158 | Store (Arg0, TEMP)\n 159 | Store (DerefOf(Index(TEMP, 0x00)), SM00)\n 160 | Store (DerefOf(Index(TEMP, 0x01)), SM01)\n 161 | Store (DerefOf(Index(TEMP, 0x02)), SM02)\n 162 | Store (DerefOf(Index(TEMP, 0x03)), SM03)\n 163 | Store (DerefOf(Index(TEMP, 0x04)), SM04)\n 164 | Store (DerefOf(Index(TEMP, 0x05)), SM05)\n 165 | Store (DerefOf(Index(TEMP, 0x06)), SM06)\n 166 | Store (DerefOf(Index(TEMP, 0x07)), SM07)\n 167 | Store (DerefOf(Index(TEMP, 0x08)), SM08)\n 168 | Store (DerefOf(Index(TEMP, 0x09)), SM09)\n 169 | Store (DerefOf(Index(TEMP, 0x0A)), SM10)\n 170 | Store (DerefOf(Index(TEMP, 0x0B)), SM11)\n 171 | Store (DerefOf(Index(TEMP, 0x0C)), SM12)\n 172 | Store (DerefOf(Index(TEMP, 0x0D)), SM13)\n 173 | Store (DerefOf(Index(TEMP, 0x0E)), SM14)\n 174 | Store (DerefOf(Index(TEMP, 0x0F)), SM15)\n 175 | Store (DerefOf(Index(TEMP, 0x10)), SM16)\n 176 | Store (DerefOf(Index(TEMP, 0x11)), SM17)\n 177 | Store (DerefOf(Index(TEMP, 0x12)), SM18)\n 178 | Store (DerefOf(Index(TEMP, 0x13)), SM19)\n 179 | Store (DerefOf(Index(TEMP, 0x14)), SM20)\n 180 | Store (DerefOf(Index(TEMP, 0x15)), SM21)\n 181 | Store (DerefOf(Index(TEMP, 0x16)), SM22)\n 182 | Store (DerefOf(Index(TEMP, 0x17)), SM23)\n 183 | Store (DerefOf(Index(TEMP, 0x18)), SM24)\n 184 | Store (DerefOf(Index(TEMP, 0x19)), SM25)\n 185 | Store (DerefOf(Index(TEMP, 0x1A)), SM26)\n 186 | Store (DerefOf(Index(TEMP, 0x1B)), SM27)\n 187 | Store (DerefOf(Index(TEMP, 0x1C)), SM28)\n 188 | Store (DerefOf(Index(TEMP, 0x1D)), SM29)\n 189 | Store (DerefOf(Index(TEMP, 0x1E)), SM30)\n 190 | Store (DerefOf(Index(TEMP, 0x1F)), SM31)\n 191 | }\n 192 | end; 193 | 194 | # 195 | # 196 | # 197 | into device label EC0 code_regex BCTL,\s+128 replace_matched 198 | begin 199 | BC00,8,BC01,8,BC02,8,BC03,8,\n 200 | BC04,8,BC05,8,BC06,8,BC07,8,\n 201 | BC08,8,BC09,8,BC10,8,BC11,8,\n 202 | BC12,8,BC13,8,BC14,8,BC15,8 203 | end; 204 | 205 | into device label EC0 insert 206 | begin 207 | Method (RBCT, 0, Serialized)\n 208 | {\n 209 | Name (TEMP, Buffer(0x20) { })\n 210 | Store (BC00, Index(TEMP, 0x00))\n 211 | Store (BC01, Index(TEMP, 0x01))\n 212 | Store (BC02, Index(TEMP, 0x02))\n 213 | Store (BC03, Index(TEMP, 0x03))\n 214 | Store (BC04, Index(TEMP, 0x04))\n 215 | Store (BC05, Index(TEMP, 0x05))\n 216 | Store (BC06, Index(TEMP, 0x06))\n 217 | Store (BC07, Index(TEMP, 0x07))\n 218 | Store (BC08, Index(TEMP, 0x08))\n 219 | Store (BC09, Index(TEMP, 0x09))\n 220 | Store (BC10, Index(TEMP, 0x0A))\n 221 | Store (BC11, Index(TEMP, 0x0B))\n 222 | Store (BC12, Index(TEMP, 0x0C))\n 223 | Store (BC13, Index(TEMP, 0x0D))\n 224 | Store (BC14, Index(TEMP, 0x0E))\n 225 | Store (BC15, Index(TEMP, 0x0F))\n 226 | Return (TEMP)\n 227 | }\n 228 | end; 229 | 230 | # 231 | # 232 | # 233 | into device label EC0 code_regex BMNN,\s+72 replace_matched 234 | begin 235 | BM00,8,BM01,8,BM02,8,BM03,8,\n 236 | BM04,8,BM05,8,BM06,8,BM07,8,\n 237 | BM08,8 238 | end; 239 | 240 | into device label EC0 insert 241 | begin 242 | Method (RBMN, 0, Serialized)\n 243 | {\n 244 | Name (TEMP, Buffer(0x20) { })\n 245 | Store (BM00, Index(TEMP, 0x00))\n 246 | Store (BM01, Index(TEMP, 0x01))\n 247 | Store (BM02, Index(TEMP, 0x02))\n 248 | Store (BM03, Index(TEMP, 0x03))\n 249 | Store (BM04, Index(TEMP, 0x04))\n 250 | Store (BM05, Index(TEMP, 0x05))\n 251 | Store (BM06, Index(TEMP, 0x06))\n 252 | Store (BM07, Index(TEMP, 0x07))\n 253 | Store (BM08, Index(TEMP, 0x08))\n 254 | Return (TEMP)\n 255 | }\n 256 | end; 257 | 258 | # 259 | # 260 | # 261 | into device label EC0 code_regex BTDC,\s+64 replace_matched 262 | begin 263 | BT00,8,BT01,8,BT02,8,BT03,8,\n 264 | BT04,8,BT05,8,BT06,8,BT07,8 265 | end; 266 | 267 | into device label EC0 insert 268 | begin 269 | Method (RBTD, 0, Serialized)\n 270 | {\n 271 | Name (TEMP, Buffer(0x20) { })\n 272 | Store (BT00, Index(TEMP, 0x00))\n 273 | Store (BT01, Index(TEMP, 0x01))\n 274 | Store (BT02, Index(TEMP, 0x02))\n 275 | Store (BT03, Index(TEMP, 0x03))\n 276 | Store (BT04, Index(TEMP, 0x04))\n 277 | Store (BT05, Index(TEMP, 0x05))\n 278 | Store (BT06, Index(TEMP, 0x06))\n 279 | Store (BT07, Index(TEMP, 0x07))\n 280 | Return (TEMP)\n 281 | }\n 282 | end; 283 | 284 | # 285 | # 286 | # 287 | into device label EC0 code_regex BDVN,\s+56 replace_matched 288 | begin 289 | BD00,8,BD01,8,BD02,8,BD03,8,\n 290 | BD04,8,BD05,8,BD06,8,BD07,8 291 | end; 292 | 293 | into device label EC0 insert 294 | begin 295 | Method (RBDV, 0, Serialized)\n 296 | {\n 297 | Name (TEMP, Buffer(0x20) { })\n 298 | Store (BD00, Index(TEMP, 0x00))\n 299 | Store (BD01, Index(TEMP, 0x01))\n 300 | Store (BD02, Index(TEMP, 0x02))\n 301 | Store (BD03, Index(TEMP, 0x03))\n 302 | Store (BD04, Index(TEMP, 0x04))\n 303 | Store (BD05, Index(TEMP, 0x05))\n 304 | Store (BD06, Index(TEMP, 0x06))\n 305 | Store (BD07, Index(TEMP, 0x07))\n 306 | Return (TEMP)\n 307 | }\n 308 | end; 309 | 310 | into method label CFUN code_regex SMD0\s+=\s+(.*) replaceall_matched begin WSMD(%1) end; 311 | into method label CFUN code_regex (.*)\s+=\s+SMD0 replaceall_matched begin %1 = RSMD() end; 312 | 313 | into method label BATT code_regex (.*)\s+=\s+\^\^PCI0\.LPCB\.EC0\.BCTL replaceall_matched begin %1 = ^^PCI0.LPCB.EC0.RBCT() end; 314 | 315 | into method label GUBT code_regex (.*)\s+=\s+BTDC replaceall_matched begin %1 = RBTD() end; 316 | into method label BATT code_regex \^\^PCI0\.LPCB\.EC0\.BTDC replaceall_matched begin ^^PCI0.LPCB.EC0.RBTD() end; 317 | 318 | into method label GUBI code_regex (.*)\s+=\s+BMNN replaceall_matched begin %1 = RBMN() end; 319 | into method label BATT code_regex (.*)\s+=\s+\^\^PCI0\.LPCB\.EC0\.BMNN replaceall_matched begin %1 = ^^PCI0.LPCB.EC0.RBMN() end; 320 | 321 | into method label GBMN code_regex (.*)\s+=\s+BDVN replaceall_matched begin %1 = RBDV() end; -------------------------------------------------------------------------------- /bateria/HP-240-G6.txt: -------------------------------------------------------------------------------- 1 | 2 | # Grupo: Hackintosh Brasil 3 | # Autor: Jonas Wander 4 | # 5 | # Compatível com MaciASL (fork Rehabman) 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # HP 240 G6 9 | 10 | # METHOD FOR 16 BITS - CREDITS REHABMAN 11 | into method label B1B2 remove_entry; 12 | into definitionblock code_regex . insert 13 | begin 14 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 15 | end; 16 | 17 | # METHODS FOR MORE THAN 32 BITS - CREDITS REHABMAN 18 | into method label RE1B parent_label EC0 remove_entry; 19 | into method label RECB parent_label EC0 remove_entry; 20 | into device label EC0 insert 21 | begin 22 | Method (RE1B, 1, NotSerialized)\n 23 | {\n 24 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 25 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 26 | Return(BYTE)\n 27 | }\n 28 | Method (RECB, 2, Serialized)\n 29 | // Arg0 - offset in bytes from zero-based EC\n 30 | // Arg1 - size of buffer in bits\n 31 | {\n 32 | ShiftRight(Add(Arg1,7), 3, Arg1)\n 33 | Name(TEMP, Buffer(Arg1) { })\n 34 | Add(Arg0, Arg1, Arg1)\n 35 | Store(0, Local0)\n 36 | While (LLess(Arg0, Arg1))\n 37 | {\n 38 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 39 | Increment(Arg0)\n 40 | Increment(Local0)\n 41 | }\n 42 | Return(TEMP)\n 43 | }\n 44 | end; 45 | 46 | # FIX 16 BITS 47 | 48 | into device label EC0 code_regex BFCC,\s+16 replace_matched begin CC00,8,CC01,8 end; 49 | into device label EC0 code_regex MCUR,\s+16 replace_matched begin UR00,8,UR01,8 end; 50 | into device label EC0 code_regex MBRM,\s+16 replace_matched begin RM00,8,RM01,8 end; 51 | into device label EC0 code_regex MBCV,\s+16 replace_matched begin CV00,8,CV01,8 end; 52 | 53 | into method label UPBI code_regex \(\^\^PCI0.LPCB.EC0.BFCC, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.CC00,\^\^PCI0.LPCB.EC0.CC01), end; 54 | into method label UPBS code_regex \(\^\^PCI0.LPCB.EC0.MCUR, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.UR00,\^\^PCI0.LPCB.EC0.UR01), end; 55 | into method label UPBS code_regex \(\^\^PCI0.LPCB.EC0.MBRM, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.RM00,\^\^PCI0.LPCB.EC0.RM01), end; 56 | into method label UPBS code_regex \(\^\^PCI0.LPCB.EC0.MBCV, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.CV00,\^\^PCI0.LPCB.EC0.CV01), end; 57 | 58 | # FIX MORE THAN 32 BITS 59 | 60 | into device label EC0 code_regex (SMD0,)\s+(256) replace_matched begin SMDZ,%2,//%1%2 end; 61 | 62 | into method label SMWR code_regex SMD0 replaceall_matched begin RECB(0x103,256) end; 63 | -------------------------------------------------------------------------------- /bateria/HP-240-G7.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # https://hackintoshbrasil.com/forum 4 | # 5 | # Compatível com MaciASL (fork Rehabman) 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # HP 240 G7 9 | # 10 | 11 | # METHOD FOR 16 BITS - CREDITS REHABMAN 12 | into method label B1B2 remove_entry; 13 | into definitionblock code_regex . insert 14 | begin 15 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 16 | end; 17 | 18 | # METHOD FOR 32 BITS - CREDITS REHABMAN 19 | into method label B1B4 remove_entry; 20 | into definitionblock code_regex . insert 21 | begin 22 | Method (B1B4, 4, NotSerialized)\n 23 | {\n 24 | Store(Arg3, Local0)\n 25 | Or(Arg2, ShiftLeft(Local0, 8), Local0)\n 26 | Or(Arg1, ShiftLeft(Local0, 8), Local0)\n 27 | Or(Arg0, ShiftLeft(Local0, 8), Local0)\n 28 | Return(Local0)\n 29 | }\n 30 | end; 31 | 32 | # METHODS FOR MORE THAN 32 BITS - CREDITS REHABMAN 33 | into method label RE1B parent_label H_EC remove_entry; 34 | into method label RECB parent_label H_EC remove_entry; 35 | into device label H_EC insert 36 | begin 37 | Method (RE1B, 1, NotSerialized)\n 38 | {\n 39 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 40 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 41 | Return(BYTE)\n 42 | }\n 43 | Method (RECB, 2, Serialized)\n 44 | // Arg0 - offset in bytes from zero-based EC\n 45 | // Arg1 - size of buffer in bits\n 46 | {\n 47 | ShiftRight(Add(Arg1,7), 3, Arg1)\n 48 | Name(TEMP, Buffer(Arg1) { })\n 49 | Add(Arg0, Arg1, Arg1)\n 50 | Store(0, Local0)\n 51 | While (LLess(Arg0, Arg1))\n 52 | {\n 53 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 54 | Increment(Arg0)\n 55 | Increment(Local0)\n 56 | }\n 57 | Return(TEMP)\n 58 | }\n 59 | end; 60 | 61 | # FIX 16 BITS 62 | 63 | into scope label ^^LPCB code_regex FANR,\s+16 replace_matched begin FA00,8,FA01,8 end; 64 | into scope label ^^LPCB code_regex BDC0,\s+16 replace_matched begin BD00,8,BD01,8 end; 65 | into scope label ^^LPCB code_regex BDC1,\s+16 replace_matched begin BD02,8,BD03,8 end; 66 | into scope label ^^LPCB code_regex BFC0,\s+16 replace_matched begin BF00,8,BF01,8 end; 67 | into scope label ^^LPCB code_regex BFC1,\s+16 replace_matched begin BF02,8,BF03,8 end; 68 | into scope label ^^LPCB code_regex BDV0,\s+16 replace_matched begin DV00,8,DV01,8 end; 69 | into scope label ^^LPCB code_regex BDV1,\s+16 replace_matched begin DV02,8,DV03,8 end; 70 | into scope label ^^LPCB code_regex BPR0,\s+16 replace_matched begin BP00,8,BP01,8 end; 71 | into scope label ^^LPCB code_regex BPR1,\s+16 replace_matched begin BP02,8,BP03,8 end; 72 | into scope label ^^LPCB code_regex BRC0,\s+16 replace_matched begin BR00,8,BR01,8 end; 73 | into scope label ^^LPCB code_regex BRC1,\s+16 replace_matched begin BR02,8,BR03,8 end; 74 | into scope label ^^LPCB code_regex BCC0,\s+16 replace_matched begin CC00,8,CC01,8 end; 75 | into scope label ^^LPCB code_regex BCC1,\s+16 replace_matched begin CC02,8,CC03,8 end; 76 | into scope label ^^LPCB code_regex CV01,\s+16 replace_matched begin CV00,8,CV01,8 end; 77 | into scope label ^^LPCB code_regex CV02,\s+16 replace_matched begin CV02,8,CV03,8 end; 78 | into scope label ^^LPCB code_regex CV03,\s+16 replace_matched begin CV04,8,CV05,8 end; 79 | into scope label ^^LPCB code_regex CV04,\s+16 replace_matched begin CV06,8,CV07,8 end; 80 | into scope label ^^LPCB code_regex CV11,\s+16 replace_matched begin CV10,8,CV11,8 end; 81 | into scope label ^^LPCB code_regex CV12,\s+16 replace_matched begin CV12,8,CV13,8 end; 82 | into scope label ^^LPCB code_regex CV13,\s+16 replace_matched begin CV14,8,CV15,8 end; 83 | into scope label ^^LPCB code_regex CV14,\s+16 replace_matched begin CV16,8,CV17,8 end; 84 | into scope label ^^LPCB code_regex HPBA,\s+16 replace_matched begin BA00,8,BA01,8 end; 85 | into scope label ^^LPCB code_regex HPBB,\s+16 replace_matched begin BB00,8,BB01,8 end; 86 | into scope label ^^LPCB code_regex BMD0,\s+16 replace_matched begin D000,8,D001,8 end; 87 | into scope label ^^LPCB code_regex BMD1,\s+16 replace_matched begin D100,8,D101,8 end; 88 | into scope label ^^LPCB code_regex BPV0,\s+16 replace_matched begin V000,8,V001,8 end; 89 | into scope label ^^LPCB code_regex BPV1,\s+16 replace_matched begin V100,8,V101,8 end; 90 | into scope label ^^LPCB code_regex BSN0,\s+16 replace_matched begin BS00,8,BS01,8 end; 91 | into scope label ^^LPCB code_regex BSN1,\s+16 replace_matched begin BS02,8,BS03,8 end; 92 | into scope label ^^LPCB code_regex BCV0,\s+16 replace_matched begin BC00,8,BC01,8 end; 93 | into scope label ^^LPCB code_regex BCV1,\s+16 replace_matched begin BC02,8,BC03,8 end; 94 | into scope label ^^LPCB code_regex CRG0,\s+16 replace_matched begin CR00,8,CR01,8 end; 95 | into scope label ^^LPCB code_regex CRG1,\s+16 replace_matched begin CR02,8,CR03,8 end; 96 | into scope label ^^LPCB code_regex CBT0,\s+16 replace_matched begin CB00,8,CB01,8 end; 97 | into scope label ^^LPCB code_regex CBT1,\s+16 replace_matched begin CB02,8,CB03,8 end; 98 | 99 | into device label H_EC code_regex FANR,\s+16 replace_matched begin FA00,8,FA01,8 end; 100 | into device label H_EC code_regex BDC0,\s+16 replace_matched begin BD00,8,BD01,8 end; 101 | into device label H_EC code_regex BDC1,\s+16 replace_matched begin BD02,8,BD03,8 end; 102 | into device label H_EC code_regex BFC0,\s+16 replace_matched begin BF00,8,BF01,8 end; 103 | into device label H_EC code_regex BFC1,\s+16 replace_matched begin BF02,8,BF03,8 end; 104 | into device label H_EC code_regex BDV0,\s+16 replace_matched begin DV00,8,DV01,8 end; 105 | into device label H_EC code_regex BDV1,\s+16 replace_matched begin DV02,8,DV03,8 end; 106 | into device label H_EC code_regex BPR0,\s+16 replace_matched begin BP00,8,BP01,8 end; 107 | into device label H_EC code_regex BPR1,\s+16 replace_matched begin BP02,8,BP03,8 end; 108 | into device label H_EC code_regex BRC0,\s+16 replace_matched begin BR00,8,BR01,8 end; 109 | into device label H_EC code_regex BRC1,\s+16 replace_matched begin BR02,8,BR03,8 end; 110 | into device label H_EC code_regex BCC0,\s+16 replace_matched begin CC00,8,CC01,8 end; 111 | into device label H_EC code_regex BCC1,\s+16 replace_matched begin CC02,8,CC03,8 end; 112 | into device label H_EC code_regex CV01,\s+16 replace_matched begin CV00,8,CV01,8 end; 113 | into device label H_EC code_regex CV02,\s+16 replace_matched begin CV02,8,CV03,8 end; 114 | into device label H_EC code_regex CV03,\s+16 replace_matched begin CV04,8,CV05,8 end; 115 | into device label H_EC code_regex CV04,\s+16 replace_matched begin CV06,8,CV07,8 end; 116 | into device label H_EC code_regex CV11,\s+16 replace_matched begin CV10,8,CV11,8 end; 117 | into device label H_EC code_regex CV12,\s+16 replace_matched begin CV12,8,CV13,8 end; 118 | into device label H_EC code_regex CV13,\s+16 replace_matched begin CV14,8,CV15,8 end; 119 | into device label H_EC code_regex CV14,\s+16 replace_matched begin CV16,8,CV17,8 end; 120 | into device label H_EC code_regex HPBA,\s+16 replace_matched begin BA00,8,BA01,8 end; 121 | into device label H_EC code_regex HPBB,\s+16 replace_matched begin BB00,8,BB01,8 end; 122 | into device label H_EC code_regex BMD0,\s+16 replace_matched begin D000,8,D001,8 end; 123 | into device label H_EC code_regex BMD1,\s+16 replace_matched begin D100,8,D101,8 end; 124 | into device label H_EC code_regex BPV0,\s+16 replace_matched begin V000,8,V001,8 end; 125 | into device label H_EC code_regex BPV1,\s+16 replace_matched begin V100,8,V101,8 end; 126 | into device label H_EC code_regex BSN0,\s+16 replace_matched begin BS00,8,BS01,8 end; 127 | into device label H_EC code_regex BSN1,\s+16 replace_matched begin BS02,8,BS03,8 end; 128 | into device label H_EC code_regex BCV0,\s+16 replace_matched begin BC00,8,BC01,8 end; 129 | into device label H_EC code_regex BCV1,\s+16 replace_matched begin BC02,8,BC03,8 end; 130 | into device label H_EC code_regex CRG0,\s+16 replace_matched begin CR00,8,CR01,8 end; 131 | into device label H_EC code_regex CRG1,\s+16 replace_matched begin CR02,8,CR03,8 end; 132 | into device label H_EC code_regex CBT0,\s+16 replace_matched begin CB00,8,CB01,8 end; 133 | into device label H_EC code_regex CBT1,\s+16 replace_matched begin CB02,8,CB03,8 end; 134 | 135 | Into method label GBTI code_regex \^\^BDC0 replaceall_matched begin B1B2(\^\^BD00, \^\^BD01) end; 136 | Into method label GBTI code_regex \^\^BFC0 replaceall_matched begin B1B2(\^\^BF00, \^\^BF01) end; 137 | Into method label GBTI code_regex \^\^BDV0 replaceall_matched begin B1B2(\^\^DV00, \^\^DV01) end; 138 | Into method label GBTI code_regex \^\^BPR0 replaceall_matched begin B1B2(\^\^BP00, \^\^BP01) end; 139 | Into method label GBTI code_regex \^\^BCC0 replaceall_matched begin B1B2(\^\^CC00, \^\^CC01) end; 140 | Into method label GBTI code_regex \^\^BMD0 replaceall_matched begin B1B2(\^\^D000, \^\^D001) end; 141 | Into method label GBTI code_regex \^\^BPV0 replaceall_matched begin B1B2(\^\^V000, \^\^V001) end; 142 | Into method label GBTI code_regex \^\^BSN0 replaceall_matched begin B1B2(\^\^BS00, \^\^BS01) end; 143 | Into method label GBTI code_regex \^\^BCV0 replaceall_matched begin B1B2(\^\^BC00, \^\^BC01) end; 144 | Into method label GBTI code_regex \^\^CRG0 replaceall_matched begin B1B2(\^\^CR00, \^\^CR01) end; 145 | Into method label GBTI code_regex \^\^CBT0 replaceall_matched begin B1B2(\^\^CB00, \^\^CB01) end; 146 | Into method label GBTI code_regex \^\^BRC0 replaceall_matched begin B1B2(\^\^BR00, \^\^BR01) end; 147 | 148 | Into method label BTIF code_regex \^\^BFC0 replaceall_matched begin B1B2(\^\^BF00, \^\^BF01) end; 149 | Into method label BTIF code_regex \^\^BFC1 replaceall_matched begin B1B2(\^\^BF02, \^\^BF03) end; 150 | Into method label BTIF code_regex \^\^BDV0 replaceall_matched begin B1B2(\^\^DV00, \^\^DV01) end; 151 | Into method label BTIF code_regex \^\^BDV1 replaceall_matched begin B1B2(\^\^DV02, \^\^DV03) end; 152 | Into method label BTIF code_regex \^\^BMD0 replaceall_matched begin B1B2(\^\^D000, \^\^D001) end; 153 | Into method label BTIF code_regex \^\^BMD1 replaceall_matched begin B1B2(\^\^D100, \^\^D101) end; 154 | Into method label BTIF code_regex \^\^BSN0 replaceall_matched begin B1B2(\^\^BS00, \^\^BS01) end; 155 | Into method label BTIF code_regex \^\^BSN1 replaceall_matched begin B1B2(\^\^BS02, \^\^BS03) end; 156 | 157 | Into method label ITLB code_regex \^\^BFC0 replaceall_matched begin B1B2(\^\^BF00, \^\^BF01) end; 158 | Into method label ITLB code_regex \^\^BFC1 replaceall_matched begin B1B2(\^\^BF02, \^\^BF03) end; 159 | 160 | Into method label _Q09 code_regex \^\^BFC0 replaceall_matched begin B1B2(\^\^BF00, \^\^BF01) end; 161 | Into method label _Q09 code_regex \^\^BRC0 replaceall_matched begin B1B2(\^\^BR00, \^\^BR01) end; 162 | 163 | Into method label BTST code_regex \^\^BPR0 replaceall_matched begin B1B2(\^\^BP00, \^\^BP01) end; 164 | Into method label BTST code_regex \^\^BRC0 replaceall_matched begin B1B2(\^\^BR00, \^\^BR01) end; 165 | Into method label BTST code_regex \^\^BPV0 replaceall_matched begin B1B2(\^\^V000, \^\^V001) end; 166 | 167 | # FIX 32 BITS 168 | 169 | into scope label ^^LPCB code_regex ECTM,\s+32 replace_matched begin TM00,8,TM01,8,TM02,8,TM03,8 end; 170 | into scope label ^^LPCB code_regex BTY0,\s+32 replace_matched begin BT00,8,BT01,8,BT02,8,BT03,8 end; 171 | into scope label ^^LPCB code_regex BTY1,\s+32 replace_matched begin BT00,8,BT01,8,BT02,8,BT03,8 end; 172 | 173 | into device label H_EC code_regex ECTM,\s+32 replace_matched begin TM00,8,TM01,8,TM02,8,TM03,8 end; 174 | into device label H_EC code_regex BTY0,\s+32 replace_matched begin BT00,8,BT01,8,BT02,8,BT03,8 end; 175 | into device label H_EC code_regex BTY1,\s+32 replace_matched begin TY00,8,TY01,8,TY02,8,TY03,8 end; 176 | 177 | Into method label GBTI code_regex \^\^BTY0 replaceall_matched begin B1B4(\^\^BT00, \^\^BT01, \^\^BT02, \^\^BT03) end; 178 | 179 | # FIX MORE THAN 32 BITS 180 | 181 | into scope label ^^LPCB code_regex (BDN0,)\s+(56) replace_matched begin BDNX,%2,//%1%2 end; 182 | into scope label ^^LPCB code_regex (BMN0,)\s+(128) replace_matched begin BMNX,%2,//%1%2 end; 183 | into scope label ^^LPCB code_regex (BCT0,)\s+(128) replace_matched begin BCTX,%2,//%1%2 end; 184 | 185 | into device label H_EC code_regex (BDN0,)\s+(56) replace_matched begin BDNX,%2,//%1%2 end; 186 | into device label H_EC code_regex (BMN0,)\s+(128) replace_matched begin BMNX,%2,//%1%2 end; 187 | into device label H_EC code_regex (BCT0,)\s+(128) replace_matched begin BCTX,%2,//%1%2 end; 188 | 189 | into method label GBTI code_regex \^\^BDN0, replaceall_matched begin RECB(0x10,56), end; 190 | into method label GBTI code_regex \^\^BMN0, replaceall_matched begin RECB(0x20,128), end; 191 | into method label GBTI code_regex \^\^BCT0, replaceall_matched begin RECB(0x30,128), end; 192 | -------------------------------------------------------------------------------- /bateria/HP-Laptop-15-da1xxx.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman) 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # HP Laptop 15-da1xxx 8 | 9 | # METHOD FOR 16 BITS - CREDITS REHABMAN 10 | into method label B1B2 remove_entry; 11 | into definitionblock code_regex . insert 12 | begin 13 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 14 | end; 15 | 16 | # METHODS FOR MORE THAN 32 BITS - CREDITS REHABMAN 17 | into method label RE1B parent_label EC0 remove_entry; 18 | into method label RECB parent_label EC0 remove_entry; 19 | into device label EC0 insert 20 | begin 21 | Method (RE1B, 1, NotSerialized)\n 22 | {\n 23 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 24 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 25 | Return(BYTE)\n 26 | }\n 27 | Method (RECB, 2, Serialized)\n 28 | // Arg0 - offset in bytes from zero-based EC\n 29 | // Arg1 - size of buffer in bits\n 30 | {\n 31 | ShiftRight(Add(Arg1,7), 3, Arg1)\n 32 | Name(TEMP, Buffer(Arg1) { })\n 33 | Add(Arg0, Arg1, Arg1)\n 34 | Store(0, Local0)\n 35 | While (LLess(Arg0, Arg1))\n 36 | {\n 37 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 38 | Increment(Arg0)\n 39 | Increment(Local0)\n 40 | }\n 41 | Return(TEMP)\n 42 | }\n 43 | end; 44 | 45 | # FIX 16 BITS 46 | 47 | into device label EC0 code_regex BRC0,\s+16 replace_matched begin RC00,8,RC01,8 end; 48 | into device label EC0 code_regex BPV0,\s+16 replace_matched begin PV00,8,PV01,8 end; 49 | into device label EC0 code_regex BDV0,\s+16 replace_matched begin DV00,8,DV01,8 end; 50 | into device label EC0 code_regex BDC0,\s+16 replace_matched begin DC00,8,DC01,8 end; 51 | into device label EC0 code_regex BFC0,\s+16 replace_matched begin FC00,8,FC01,8 end; 52 | into device label EC0 code_regex BAC0,\s+16 replace_matched begin AC00,8,AC01,8 end; 53 | into device label EC0 code_regex BFCB,\s+16 replace_matched begin BF00,8,BF01,8 end; 54 | into device label EC0 code_regex BTPB,\s+16 replace_matched begin TP00,8,TP01,8 end; 55 | 56 | Into method label BIFX code_regex \(\^\^EC0.BDC0 replaceall_matched begin (B1B2(\^\^EC0.DC00,\^\^EC0.DC01) end; 57 | into method label BIFX code_regex \(\^\^EC0.BDV0 replaceall_matched begin (B1B2(\^\^EC0.DV00,\^\^EC0.DV01) end; 58 | into method label BIFX code_regex \(\^\^EC0.BFCB replaceall_matched begin (B1B2(\^\^EC0.BF00,\^\^EC0.BF01) end; 59 | into method label BIFX code_regex \(\^\^EC0.BFC0 replaceall_matched begin (B1B2(\^\^EC0.FC00,\^\^EC0.FC01) end; 60 | 61 | into method label _BST code_regex \(\^\^EC0.BAC0 replaceall_matched begin (B1B2(\^\^EC0.AC00,\^\^EC0.AC01) end; 62 | into method label _BST code_regex \^\^EC0.BPV0 replaceall_matched begin B1B2(\^\^EC0.PV00,\^\^EC0.PV01) end; 63 | into method label _BST code_regex \(\^\^EC0.BRC0 replaceall_matched begin (B1B2(\^\^EC0.RC00,\^\^EC0.RC01) end; 64 | into method label _BST code_regex \(\^\^EC0.BDC0 replaceall_matched begin (B1B2(\^\^EC0.DC00,\^\^EC0.DC01) end; 65 | 66 | into method label _BTP code_regex \^\^EC0.BTPB replaceall_matched begin B1B2(\^\^EC0.TP00,\^\^EC0.TP01) end; 67 | 68 | # FIX MORE THAN 32 BITS 69 | 70 | into device label EC0 code_regex (SMD0,)\s+(256) replace_matched begin SMDZ,%2,//%1%2 end; 71 | 72 | into method label ESMC code_regex SMD0 replaceall_matched begin RECB(0x64,256) end; 73 | 74 | # OTHER PATCHS 75 | 76 | #RehabMan: fixing BAT1._STA logic bug 77 | into method label _STA parent_label BAT1 code_regex ([\s\S]*) replace_matched 78 | begin 79 | If(!ECON) { Return(0xf) }\n 80 | %1 81 | end; 82 | 83 | into device label EC0 code_regex ERIB,\s+16 replace_matched begin ERI0,8,ERI1,8 end; 84 | into method label EIDR code_regex Store\s+\(Arg0,\s+ERIB\) replace_matched 85 | begin 86 | Store(Arg0, ERI0) Store(ShiftRight(Arg0, 8), ERI1) 87 | end; 88 | into method label EIDW code_regex Store\s+\(Arg0,\s+ERIB\) replace_matched 89 | begin 90 | Store(Arg0, ERI0) Store(ShiftRight(Arg0, 8), ERI1) 91 | end; 92 | -------------------------------------------------------------------------------- /bateria/HP-PROBOOK-430-G6.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman) 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # HP PROBOOK 430 G6 8 | # 9 | 10 | # METHOD FOR 16 BITS - CREDITS REHABMAN 11 | into method label B1B2 remove_entry; 12 | into definitionblock code_regex . insert 13 | begin 14 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 15 | end; 16 | 17 | # FIX 16 BITS 18 | 19 | into device label EC0 code_regex BDC,\s+16 replace_matched begin BDC0,8,BDC1,8 end; 20 | into device label EC0 code_regex BFC,\s+16 replace_matched begin BFC0,8,BFC1,8 end; 21 | into device label EC0 code_regex BRTE,\s+16 replace_matched begin TE00,8,TE01,8 end; 22 | into device label EC0 code_regex BME,\s+16 replace_matched begin BME0,8,BME1,8 end; 23 | into device label EC0 code_regex BDV,\s+16 replace_matched begin BDV0,8,BDV1,8 end; 24 | into device label EC0 code_regex BCV1,\s+16 replace_matched begin V100,8,V101,8 end; 25 | into device label EC0 code_regex BATE,\s+16 replace_matched begin BA00,8,BA01,8 end; 26 | into device label EC0 code_regex BPR,\s+16 replace_matched begin BPR0,8,BPR1,8 end; 27 | into device label EC0 code_regex BCR,\s+16 replace_matched begin BCR0,8,BCR1,8 end; 28 | into device label EC0 code_regex BRC,\s+16 replace_matched begin BRC0,8,BRC1,8 end; 29 | into device label EC0 code_regex BCC,\s+16 replace_matched begin BCC0,8,BCC1,8 end; 30 | into device label EC0 code_regex BPV,\s+16 replace_matched begin BPV0,8,BPV1,8 end; 31 | into device label EC0 code_regex BCV2,\s+16 replace_matched begin V200,8,V201,8 end; 32 | into device label EC0 code_regex BCV3,\s+16 replace_matched begin V300,8,V301,8 end; 33 | into device label EC0 code_regex BCV4,\s+16 replace_matched begin V400,8,V401,8 end; 34 | into device label EC0 code_regex BATF,\s+16 replace_matched begin TF00,8,TF01,8 end; 35 | into device label EC0 code_regex BSTS,\s+16 replace_matched begin TS00,8,TS01,8 end; 36 | into device label EC0 code_regex BSN,\s+16 replace_matched begin BSN0,8,BSN1,8 end; 37 | into device label EC0 code_regex BDAT,\s+16 replace_matched begin AT00,8,AT01,8 end; 38 | into device label EC0 code_regex CBT,\s+16 replace_matched begin CBT0,8,CBT1,8 end; 39 | into device label EC0 code_regex ACPR,\s+16 replace_matched begin PR00,8,PR01,8 end; 40 | into device label EC0 code_regex MAXC,\s+16 replace_matched begin XC00,8,XC01,8 end; 41 | 42 | into method label BTIF code_regex \(BDC replaceall_matched begin (B1B2(BDC0,BDC1) end; 43 | into method label BTIF code_regex \(BFC replaceall_matched begin (B1B2(BFC0,BFC1) end; 44 | into method label BTIF code_regex \(BDV replaceall_matched begin (B1B2(BDV0,BDV1) end; 45 | into method label BTIF code_regex \(BSN replaceall_matched begin (B1B2(BSN0,BSN1) end; 46 | into method label BTIF code_regex \(BDAT replaceall_matched begin (B1B2(AT00,AT01) end; 47 | 48 | into method label BTIX code_regex \(BDC replaceall_matched begin (B1B2(BDC0,BDC1) end; 49 | into method label BTIX code_regex \(BFC replaceall_matched begin (B1B2(BFC0,BFC1) end; 50 | into method label BTIX code_regex \(BDV replaceall_matched begin (B1B2(BDV0,BDV1) end; 51 | into method label BTIX code_regex \(BCC replaceall_matched begin (B1B2(BCC0,BCC1) end; 52 | into method label BTIX code_regex \(BSN replaceall_matched begin (B1B2(BSN0,BSN1) end; 53 | into method label BTIX code_regex \(BDAT replaceall_matched begin (B1B2(AT00,AT01) end; 54 | 55 | into method label GBTI code_regex \(BDC replaceall_matched begin (B1B2(BDC0,BDC1) end; 56 | into method label GBTI code_regex \(BFC replaceall_matched begin (B1B2(BFC0,BFC1) end; 57 | into method label GBTI code_regex \(BRTE replaceall_matched begin (B1B2(TE00,TE01) end; 58 | into method label GBTI code_regex \(BME replaceall_matched begin (B1B2(BME0,BME1) end; 59 | into method label GBTI code_regex \(BDV replaceall_matched begin (B1B2(BDV0,BDV1) end; 60 | into method label GBTI code_regex \(BCV1 replaceall_matched begin (B1B2(V100,V101) end; 61 | into method label GBTI code_regex \(BATE replaceall_matched begin (B1B2(BA00,BA01) end; 62 | into method label GBTI code_regex \(BPR replaceall_matched begin (B1B2(BPR0,BPR1) end; 63 | into method label GBTI code_regex \(BCR replaceall_matched begin (B1B2(BCR0,BCR1) end; 64 | into method label GBTI code_regex \(BRC, replaceall_matched begin (B1B2(BRC0,BRC1), end; 65 | into method label GBTI code_regex \(BCC, replaceall_matched begin (B1B2(BCC0,BCC1), end; 66 | into method label GBTI code_regex \(BPV, replaceall_matched begin (B1B2(BPV0,BPV1), end; 67 | into method label GBTI code_regex \(BCV2, replaceall_matched begin (B1B2(V200,V201), end; 68 | into method label GBTI code_regex \(BCV3, replaceall_matched begin (B1B2(V300,V301), end; 69 | into method label GBTI code_regex \(BCV4, replaceall_matched begin (B1B2(V400,V401), end; 70 | into method label GBTI code_regex \(BATF replaceall_matched begin (B1B2(TF00,TF01) end; 71 | into method label GBTI code_regex \(BSTS, replaceall_matched begin (B1B2(TS00,TS01), end; 72 | into method label GBTI code_regex \(BSN replaceall_matched begin (B1B2(BSN0,BSN1) end; 73 | into method label GBTI code_regex BDAT replaceall_matched begin B1B2(AT00,AT01) end; 74 | into method label GBTI code_regex CBT replaceall_matched begin B1B2(CBT0,CBT1) end; 75 | 76 | into method label GBAW code_regex \(BDC replaceall_matched begin (B1B2(BDC0,BDC1) end; 77 | into method label GBAW code_regex \(BDV replaceall_matched begin (B1B2(BDV0,BDV1) end; 78 | 79 | into method label BTST code_regex \(BPR replaceall_matched begin (B1B2(BPR0,BPR1) end; 80 | into method label BTST code_regex \(BRC replaceall_matched begin (B1B2(BRC0,BRC1) end; 81 | into method label BTST code_regex \(BPV replaceall_matched begin (B1B2(BPV0,BPV1) end; 82 | 83 | into method label ITLB code_regex \(BFC replaceall_matched begin (B1B2(BFC0,BFC1) end; 84 | 85 | into method label GCGC code_regex \\_SB.PCI0.LPCB.EC0.BPR replaceall_matched begin B1B2(\\_SB.PCI0.LPCB.EC0.BPR0, \\_SB.PCI0.LPCB.EC0.BPR1) end; 86 | 87 | into method label GACW code_regex ACPR replaceall_matched begin B1B2(PR00,PR01) end; 88 | 89 | into method label GBTC code_regex MAXC replaceall_matched begin B1B2(XC00,XC01) end; 90 | 91 | into method label SBTC code_regex MAXC replaceall_matched begin B1B2(XC00,XC01) end; 92 | -------------------------------------------------------------------------------- /bateria/HP-PROBOOK-6560B.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman) 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # HP PROBOOK 6560b 8 | # HP PROBOOK 640 G1 9 | # HP EliteBook 8460p 10 | 11 | # METHOD FOR 16 BITS - CREDITS REHABMAN 12 | into method label B1B2 remove_entry; 13 | into definitionblock code_regex . insert 14 | begin 15 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 16 | end; 17 | 18 | # METHOD FOR 32 BITS - CREDITS REHABMAN 19 | into method label B1B4 remove_entry; 20 | into definitionblock code_regex . insert 21 | begin 22 | Method (B1B4, 4, NotSerialized)\n 23 | {\n 24 | Store(Arg3, Local0)\n 25 | Or(Arg2, ShiftLeft(Local0, 8), Local0)\n 26 | Or(Arg1, ShiftLeft(Local0, 8), Local0)\n 27 | Or(Arg0, ShiftLeft(Local0, 8), Local0)\n 28 | Return(Local0)\n 29 | }\n 30 | end; 31 | 32 | #FIX 16 BITS 33 | 34 | into device label EC0 code_regex BDC,\s+16 replace_matched begin BDC0,8,BDC1,8 end; 35 | into device label EC0 code_regex BFC,\s+16 replace_matched begin BFC0,8,BFC1,8 end; 36 | into device label EC0 code_regex BRTE,\s+16 replace_matched begin TE00,8,TE01,8 end; 37 | into device label EC0 code_regex BME,\s+16 replace_matched begin BME0,8,BME1,8 end; 38 | into device label EC0 code_regex BDV,\s+16 replace_matched begin BDV0,8,BDV1,8 end; 39 | into device label EC0 code_regex BCV1,\s+16 replace_matched begin V100,8,V101,8 end; 40 | into device label EC0 code_regex BATE,\s+16 replace_matched begin BA00,8,BA01,8 end; 41 | into device label EC0 code_regex BPR,\s+16 replace_matched begin BPR0,8,BPR1,8 end; 42 | into device label EC0 code_regex BCR,\s+16 replace_matched begin BCR0,8,BCR1,8 end; 43 | into device label EC0 code_regex BRC,\s+16 replace_matched begin BRC0,8,BRC1,8 end; 44 | into device label EC0 code_regex BCC,\s+16 replace_matched begin BCC0,8,BCC1,8 end; 45 | into device label EC0 code_regex BPV,\s+16 replace_matched begin BPV0,8,BPV1,8 end; 46 | into device label EC0 code_regex BCV2,\s+16 replace_matched begin V200,8,V201,8 end; 47 | into device label EC0 code_regex BCV3,\s+16 replace_matched begin V300,8,V301,8 end; 48 | into device label EC0 code_regex BCV4,\s+16 replace_matched begin V400,8,V401,8 end; 49 | into device label EC0 code_regex BATF,\s+16 replace_matched begin TF00,8,TF01,8 end; 50 | into device label EC0 code_regex BSTS,\s+16 replace_matched begin TS00,8,TS01,8 end; 51 | into device label EC0 code_regex BSN,\s+16 replace_matched begin BSN0,8,BSN1,8 end; 52 | into device label EC0 code_regex BDAT,\s+16 replace_matched begin AT00,8,AT01,8 end; 53 | into device label EC0 code_regex CBT,\s+16 replace_matched begin CBT0,8,CBT1,8 end; 54 | into device label EC0 code_regex MAXC,\s+16 replace_matched begin XC00,8,XC01,8 end; 55 | into device label EC0 code_regex CPWR,\s+16 replace_matched begin WR00,8,WR01,8 end; 56 | into device label EC0 code_regex CVLT,\s+16 replace_matched begin LT00,8,LT01,8 end; 57 | into device label EC0 code_regex CCUR,\s+16 replace_matched begin CC00,8,CC01,8 end; 58 | 59 | into method label BTIF code_regex \(BFC replaceall_matched begin (B1B2(BFC0,BFC1) end; 60 | into method label BTIF code_regex \(BDV replaceall_matched begin (B1B2(BDV0,BDV1) end; 61 | into method label BTIF code_regex \(BSN replaceall_matched begin (B1B2(BSN0,BSN1) end; 62 | into method label BTIF code_regex \(BDAT replaceall_matched begin (B1B2(AT00,AT01) end; 63 | 64 | into method label BTST code_regex \(BPR replaceall_matched begin (B1B2(BPR0,BPR1) end; 65 | into method label BTST code_regex \(BRC replaceall_matched begin (B1B2(BRC0,BRC1) end; 66 | into method label BTST code_regex \(BPV replaceall_matched begin (B1B2(BPV0,BPV1) end; 67 | 68 | into method label GBTC code_regex MAXC replaceall_matched begin B1B2(XC00,XC01) end; 69 | 70 | into method label SBTC code_regex MAXC replaceall_matched begin B1B2(XC00,XC01) end; 71 | 72 | into method label GBTI code_regex \(BDC, replaceall_matched begin (B1B2(BDC0,BDC1), end; 73 | into method label GBTI code_regex \(BFC, replaceall_matched begin (B1B2(BFC0,BFC1), end; 74 | into method label GBTI code_regex \(BRTE replaceall_matched begin (B1B2(TE00,TE01) end; 75 | into method label GBTI code_regex \(BME, replaceall_matched begin (B1B2(BME0,BME1), end; 76 | into method label GBTI code_regex \(BDV replaceall_matched begin (B1B2(BDV0,BDV1) end; 77 | into method label GBTI code_regex \(BCV1 replaceall_matched begin (B1B2(V100,V101) end; 78 | into method label GBTI code_regex \(BPR replaceall_matched begin (B1B2(BPR0,BPR1) end; 79 | into method label GBTI code_regex \(BCR, replaceall_matched begin (B1B2(BCR0,BCR1), end; 80 | into method label GBTI code_regex \(BRC, replaceall_matched begin (B1B2(BRC0,BRC1), end; 81 | into method label GBTI code_regex \(BCC, replaceall_matched begin (B1B2(BCC0,BCC1), end; 82 | into method label GBTI code_regex \(BPV, replaceall_matched begin (B1B2(BPV0,BPV1), end; 83 | into method label GBTI code_regex \(BCV2, replaceall_matched begin (B1B2(V200,V201), end; 84 | into method label GBTI code_regex \(BCV3, replaceall_matched begin (B1B2(V300,V301), end; 85 | into method label GBTI code_regex \(BCV4, replaceall_matched begin (B1B2(V400,V401), end; 86 | into method label GBTI code_regex \(BATF replaceall_matched begin (B1B2(TF00,TF01) end; 87 | into method label GBTI code_regex \(BSTS, replaceall_matched begin (B1B2(TS00,TS01), end; 88 | into method label GBTI code_regex \(BSN replaceall_matched begin (B1B2(BSN0,BSN1) end; 89 | into method label GBTI code_regex \(CBT, replaceall_matched begin (B1B2(CBT0,CBT1), end; 90 | into method label GBTI code_regex \(BATE replaceall_matched begin (B1B2(BA00,BA01) end; 91 | into method label GBTI code_regex BDAT replaceall_matched begin B1B2(AT00,AT01) end; 92 | 93 | into method label GPMC code_regex \^\^PCI0.LPCB.EC0.CPWR replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.WR00, ^^PCI0.LPCB.EC0.WR01) end; 94 | into method label GPMC code_regex \^\^PCI0.LPCB.EC0.CVLT replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.LT00, ^^PCI0.LPCB.EC0.LT01) end; 95 | into method label GPMC code_regex \^\^PCI0.LPCB.EC0.CCUR replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CC00, ^^PCI0.LPCB.EC0.CC01) end; 96 | 97 | #FIX 32 BITS 98 | 99 | into device label EC0 code_regex PMCD,\s+32 replace_matched begin PM00,8,PM01,8,PM02,8,PM03,8 end; 100 | 101 | into method label HPMC code_regex \^\^PCI0.LPCB.EC0.PMCD replaceall_matched begin B1B4(^^PCI0.LPCB.EC0.PM00, ^^PCI0.LPCB.EC0.PM01, ^^PCI0.LPCB.EC0.PM02, ^^PCI0.LPCB.EC0.PM03) end; 102 | 103 | #Disable BAT1 device 104 | into method label _STA parent_label BAT1 replace_content begin Return (Zero) end; 105 | 106 | #Alternate Fixes 107 | 108 | into method label GPMC code_regex \\_SB.PCI0.LPCB.EC0.CPWR replaceall_matched begin B1B2(\\_SB.PCI0.LPCB.EC0.WR00, \\_SB.PCI0.LPCB.EC0.WR01) end; 109 | into method label GPMC code_regex \\_SB.PCI0.LPCB.EC0.CVLT replaceall_matched begin B1B2(\\_SB.PCI0.LPCB.EC0.LT00, \\_SB.PCI0.LPCB.EC0.LT01) end; 110 | into method label GPMC code_regex \\_SB.PCI0.LPCB.EC0.CCUR replaceall_matched begin B1B2(\\_SB.PCI0.LPCB.EC0.CC00, \\_SB.PCI0.LPCB.EC0.CC01) end; 111 | 112 | into method label HPMC code_regex \\_SB.PCI0.LPCB.EC0.PMCD replaceall_matched begin B1B4(\\_SB.PCI0.LPCB.EC0.PM00, \\_SB.PCI0.LPCB.EC0.PM01, \\_SB.PCI0.LPCB.EC0.PM02, \\_SB.PCI0.LPCB.EC0.PM03) end; 113 | -------------------------------------------------------------------------------- /bateria/Itautec-InfoWay-Note-W7730.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Itautec InfoWay Note W7730 8 | 9 | into device label EC code_regex BDC0,\s+32, replace_matched begin BD01,8,BD02,8,BD03,8,BD04,8, end; 10 | into device label EC code_regex BFC0,\s+32, replace_matched begin BF01,8,BF02,8,BF03,8,BF04,8, end; 11 | into device label EC code_regex BDV0,\s+32, replace_matched begin BV01,8,BV02,8,BV03,8,BV04,8, end; 12 | into device label EC code_regex BST0,\s+32, replace_matched begin BS01,8,BS02,8,BS03,8,BS04,8, end; 13 | into device label EC code_regex BPR0,\s+32, replace_matched begin BP01,8,BP02,8,BP03,8,BP04,8, end; 14 | into device label EC code_regex BRC0,\s+32, replace_matched begin BR01,8,BR02,8,BR03,8,BR04,8, end; 15 | into device label EC code_regex BPV0,\s+32, replace_matched begin BPV1,8,BPV2,8,BPV3,8,BPV4,8, end; 16 | into device label EC code_regex BCW0,\s+32, replace_matched begin BW01,8,BW02,8,BW03,8,BW04,8, end; 17 | into device label EC code_regex BCL0,\s+32, replace_matched begin BC01,8,BC02,8,BC03,8,BC04,8, end; 18 | 19 | into method label UPBI code_regex \(\^\^PCI0\.LPCB\.EC\.BDC0, replaceall_matched begin (B1B4(^^PCI0.LPCB.EC.BD01, ^^PCI0.LPCB.EC.BD02, ^^PCI0.LPCB.EC.BD03, ^^PCI0.LPCB.EC.BD04), end; 20 | into method label WMBB code_regex \(\^\^PCI0\.LPCB\.EC\.BDC0, replaceall_matched begin (B1B4(^^PCI0.LPCB.EC.BD01, ^^PCI0.LPCB.EC.BD02, ^^PCI0.LPCB.EC.BD03, ^^PCI0.LPCB.EC.BD04), end; 21 | into method label UPBI code_regex \(\^\^PCI0\.LPCB\.EC\.BFC0, replaceall_matched begin (B1B4(^^PCI0.LPCB.EC.BF01, ^^PCI0.LPCB.EC.BF02, ^^PCI0.LPCB.EC.BF03, ^^PCI0.LPCB.EC.BF04), end; 22 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC\.BFC0\) replaceall_matched begin B1B4(^^PCI0.LPCB.EC.BF01, ^^PCI0.LPCB.EC.BF02, ^^PCI0.LPCB.EC.BF03, ^^PCI0.LPCB.EC.BF04)) end; 23 | into method label WMBB code_regex \(\^\^PCI0\.LPCB\.EC\.BFC0, replaceall_matched begin (B1B4(^^PCI0.LPCB.EC.BF01, ^^PCI0.LPCB.EC.BF02, ^^PCI0.LPCB.EC.BF03, ^^PCI0.LPCB.EC.BF04), end; 24 | into method label UPBI code_regex \(\^\^PCI0\.LPCB\.EC\.BDV0, replaceall_matched begin (B1B4(^^PCI0.LPCB.EC.BV01, ^^PCI0.LPCB.EC.BV02, ^^PCI0.LPCB.EC.BV03, ^^PCI0.LPCB.EC.BV04), end; 25 | into method label UPBS code_regex \(\^\^PCI0\.LPCB\.EC\.BST0, replaceall_matched begin (B1B4(^^PCI0.LPCB.EC.BS01, ^^PCI0.LPCB.EC.BS02, ^^PCI0.LPCB.EC.BS03, ^^PCI0.LPCB.EC.BS04), end; 26 | into method label UPBS code_regex \(\^\^PCI0\.LPCB\.EC\.BPR0, replaceall_matched begin (B1B4(^^PCI0.LPCB.EC.BP01, ^^PCI0.LPCB.EC.BP02, ^^PCI0.LPCB.EC.BP03, ^^PCI0.LPCB.EC.BP04), end; 27 | into method label UPBS code_regex \(\^\^PCI0\.LPCB\.EC\.BRC0, replaceall_matched begin (B1B4(^^PCI0.LPCB.EC.BR01, ^^PCI0.LPCB.EC.BR02, ^^PCI0.LPCB.EC.BR03, ^^PCI0.LPCB.EC.BR04), end; 28 | into method label UPBS code_regex \(\^\^PCI0\.LPCB\.EC\.BPV0, replaceall_matched begin (B1B4(^^PCI0.LPCB.EC.BPV1, ^^PCI0.LPCB.EC.BPV2, ^^PCI0.LPCB.EC.BPV3, ^^PCI0.LPCB.EC.BPV4), end; 29 | into method label UPBI code_regex \(\^\^PCI0\.LPCB\.EC\.BCW0, replaceall_matched begin (B1B4(^^PCI0.LPCB.EC.BW01, ^^PCI0.LPCB.EC.BW02, ^^PCI0.LPCB.EC.BW03, ^^PCI0.LPCB.EC.BW04), end; 30 | into method label UPBI code_regex \(\^\^PCI0\.LPCB\.EC\.BCL0, replaceall_matched begin (B1B4(^^PCI0.LPCB.EC.BC01, ^^PCI0.LPCB.EC.BC02, ^^PCI0.LPCB.EC.BC03, ^^PCI0.LPCB.EC.BC04), end; 31 | 32 | # Utility Method by Rehabman 33 | 34 | into method label B1B4 remove_entry; 35 | into definitionblock code_regex . insert 36 | begin 37 | Method (B1B4, 4, NotSerialized)\n 38 | {\n 39 | Store(Arg3, Local0)\n 40 | Or(Arg2, ShiftLeft(Local0, 8), Local0)\n 41 | Or(Arg1, ShiftLeft(Local0, 8), Local0)\n 42 | Or(Arg0, ShiftLeft(Local0, 8), Local0)\n 43 | Return(Local0)\n 44 | }\n 45 | end; 46 | 47 | # Patch Mutex by Rehabman 48 | 49 | # 2x as there is some sort of MaciASL bug... 50 | # (code_regex_not seems broken) 51 | #into_all all code_regex_not Mutex\s+\([^,]*,\s+0x00\) code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 52 | #into_all all code_regex_not Mutex\s+\([^,]*,\s+0x00\) code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 53 | 54 | # 10x as workaround for MaciASL bug... 55 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 56 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 57 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 58 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 59 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 60 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 61 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 62 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 63 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 64 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 65 | -------------------------------------------------------------------------------- /bateria/LG-A530.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # LG A530 8 | 9 | into device label EC0 code_regex DSCP,\s+16, replace_matched begin CPS1,8,CPS2,8, end; 10 | into device label EC0 code_regex LACP,\s+16, replace_matched begin CPA1,8,CPA2,8, end; 11 | into device label EC0 code_regex DSVG,\s+16, replace_matched begin GVS1,8,GVS2,8, end; 12 | into device label EC0 code_regex MCUR,\s+16, replace_matched begin RUC1,8,RUC2,8, end; 13 | into device label EC0 code_regex MBRM,\s+16, replace_matched begin MRB1,8,MRB2,8, end; 14 | into device label EC0 code_regex MBCV,\s+16, replace_matched begin VCB1,8,VCB2,8, end; 15 | 16 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC0\.DSCP replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CPS1, ^^PCI0.LPCB.EC0.CPS2) end; 17 | 18 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC0\.DSCP replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CPS1, ^^PCI0.LPCB.EC0.CPS2) end; 19 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC0\.LACP replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CPA1, ^^PCI0.LPCB.EC0.CPA2) end; 20 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC0\.DSVG replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.GVS1, ^^PCI0.LPCB.EC0.GVS2) end; 21 | 22 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC0\.MCUR replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.RUC1, ^^PCI0.LPCB.EC0.RUC2) end; 23 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC0\.MBRM replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.MRB1, ^^PCI0.LPCB.EC0.MRB2) end; 24 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC0\.MBCV replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.VCB1, ^^PCI0.LPCB.EC0.VCB2) end; 25 | 26 | # 27 | # 28 | # 29 | into method label B1B2 remove_entry; 30 | into scope label _SB insert 31 | begin 32 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 33 | end; -------------------------------------------------------------------------------- /bateria/LG-Gram-15Z980-G.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # LG Gram 15Z980-G 8 | 9 | into scope label \_SB.PCI0.LPCB.H_EC code_regex BDC,\s+16 replace_matched begin BBC0,8,BBC1,8 end; 10 | into scope label \_SB.PCI0.LPCB.H_EC code_regex BFC,\s+16 replace_matched begin BBF0,8,BBF1,8 end; 11 | into scope label \_SB.PCI0.LPCB.H_EC code_regex BDV,\s+16 replace_matched begin BBV0,8,BBV1,8 end; 12 | into scope label \_SB.PCI0.LPCB.H_EC code_regex BSN,\s+16 replace_matched begin BBN0,8,BBN1,8 end; 13 | into scope label \_SB.PCI0.LPCB.H_EC code_regex BPR,\s+16 replace_matched begin BBP0,8,BBP1,8 end; 14 | into scope label \_SB.PCI0.LPCB.H_EC code_regex BRC,\s+16 replace_matched begin BBR0,8,BBR1,8 end; 15 | into scope label \_SB.PCI0.LPCB.H_EC code_regex BPV,\s+16 replace_matched begin BBB0,8,BBB1,8 end; 16 | into scope label \_SB.PCI0.LPCB.H_EC code_regex CYC1,\s+16 replace_matched begin YYC0,8,YYC1,8 end; 17 | 18 | into method label XBIF code_regex =\sBDC replaceall_matched begin = B1B2 (BBC0,BBC1) end; 19 | into method label XBIF code_regex =\sBFC replaceall_matched begin = B1B2 (BBF0,BBF1) end; 20 | into method label XBST code_regex =\sBFC replaceall_matched begin = B1B2 (BBF0,BBF1) end; 21 | into method label XBIF code_regex =\sBDV replaceall_matched begin = B1B2 (BBV0,BBV1) end; 22 | into method label XBIF code_regex =\sBSN replaceall_matched begin = B1B2 (BBN0,BBN1) end; 23 | into method label XBST code_regex =\sBPR replaceall_matched begin = B1B2 (BBP0,BBP1) end; 24 | into method label XBST code_regex =\sBRC replaceall_matched begin = B1B2 (BBR0,BBR1) end; 25 | into method label XBST code_regex =\sBPV replaceall_matched begin = B1B2 (BBB0,BBB1) end; 26 | into method label XBIX code_regex =\sCYC1 replaceall_matched begin = B1B2 (YYC0,YYC1) end; 27 | 28 | into method label B1B2 remove_entry; 29 | into definitionblock code_regex . insert 30 | begin 31 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 32 | end; 33 | 34 | # 35 | # BMFG, 72, 36 | # 37 | into scope label \_SB.PCI0.LPCB.H_EC code_regex BMFG,\s+(72) replace_matched begin BMFX, %1 end; 38 | into method label XBIF code_regex BMFG replaceall_matched begin RECB(0x9E, 0x48) end; 39 | 40 | into method label RE1B remove_entry; 41 | into scope label \_SB.PCI0.LPCB.H_EC insert 42 | begin 43 | Method (RE1B, 1, NotSerialized)\n 44 | {\n 45 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 46 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 47 | Return(BYTE)\n 48 | }\n 49 | end; 50 | 51 | into method label RECB remove_entry; 52 | into scope label \_SB.PCI0.LPCB.H_EC insert 53 | begin 54 | Method (RECB, 2, Serialized)\n 55 | {\n 56 | ShiftRight(Add(Arg1,7), 3, Arg1)\n 57 | Name(TEMP, Buffer(Arg1) { })\n 58 | Add(Arg0, Arg1, Arg1)\n 59 | Store(0, Local0)\n 60 | While (LLess(Arg0, Arg1))\n 61 | {\n 62 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 63 | Increment(Arg0)\n 64 | Increment(Local0)\n 65 | }\n 66 | Return(TEMP)\n 67 | }\n 68 | end; 69 | 70 | # 71 | # Mutex 72 | # 73 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 74 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 75 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 76 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 77 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 78 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 79 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 80 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 81 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; 82 | into_all all code_regex Mutex\s+\(([^,]*),\s+[^)]*\) replaceall_matched begin Mutex(%1, 0) end; -------------------------------------------------------------------------------- /bateria/Lenovo-G40-70.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Lenovo G40-70 8 | 9 | into device label EC0 code_regex B1RC,\s+16, replace_matched begin BRC1,8,BRC2,8, end; 10 | into device label EC0 code_regex B1FV,\s+16, replace_matched begin BFV1,8,BFV2,8, end; 11 | into device label EC0 code_regex B1DV,\s+16, replace_matched begin BDV1,8,BDV2,8, end; 12 | into device label EC0 code_regex B1DC,\s+16, replace_matched begin BDC1,8,BDC2,8, end; 13 | into device label EC0 code_regex B1FC,\s+16, replace_matched begin BFC1,8,BFC2,8, end; 14 | into device label EC0 code_regex B1AC,\s+16, replace_matched begin BAC1,8,BAC2,8, end; 15 | 16 | into method label _BST code_regex \(B1RC, replaceall_matched begin (B1B2(BRC1,BRC2), end; 17 | into method label _BST code_regex \(B1FV, replaceall_matched begin (B1B2(BFV1,BFV2), end; 18 | into method label _BIF code_regex \(B1DV, replaceall_matched begin (B1B2(BDV1,BDV2), end; 19 | into method label _BIF code_regex \(B1DC, replaceall_matched begin (B1B2(BDC1,BDC2), end; 20 | into method label _BIF code_regex \(B1FC, replaceall_matched begin (B1B2(BFC1,BFC2), end; 21 | into method label _BST code_regex \(B1AC, replaceall_matched begin (B1B2(BAC1,BAC2), end; 22 | 23 | # 24 | # 25 | # 26 | into method label B1B2 remove_entry; 27 | into definitionblock code_regex . insert 28 | begin 29 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 30 | end; -------------------------------------------------------------------------------- /bateria/Lenovo-G40-80.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman) 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # Lenovo G40-80 8 | 9 | # METHOD FOR 16 BITS - CREDITS REHABMAN 10 | into method label B1B2 remove_entry; 11 | into definitionblock code_regex . insert 12 | begin 13 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 14 | end; 15 | 16 | # METHODS FOR MORE THAN 32 BITS - CREDITS REHABMAN 17 | into method label RE1B parent_label EC0 remove_entry; 18 | into method label RECB parent_label EC0 remove_entry; 19 | into device label EC0 insert 20 | begin 21 | Method (RE1B, 1, NotSerialized)\n 22 | {\n 23 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 24 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 25 | Return(BYTE)\n 26 | }\n 27 | Method (RECB, 2, Serialized)\n 28 | // Arg0 - offset in bytes from zero-based EC\n 29 | // Arg1 - size of buffer in bits\n 30 | {\n 31 | ShiftRight(Add(Arg1,7), 3, Arg1)\n 32 | Name(TEMP, Buffer(Arg1) { })\n 33 | Add(Arg0, Arg1, Arg1)\n 34 | Store(0, Local0)\n 35 | While (LLess(Arg0, Arg1))\n 36 | {\n 37 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 38 | Increment(Arg0)\n 39 | Increment(Local0)\n 40 | }\n 41 | Return(TEMP)\n 42 | }\n 43 | end; 44 | 45 | # FIX 16 BITS 46 | 47 | into device label EC0 code_regex B1RC,\s+16 replace_matched begin RC00,8,RC01,8 end; 48 | into device label EC0 code_regex B1FV,\s+16 replace_matched begin FV00,8,FV01,8 end; 49 | into device label EC0 code_regex B1DV,\s+16 replace_matched begin DV00,8,DV01,8 end; 50 | into device label EC0 code_regex B1DC,\s+16 replace_matched begin DC00,8,DC01,8 end; 51 | into device label EC0 code_regex B1FC,\s+16 replace_matched begin FC00,8,FC01,8 end; 52 | into device label EC0 code_regex B1AC,\s+16 replace_matched begin AC00,8,AC01,8 end; 53 | 54 | into method label SMTF code_regex \(B1RC, replaceall_matched begin (B1B2(RC00,RC01), end; 55 | into method label SMTF code_regex \(B1FV, replaceall_matched begin (B1B2(FV00,FV01), end; 56 | into method label SMTF code_regex \(B1FC, replaceall_matched begin (B1B2(FC00,FC01), end; 57 | into method label SMTF code_regex \(B1AC, replaceall_matched begin (B1B2(AC00,AC01), end; 58 | 59 | into method label _BST code_regex \(B1RC, replaceall_matched begin (B1B2(RC00,RC01), end; 60 | into method label _BST code_regex \(B1FV, replaceall_matched begin (B1B2(FV00,FV01), end; 61 | into method label _BST code_regex \(B1AC, replaceall_matched begin (B1B2(AC00,AC01), end; 62 | 63 | into method label _BIF code_regex \(B1DV, replaceall_matched begin (B1B2(DV00,DV01), end; 64 | into method label _BIF code_regex \(B1DC, replaceall_matched begin (B1B2(DC00,DC01), end; 65 | into method label _BIF code_regex \(B1FC replaceall_matched begin (B1B2(FC00,FC01) end; 66 | 67 | # FIX MORE THAN 32 BITS 68 | 69 | into device label EC0 code_regex (FWBT,)\s+(64) replace_matched begin FWBZ,%2,//%1%2 end; 70 | into device label EC0 code_regex (SMDA,)\s+(256) replace_matched begin SMDZ,%2,//%1%2 end; 71 | 72 | into method label MHIF code_regex \(FWBT, replaceall_matched begin (RECB(0x14,64), end; 73 | into method label MHPF code_regex SMDA replaceall_matched begin RECB(0x64,256) end; 74 | 75 | into method label GBID code_regex \(FWBT, replaceall_matched begin (RECB(0x14,64), end; 76 | -------------------------------------------------------------------------------- /bateria/Lenovo-G400S.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Baseado no Lenovo-y580 by RehabMan. 8 | # 9 | # Lenovo G400S 10 | 11 | into device label EC0 code_regex ENIB,\s+16 replace_matched begin ENI0,8,ENI1,8 end; 12 | into device label EC0 code_regex ERIB,\s+16 replace_matched begin ERI0,8,ERI1,8 end; 13 | 14 | into method label _TMP code_regex \\_SB\.PCI0\.LPCB\.EC0\.ENIB\s+=\s+0x8400 replace_matched 15 | begin 16 | Store(0x84, \\_SB.PCI0.LPCB.EC0.ENI1) Store(Zero, \\_SB.PCI0.LPCB.EC0.ENI0) 17 | end; 18 | 19 | into method label FANG code_regex ERIB\s+=\s+Arg0 replace_matched 20 | begin 21 | Store(Arg0, ERI0) Store(ShiftRight(Arg0, 8), ERI1) 22 | end; 23 | 24 | into method label FANW code_regex ERIB\s+=\s+Arg0 replace_matched 25 | begin 26 | Store(Arg0, ERI0) Store(ShiftRight(Arg0, 8), ERI1) 27 | end; 28 | 29 | # 30 | # 31 | # 32 | into device label EC0 code_regex BRC0,\s+16, replace_matched begin CR01,8,CR02,8, end; 33 | into device label EC0 code_regex BPV0,\s+16, replace_matched begin VP01,8,VP02,8, end; 34 | into device label EC0 code_regex BDV0,\s+16, replace_matched begin VD01,8,VD02,8, end; 35 | into device label EC0 code_regex BDC0,\s+16, replace_matched begin CD01,8,CD02,8, end; 36 | into device label EC0 code_regex BFC0,\s+16, replace_matched begin CF01,8,CF02,8, end; 37 | into device label EC0 code_regex BAC0,\s+16, replace_matched begin CA01,8,CA02,8, end; 38 | into device label EC0 code_regex BFCB,\s+16, replace_matched begin BC01,8,BC02,8, end; 39 | into device label EC0 code_regex BTPB,\s+16, replace_matched begin BP01,8,BP02,8, end; 40 | 41 | into method label _BST code_regex \^\^EC0\.BRC0 replaceall_matched begin B1B2(^^EC0.CR01, ^^EC0.CR02) end; 42 | into method label _BST code_regex \^\^EC0\.BPV0 replaceall_matched begin B1B2(^^EC0.VP01, ^^EC0.VP02) end; 43 | into method label BIFX code_regex \^\^EC0\.BDV0 replaceall_matched begin B1B2(^^EC0.VD01, ^^EC0.VD02) end; 44 | into method label BIFX code_regex \^\^EC0\.BDC0 replaceall_matched begin B1B2(^^EC0.CD01, ^^EC0.CD02) end; 45 | into method label BIFX code_regex \^\^EC0\.BFC0 replaceall_matched begin B1B2(^^EC0.CF01, ^^EC0.CF02) end; 46 | into method label _BST code_regex \^\^EC0\.BAC0 replaceall_matched begin B1B2(^^EC0.CA01, ^^EC0.CA02) end; 47 | into method label _BST code_regex \^\^EC0\.BFCB replaceall_matched begin B1B2(^^EC0.BC01, ^^EC0.BC02) end; 48 | into method label BIFX code_regex \^\^EC0\.BFCB replaceall_matched begin B1B2(^^EC0.BC01, ^^EC0.BC02) end; 49 | into method label _BTP code_regex \^\^EC0\.BTPB replaceall_matched begin B1B2(^^EC0.BP01, ^^EC0.BP02) end; 50 | 51 | # 52 | # 53 | # 54 | into method label B1B2 remove_entry; 55 | into definitionblock code_regex . insert 56 | begin 57 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 58 | end; 59 | 60 | # 61 | # 62 | # 63 | into device label EC0 code_regex SMD0,\s+256 replace_matched 64 | begin 65 | //SMD0, 256,\n 66 | SD00,8,SD01,8,SD02,8,SD03,8,\n 67 | SD04,8,SD05,8,SD06,8,SD07,8,\n 68 | SD08,8,SD09,8,SD0A,8,SD0B,8,\n 69 | SD0C,8,SD0D,8,SD0E,8,SD0F,8,\n 70 | SD10,8,SD11,8,SD12,8,SD13,8,\n 71 | SD14,8,SD15,8,SD16,8,SD17,8,\n 72 | SD18,8,SD19,8,SD1A,8,SD1B,8,\n 73 | SD1C,8,SD1D,8,SD1E,8,SD1F,8 74 | end; 75 | 76 | 77 | into device label EC0 insert 78 | begin 79 | Method (RSMD, 0, Serialized)\n 80 | {\n 81 | Name (TEMP, Buffer(0x20) { })\n 82 | Store (SD00, Index(TEMP, 0x00))\n 83 | Store (SD01, Index(TEMP, 0x01))\n 84 | Store (SD02, Index(TEMP, 0x02))\n 85 | Store (SD03, Index(TEMP, 0x03))\n 86 | Store (SD04, Index(TEMP, 0x04))\n 87 | Store (SD05, Index(TEMP, 0x05))\n 88 | Store (SD06, Index(TEMP, 0x06))\n 89 | Store (SD07, Index(TEMP, 0x07))\n 90 | Store (SD08, Index(TEMP, 0x08))\n 91 | Store (SD09, Index(TEMP, 0x09))\n 92 | Store (SD0A, Index(TEMP, 0x0A))\n 93 | Store (SD0B, Index(TEMP, 0x0B))\n 94 | Store (SD0C, Index(TEMP, 0x0C))\n 95 | Store (SD0D, Index(TEMP, 0x0D))\n 96 | Store (SD0E, Index(TEMP, 0x0E))\n 97 | Store (SD0F, Index(TEMP, 0x0F))\n 98 | Store (SD10, Index(TEMP, 0x10))\n 99 | Store (SD11, Index(TEMP, 0x11))\n 100 | Store (SD12, Index(TEMP, 0x12))\n 101 | Store (SD13, Index(TEMP, 0x13))\n 102 | Store (SD14, Index(TEMP, 0x14))\n 103 | Store (SD15, Index(TEMP, 0x15))\n 104 | Store (SD16, Index(TEMP, 0x16))\n 105 | Store (SD17, Index(TEMP, 0x17))\n 106 | Store (SD18, Index(TEMP, 0x18))\n 107 | Store (SD19, Index(TEMP, 0x19))\n 108 | Store (SD1A, Index(TEMP, 0x1A))\n 109 | Store (SD1B, Index(TEMP, 0x1B))\n 110 | Store (SD1C, Index(TEMP, 0x1C))\n 111 | Store (SD1D, Index(TEMP, 0x1D))\n 112 | Store (SD1E, Index(TEMP, 0x1E))\n 113 | Store (SD1F, Index(TEMP, 0x1F))\n 114 | Return (TEMP)\n 115 | }\n 116 | end; 117 | 118 | into device label EC0 insert 119 | begin 120 | Method (WSMD, 1, Serialized)\n 121 | {\n 122 | Name (TEMP, Buffer(0x20) { })\n 123 | Store (Arg0, TEMP)\n 124 | Store (DerefOf(Index(TEMP, 0x00)), SD00)\n 125 | Store (DerefOf(Index(TEMP, 0x01)), SD01)\n 126 | Store (DerefOf(Index(TEMP, 0x02)), SD02)\n 127 | Store (DerefOf(Index(TEMP, 0x03)), SD03)\n 128 | Store (DerefOf(Index(TEMP, 0x04)), SD04)\n 129 | Store (DerefOf(Index(TEMP, 0x05)), SD05)\n 130 | Store (DerefOf(Index(TEMP, 0x06)), SD06)\n 131 | Store (DerefOf(Index(TEMP, 0x07)), SD07)\n 132 | Store (DerefOf(Index(TEMP, 0x08)), SD08)\n 133 | Store (DerefOf(Index(TEMP, 0x09)), SD09)\n 134 | Store (DerefOf(Index(TEMP, 0x0A)), SD0A)\n 135 | Store (DerefOf(Index(TEMP, 0x0B)), SD0B)\n 136 | Store (DerefOf(Index(TEMP, 0x0C)), SD0C)\n 137 | Store (DerefOf(Index(TEMP, 0x0D)), SD0D)\n 138 | Store (DerefOf(Index(TEMP, 0x0E)), SD0E)\n 139 | Store (DerefOf(Index(TEMP, 0x0F)), SD0F)\n 140 | Store (DerefOf(Index(TEMP, 0x10)), SD10)\n 141 | Store (DerefOf(Index(TEMP, 0x11)), SD11)\n 142 | Store (DerefOf(Index(TEMP, 0x12)), SD12)\n 143 | Store (DerefOf(Index(TEMP, 0x13)), SD13)\n 144 | Store (DerefOf(Index(TEMP, 0x14)), SD14)\n 145 | Store (DerefOf(Index(TEMP, 0x15)), SD15)\n 146 | Store (DerefOf(Index(TEMP, 0x16)), SD16)\n 147 | Store (DerefOf(Index(TEMP, 0x17)), SD17)\n 148 | Store (DerefOf(Index(TEMP, 0x18)), SD18)\n 149 | Store (DerefOf(Index(TEMP, 0x19)), SD19)\n 150 | Store (DerefOf(Index(TEMP, 0x1A)), SD1A)\n 151 | Store (DerefOf(Index(TEMP, 0x1B)), SD1B)\n 152 | Store (DerefOf(Index(TEMP, 0x1C)), SD1C)\n 153 | Store (DerefOf(Index(TEMP, 0x1D)), SD1D)\n 154 | Store (DerefOf(Index(TEMP, 0x1E)), SD1E)\n 155 | Store (DerefOf(Index(TEMP, 0x1F)), SD1F)\n 156 | }\n 157 | end; 158 | 159 | into method label CFUN code_regex SMD0\s+=\s+Zero replaceall_matched begin \\_SB.PCI0.LPCB.EC0.WSMD(Zero) end; 160 | into method label CFUN code_regex Local3\s+=\s+SMD0 replaceall_matched begin Store(\\_SB.PCI0.LPCB.EC0.RSMD(), Local3) end; 161 | 162 | into method label MHPF code_regex SMD0\s+=\s+FB4 replaceall_matched begin \\_SB.PCI0.LPCB.EC0.WSMD(FB4) end; 163 | into method label MHPF code_regex FB4\s+=\s+SMD0 replaceall_matched begin Store(\\_SB.PCI0.LPCB.EC0.RSMD(), FB4) end; -------------------------------------------------------------------------------- /bateria/Lenovo-Ideapad-310-15isk.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman) 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # Lenovo Ideapad 310 15ISK 8 | 9 | # METHOD FOR 16 BITS - CREDITS REHABMAN 10 | into method label B1B2 remove_entry; 11 | into definitionblock code_regex . insert 12 | begin 13 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 14 | end; 15 | 16 | # METHODS FOR MORE THAN 32 BITS - CREDITS REHABMAN 17 | into method label RE1B parent_label EC0 remove_entry; 18 | into method label RECB parent_label EC0 remove_entry; 19 | into device label EC0 insert 20 | begin 21 | Method (RE1B, 1, NotSerialized)\n 22 | {\n 23 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 24 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 25 | Return(BYTE)\n 26 | }\n 27 | Method (RECB, 2, Serialized)\n 28 | // Arg0 - offset in bytes from zero-based EC\n 29 | // Arg1 - size of buffer in bits\n 30 | {\n 31 | ShiftRight(Add(Arg1,7), 3, Arg1)\n 32 | Name(TEMP, Buffer(Arg1) { })\n 33 | Add(Arg0, Arg1, Arg1)\n 34 | Store(0, Local0)\n 35 | While (LLess(Arg0, Arg1))\n 36 | {\n 37 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 38 | Increment(Arg0)\n 39 | Increment(Local0)\n 40 | }\n 41 | Return(TEMP)\n 42 | }\n 43 | end; 44 | 45 | # FIX 16 BITS 46 | 47 | into device label EC0 code_regex BFUD,\s+16 replace_matched begin UD00,8,UD01,8 end; 48 | into device label EC0 code_regex B1RC,\s+16 replace_matched begin RC00,8,RC01,8 end; 49 | into device label EC0 code_regex B1SN,\s+16 replace_matched begin SN00,8,SN01,8 end; 50 | into device label EC0 code_regex B1FV,\s+16 replace_matched begin FV00,8,FV01,8 end; 51 | into device label EC0 code_regex B1DV,\s+16 replace_matched begin DV00,8,DV01,8 end; 52 | into device label EC0 code_regex B1DC,\s+16 replace_matched begin DC00,8,DC01,8 end; 53 | into device label EC0 code_regex B1FC,\s+16 replace_matched begin FC00,8,FC01,8 end; 54 | into device label EC0 code_regex B1AC,\s+16 replace_matched begin AC00,8,AC01,8 end; 55 | into device label EC0 code_regex B1DA,\s+16 replace_matched begin DA00,8,DA01,8 end; 56 | 57 | into method label GSBI code_regex \(BFUD, replaceall_matched begin (B1B2(UD00,UD01), end; 58 | into method label GSBI code_regex \(B1RC, replaceall_matched begin (B1B2(RC00,RC01), end; 59 | into method label GSBI code_regex \(B1FV, replaceall_matched begin (B1B2(FV00,FV01), end; 60 | into method label GSBI code_regex \(B1DV, replaceall_matched begin (B1B2(DV00,DV01), end; 61 | into method label GSBI code_regex \(B1DC, replaceall_matched begin (B1B2(DC00,DC01), end; 62 | into method label GSBI code_regex \(B1FC, replaceall_matched begin (B1B2(FC00,FC01), end; 63 | into method label GSBI code_regex \(B1AC, replaceall_matched begin (B1B2(AC00,AC01), end; 64 | into method label GSBI code_regex \(B1DA, replaceall_matched begin (B1B2(DA00,DA01), end; 65 | 66 | into method label SMTF code_regex \(B1RC, replaceall_matched begin (B1B2(RC00,RC01), end; 67 | into method label SMTF code_regex \(B1FV, replaceall_matched begin (B1B2(FV00,FV01), end; 68 | into method label SMTF code_regex \(B1FC, replaceall_matched begin (B1B2(FC00,FC01), end; 69 | into method label SMTF code_regex \(B1AC, replaceall_matched begin (B1B2(AC00,AC01), end; 70 | 71 | into method label SMTE code_regex \(B1RC, replaceall_matched begin (B1B2(RC00,RC01), end; 72 | into method label SMTE code_regex \(B1FV, replaceall_matched begin (B1B2(FV00,FV01), end; 73 | into method label SMTE code_regex \(B1FC, replaceall_matched begin (B1B2(FC00,FC01), end; 74 | into method label SMTE code_regex B1AC replaceall_matched begin B1B2(AC00,AC01) end; 75 | 76 | into method label _BIF code_regex \(B1SN, replaceall_matched begin (B1B2(SN00,SN01), end; 77 | into method label _BIF code_regex \(B1DV, replaceall_matched begin (B1B2(DV00,DV01), end; 78 | into method label _BIF code_regex \(B1DC, replaceall_matched begin (B1B2(DC00,DC01), end; 79 | into method label _BIF code_regex \(B1FC replaceall_matched begin (B1B2(FC00,FC01) end; 80 | 81 | # FIX MORE THAN 32 BITS 82 | 83 | into device label EC0 code_regex (FWBT,)\s+(64) replace_matched begin FWBZ,%2,//%1%2 end; 84 | into device label EC0 code_regex (SMDA,)\s+(256) replace_matched begin SMDZ,%2,//%1%2 end; 85 | into device label EC0 code_regex (BMN0,)\s+(72) replace_matched begin BMNZ,%2,//%1%2 end; 86 | into device label EC0 code_regex (BDN0,)\s+(64) replace_matched begin BDNZ,%2,//%1%2 end; 87 | 88 | into method label GSBI code_regex \(BMN0, replaceall_matched begin (RECB(0x8F,72), end; 89 | into method label GSBI code_regex \(BDN0, replaceall_matched begin (RECB(0x98,64), end; 90 | into method label GSBI code_regex \(FWBT, replaceall_matched begin (RECB(0x14,64), end; 91 | 92 | into method label _BIF code_regex \(BMN0, replaceall_matched begin (RECB(0x8F,72), end; 93 | into method label _BIF code_regex \(BDN0, replaceall_matched begin (RECB(0x98,64), end; 94 | 95 | into method label MHIF code_regex \(FWBT, replaceall_matched begin (RECB(0x14,64), end; 96 | 97 | into method label GBID code_regex \(FWBT, replaceall_matched begin (RECB(0x14,64), end; 98 | 99 | into method label MHPF code_regex SMDA replaceall_matched begin RECB(0x64,256) end; 100 | 101 | -------------------------------------------------------------------------------- /bateria/Lenovo-Ideapad-330S.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Lenovo Ideapad 330 8 | # Lenovo Ideapad 330S 9 | 10 | into device label H_EC code_regex BML0,\s+16, replace_matched begin LMB0,8,LMB1,8, end; 11 | into device label H_EC code_regex BAV0,\s+16, replace_matched begin VAB0,8,VAB1,8, end; 12 | into device label H_EC code_regex BAC0,\s+16, replace_matched begin CAB0,8,CAB1,8, end; 13 | into device label H_EC code_regex BRC0,\s+16, replace_matched begin CRB0,8,CRB1,8, end; 14 | into device label H_EC code_regex FCC0,\s+16, replace_matched begin CCF0,8,CCF1,8, end; 15 | into device label H_EC code_regex BDC0,\s+16, replace_matched begin CDB0,8,CDB1,8, end; 16 | into device label H_EC code_regex BDV0,\s+16, replace_matched begin VDB0,8,VDB1,8, end; 17 | 18 | into method label _BIF code_regex BML0 replaceall_matched begin B1B2(LMB0,LMB1) end; 19 | into method label _BST code_regex BML0 replaceall_matched begin B1B2(LMB0,LMB1) end; 20 | into method label _BST code_regex BAV0 replaceall_matched begin B1B2(VAB0,VAB1) end; 21 | into method label GSBI code_regex BAV0 replaceall_matched begin B1B2(VAB0,VAB1) end; 22 | into method label _BST code_regex BAC0 replaceall_matched begin B1B2(CAB0,CAB1) end; 23 | into method label _BST code_regex BRC0 replaceall_matched begin B1B2(CRB0,CRB1) end; 24 | into method label GSBI code_regex BRC0 replaceall_matched begin B1B2(CRB0,CRB1) end; 25 | into method label _BIF code_regex FCC0 replaceall_matched begin B1B2(CCF0,CCF1) end; 26 | into method label GSBI code_regex FCC0 replaceall_matched begin B1B2(CCF0,CCF1) end; 27 | into method label _BIF code_regex BDC0 replaceall_matched begin B1B2(CDB0,CDB1) end; 28 | into method label GSBI code_regex BDC0 replaceall_matched begin B1B2(CDB0,CDB1) end; 29 | into method label _BIF code_regex BDV0 replaceall_matched begin B1B2(VDB0,VDB1) end; 30 | into method label GSBI code_regex BDV0 replaceall_matched begin B1B2(VDB0,VDB1) end; 31 | 32 | into method label B1B2 remove_entry; 33 | into definitionblock code_regex . insert 34 | begin 35 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 36 | end; -------------------------------------------------------------------------------- /bateria/Lenovo-Ideapad-S145-IKB.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # https://hackintoshbrasil.com/forum 4 | # 5 | # Compatível com MaciASL (fork Rehabman) 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # Lenovo IdeaPad S145-IKB 9 | # Lenovo IdeaPad S145-IWL 10 | # 11 | # METHOD FOR 16 BITS - CREDITS REHABMAN 12 | into method label B1B2 remove_entry; 13 | into definitionblock code_regex . insert 14 | begin 15 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 16 | end; 17 | 18 | # METHODS FOR MORE THAN 32 BITS - CREDITS REHABMAN 19 | into method label RE1B parent_label EC0 remove_entry; 20 | into method label RECB parent_label EC0 remove_entry; 21 | into device label EC0 insert 22 | begin 23 | Method (RE1B, 1, NotSerialized)\n 24 | {\n 25 | OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n 26 | Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n 27 | Return(BYTE)\n 28 | }\n 29 | Method (RECB, 2, Serialized)\n 30 | // Arg0 - offset in bytes from zero-based EC\n 31 | // Arg1 - size of buffer in bits\n 32 | {\n 33 | ShiftRight(Add(Arg1,7), 3, Arg1)\n 34 | Name(TEMP, Buffer(Arg1) { })\n 35 | Add(Arg0, Arg1, Arg1)\n 36 | Store(0, Local0)\n 37 | While (LLess(Arg0, Arg1))\n 38 | {\n 39 | Store(RE1B(Arg0), Index(TEMP, Local0))\n 40 | Increment(Arg0)\n 41 | Increment(Local0)\n 42 | }\n 43 | Return(TEMP)\n 44 | }\n 45 | end; 46 | 47 | # FIX MORE THAN 32 BITS 48 | 49 | into device label EC0 code_regex (BDN0,)\s+(64) replace_matched begin BDNX,%2,//%1%2 end; 50 | into device label EC0 code_regex (BMN0,)\s+(72) replace_matched begin BMNX,%2,//%1%2 end; 51 | into device label EC0 code_regex (SMDA,)\s+(256) replace_matched begin SMDZ,%2,//%1%2 end; 52 | into device label EC0 code_regex (FWBT,)\s+(64) replace_matched begin FWBX,%2,//%1%2 end; 53 | 54 | into method label GSBI code_regex \(BDN0, replaceall_matched begin (RECB(0x98,64), end; 55 | into method label GSBI code_regex \(BMN0, replaceall_matched begin (RECB(0x8F,72), end; 56 | into method label GSBI code_regex \(FWBT, replaceall_matched begin (RECB(0x14,64), end; 57 | 58 | into method label _BIF code_regex \(BDN0, replaceall_matched begin (RECB(0x98,64), end; 59 | into method label _BIF code_regex \(BMN0, replaceall_matched begin (RECB(0x8F,72), end; 60 | 61 | into method label _BIX code_regex \(BDN0, replaceall_matched begin (RECB(0x98,64), end; 62 | into method label _BIX code_regex \(BMN0, replaceall_matched begin (RECB(0x8F,72), end; 63 | 64 | into method label MHIF code_regex \(FWBT, replaceall_matched begin (RECB(0x14,64), end; 65 | into method label GBID code_regex \(FWBT, replaceall_matched begin (RECB(0x14,64), end; 66 | into method label MHPF code_regex SMDA replaceall_matched begin RECB(0x64,256) end; 67 | into method label BATD code_regex \(\^\^PCI0.LPCB.EC0.FWBT, replaceall_matched begin (\^\^PCI0.LPCB.EC0.RECB(0x14,64), end; 68 | 69 | # FIX 16 BITS 70 | into device label EC0 code_regex B1C1,\s+16 replace_matched begin C100,8,C101,8 end; 71 | into device label EC0 code_regex B1C2,\s+16 replace_matched begin C200,8,C201,8 end; 72 | into device label EC0 code_regex B1C3,\s+16 replace_matched begin C300,8,C301,8 end; 73 | into device label EC0 code_regex B1C4,\s+16 replace_matched begin C400,8,C401,8 end; 74 | into device label EC0 code_regex FBUD,\s+16 replace_matched begin UD00,8,UD01,8 end; 75 | into device label EC0 code_regex B1DC,\s+16 replace_matched begin DC00,8,DC01,8 end; 76 | into device label EC0 code_regex B1FC,\s+16 replace_matched begin FC00,8,FC01,8 end; 77 | into device label EC0 code_regex B1DV,\s+16 replace_matched begin DV00,8,DV01,8 end; 78 | into device label EC0 code_regex B1SN,\s+16 replace_matched begin SN00,8,SN01,8 end; 79 | into device label EC0 code_regex B1FV,\s+16 replace_matched begin FV00,8,FV01,8 end; 80 | into device label EC0 code_regex B1AC,\s+16 replace_matched begin AC00,8,AC01,8 end; 81 | into device label EC0 code_regex B1CR,\s+16 replace_matched begin CR00,8,CR01,8 end; 82 | into device label EC0 code_regex B1SM,\s+16 replace_matched begin SM00,8,SM01,8 end; 83 | into device label EC0 code_regex B1CC,\s+16 replace_matched begin CC00,8,CC01,8 end; 84 | into device label EC0 code_regex BFUD,\s+16 replace_matched begin BF00,8,BF01,8 end; 85 | into device label EC0 code_regex B1RC,\s+16 replace_matched begin RC00,8,RC01,8 end; 86 | into device label EC0 code_regex B1DA,\s+16 replace_matched begin DA00,8,DA01,8 end; 87 | 88 | into method label _BIF code_regex \(B1DC, replaceall_matched begin (B1B2(DC00,DC01), end; 89 | into method label _BIF code_regex \(B1DV, replaceall_matched begin (B1B2(DV00,DV01), end; 90 | into method label _BIF code_regex \(B1FC, replaceall_matched begin (B1B2(FC00,FC01), end; 91 | into method label _BIF code_regex B1FC replaceall_matched begin (B1B2(FC00,FC01)) end; 92 | into method label _BIF code_regex \(B1SN, replaceall_matched begin (B1B2(SN00,SN01), end; 93 | 94 | into method label _BIX code_regex \(B1DC, replaceall_matched begin (B1B2(DC00,DC01), end; 95 | into method label _BIX code_regex \(B1DV, replaceall_matched begin (B1B2(DV00,DV01), end; 96 | into method label _BIX code_regex \(B1FC, replaceall_matched begin (B1B2(FC00,FC01), end; 97 | into method label _BIX code_regex B1FC replaceall_matched begin (B1B2(FC00,FC01)) end; 98 | into method label _BIX code_regex \(B1SN, replaceall_matched begin (B1B2(SN00,SN01), end; 99 | 100 | into method label _BST code_regex \(B1AC, replaceall_matched begin (B1B2(AC00,AC01), end; 101 | into method label _BST code_regex \(B1FV, replaceall_matched begin (B1B2(FV00,FV01), end; 102 | into method label _BST code_regex \(B1RC, replaceall_matched begin (B1B2(RC00,RC01), end; 103 | 104 | into method label SMTF code_regex \(B1FV, replaceall_matched begin (B1B2(FV00,FV01), end; 105 | into method label SMTF code_regex \(B1AC, replaceall_matched begin (B1B2(AC00,AC01), end; 106 | into method label SMTF code_regex \(B1FC, replaceall_matched begin (B1B2(FC00,FC01), end; 107 | into method label SMTF code_regex \(B1RC, replaceall_matched begin (B1B2(RC00,RC01), end; 108 | into method label SMTF code_regex \(B1RC, replaceall_matched begin (B1B2(RC00,RC01), end; 109 | 110 | into method label SMTE code_regex \(B1AC, replaceall_matched begin (B1B2(AC00,AC01), end; 111 | into method label SMTE code_regex \(B1FV, replaceall_matched begin (B1B2(FV00,FV01), end; 112 | into method label SMTE code_regex \(B1FC, replaceall_matched begin (B1B2(FC00,FC01), end; 113 | into method label SMTE code_regex B1AC replaceall_matched begin (B1B2(AC00,AC01)) end; 114 | into method label SMTE code_regex \(B1RC, replaceall_matched begin (B1B2(RC00,RC01), end; 115 | 116 | into method label GSBI code_regex \(B1AC, replaceall_matched begin (B1B2(AC00,AC01), end; 117 | into method label GSBI code_regex \(B1FV, replaceall_matched begin (B1B2(FV00,FV01), end; 118 | into method label GSBI code_regex \(B1FC, replaceall_matched begin (B1B2(FC00,FC01), end; 119 | into method label GSBI code_regex \(B1DC, replaceall_matched begin (B1B2(DC00,DC01), end; 120 | into method label GSBI code_regex \(B1DV, replaceall_matched begin (B1B2(DV00,DV01), end; 121 | into method label GSBI code_regex \(B1DA, replaceall_matched begin (B1B2(DA00,DA01), end; 122 | into method label GSBI code_regex \(BFUD, replaceall_matched begin (B1B2(BF00,BF01), end; 123 | into method label GSBI code_regex \(B1RC, replaceall_matched begin (B1B2(RC00,RC01), end; 124 | 125 | into method label BATD code_regex \(\^\^PCI0.LPCB.EC0.B1DA, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.EC0.DA00, \^\^PCI0.LPCB.EC0.DA01), end; 126 | -------------------------------------------------------------------------------- /bateria/Lenovo-LNV-L1325.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Lenovo LNV1325 8 | 9 | into device label EC0 code_regex XIF0,\s+16, replace_matched begin X001,8,X002,8, end; 10 | into device label EC0 code_regex XIF1,\s+16, replace_matched begin X101,8,X102,8, end; 11 | into device label EC0 code_regex XIF2,\s+16, replace_matched begin X201,8,X202,8, end; 12 | into device label EC0 code_regex XIF3,\s+16, replace_matched begin X301,8,X302,8, end; 13 | into device label EC0 code_regex XIF4,\s+16, replace_matched begin X401,8,X402,8, end; 14 | into device label EC0 code_regex XIF7,\s+16, replace_matched begin X701,8,X702,8, end; 15 | 16 | into device label EC0 code_regex XST0,\s+16, replace_matched begin XT01,8,XT02,8, end; 17 | into device label EC0 code_regex XST1,\s+16, replace_matched begin XT11,8,XT12,8, end; 18 | into device label EC0 code_regex XST2,\s+16, replace_matched begin XT21,8,XT22,8, end; 19 | into device label EC0 code_regex XST3,\s+16, replace_matched begin XT31,8,XT32,8, end; 20 | 21 | into method label B1B2 remove_entry; 22 | into definitionblock code_regex . insert 23 | begin 24 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 25 | end; 26 | 27 | into method label _BIF code_regex Store\s+\(\^\^PCI0\.LPCB\.EC0\.XIF0, replaceall_matched begin Store (B1B2(^^PCI0.LPCB.EC0.X001, ^^PCI0.LPCB.EC0.X002), end; 28 | into method label _BIF code_regex Store\s+\(\^\^PCI0\.LPCB\.EC0\.XIF1, replaceall_matched begin Store (B1B2(^^PCI0.LPCB.EC0.X101, ^^PCI0.LPCB.EC0.X102), end; 29 | into method label _BIF code_regex Store\s+\(\^\^PCI0\.LPCB\.EC0\.XIF2, replaceall_matched begin Store (B1B2(^^PCI0.LPCB.EC0.X001, ^^PCI0.LPCB.EC0.X002), end; 30 | into method label _BIF code_regex Store\s+\(\^\^PCI0\.LPCB\.EC0\.XIF3, replaceall_matched begin Store (B1B2(^^PCI0.LPCB.EC0.X201, ^^PCI0.LPCB.EC0.X202), end; 31 | into method label _BIF code_regex Store\s+\(\^\^PCI0\.LPCB\.EC0\.XIF4, replaceall_matched begin Store (B1B2(^^PCI0.LPCB.EC0.X401, ^^PCI0.LPCB.EC0.X402), end; 32 | into method label _BIF code_regex Store\s+\(\^\^PCI0\.LPCB\.EC0\.XIF7, replaceall_matched begin Store (B1B2(^^PCI0.LPCB.EC0.X701, ^^PCI0.LPCB.EC0.X702), end; 33 | 34 | into method label _BST code_regex Store\s+\(\^\^PCI0\.LPCB\.EC0\.XST0, replaceall_matched begin Store (B1B2(^^PCI0.LPCB.EC0.XT01, ^^PCI0.LPCB.EC0.XT02), end; 35 | into method label _BST code_regex Store\s+\(\^\^PCI0\.LPCB\.EC0\.XST1, replaceall_matched begin Store (B1B2(^^PCI0.LPCB.EC0.XT11, ^^PCI0.LPCB.EC0.XT12), end; 36 | into method label _BST code_regex Store\s+\(\^\^PCI0\.LPCB\.EC0\.XST2, replaceall_matched begin Store (B1B2(^^PCI0.LPCB.EC0.XT21, ^^PCI0.LPCB.EC0.XT22), end; 37 | into method label _BST code_regex Store\s+\(\^\^PCI0\.LPCB\.EC0\.XST3, replaceall_matched begin Store (B1B2(^^PCI0.LPCB.EC0.XT31, ^^PCI0.LPCB.EC0.XT32), end; 38 | -------------------------------------------------------------------------------- /bateria/Multilaser-ultra-ub521x.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # https://hackintoshbrasil.com 4 | # 5 | # Compatível com MaciASL (fork Rehabman) 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # Multilaser Ultra UB521X 9 | # 10 | # METHOD FOR 16 BITS - CREDITS REHABMAN 11 | into method label B1B2 remove_entry; 12 | into definitionblock code_regex . insert 13 | begin 14 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 15 | end; 16 | 17 | into device label H_EC code_regex BDCA,\s+16, replace_matched begin DC00,8,DC01,8, end; 18 | into device label H_EC code_regex BPVO,\s+16, replace_matched begin PV00,8,PV01,8, end; 19 | into device label H_EC code_regex BRCA,\s+16, replace_matched begin RC00,8,RC01,8, end; 20 | into device label H_EC code_regex BLFC,\s+16, replace_matched begin LF00,8,LF01,8, end; 21 | into device label H_EC code_regex BSTA,\s+16, replace_matched begin ST00,8,ST01,8, end; 22 | into device label H_EC code_regex BDVO,\s+16, replace_matched begin DV00,8,DV01,8, end; 23 | into device label H_EC code_regex BACU,\s+16, replace_matched begin AC00,8,AC01,8, end; 24 | 25 | # FIX 16 BITS 26 | 27 | into method label _BIF code_regex \(BDCA, replaceall_matched begin (B1B2(DC00, DC01), end; 28 | into method label _BIF code_regex \(BLFC, replaceall_matched begin (B1B2(LF00, LF01), end; 29 | into method label _BIF code_regex \(BDVO, replaceall_matched begin (B1B2(DV00, DV01), end; 30 | 31 | into method label _BST code_regex \(BPVO, replaceall_matched begin (B1B2(PV00, PV01), end; 32 | into method label _BST code_regex \(BRCA, replaceall_matched begin (B1B2(RC00, RC01), end; 33 | into method label _BST code_regex \(BSTA, replaceall_matched begin (B1B2(ST00, ST01), end; 34 | into method label _BST code_regex \(BACU, replaceall_matched begin (B1B2(AC00, AC01), end; 35 | -------------------------------------------------------------------------------- /bateria/Positivo-Master-N190I.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Positivo Master N190I 8 | # Positivo XC7660 9 | 10 | into device label EC0 code_regex XIF0,\s+16, replace_matched begin IF01,8,IF02,8, end; 11 | into device label EC0 code_regex XIF1,\s+16, replace_matched begin IF11,8,IF12,8, end; 12 | into device label EC0 code_regex XIF2,\s+16, replace_matched begin IF21,8,IF22,8, end; 13 | into device label EC0 code_regex XIF3,\s+16, replace_matched begin IF31,8,IF32,8, end; 14 | into device label EC0 code_regex XIF4,\s+16, replace_matched begin IF41,8,IF42,8, end; 15 | into device label EC0 code_regex XIF7,\s+16, replace_matched begin IF71,8,IF72,8, end; 16 | 17 | into device label EC0 code_regex XST0,\s+16, replace_matched begin ST01,8,ST02,8, end; 18 | into device label EC0 code_regex XST1,\s+16, replace_matched begin ST11,8,ST12,8, end; 19 | into device label EC0 code_regex XST2,\s+16, replace_matched begin ST21,8,ST22,8, end; 20 | into device label EC0 code_regex XST3,\s+16, replace_matched begin ST31,8,ST32,8, end; 21 | 22 | into method label _BIF code_regex =\s\^\^PCI0\.LPCB\.EC0\.XIF0 replaceall_matched begin = B1B2(^^PCI0.LPCB.EC0.IF01, ^^PCI0.LPCB.EC0.IF02) end; 23 | into method label _BIF code_regex =\s\^\^PCI0\.LPCB\.EC0\.XIF1 replaceall_matched begin = B1B2(^^PCI0.LPCB.EC0.IF11, ^^PCI0.LPCB.EC0.IF12) end; 24 | into method label _BIF code_regex =\s\^\^PCI0\.LPCB\.EC0\.XIF2 replaceall_matched begin = B1B2(^^PCI0.LPCB.EC0.IF21, ^^PCI0.LPCB.EC0.IF22) end; 25 | into method label _BIF code_regex =\s\^\^PCI0\.LPCB\.EC0\.XIF3 replaceall_matched begin = B1B2(^^PCI0.LPCB.EC0.IF31, ^^PCI0.LPCB.EC0.IF32) end; 26 | into method label _BIF code_regex =\s\^\^PCI0\.LPCB\.EC0\.XIF4 replaceall_matched begin = B1B2(^^PCI0.LPCB.EC0.IF41, ^^PCI0.LPCB.EC0.IF42) end; 27 | into method label _BIF code_regex =\s\^\^PCI0\.LPCB\.EC0\.XIF7 replaceall_matched begin = B1B2(^^PCI0.LPCB.EC0.IF71, ^^PCI0.LPCB.EC0.IF72) end; 28 | 29 | into method label _BST code_regex =\s\^\^PCI0\.LPCB\.EC0\.XST0 replaceall_matched begin = B1B2(^^PCI0.LPCB.EC0.ST01, ^^PCI0.LPCB.EC0.ST02) end; 30 | into method label _BST code_regex =\s\^\^PCI0\.LPCB\.EC0\.XST1 replaceall_matched begin = B1B2(^^PCI0.LPCB.EC0.ST11, ^^PCI0.LPCB.EC0.ST12) end; 31 | into method label _BST code_regex =\s\^\^PCI0\.LPCB\.EC0\.XST2 replaceall_matched begin = B1B2(^^PCI0.LPCB.EC0.ST21, ^^PCI0.LPCB.EC0.ST22) end; 32 | into method label _BST code_regex =\s\^\^PCI0\.LPCB\.EC0\.XST3 replaceall_matched begin = B1B2(^^PCI0.LPCB.EC0.ST31, ^^PCI0.LPCB.EC0.ST32) end; 33 | 34 | # 35 | # 36 | # 37 | into method label B1B2 remove_entry; 38 | into definitionblock code_regex . insert 39 | begin 40 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 41 | end; 42 | -------------------------------------------------------------------------------- /bateria/Positivo-Motion-I34500AI-15.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Positivo Motion I34500AI-15 8 | 9 | into device label EC0 code_regex XIF1,\s+16, replace_matched begin CP10,8,CP11,8, end; 10 | into device label EC0 code_regex XIF2,\s+16, replace_matched begin AR10,8,AR11,8, end; 11 | into device label EC0 code_regex XIF3,\s+16, replace_matched begin RP10,8,RP11,8, end; 12 | into device label EC0 code_regex XIF4,\s+16, replace_matched begin VO10,8,VO11,8, end; 13 | into device label EC0 code_regex XIF7,\s+16, replace_matched begin AD10,8,AD11,8, end; 14 | into device label EC0 code_regex XST0,\s+16, replace_matched begin FD10,8,FD11,8, end; 15 | into device label EC0 code_regex XST1,\s+16, replace_matched begin VD10,8,VD11,8, end; 16 | into device label EC0 code_regex XST2,\s+16, replace_matched begin LD10,8,LD11,8, end; 17 | into device label EC0 code_regex XST3,\s+16, replace_matched begin CL10,8,CL11,8, end; 18 | 19 | into method label _BIF code_regex \^\^PCI0\.LPCB\.EC0\.XIF1 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CP10,^^PCI0.LPCB.EC0.CP11) end; 20 | into method label _BIF code_regex \^\^PCI0\.LPCB\.EC0\.XIF2 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.AR10,^^PCI0.LPCB.EC0.AR11) end; 21 | into method label _BIF code_regex \^\^PCI0\.LPCB\.EC0\.XIF3 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.RP10,^^PCI0.LPCB.EC0.RP11) end; 22 | into method label _BIF code_regex \^\^PCI0\.LPCB\.EC0\.XIF4 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.VO10,^^PCI0.LPCB.EC0.VO11) end; 23 | into method label _BIF code_regex \^\^PCI0\.LPCB\.EC0\.XIF7 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.AD10,^^PCI0.LPCB.EC0.AD11) end; 24 | 25 | into method label _BST code_regex \^\^PCI0\.LPCB\.EC0\.XST0 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.FD10,^^PCI0.LPCB.EC0.FD11) end; 26 | into method label _BST code_regex \^\^PCI0\.LPCB\.EC0\.XST1 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.VD10,^^PCI0.LPCB.EC0.VD11) end; 27 | into method label _BST code_regex \^\^PCI0\.LPCB\.EC0\.XST2 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.LD10,^^PCI0.LPCB.EC0.LD10) end; 28 | into method label _BST code_regex \^\^PCI0\.LPCB\.EC0\.XST3 replaceall_matched begin B1B2(^^PCI0.LPCB.EC0.CL10,^^PCI0.LPCB.EC0.CL11) end; 29 | 30 | # 31 | # 32 | # 33 | into method label B1B2 remove_entry; 34 | into definitionblock code_regex . insert 35 | begin 36 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 37 | end; -------------------------------------------------------------------------------- /bateria/Positivo-Premiun-XS7320.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Positivo Premiun-XS7320 8 | 9 | # 10 | # 32 bits 11 | # 12 | into device label EC code_regex BDC0,\s+32 replace_matched begin CDB0,8,CDB1,8,CDB2,8,CDB3,8 end; 13 | into device label EC code_regex BFC0,\s+32 replace_matched begin CFB0,8,CFB1,8,CFB2,8,CFB3,8 end; 14 | into device label EC code_regex BDV0,\s+32 replace_matched begin VDB0,8,VDB1,8,VDB2,8,VDB3,8 end; 15 | into device label EC code_regex BST0,\s+32 replace_matched begin TSB0,8,TSB1,8,TSB2,8,TSB3,8 end; 16 | into device label EC code_regex BPR0,\s+32 replace_matched begin RPB0,8,RPB1,8,RPB2,8,RPB3,8 end; 17 | into device label EC code_regex BRC0,\s+32 replace_matched begin CRB0,8,CRB1,8,CRB2,8,CRB3,8 end; 18 | into device label EC code_regex BPV0,\s+32 replace_matched begin VPB0,8,VPB1,8,VPB2,8,VPB3,8 end; 19 | into device label EC code_regex BCW0,\s+32 replace_matched begin WCB0,8,WCB1,8,WCB2,8,WCB3,8 end; 20 | into device label EC code_regex BCL0,\s+32 replace_matched begin LCB0,8,LCB1,8,LCB2,8,LCB3,8 end; 21 | 22 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC\.BDC0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.CDB0,^^PCI0.LPCB.EC.CDB1,^^PCI0.LPCB.EC.CDB2,^^PCI0.LPCB.EC.CDB3) end; 23 | 24 | into method label WMBB code_regex \^\^PCI0\.LPCB\.EC\.BDC0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.CDB0,^^PCI0.LPCB.EC.CDB1,^^PCI0.LPCB.EC.CDB2,^^PCI0.LPCB.EC.CDB3) end; 25 | 26 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC\.BFC0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.CFB0,^^PCI0.LPCB.EC.CFB1,^^PCI0.LPCB.EC.CFB2,^^PCI0.LPCB.EC.CFB3) end; 27 | 28 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC\.BFC0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.CFB0,^^PCI0.LPCB.EC.CFB1,^^PCI0.LPCB.EC.CFB2,^^PCI0.LPCB.EC.CFB3) end; 29 | 30 | into method label WMBB code_regex \^\^PCI0\.LPCB\.EC\.BFC0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.CFB0,^^PCI0.LPCB.EC.CFB1,^^PCI0.LPCB.EC.CFB2,^^PCI0.LPCB.EC.CFB3) end; 31 | 32 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC\.BDV0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.VDB0,^^PCI0.LPCB.EC.VDB1,^^PCI0.LPCB.EC.VDB2,^^PCI0.LPCB.EC.VDB3) end; 33 | 34 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC\.BST0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.TSB0,^^PCI0.LPCB.EC.TSB1,^^PCI0.LPCB.EC.TSB2,^^PCI0.LPCB.EC.TSB3) end; 35 | 36 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC\.BPR0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.RPB0,^^PCI0.LPCB.EC.RPB1,^^PCI0.LPCB.EC.RPB2,^^PCI0.LPCB.EC.RPB3) end; 37 | 38 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC\.BRC0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.CRB0,^^PCI0.LPCB.EC.CRB1,^^PCI0.LPCB.EC.CRB2,^^PCI0.LPCB.EC.CRB3) end; 39 | 40 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC\.BPV0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.VPB0,^^PCI0.LPCB.EC.VPB1,^^PCI0.LPCB.EC.VPB2,^^PCI0.LPCB.EC.VPB3) end; 41 | 42 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC\.BCW0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.WCB0,^^PCI0.LPCB.EC.WCB1,^^PCI0.LPCB.EC.WCB2,^^PCI0.LPCB.EC.WCB3) end; 43 | 44 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC\.BCL0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.LCB0,^^PCI0.LPCB.EC.LCB1,^^PCI0.LPCB.EC.LCB2,^^PCI0.LPCB.EC.LCB3) end; 45 | 46 | # 47 | # 48 | # 49 | into method label B1B2 remove_entry; 50 | into definitionblock code_regex . insert 51 | begin 52 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 53 | end; 54 | 55 | into method label B1B4 remove_entry; 56 | into definitionblock code_regex . insert 57 | begin 58 | Method (B1B4, 4, NotSerialized)\n 59 | {\n 60 | Store(Arg3, Local0)\n 61 | Or(Arg2, ShiftLeft(Local0, 8), Local0)\n 62 | Or(Arg1, ShiftLeft(Local0, 8), Local0)\n 63 | Or(Arg0, ShiftLeft(Local0, 8), Local0)\n 64 | Return(Local0)\n 65 | }\n 66 | end; -------------------------------------------------------------------------------- /bateria/Samsung-NP270E5G-XD1BR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Samsung NP270E5G-XD1BR 8 | # Samsung NP300E4C-AD2BR 9 | # Samsung NP300E4C-AD7BR 10 | # Samsung NP530U3C-KD2BR 11 | 12 | into device label H_EC code_regex BTPC,\s+16, replace_matched begin CP10,8,CP11,8, end; 13 | into device label H_EC code_regex B1RA,\s+16, replace_matched begin AR10,8,AR11,8, end; 14 | into device label H_EC code_regex B1PR,\s+16, replace_matched begin RP10,8,RP11,8, end; 15 | into device label H_EC code_regex B1VO,\s+16, replace_matched begin VO10,8,VO11,8, end; 16 | into device label H_EC code_regex B1DA,\s+16, replace_matched begin AD10,8,AD11,8, end; 17 | into device label H_EC code_regex B1DF,\s+16, replace_matched begin FD10,8,FD11,8, end; 18 | into device label H_EC code_regex B1DV,\s+16, replace_matched begin VD10,8,VD11,8, end; 19 | into device label H_EC code_regex B1DL,\s+16, replace_matched begin LD10,8,LD11,8, end; 20 | into device label H_EC code_regex CYLC,\s+16, replace_matched begin CL10,8,CL11,8, end; 21 | 22 | into method label _BTP code_regex BTPC replaceall_matched begin B1B2(CP10,CP11) end; 23 | into method label _BST code_regex B1RA replaceall_matched begin B1B2(AR10,AR11) end; 24 | into method label _BST code_regex B1PR replaceall_matched begin B1B2(RP10,RP11) end; 25 | into method label _BST code_regex B1VO replaceall_matched begin B1B2(VO10,VO11) end; 26 | into method label _BIF code_regex B1DA replaceall_matched begin B1B2(AD10,AD11) end; 27 | into method label _BIX code_regex B1DA replaceall_matched begin B1B2(AD10,AD11) end; 28 | into method label _BIF code_regex B1DF replaceall_matched begin B1B2(FD10,FD11) end; 29 | into method label _BIX code_regex B1DF replaceall_matched begin B1B2(FD10,FD11) end; 30 | into method label _PTS code_regex \\_SB\.PCI0\.LPCB\.H_EC\.B1DF replaceall_matched begin B1B2(\\_SB.PCI0.LPCB.H_EC.FD10,\\_SB.PCI0.LPCB.H_EC.FD11) end; 31 | into method label _WAK code_regex \\_SB\.PCI0\.LPCB\.H_EC\.B1DF replaceall_matched begin B1B2(\\_SB.PCI0.LPCB.H_EC.FD10,\\_SB.PCI0.LPCB.H_EC.FD11) end; 32 | into method label _BIF code_regex B1DV replaceall_matched begin B1B2(VD10,VD11) end; 33 | into method label _BIX code_regex B1DV replaceall_matched begin B1B2(VD10,VD11) end; 34 | into method label _BIF code_regex B1DL replaceall_matched begin B1B2(LD10,LD11) end; 35 | into method label _BIX code_regex B1DL replaceall_matched begin B1B2(LD10,LD11) end; 36 | into method label _BIX code_regex CYLC replaceall_matched begin B1B2(CL10,CL11) end; 37 | 38 | # 39 | # 40 | # 41 | into method label B1B2 remove_entry; 42 | into definitionblock code_regex . insert 43 | begin 44 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 45 | end; 46 | -------------------------------------------------------------------------------- /bateria/Samsung-NP270E5J-XD1BR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Samsung NP270E5J-XD1BR 8 | # Samsung NP270E5J-XD3BR 9 | # Samsung NP300E5M-XD1BR 10 | 11 | # 12 | # 16 bits 13 | # 14 | into scope label _SB.PCI0.LPCB.H_EC code_regex CYLC,\s+16 replace_matched begin CL10,8,CL11,8 end; 15 | into scope label _SB.PCI0.LPCB.H_EC code_regex BTPC,\s+16, replace_matched begin CP10,8,CP11,8, end; 16 | 17 | into method label SBIX code_regex \^\^PCI0\.LPCB\.H_EC\.CYLC replaceall_matched begin B1B2(^^PCI0.LPCB.H_EC.CL10,^^PCI0.LPCB.H_EC.CL11) end; 18 | into method label _BTP code_regex \^\^PCI0\.LPCB\.H_EC\.BTPC replaceall_matched begin B1B2(^^PCI0.LPCB.H_EC.CP10,^^PCI0.LPCB.H_EC.CP11) end; 19 | 20 | # 21 | # 32 bits 22 | # 23 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1RR,\s+32 replace_matched begin RR00,8,RR01,8,RR02,8,RR03,8 end; 24 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1PV,\s+32 replace_matched begin PV00,8,PV01,8,PV02,8,PV03,8 end; 25 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1AF,\s+32 replace_matched begin AF00,8,AF01,8,AF02,8,AF03,8 end; 26 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1VL,\s+32 replace_matched begin VL00,8,VL01,8,VL02,8,VL03,8 end; 27 | 28 | into method label _BST code_regex \^\^PCI0\.LPCB\.H_EC\.B1RR replaceall_matched begin B1B4(^^PCI0.LPCB.H_EC.RR00,^^PCI0.LPCB.H_EC.RR01,^^PCI0.LPCB.H_EC.RR02,^^PCI0.LPCB.H_EC.RR03) end; 29 | 30 | into method label _BST code_regex \^\^PCI0\.LPCB\.H_EC\.B1PV replaceall_matched begin B1B4(^^PCI0.LPCB.H_EC.PV00,^^PCI0.LPCB.H_EC.PV01,^^PCI0.LPCB.H_EC.PV02,^^PCI0.LPCB.H_EC.PV03) end; 31 | 32 | into method label SBIX code_regex \^\^PCI0\.LPCB\.H_EC\.B1AF replaceall_matched begin B1B4(^^PCI0.LPCB.H_EC.AF00,^^PCI0.LPCB.H_EC.AF01,^^PCI0.LPCB.H_EC.AF02,^^PCI0.LPCB.H_EC.AF03) end; 33 | 34 | into method label _PTS code_regex \\_SB\.PCI0\.LPCB\.H_EC\.B1AF replaceall_matched begin B1B4(\\_SB.PCI0.LPCB.H_EC.AF00,\\_SB.PCI0.LPCB.H_EC.AF01,\\_SB.PCI0.LPCB.H_EC.AF02,\\_SB.PCI0.LPCB.H_EC.AF03) end; 35 | 36 | into method label _WAK code_regex \\_SB\.PCI0\.LPCB\.H_EC\.B1AF replaceall_matched begin B1B4(\\_SB.PCI0.LPCB.H_EC.AF00,\\_SB.PCI0.LPCB.H_EC.AF01,\\_SB.PCI0.LPCB.H_EC.AF02,\\_SB.PCI0.LPCB.H_EC.AF03) end; 37 | 38 | into method label RPTS code_regex \\_SB\.PCI0\.LPCB\.H_EC\.B1AF replaceall_matched begin B1B4(\\_SB.PCI0.LPCB.H_EC.AF00,\\_SB.PCI0.LPCB.H_EC.AF01,\\_SB.PCI0.LPCB.H_EC.AF02,\\_SB.PCI0.LPCB.H_EC.AF03) end; 39 | 40 | into method label RWAK code_regex \\_SB\.PCI0\.LPCB\.H_EC\.B1AF replaceall_matched begin B1B4(\\_SB.PCI0.LPCB.H_EC.AF00,\\_SB.PCI0.LPCB.H_EC.AF01,\\_SB.PCI0.LPCB.H_EC.AF02,\\_SB.PCI0.LPCB.H_EC.AF03) end; 41 | 42 | into method label SBIX code_regex \^\^PCI0\.LPCB\.H_EC\.B1VL replaceall_matched begin B1B4(^^PCI0.LPCB.H_EC.VL00,^^PCI0.LPCB.H_EC.VL01,^^PCI0.LPCB.H_EC.VL02,^^PCI0.LPCB.H_EC.VL03) end; 43 | 44 | # 45 | # 46 | # 47 | into method label B1B2 remove_entry; 48 | into definitionblock code_regex . insert 49 | begin 50 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 51 | end; 52 | 53 | into method label B1B4 remove_entry; 54 | into definitionblock code_regex . insert 55 | begin 56 | Method (B1B4, 4, NotSerialized)\n 57 | {\n 58 | Store(Arg3, Local0)\n 59 | Or(Arg2, ShiftLeft(Local0, 8), Local0)\n 60 | Or(Arg1, ShiftLeft(Local0, 8), Local0)\n 61 | Or(Arg0, ShiftLeft(Local0, 8), Local0)\n 62 | Return(Local0)\n 63 | }\n 64 | end; -------------------------------------------------------------------------------- /bateria/Samsung-NP300E4A-BD2BR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # https://hackintoshbrasil.com 4 | # 5 | # Compatível com MaciASL (fork Rehabman) 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # Samsung NP300E4A-BD2BR 9 | # Samsung RV420 10 | # Samsung RV411 11 | 12 | # METHOD FOR 16 BITS - CREDITS REHABMAN 13 | into method label B1B2 remove_entry; 14 | into definitionblock code_regex . insert 15 | begin 16 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 17 | end; 18 | 19 | # FIX 16 BITS 20 | into device label H_EC code_regex B1RA,\s+16 replace_matched begin RA00,8,RA01,8 end; 21 | into device label H_EC code_regex B1PR,\s+16 replace_matched begin PR00,8,PR01,8 end; 22 | into device label H_EC code_regex B1VO,\s+16 replace_matched begin VO00,8,VO01,8 end; 23 | into device label H_EC code_regex B1DA,\s+16 replace_matched begin DA00,8,DA01,8 end; 24 | into device label H_EC code_regex B1DF,\s+16 replace_matched begin DF00,8,DF01,8 end; 25 | into device label H_EC code_regex B1DV,\s+16 replace_matched begin DV00,8,DV01,8 end; 26 | into device label H_EC code_regex B1DL,\s+16 replace_matched begin DL00,8,DL01,8 end; 27 | 28 | into device label H_EC code_regex B1RP,\s+16 replace_matched begin RP00,8,RP01,8 end; 29 | into device label H_EC code_regex B1TI,\s+16 replace_matched begin TI00,8,TI01,8 end; 30 | into device label H_EC code_regex B1SE,\s+16 replace_matched begin SE00,8,SE01,8 end; 31 | into device label H_EC code_regex B1CR,\s+16 replace_matched begin CR00,8,CR01,8 end; 32 | into device label H_EC code_regex B1TM,\s+16 replace_matched begin TM00,8,TM01,8 end; 33 | 34 | into method label _BST code_regex \(B1RA, replaceall_matched begin (B1B2(RA00,RA01), end; 35 | into method label _BST code_regex \(B1PR, replaceall_matched begin (B1B2(PR00,PR01), end; 36 | into method label _BST code_regex \(B1VO, replaceall_matched begin (B1B2(VO00,VO01), end; 37 | 38 | into method label _BIF code_regex \(B1DA, replaceall_matched begin (B1B2(DA00,DA01), end; 39 | into method label _BIF code_regex \(B1DF, replaceall_matched begin (B1B2(DF00,DF01), end; 40 | into method label _BIF code_regex \(B1DV, replaceall_matched begin (B1B2(DV00,DV01), end; 41 | into method label _BIF code_regex \(B1DL, replaceall_matched begin (B1B2(DL00,DL01), end; 42 | 43 | into method label _PTS code_regex \\_SB\.PCI0\.LPCB\.H_EC\.B1DF replaceall_matched begin B1B2(\\_SB.PCI0.LPCB.H_EC.DF00,\\_SB.PCI0.LPCB.H_EC.DF01) end; 44 | into method label _WAK code_regex \\_SB\.PCI0\.LPCB\.H_EC\.B1DF replaceall_matched begin B1B2(\\_SB.PCI0.LPCB.H_EC.DF00,\\_SB.PCI0.LPCB.H_EC.DF01) end; 45 | -------------------------------------------------------------------------------- /bateria/Samsung-NP350XAA-VD1BR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Samsung Expert NP350XAA-VD1BR 8 | # Samsung Expert NP350XAA-KFWBR 9 | 10 | # 11 | # 16 bits 12 | # 13 | into scope label _SB.PCI0.LPCB.H_EC code_regex CYLC,\s+16 replace_matched begin CL10,8,CL11,8 end; 14 | into scope label _SB.PCI0.LPCB.H_EC code_regex BTPC,\s+16, replace_matched begin CP10,8,CP11,8, end; 15 | 16 | into method label SBIX code_regex \^\^PCI0\.LPCB\.H_EC\.CYLC replaceall_matched begin B1B2(^^PCI0.LPCB.H_EC.CL10,^^PCI0.LPCB.H_EC.CL11) end; 17 | into method label _BTP code_regex \^\^PCI0\.LPCB\.H_EC\.BTPC replaceall_matched begin B1B2(^^PCI0.LPCB.H_EC.CP10,^^PCI0.LPCB.H_EC.CP11) end; 18 | 19 | # 20 | # 32 bits 21 | # 22 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1RR,\s+32 replace_matched begin RR00,8,RR01,8,RR02,8,RR03,8 end; 23 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1PV,\s+32 replace_matched begin PV00,8,PV01,8,PV02,8,PV03,8 end; 24 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1AF,\s+32 replace_matched begin AF00,8,AF01,8,AF02,8,AF03,8 end; 25 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1VL,\s+32 replace_matched begin VL00,8,VL01,8,VL02,8,VL03,8 end; 26 | 27 | into method label _BST code_regex \^\^PCI0\.LPCB\.H_EC\.B1RR replaceall_matched begin B1B4(^^PCI0.LPCB.H_EC.RR00,^^PCI0.LPCB.H_EC.RR01,^^PCI0.LPCB.H_EC.RR02,^^PCI0.LPCB.H_EC.RR03) end; 28 | 29 | into method label _BST code_regex \^\^PCI0\.LPCB\.H_EC\.B1PV replaceall_matched begin B1B4(^^PCI0.LPCB.H_EC.PV00,^^PCI0.LPCB.H_EC.PV01,^^PCI0.LPCB.H_EC.PV02,^^PCI0.LPCB.H_EC.PV03) end; 30 | 31 | into method label SBIX code_regex \^\^PCI0\.LPCB\.H_EC\.B1AF replaceall_matched begin B1B4(^^PCI0.LPCB.H_EC.AF00,^^PCI0.LPCB.H_EC.AF01,^^PCI0.LPCB.H_EC.AF02,^^PCI0.LPCB.H_EC.AF03) end; 32 | 33 | into method label PPTS code_regex \^PCI0\.LPCB\.H_EC\.B1AF replaceall_matched begin B1B4(^PCI0.LPCB.H_EC.AF00,^PCI0.LPCB.H_EC.AF01,^PCI0.LPCB.H_EC.AF02,^PCI0.LPCB.H_EC.AF03) end; 34 | 35 | into method label PWAK code_regex \^PCI0\.LPCB\.H_EC\.B1AF replaceall_matched begin B1B4(^PCI0.LPCB.H_EC.AF00,^PCI0.LPCB.H_EC.AF01,^PCI0.LPCB.H_EC.AF02,^PCI0.LPCB.H_EC.AF03) end; 36 | 37 | into method label SBIX code_regex \^\^PCI0\.LPCB\.H_EC\.B1VL replaceall_matched begin B1B4(^^PCI0.LPCB.H_EC.VL00,^^PCI0.LPCB.H_EC.VL01,^^PCI0.LPCB.H_EC.VL02,^^PCI0.LPCB.H_EC.VL03) end; 38 | 39 | # 40 | # 41 | # 42 | into method label B1B2 remove_entry; 43 | into definitionblock code_regex . insert 44 | begin 45 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 46 | end; 47 | 48 | into method label B1B4 remove_entry; 49 | into definitionblock code_regex . insert 50 | begin 51 | Method (B1B4, 4, NotSerialized)\n 52 | {\n 53 | Store(Arg3, Local0)\n 54 | Or(Arg2, ShiftLeft(Local0, 8), Local0)\n 55 | Or(Arg1, ShiftLeft(Local0, 8), Local0)\n 56 | Or(Arg0, ShiftLeft(Local0, 8), Local0)\n 57 | Return(Local0)\n 58 | }\n 59 | end; -------------------------------------------------------------------------------- /bateria/Samsung-NP370E4K-KD2BR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman) 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # Samsung NP370E4K-KD2BR 8 | # 9 | 10 | # METHOD FOR 16 BITS - CREDITS REHABMAN 11 | into method label B1B2 remove_entry; 12 | into definitionblock code_regex . insert 13 | begin 14 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 15 | end; 16 | 17 | # METHOD FOR 32 BITS - CREDIS REHABMAN 18 | into method label B1B4 remove_entry; 19 | into definitionblock code_regex . insert 20 | begin 21 | Method (B1B4, 4, NotSerialized)\n 22 | {\n 23 | Store(Arg3, Local0)\n 24 | Or(Arg2, ShiftLeft(Local0, 8), Local0)\n 25 | Or(Arg1, ShiftLeft(Local0, 8), Local0)\n 26 | Or(Arg0, ShiftLeft(Local0, 8), Local0)\n 27 | Return(Local0)\n 28 | }\n 29 | end; 30 | 31 | 32 | # FIX 16 BITS 33 | 34 | into scope label _SB.PCI0.LPCB.H_EC code_regex CYLC,\s+16 replace_matched begin LC00,8,LC01,8 end; 35 | 36 | into method label SBIX code_regex \(\^\^PCI0.LPCB.H_EC.CYLC, replaceall_matched begin (B1B2(\^\^PCI0.LPCB.H_EC.LC00,\^\^PCI0.LPCB.H_EC.LC01), end; 37 | 38 | # FIX 32 BITS 39 | 40 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1RR,\s+32 replace_matched begin RR00,8,RR01,8,RR02,8,RR03,8 end; 41 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1PV,\s+32 replace_matched begin PV00,8,PV01,8,PV02,8,PV03,8 end; 42 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1AF,\s+32 replace_matched begin AF00,8,AF01,8,AF02,8,AF03,8 end; 43 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1VL,\s+32 replace_matched begin VL00,8,VL01,8,VL02,8,VL03,8 end; 44 | 45 | into method label _BST code_regex \(\^\^PCI0.LPCB.H_EC.B1RR replaceall_matched begin (B1B4(\^\^PCI0.LPCB.H_EC.RR00, \^\^PCI0.LPCB.H_EC.RR01, ^^PCI0.LPCB.H_EC.RR02, \^\^PCI0.LPCB.H_EC.RR03) end; 46 | into method label _BST code_regex \(\^\^PCI0.LPCB.H_EC.B1PV replaceall_matched begin (B1B4(\^\^PCI0.LPCB.H_EC.PV00, \^\^PCI0.LPCB.H_EC.PV01, ^^PCI0.LPCB.H_EC.PV02, \^\^PCI0.LPCB.H_EC.PV03) end; 47 | 48 | into method label SBIX code_regex \(\^\^PCI0.LPCB.H_EC.B1AF replaceall_matched begin (B1B4(\^\^PCI0.LPCB.H_EC.AF00, \^\^PCI0.LPCB.H_EC.AF01, ^^PCI0.LPCB.H_EC.AF02, \^\^PCI0.LPCB.H_EC.AF03) end; 49 | into method label SBIX code_regex \(\^\^PCI0.LPCB.H_EC.B1VL replaceall_matched begin (B1B4(\^\^PCI0.LPCB.H_EC.VL00, \^\^PCI0.LPCB.H_EC.VL01, ^^PCI0.LPCB.H_EC.VL02, \^\^PCI0.LPCB.H_EC.VL03) end; 50 | 51 | into method label RPTS code_regex \(\\_SB.PCI0.LPCB.H_EC.B1AF replaceall_matched begin (B1B4(\\_SB.PCI0.LPCB.H_EC.AF00, \\_SB.PCI0.LPCB.H_EC.AF01, \\_SB.PCI0.LPCB.H_EC.AF02, \\\_SB.PCI0.LPCB.H_EC.AF03) end; 52 | 53 | into method label RWAK code_regex \(\\_SB.PCI0.LPCB.H_EC.B1AF replaceall_matched begin (B1B4(\\_SB.PCI0.LPCB.H_EC.AF00, \\_SB.PCI0.LPCB.H_EC.AF01, \\_SB.PCI0.LPCB.H_EC.AF02, \\\_SB.PCI0.LPCB.H_EC.AF03) end; 54 | -------------------------------------------------------------------------------- /bateria/Samsung-NP500R4L-KS1BR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Samsung NP500R4L-KS1BR 8 | 9 | # 10 | # 16 bits 11 | # 12 | into scope label _SB.PCI0.LPCB.H_EC code_regex CYLC,\s+16 replace_matched begin CL10,8,CL11,8 end; 13 | into scope label _SB.PCI0.LPCB.H_EC code_regex BTPC,\s+16, replace_matched begin CP10,8,CP11,8, end; 14 | 15 | into method label SBIX code_regex \^\^PCI0\.LPCB\.H_EC\.CYLC replaceall_matched begin B1B2(^^PCI0.LPCB.H_EC.CL10,^^PCI0.LPCB.H_EC.CL11) end; 16 | into method label _BTP code_regex \^\^PCI0\.LPCB\.H_EC\.BTPC replaceall_matched begin B1B2(^^PCI0.LPCB.H_EC.CP10,^^PCI0.LPCB.H_EC.CP11) end; 17 | 18 | # 19 | # 32 bits 20 | # 21 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1RR,\s+32 replace_matched begin RR00,8,RR01,8,RR02,8,RR03,8 end; 22 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1PV,\s+32 replace_matched begin PV00,8,PV01,8,PV02,8,PV03,8 end; 23 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1AF,\s+32 replace_matched begin AF00,8,AF01,8,AF02,8,AF03,8 end; 24 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1VL,\s+32 replace_matched begin VL00,8,VL01,8,VL02,8,VL03,8 end; 25 | 26 | into method label _BST code_regex \^\^PCI0\.LPCB\.H_EC\.B1RR replaceall_matched begin B1B4(^^PCI0.LPCB.H_EC.RR00,^^PCI0.LPCB.H_EC.RR01,^^PCI0.LPCB.H_EC.RR02,^^PCI0.LPCB.H_EC.RR03) end; 27 | 28 | into method label _BST code_regex \^\^PCI0\.LPCB\.H_EC\.B1PV replaceall_matched begin B1B4(^^PCI0.LPCB.H_EC.PV00,^^PCI0.LPCB.H_EC.PV01,^^PCI0.LPCB.H_EC.PV02,^^PCI0.LPCB.H_EC.PV03) end; 29 | 30 | into method label SBIX code_regex \^\^PCI0\.LPCB\.H_EC\.B1AF replaceall_matched begin B1B4(^^PCI0.LPCB.H_EC.AF00,^^PCI0.LPCB.H_EC.AF01,^^PCI0.LPCB.H_EC.AF02,^^PCI0.LPCB.H_EC.AF03) end; 31 | 32 | into method label RPTS code_regex \\_SB\.PCI0\.LPCB\.H_EC\.B1AF replaceall_matched begin B1B4(\\_SB.PCI0.LPCB.H_EC.AF00,\\_SB.PCI0.LPCB.H_EC.AF01,\\_SB.PCI0.LPCB.H_EC.AF02,\\_SB.PCI0.LPCB.H_EC.AF03) end; 33 | 34 | into method label RWAK code_regex \\_SB\.PCI0\.LPCB\.H_EC\.B1AF replaceall_matched begin B1B4(\\_SB.PCI0.LPCB.H_EC.AF00,\\_SB.PCI0.LPCB.H_EC.AF01,\\_SB.PCI0.LPCB.H_EC.AF02,\\_SB.PCI0.LPCB.H_EC.AF03) end; 35 | 36 | into method label SBIX code_regex \^\^PCI0\.LPCB\.H_EC\.B1VL replaceall_matched begin B1B4(^^PCI0.LPCB.H_EC.VL00,^^PCI0.LPCB.H_EC.VL01,^^PCI0.LPCB.H_EC.VL02,^^PCI0.LPCB.H_EC.VL03) end; 37 | 38 | # 39 | # 40 | # 41 | into method label B1B2 remove_entry; 42 | into definitionblock code_regex . insert 43 | begin 44 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 45 | end; 46 | 47 | into method label B1B4 remove_entry; 48 | into definitionblock code_regex . insert 49 | begin 50 | Method (B1B4, 4, NotSerialized)\n 51 | {\n 52 | Store(Arg3, Local0)\n 53 | Or(Arg2, ShiftLeft(Local0, 8), Local0)\n 54 | Or(Arg1, ShiftLeft(Local0, 8), Local0)\n 55 | Or(Arg0, ShiftLeft(Local0, 8), Local0)\n 56 | Return(Local0)\n 57 | }\n 58 | end; -------------------------------------------------------------------------------- /bateria/Samsung-NP550XCJ-XS1BR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman) 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # SAMSUNG NP550XCJ-XS1BR 8 | # SAMSUNG NP550XCJ-XF1BR 9 | 10 | # METHOD FOR 16 BITS - CREDITS REHABMAN 11 | into method label B1B2 remove_entry; 12 | into definitionblock code_regex . insert 13 | begin 14 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 15 | end; 16 | 17 | # METHOD FOR 32 BITS - CREDITS REHABMAN 18 | into method label B1B4 remove_entry; 19 | into definitionblock code_regex . insert 20 | begin 21 | Method (B1B4, 4, NotSerialized)\n 22 | {\n 23 | Store(Arg3, Local0)\n 24 | Or(Arg2, ShiftLeft(Local0, 8), Local0)\n 25 | Or(Arg1, ShiftLeft(Local0, 8), Local0)\n 26 | Or(Arg0, ShiftLeft(Local0, 8), Local0)\n 27 | Return(Local0)\n 28 | }\n 29 | end; 30 | 31 | 32 | #FIX 16 BITS 33 | 34 | into scope label _SB.PCI0.LPCB.H_EC code_regex BTPC,\s+16 replace_matched begin PC00,8,PC01,8 end; 35 | into scope label _SB.PCI0.LPCB.H_EC code_regex CYLC,\s+16 replace_matched begin LC00,8,LC01,8 end; 36 | into scope label _SB.PCI0.LPCB.H_EC code_regex VERS,\s+16 replace_matched begin VE00,8,VE01,8 end; 37 | into scope label _SB.PCI0.LPCB.H_EC code_regex CPUP,\s+16 replace_matched begin UP00,8,UP01,8 end; 38 | into scope label _SB.PCI0.LPCB.H_EC code_regex CFSP,\s+16 replace_matched begin SP00,8,SP01,8 end; 39 | 40 | into method label _BTP code_regex BTPC replaceall_matched begin B1B2(PC00,PC01) end; 41 | into method label SBIX code_regex \(CYLC replaceall_matched begin (B1B2(LC00,LC01) end; 42 | 43 | #FIX 32 BITS 44 | 45 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1RR,\s+32 replace_matched begin RR00,8,RR01,8,RR02,8,RR03,8 end; 46 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1PV,\s+32 replace_matched begin PV00,8,PV01,8,PV02,8,PV03,8 end; 47 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1AF,\s+32 replace_matched begin AF00,8,AF01,8,AF02,8,AF03,8 end; 48 | into scope label _SB.PCI0.LPCB.H_EC code_regex B1VL,\s+32 replace_matched begin VL00,8,VL01,8,VL02,8,VL03,8 end; 49 | into scope label _SB.PCI0.LPCB.H_EC code_regex B2RR,\s+32 replace_matched begin BR00,8,BR01,8,BR02,8,BR03,8 end; 50 | into scope label _SB.PCI0.LPCB.H_EC code_regex B2PV,\s+32 replace_matched begin BP00,8,BP01,8,BP02,8,BP03,8 end; 51 | into scope label _SB.PCI0.LPCB.H_EC code_regex B2AF,\s+32 replace_matched begin BA00,8,BA01,8,BA02,8,BA03,8 end; 52 | into scope label _SB.PCI0.LPCB.H_EC code_regex B2VL,\s+32 replace_matched begin BV00,8,BV01,8,BV02,8,BV03,8 end; 53 | 54 | into method label _BST code_regex \(B1RR replaceall_matched begin (B1B4(RR00,RR01,RR02,RR03) end; 55 | into method label _BST code_regex \(B1PV replaceall_matched begin (B1B4(PV00,PV01,PV02,PV03) end; 56 | 57 | into method label SBIX code_regex \(B1AF replaceall_matched begin (B1B4(AF00,AF01,AF02,AF03) end; 58 | into method label SBIX code_regex \(B1VL replaceall_matched begin (B1B4(VL00,VL01,VL02,VL03) end; 59 | 60 | into method label _Q66 code_regex \(B1RR replaceall_matched begin (B1B4(RR00,RR01,RR02,RR03) end; 61 | 62 | into method label QPTS code_regex \(\^PCI0.LPCB.H_EC.B1AF, replaceall_matched begin (B1B4(\^PCI0.LPCB.H_EC.AF00, \^PCI0.LPCB.H_EC.AF01, \^PCI0.LPCB.H_EC.AF02, \^PCI0.LPCB.H_EC.AF03), end; 63 | 64 | into method label QWAK code_regex \(\^PCI0.LPCB.H_EC.B1AF, replaceall_matched begin (B1B4(\^PCI0.LPCB.H_EC.AF00, \^PCI0.LPCB.H_EC.AF01, \^PCI0.LPCB.H_EC.AF02, \^PCI0.LPCB.H_EC.AF03), end; 65 | -------------------------------------------------------------------------------- /bateria/Samsung-NP800G5M-XG1BR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Baseado no Samsung_NP730U3E_X04IT by RehabMan. 8 | # 9 | # Samsung NP800G5M-XG1BR 10 | 11 | into scope code_regex BTPC,\s+16 replace_matched begin BPC0,8,BPC1,8 end; 12 | into scope code_regex CYLC,\s+16 replace_matched begin CYC0,8,CYC1,8 end; 13 | 14 | into scope code_regex B1RR,\s+32 replace_matched begin BRR0,8,BRR1,8,BRR2,8,BRR3,8 end; 15 | into scope code_regex B1PV,\s+32 replace_matched begin BPV0,8,BPV1,8,BPV2,8,BPV3,8 end; 16 | into scope code_regex B1AF,\s+32 replace_matched begin BAF0,8,BAF1,8,BAF2,8,BAF3,8 end; 17 | into scope code_regex B1VL,\s+32 replace_matched begin BVL0,8,BVL1,8,BVL2,8,BVL3,8 end; 18 | 19 | into method label _BTP code_regex Store\s\((.*),\s\^\^PCI0\.LPCB\.H_EC\.BTPC\) replace_matched 20 | begin 21 | Store(%1, ^^PCI0.LPCB.H_EC.BPC0) Store(ShiftRight(%1,8), ^^PCI0.LPCB.H_EC.BPC1) 22 | end; 23 | 24 | into method label SBIX code_regex \(\^\^PCI0\.LPCB\.H_EC\.CYLC, replace_matched begin (B1B2(^^PCI0.LPCB.H_EC.CYC0,^^PCI0.LPCB.H_EC.CYC1), end; 25 | 26 | into method label _BST code_regex \(\^\^PCI0\.LPCB\.H_EC\.B1RR, replace_matched begin (B1B4(^^PCI0.LPCB.H_EC.BRR0,^^PCI0.LPCB.H_EC.BRR1,^^PCI0.LPCB.H_EC.BRR2,^^PCI0.LPCB.H_EC.BRR3), end; 27 | 28 | into method label _BST code_regex \(\^\^PCI0\.LPCB\.H_EC\.B1PV, replace_matched begin (B1B4(^^PCI0.LPCB.H_EC.BPV0,^^PCI0.LPCB.H_EC.BPV1,^^PCI0.LPCB.H_EC.BPV2,^^PCI0.LPCB.H_EC.BPV3), end; 29 | 30 | into method label SBIX code_regex \(\^\^PCI0\.LPCB\.H_EC\.B1AF, replace_matched begin (B1B4(^^PCI0.LPCB.H_EC.BAF0,^^PCI0.LPCB.H_EC.BAF1,^^PCI0.LPCB.H_EC.BAF2,^^PCI0.LPCB.H_EC.BAF3), end; 31 | 32 | into method label RPTS code_regex \(\\_SB.PCI0\.LPCB\.H_EC\.B1AF, replace_matched begin (B1B4(\\_SB.PCI0.LPCB.H_EC.BAF0,\\_SB.PCI0.LPCB.H_EC.BAF1,\\_SB.PCI0.LPCB.H_EC.BAF2,\\_SB.PCI0.LPCB.H_EC.BAF3), end; 33 | 34 | into method label RWAK code_regex \(\\_SB.PCI0\.LPCB\.H_EC\.B1AF, replace_matched begin (B1B4(\\_SB.PCI0.LPCB.H_EC.BAF0,\\_SB.PCI0.LPCB.H_EC.BAF1,\\_SB.PCI0.LPCB.H_EC.BAF2,\\_SB.PCI0.LPCB.H_EC.BAF3), end; 35 | 36 | into method label SBIX code_regex \(\^\^PCI0\.LPCB\.H_EC\.B1VL, replace_matched begin (B1B4(^^PCI0.LPCB.H_EC.BVL0,^^PCI0.LPCB.H_EC.BVL1,^^PCI0.LPCB.H_EC.BVL2,^^PCI0.LPCB.H_EC.BVL3), end; 37 | 38 | # 39 | # 40 | # 41 | into method label B1B2 remove_entry; 42 | into definitionblock code_regex . insert 43 | begin 44 | Method (B1B2, 2, NotSerialized) { Return (Or (Arg0, ShiftLeft (Arg1, 8))) }\n 45 | end; 46 | 47 | into method label B1B4 remove_entry; 48 | into definitionblock code_regex . insert 49 | begin 50 | Method (B1B4, 4, NotSerialized)\n 51 | {\n 52 | Store(Arg3, Local0)\n 53 | Or(Arg2, ShiftLeft(Local0, 8), Local0)\n 54 | Or(Arg1, ShiftLeft(Local0, 8), Local0)\n 55 | Or(Arg0, ShiftLeft(Local0, 8), Local0)\n 56 | Return(Local0)\n 57 | }\n 58 | end; -------------------------------------------------------------------------------- /bateria/Sony-Vaio-Fit-15.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # https://hackintoshbrasil.com 4 | # 5 | # Baseado no patch de Positivo Premiun-XS7320 by Samuel Cabral 6 | # Compatível com MaciASL (fork Rehabman) 7 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 8 | # 9 | # Sony Vaio Fit 15 10 | # 11 | # METHOD FOR 32 BITS - CREDITS REHABMAN 12 | into method label B1B4 remove_entry; 13 | into definitionblock code_regex . insert 14 | begin 15 | Method (B1B4, 4, NotSerialized)\n 16 | {\n 17 | Store(Arg3, Local0)\n 18 | Or(Arg2, ShiftLeft(Local0, 8), Local0)\n 19 | Or(Arg1, ShiftLeft(Local0, 8), Local0)\n 20 | Or(Arg0, ShiftLeft(Local0, 8), Local0)\n 21 | Return(Local0)\n 22 | }\n 23 | end; 24 | 25 | # FIX 32 BITS 26 | 27 | into device label EC code_regex BDC0,\s+32 replace_matched begin CDB0,8,CDB1,8,CDB2,8,CDB3,8 end; 28 | into device label EC code_regex BFC0,\s+32 replace_matched begin CFB0,8,CFB1,8,CFB2,8,CFB3,8 end; 29 | into device label EC code_regex BDV0,\s+32 replace_matched begin VDB0,8,VDB1,8,VDB2,8,VDB3,8 end; 30 | into device label EC code_regex BST0,\s+32 replace_matched begin TSB0,8,TSB1,8,TSB2,8,TSB3,8 end; 31 | into device label EC code_regex BPR0,\s+32 replace_matched begin RPB0,8,RPB1,8,RPB2,8,RPB3,8 end; 32 | into device label EC code_regex BRC0,\s+32 replace_matched begin CRB0,8,CRB1,8,CRB2,8,CRB3,8 end; 33 | into device label EC code_regex BPV0,\s+32 replace_matched begin VPB0,8,VPB1,8,VPB2,8,VPB3,8 end; 34 | into device label EC code_regex BCW0,\s+32 replace_matched begin WCB0,8,WCB1,8,WCB2,8,WCB3,8 end; 35 | into device label EC code_regex BCL0,\s+32 replace_matched begin LCB0,8,LCB1,8,LCB2,8,LCB3,8 end; 36 | 37 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC\.BDC0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.CDB0,^^PCI0.LPCB.EC.CDB1,^^PCI0.LPCB.EC.CDB2,^^PCI0.LPCB.EC.CDB3) end; 38 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC\.BFC0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.CFB0,^^PCI0.LPCB.EC.CFB1,^^PCI0.LPCB.EC.CFB2,^^PCI0.LPCB.EC.CFB3) end; 39 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC\.BDV0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.VDB0,^^PCI0.LPCB.EC.VDB1,^^PCI0.LPCB.EC.VDB2,^^PCI0.LPCB.EC.VDB3) end; 40 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC\.BCW0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.WCB0,^^PCI0.LPCB.EC.WCB1,^^PCI0.LPCB.EC.WCB2,^^PCI0.LPCB.EC.WCB3) end; 41 | into method label UPBI code_regex \^\^PCI0\.LPCB\.EC\.BCL0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.LCB0,^^PCI0.LPCB.EC.LCB1,^^PCI0.LPCB.EC.LCB2,^^PCI0.LPCB.EC.LCB3) end; 42 | 43 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC\.BFC0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.CFB0,^^PCI0.LPCB.EC.CFB1,^^PCI0.LPCB.EC.CFB2,^^PCI0.LPCB.EC.CFB3) end; 44 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC\.BST0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.TSB0,^^PCI0.LPCB.EC.TSB1,^^PCI0.LPCB.EC.TSB2,^^PCI0.LPCB.EC.TSB3) end; 45 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC\.BPR0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.RPB0,^^PCI0.LPCB.EC.RPB1,^^PCI0.LPCB.EC.RPB2,^^PCI0.LPCB.EC.RPB3) end; 46 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC\.BRC0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.CRB0,^^PCI0.LPCB.EC.CRB1,^^PCI0.LPCB.EC.CRB2,^^PCI0.LPCB.EC.CRB3) end; 47 | into method label UPBS code_regex \^\^PCI0\.LPCB\.EC\.BPV0 replaceall_matched begin B1B4(^^PCI0.LPCB.EC.VPB0,^^PCI0.LPCB.EC.VPB1,^^PCI0.LPCB.EC.VPB2,^^PCI0.LPCB.EC.VPB3) end; 48 | 49 | into method label GCMD code_regex \(\^\^PCI0\.LPCB\.EC\.BDC0, replaceall_matched begin (B1B4(^^PCI0.LPCB.EC.CDB0,^^PCI0.LPCB.EC.CDB1,^^PCI0.LPCB.EC.CDB2,^^PCI0.LPCB.EC.CDB3), end; 50 | -------------------------------------------------------------------------------- /bateria/Sony-Vaio-SVS13A17GBB.txt: -------------------------------------------------------------------------------- 1 | Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman) 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # SONY VAIO SVS13A17GBB 8 | 9 | # METHOD FOR 16 BITS - CREDITS REHABMAN 10 | into method label B1B2 remove_entry; 11 | into definitionblock code_regex . insert 12 | begin 13 | Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n 14 | end; 15 | 16 | # FIX 16 BITS 17 | 18 | into device label H_EC code_regex B1FC,\s+16 replace_matched begin FC00,8,FC01,8 end; 19 | into device label H_EC code_regex B1DC,\s+16 replace_matched begin DC00,8,DC01,8 end; 20 | into device label H_EC code_regex B1DV,\s+16 replace_matched begin DV00,8,DV01,8 end; 21 | into device label H_EC code_regex B1RC,\s+16 replace_matched begin RC00,8,RC01,8 end; 22 | into device label H_EC code_regex B1FV,\s+16 replace_matched begin FV00,8,FV01,8 end; 23 | into device label H_EC code_regex B1AI,\s+16 replace_matched begin AI00,8,AI01,8 end; 24 | into device label H_EC code_regex FRPM,\s+16 replace_matched begin PM00,8,PM01,8 end; 25 | into device label H_EC code_regex B2FC,\s+16 replace_matched begin FC10,8,FC11,8 end; 26 | into device label H_EC code_regex B2DC,\s+16 replace_matched begin DC10,8,DC11,8 end; 27 | into device label H_EC code_regex B2DV,\s+16 replace_matched begin DV10,8,DV11,8 end; 28 | into device label H_EC code_regex B2RC,\s+16 replace_matched begin RC10,8,RC11,8 end; 29 | into device label H_EC code_regex B2FV,\s+16 replace_matched begin FV10,8,FV11,8 end; 30 | into device label H_EC code_regex B2AI,\s+16 replace_matched begin AI10,8,AI11,8 end; 31 | 32 | into method label _BIF code_regex \(B1FC replaceall_matched begin (B1B2(FC00,FC01) end; 33 | into method label _BIF code_regex \(B1DC, replaceall_matched begin (B1B2(DC00,DC01), end; 34 | into method label _BIF code_regex \(B1DV, replaceall_matched begin (B1B2(DV00,DV01), end; 35 | into method label _BIF code_regex \(B2FC replaceall_matched begin (B1B2(FC10,FC11) end; 36 | into method label _BIF code_regex \(B2DC, replaceall_matched begin (B1B2(DC10,DC11), end; 37 | into method label _BIF code_regex \(B2DV, replaceall_matched begin (B1B2(DV10,DV11), end; 38 | 39 | into method label _BST code_regex \(B1RC, replaceall_matched begin (B1B2(RC00,RC01), end; 40 | into method label _BST code_regex B1FV replaceall_matched begin B1B2(FV00,FV01) end; 41 | into method label _BST code_regex \(B1AI, replaceall_matched begin (B1B2(AI00,AI01), end; 42 | into method label _BST code_regex \(B2RC, replaceall_matched begin (B1B2(RC10,RC11), end; 43 | into method label _BST code_regex B2FV replaceall_matched begin B1B2(FV10,FV11) end; 44 | into method label _BST code_regex \(B2AI, replaceall_matched begin (B1B2(AI10,AI11), end; 45 | 46 | into method label F149 code_regex \(\^\^H_EC.FRPM, replaceall_matched begin (B1B2(\^\^H_EC.PM00,\^\^H_EC.PM01), end; 47 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-ASUS-X510UR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # FnKeys Brightness para VoodooPS2 by Rehabman 8 | # ASUS X510UR 9 | # 10 | 11 | into method label _Q0E replace_content 12 | begin 13 | // Brightness Down\n 14 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n 15 | end; 16 | into method label _Q0F replace_content 17 | begin 18 | // Brightness Up\n 19 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n 20 | end; -------------------------------------------------------------------------------- /fnkeys/FnKeys-Acer-E1-571.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # https://hackintoshbrasil.com/forum/ 4 | # 5 | # Compatível com MaciASL (fork Rehabman). 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # FN Keys Brighness para ApplePS2SmartTouchPad by EMlyDinEsH 9 | # ACER E1 571 10 | # 11 | 12 | into method label _Q11 replace_content 13 | begin 14 | // Brightness Down\n 15 | Notify(\_SB.PCI0.LPCB.KBC0, 0x20)\n 16 | end; 17 | into method label _Q12 replace_content 18 | begin 19 | // Brightness Up\n 20 | Notify(\_SB.PCI0.LPCB.KBC0, 0x10)\n 21 | end; 22 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-Acer-E5-574-307M.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # FnKeys Brightness para SmartTouchPad (Synaptics) by EMlyDinEsH 8 | # Acer Aspire F5-573G-50KS 9 | # Acer Aspire E5-574-307M 10 | # 11 | 12 | into method label _Q8F replace_content 13 | begin 14 | // Abaixar brilho\n 15 | Notify (_SB.PCI0.LPCB.PS2K, 0x20)\n 16 | end; 17 | into method label _Q8E replace_content 18 | begin 19 | // Aumentar brilho\n 20 | Notify (_SB.PCI0.LPCB.PS2K, 0x10)\n 21 | end; -------------------------------------------------------------------------------- /fnkeys/FnKeys-Acer-F5-573G.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # https://hackintoshbrasil.com/forum/ 4 | # 5 | # Compatível com MaciASL (fork Acidanthera) 6 | # https://github.com/acidanthera/MaciASL/releases 7 | # 8 | # FnKeys Brightness para VoodooPS2 by AcidAnthera 9 | # 10 | # Compatível com ACER F5-573G 11 | # 12 | 13 | into method label _Q8F replace_content 14 | begin 15 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0205)\n 16 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0285)\n 17 | end; 18 | into method label _Q8E replace_content 19 | begin 20 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0206)\n 21 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0286)\n 22 | end; 23 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-Acer-NE56R13b.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # Compatível com MaciASL (fork Rehabman) 4 | # 5 | # FnKeys Brightness para VoodooPS2 by AcidAnthera 6 | # 7 | # Compatível com Acer Gateway NE56R13b 8 | # 9 | 10 | into method label _Q11 replace_content 11 | begin 12 | // Brightness Down\n 13 | Notify(\_SB.PCI0.LPCB.KBC0, 0x0205)\n 14 | Notify(\_SB.PCI0.LPCB.KBC0, 0x0285)\n 15 | end; 16 | into method label _Q12 replace_content 17 | begin 18 | // Brightness Up\n 19 | Notify(\_SB.PCI0.LPCB.KBC0, 0x0206)\n 20 | Notify(\_SB.PCI0.LPCB.KBC0, 0x0286)\n 21 | end; 22 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-BRT6.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # https://hackintoshbrasil.com 4 | # 5 | # Compatível com MaciASL (fork Rehabman) 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # FN Keys Brighness para método BRT6 9 | # Necessita da VoodooPS2 by AcidAnthera 10 | # 11 | into method label BRT6 replace_content begin 12 | If (LEqual (Arg0, One)) \n 13 | { \n 14 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n 15 | } \n 16 | \n 17 | If (And (Arg0, 0x02)) \n 18 | {\n 19 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n 20 | } \n 21 | end; 22 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-DELL-5557.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman). 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # FN Keys Brighness para VoodooPS2 by AcidAnthera 8 | # DELL 5557 9 | # 10 | 11 | into method label BRT6 replace_content begin 12 | If (LEqual (Arg0, One))\n 13 | {\n 14 | Notify (LCD, 0x86)\n 15 | Notify (^^LPCB.PS2K, 0x0366)\n 16 | }\n 17 | \n 18 | If (And (Arg0, 0x02))\n 19 | {\n 20 | Notify (LCD, 0x87)\n 21 | Notify (^^LPCB.PS2K, 0x0365)\n 22 | }\n 23 | end; 24 | 25 | into method label OSID replace_content begin 26 | If (LEqual (ACOS, Zero))\n 27 | {\n 28 | Store (One, ACOS)\n 29 | Store (Zero, ACSE)\n 30 | If (CondRefOf (\_OSI, Local0))\n 31 | {\n 32 | If (_OSI (WXP))\n 33 | {\n 34 | Store (0x10, ACOS)\n 35 | }\n 36 | \n 37 | If (_OSI (WLG))\n 38 | {\n 39 | Store (0x20, ACOS)\n 40 | }\n 41 | \n 42 | If (_OSI (WIN7))\n 43 | {\n 44 | Store (0x80, ACOS)\n 45 | }\n 46 | \n 47 | If (LOr (_OSI ("Darwin"), _OSI (WIN8)))\n 48 | {\n 49 | Store (0x80, ACOS)\n 50 | Store (One, ACSE)\n 51 | }\n 52 | \n 53 | If (_OSI (WN81))\n 54 | {\n 55 | Store (0x80, ACOS)\n 56 | Store (0x02, ACSE)\n 57 | }\n 58 | \n 59 | If (_OSI (LINX))\n 60 | {\n 61 | Store (0x40, ACOS)\n 62 | }\n 63 | }\n 64 | Else\n 65 | {\n 66 | If (STRE (_OS, W98S))\n 67 | {\n 68 | Store (0x02, ACOS)\n 69 | }\n 70 | \n 71 | If (STRE (_OS, WINM))\n 72 | {\n 73 | Store (0x04, ACOS)\n 74 | }\n 75 | \n 76 | If (STRE (_OS, NT5S))\n 77 | {\n 78 | Store (0x08, ACOS)\n 79 | }\n 80 | }\n 81 | }\n 82 | \n 83 | Return (ACOS)\n 84 | end; 85 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-HP-240-G6.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman). 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # FnKeys Brightness para VoodooPS2 by AcidAnthera 8 | # HP 240 G6 9 | # 10 | into method label _Q10 replace_content 11 | begin 12 | // Brightness Down\n 13 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n 14 | end; 15 | into method label _Q11 replace_content 16 | begin 17 | // Brightness Up\n 18 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n 19 | end; 20 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-Lenovo-Ideapad-320.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # FnKeys Brightness para VoodooPS2 by Rehabman 8 | # Lenovo Ideapad 320-15IKB 9 | # 10 | 11 | into method label _Q11 replace_content 12 | begin 13 | // Brightness Down\n 14 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n 15 | end; 16 | into method label _Q12 replace_content 17 | begin 18 | // Brightness Up\n 19 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n 20 | end; -------------------------------------------------------------------------------- /fnkeys/FnKeys-Lenovo-Ideapad-330.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman). 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # FnKeys Brightness para VoodooPS2 8 | # Lenovo Ideapad 330 9 | # Lenovo Ideapad B330 10 | 11 | into method label _Q11 replace_content 12 | begin 13 | // Brightness Down\n 14 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n 15 | end; 16 | into method label _Q12 replace_content 17 | begin 18 | // Brightness Up\n 19 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n 20 | end; 21 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-Lenovo-ThinkPad-T440.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman). 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # FnKeys Brightness para VoodooPS2 by AcidAnthera 8 | # Lenovo ThinkPad T440 9 | # 10 | 11 | into method label _Q15 replace_content 12 | begin 13 | // Brightness Down\n 14 | Notify(\_SB.PCI0.LPCB.KBD, 0x0205)\n 15 | Notify(\_SB.PCI0.LPCB.KBD, 0x0285)\n 16 | end; 17 | into method label _Q14 replace_content 18 | begin 19 | // Brightness Up\n 20 | Notify(\_SB.PCI0.LPCB.KBD, 0x0206)\n 21 | Notify(\_SB.PCI0.LPCB.KBD, 0x0286)\n 22 | end; 23 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-Lenovo-Thinkpad-E470.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman). 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # FnKeys Brightness para VoodooPS2 by AcidAnthera 8 | # Lenovo ThinkPad E470 9 | # 10 | into method label _Q15 replace_content 11 | begin 12 | Notify(KBD, 0x0405)\n 13 | end; 14 | into method label _Q14 replace_content 15 | begin 16 | Notify(KBD, 0x0406)\n 17 | end; 18 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-Lenovo-b490.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman). 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # FnKeys Brightness para VoodooPS2 by AcidAnthera 8 | # Lenovo b490 9 | # 10 | into method label _Q1D replace_content 11 | begin 12 | Notify(KBD, 0x0405)\n 13 | end; 14 | into method label _Q1C replace_content 15 | begin 16 | Notify(KBD, 0x0406)\n 17 | end; 18 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-Positivo-XCI-7660.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # https://hackintoshbrasil.com/forum/ 3 | # Autor: Jonas Wander 4 | # Compatível com MaciASL (fork Rehabman) 5 | # 6 | # FnKeys Brightness para ApplePS2SmartTouchPad by EMlyDinEsH 7 | # 8 | # Compatível com Positivo XCI 7660 9 | # 10 | 11 | into method label _Q14 replace_content 12 | begin 13 | // Brightness Down\n 14 | Notify(\_SB.PCI0.LPCB.PS2K, 0x20)\n 15 | end; 16 | into method label _Q15 replace_content 17 | begin 18 | // Brightness Up\n 19 | Notify(\_SB.PCI0.LPCB.PS2K, 0x10)\n 20 | end; 21 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-Samsung-NP300XAA-KF3BR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman). 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # FnKeys Brightness para VoodooPS2 by Rehabman 8 | # Samsung NP300XAA-KF3BR 9 | # 10 | 11 | into method label _Q63 replace_content 12 | begin 13 | // Brightness Down\n 14 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0205)\n 15 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0285)\n 16 | end; 17 | into method label _Q64 replace_content 18 | begin 19 | // Brightness Up\n 20 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0206)\n 21 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0286)\n 22 | end; 23 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-Samsung-NP370E4K-KD2BR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman). 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # FN Keys Brighness para ApplePS2SmartTouchPad by EMlyDinEsH 8 | # Samsung NP370E4K-KD2BR 9 | # 10 | 11 | into method label _Q63 replace_content 12 | begin 13 | // Brightness Down\n 14 | Notify(\_SB.PCI0.LPCB.PS2K, 0x20)\n 15 | end; 16 | 17 | into method label _Q64 replace_content 18 | begin 19 | // Brightness Up\n 20 | Notify(\_SB.PCI0.LPCB.PS2K, 0x10)\n 21 | end; 22 | -------------------------------------------------------------------------------- /fnkeys/FnKeys-Samsung-NP550XCJ-XS1BR.txt: -------------------------------------------------------------------------------- 1 | 2 | # Grupo: Hackintosh Brasil 3 | # Autor: Jonas Wander 4 | # 5 | # Compatível com MaciASL (fork Acidanthera) 6 | # https://github.com/acidanthera/MaciASL/releases 7 | # 8 | # FnKeys Brightness para VoodooPS2 by AcidAnthera 9 | # 10 | # FN KEYS SAMSUNG NP550XCJ-XS1BR 11 | # 12 | 13 | into method label _Q63 replace_content 14 | begin 15 | // Brightness Down\n 16 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n 17 | end; 18 | 19 | into method label _Q64 replace_content 20 | begin 21 | // Brightness Up\n 22 | Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n 23 | end; 24 | -------------------------------------------------------------------------------- /i2c/ALPS-ELAN-Lenovo-Ideapad-330-B330.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Touchpad I2C ALPS 5 | # Lenovo Ideapad 330 6 | # Lenovo Ideapad B330 (I2C ELAN) 7 | 8 | # 9 | # OS Check Fix (Windows 8) by Rehabman. 10 | # 11 | into_all method code_regex If\s+\([\\]?_OSI\s+\(\"Windows\s2012\"\)\) replace_matched begin If(LOr(_OSI("Darwin"),_OSI("Windows 2012"))) end; 12 | 13 | into method label _STA parent_label GPI0 replace_content 14 | begin 15 | Return (0xF) 16 | end; 17 | 18 | into method label _STA parent_label TPD0 replace_content 19 | begin 20 | Return (0xF) 21 | end; 22 | 23 | into method label _CRS parent_label TPD0 replace_content 24 | begin 25 | Return (ConcatenateResTemplate (SBFB, SBFG)) 26 | end; 27 | -------------------------------------------------------------------------------- /i2c/ATMEL-Samsung-Essentials-E30.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Touchpad I2C ATMEL 8 | # Samsung Essentials E30 (NP350XAA-KF3BR) 9 | 10 | into_all method code_regex If\s+\([\\]?_OSI\s+\(\"Windows\s2015\"\)\) replace_matched begin If ((_OSI ("Darwin") || _OSI ("Windows 2015"))) end; 11 | 12 | into method label _STA parent_label GPI0 code_regex ([\s\S]*) replace_matched 13 | begin 14 | If (_OSI ("Darwin"))\n 15 | {\n 16 | Return (0x0F)\n 17 | }\n 18 | %1 19 | end; 20 | 21 | into method label _STA parent_label SPTP code_regex ([\s\S]*) replace_matched 22 | begin 23 | If (_OSI ("Darwin"))\n 24 | {\n 25 | Return (0x0F)\n 26 | }\n 27 | %1 28 | end; 29 | 30 | into method label _CRS parent_label SPTP code_regex ([\s\S]*) replace_matched 31 | begin 32 | If (_OSI ("Darwin"))\n 33 | {\n 34 | Return (ConcatenateResTemplate (SBFS, SBFG)) 35 | }\n 36 | %1 37 | end; 38 | 39 | into method label SPTP insert 40 | begin 41 | Name (SSCN, Package () { 0x01B0, 0x01FB, 0x1E })\n 42 | Name (FMCN, Package () { 0x48, 0xA0, 0x1E }) 43 | end; -------------------------------------------------------------------------------- /i2c/DELL08CC-Dell-Vostro-3583-V3.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Touchpad I2C DELL08CC 8 | # Dell Vostro 3583 9 | # 10 | # OS Check Fix (Windows 8) by Rehabman. 11 | # 12 | into_all method code_regex If\s+\([\\]?_OSI\s+\(\"Windows\s2012\"\)\) replace_matched begin If(LOr(_OSI("Darwin"),_OSI("Windows 2012"))) end; 13 | 14 | into method label _STA parent_label GPI0 replace_content begin Return (0x0F) end; 15 | 16 | into method label _STA parent_label TPD0 replace_content begin Return (0x0F) end; 17 | 18 | into method label _CRS parent_label TPD0 replace_content begin Return (ConcatenateResTemplate (SBFB, SBFG)) end; 19 | 20 | into DefinitionBlock code_regex If\s\(USTP\) replace_matched begin If (LOr (_OSI("Darwin"), USTP)) end; -------------------------------------------------------------------------------- /i2c/DELL08CE-Dell-Inspiron-3481.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Touchpad I2C DELL 8 | # Dell Inspiron 3481 9 | 10 | # 11 | # OS Check Fix (Windows 8) by Rehabman. 12 | # 13 | into_all method code_regex If\s+\([\\]?_OSI\s+\(\"Windows\s2012\"\)\) replace_matched begin If(LOr(_OSI("Darwin"),_OSI("Windows 2012"))) end; -------------------------------------------------------------------------------- /i2c/ELAN-Synaptics-Lenovo-Ideapad-320.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Touchpad I2C ELAN / SYNAPTICS 8 | # Lenovo Ideapad 320-15IKB 9 | 10 | into method label _STA parent_label GPI0 replace_content 11 | begin 12 | Return (0x0F) 13 | end; 14 | 15 | into method label _STA parent_label TPD0 replace_content 16 | begin 17 | Return (0x0F) 18 | end; 19 | 20 | into device label TPD0 insert 21 | begin 22 | Name (SBGG, ResourceTemplate ()\n 23 | {\n 24 | GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault, 0x0000,\n 25 | "\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, ,\n 26 | )\n 27 | { // Pin list\n 28 | 0x3f\n 29 | }\n 30 | })\n 31 | end; 32 | 33 | into method label _CRS parent_label TPD0 replace_content begin 34 | Return (ConcatenateResTemplate (SBFB, SBGG)) 35 | end; 36 | 37 | # 38 | # OS Check Fix (Windows 8) by Rehabman. 39 | # 40 | into_all method code_regex If\s+\([\\]?_OSI\s+\(\"Windows\s2012\"\)\) replace_matched begin If(LOr(_OSI("Darwin"),_OSI("Windows 2012"))) end; -------------------------------------------------------------------------------- /i2c/ELAN-Synaptics-Lenovo-Ideapad-330.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Touchpad I2C ELAN / SYNAPTICS 8 | # Lenovo Ideapad 330 9 | 10 | # 11 | # OS Check Fix (Windows 8) by Rehabman. 12 | # 13 | into_all method code_regex If\s+\([\\]?_OSI\s+\(\"Windows\s2012\"\)\) replace_matched begin If(LOr(_OSI("Darwin"),_OSI("Windows 2012"))) end; 14 | 15 | into method label _CRS parent_label TPD0 replace_content 16 | begin 17 | Name (SBFX, ResourceTemplate ()\n 18 | {\n 19 | GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault, 0x0000,\n 20 | "\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, ,\n 21 | )\n 22 | {\n 23 | 0x57\n 24 | }\n 25 | })\n 26 | Return (ConcatenateResTemplate (SBFB, SBFX)) 27 | end; 28 | 29 | into method label _STA parent_label TPD0 replace_content 30 | begin 31 | Return (0x0F) 32 | end; 33 | 34 | into method label _STA parent_label GPI0 replace_content 35 | begin 36 | Return (0x0F) 37 | end; -------------------------------------------------------------------------------- /i2c/ELAN0504-Acer-A515-54.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Touchpad I2C ELAN 8 | # Acer Aspire A515-54 - 10gen 9 | 10 | into method label _STA parent_label GPI0 replace_content 11 | begin 12 | Return (0x0F) 13 | end; 14 | 15 | into method label _STA parent_label TPD0 replace_content 16 | begin 17 | Return (0x0F) 18 | end; 19 | 20 | # Windows 8.1 DSDT Patch for by RehabMan 21 | into_all method code_regex If\s+\([\\]?_OSI\s+\(\"Windows\s2013\"\)\) replace_matched begin If(LOr(_OSI("Darwin"),_OSI("Windows 2013"))) end; 22 | 23 | into device label I2C0 insert 24 | begin 25 | Method (PKGX, 3, Serialized)\n 26 | {\n 27 | Name (PKG, Package (0x03)\n 28 | {\n 29 | Zero,\n 30 | Zero,\n 31 | Zero\n 32 | })\n 33 | Store (Arg0, Index (PKG, Zero))\n 34 | Store (Arg1, Index (PKG, One))\n 35 | Store (Arg2, Index (PKG, 0x02))\n 36 | Return (PKG)\n 37 | }\n 38 | \n 39 | Method (SSCN, 0, NotSerialized)\n 40 | {\n 41 | Return (PKGX (SSH0, SSL0, SSD0))\n 42 | }\n 43 | \n 44 | Method (FMCN, 0, NotSerialized)\n 45 | {\n 46 | Name (PKG, Package (0x03)\n 47 | {\n 48 | 0x0101,\n 49 | 0x012C,\n 50 | 0x62\n 51 | })\n 52 | Return (PKG)\n 53 | }\n 54 | end; 55 | -------------------------------------------------------------------------------- /i2c/ELAN1000-ASUS-X556URK.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Touchpad I2C ELAN1000 8 | # ASUS VivoBook X556URK 9 | 10 | # 11 | # OS Check Fix (Windows 8) by Rehabman. 12 | # 13 | into_all method code_regex If\s+\([\\]?_OSI\s+\(\"Windows\s2012\"\)\) replace_matched begin If(LOr(_OSI("Darwin"),_OSI("Windows 2012"))) end; 14 | 15 | into method label _CRS parent_label TPD0 replace_content 16 | begin 17 | Name (SBFB, ResourceTemplate ()\n 18 | {\n 19 | I2cSerialBusV2 (0x0020, ControllerInitiated, 0x00061A80,\n 20 | AddressingMode7Bit, "\\_SB.PCI0.I2C0",\n 21 | 0x00, ResourceConsumer, _Y24, Exclusive,\n 22 | )\n 23 | })\n 24 | Name (SBFG, ResourceTemplate ()\n 25 | {\n 26 | GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault, 0x0000,\n 27 | "\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, ,\n 28 | )\n 29 | { // Pin list\n 30 | 0x6D\n 31 | }\n 32 | })\n 33 | Return (ConcatenateResTemplate (SBFB, SBFG)) 34 | end; 35 | 36 | into method label _STA parent_label ETPD replace_content 37 | begin 38 | Return (0x0F) 39 | end; 40 | 41 | into method label _STA parent_label GPI0 replace_content 42 | begin 43 | Return (0x0F) 44 | end; -------------------------------------------------------------------------------- /i2c/ELAN1200-ASUS-X510UR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Touchpad I2C ELAN 1200 8 | # ASUS X510UR 9 | 10 | # 11 | # OS Check Fix (Windows 8) by Rehabman. 12 | # 13 | into_all method code_regex If\s+\([\\]?_OSI\s+\(\"Windows\s2012\"\)\) replace_matched begin If(LOr(_OSI("Darwin"),_OSI("Windows 2012"))) end; -------------------------------------------------------------------------------- /i2c/Synaptics-Lenovo-Ideapad-330S.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Touchpad I2C SYNAPTICS 8 | # Lenovo Ideapad 330S 9 | 10 | # 11 | # OS Check Fix (Windows 8) by Rehabman. 12 | # 13 | into_all method code_regex If\s+\([\\]?_OSI\s+\(\"Windows\s2012\"\)\) replace_matched begin If(LOr(_OSI("Darwin"),_OSI("Windows 2012"))) end; -------------------------------------------------------------------------------- /i2c/Synaptics-Lenovo-Ideapad-S145.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Samuel Cabral 3 | # 4 | # Compatível com MaciASL (fork Acidanthera) 5 | # https://github.com/acidanthera/MaciASL/releases 6 | # 7 | # Touchpad I2C SYNAPTICS 8 | # Lenovo Ideapad S145 9 | 10 | # 11 | # OS Check Fix (Windows 8) by Rehabman. 12 | # 13 | into_all method code_regex If\s+\([\\]?_OSI\s+\(\"Windows\s2012\"\)\) replace_matched begin If(LOr(_OSI("Darwin"),_OSI("Windows 2012"))) end; 14 | 15 | into device label TPD0 code_regex 0x00000000 replace_matched 16 | begin 17 | 0x110 18 | end; 19 | 20 | into method label _CRS parent_label TPD0 replace_content 21 | begin 22 | Return (ConcatenateResTemplate (SBFB, SBFG)) 23 | end; 24 | 25 | into method label _STA parent_label TPD0 replace_content 26 | begin 27 | Return (0x0F) 28 | end; 29 | 30 | into method label _STA parent_label GPI0 replace_content 31 | begin 32 | Return (0x0F) 33 | end; -------------------------------------------------------------------------------- /outros/DTGP.txt: -------------------------------------------------------------------------------- 1 | into method label DTGP remove_entry; 2 | into definitionblock code_regex . insert 3 | begin 4 | Method (DTGP, 5, NotSerialized)\n 5 | {\n 6 | If (LEqual (Arg0, Buffer (0x10)\n 7 | {\n 8 | /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44, \n 9 | /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B\n 10 | }))\n 11 | {\n 12 | If (LEqual (Arg1, One))\n 13 | {\n 14 | If (LEqual (Arg2, Zero))\n 15 | {\n 16 | Store (Buffer (One)\n 17 | {\n 18 | 0x03\n 19 | }, Arg4)\n 20 | Return (One)\n 21 | }\n 22 | If (LEqual (Arg2, One))\n 23 | {\n 24 | Return (One)\n 25 | }\n 26 | }\n 27 | }\n 28 | Store (Buffer (One)\n 29 | {\n 30 | 0x00\n 31 | }, Arg4)\n 32 | Return (Zero)\n 33 | } 34 | end 35 | -------------------------------------------------------------------------------- /outros/Fake-EC.txt: -------------------------------------------------------------------------------- 1 | 2 | # Grupo: Hackintosh Brasil 3 | # Autor: Jonas Wander 4 | # 5 | # Compatível com MaciASL (fork Rehabman) 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # Fake EC 9 | # Este patch cria uma entrada EC para dispositivos que não possuem nenhum tipo de EC(ECDV, H_EC, EC0, etc) 10 | # 11 | into definitionblock code_regex . insert 12 | begin 13 | Device (EC)\n 14 | {\n 15 | Name (_HID, "EC000000") // _HID: Hardware ID\n 16 | }\n 17 | end; 18 | -------------------------------------------------------------------------------- /outros/Fix-AWAC.txt: -------------------------------------------------------------------------------- 1 | 2 | # Grupo: Hackintosh Brasil 3 | # Autor: Jonas Wander 4 | # 5 | # Compatível com MaciASL (fork Rehabman) 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # Fix AWAC 9 | # 10 | # Este patch desativa o AWAC e força a ativação do RTC 11 | # Este patch pode ser usado em placas-mãe séries 300 em diante 12 | # Pesquise na sua DSDT se existe o Device (AWAC) ou ACPI000E 13 | # 14 | into method label _STA parent_label AWAC remove_entry; 15 | into device label AWAC insert 16 | begin 17 | Method (_STA, 0, NotSerialized)\n 18 | {\n 19 | Return (Zero)\n 20 | }\n 21 | end; 22 | 23 | into method label _STA parent_label RTC remove_entry; 24 | into device label RTC insert 25 | begin 26 | Method (_STA, 0, NotSerialized)\n 27 | {\n 28 | Return (0x0F)\n 29 | }\n 30 | end; 31 | -------------------------------------------------------------------------------- /outros/Fix-SBRN.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # 4 | # Compatível com MaciASL (fork Rehabman) 5 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 6 | # 7 | # Fix SBRN 8 | # 9 | into method label SBRN replace_content 10 | begin 11 | If (^^^GFX0.PRST)\n 12 | {\n 13 | Store (^^^GFX0.GCBL, ^^^GFX0.CBLV)\n 14 | Store (LBTN, Local0)\n 15 | Subtract (0x0A, Local0, Local1)\n 16 | If (LNotEqual (Local1, LBTN))\n 17 | {\n 18 | Store (Local1, LBTN)\n 19 | }\n 20 | }\n 21 | end; 22 | -------------------------------------------------------------------------------- /outros/Insert-DMAC.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # https://hackintoshbrasil.com 4 | # 5 | # Compatível com MaciASL (fork Rehabman) 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # Insert DMAC 9 | into_all device label DMAC remove_entry; 10 | into device name_adr 0x001F0000 insert 11 | begin 12 | Device (DMAC)\n 13 | {\n 14 | Name (_HID, EisaId ("PNP0200")) // _HID: Hardware ID\n 15 | Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings\n 16 | {\n 17 | IO (Decode16,\n 18 | 0x0000, // Range Minimum\n 19 | 0x0000, // Range Maximum\n 20 | 0x01, // Alignment\n 21 | 0x20, // Length\n 22 | )\n 23 | IO (Decode16,\n 24 | 0x0081, // Range Minimum\n 25 | 0x0081, // Range Maximum\n 26 | 0x01, // Alignment\n 27 | 0x11, // Length\n 28 | )\n 29 | IO (Decode16,\n 30 | 0x0093, // Range Minimum\n 31 | 0x0093, // Range Maximum\n 32 | 0x01, // Alignment\n 33 | 0x0D, // Length\n 34 | )\n 35 | IO (Decode16,\n 36 | 0x00C0, // Range Minimum\n 37 | 0x00C0, // Range Maximum\n 38 | 0x01, // Alignment\n 39 | 0x20, // Length\n 40 | )\n 41 | DMA (Compatibility, NotBusMaster, Transfer8_16, )\n 42 | {4}\n 43 | })\n 44 | }\n 45 | end 46 | -------------------------------------------------------------------------------- /outros/Insert-PMCR.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # https://hackintoshbrasil.com 4 | # 5 | # Compatível com MaciASL (fork Rehabman) 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # Insert PMCR 9 | into_all device label PMCR remove_entry; 10 | into device name_adr 0x001F0000 insert 11 | begin 12 | Device (PMCR)\n 13 | {\n 14 | Name (_HID, EisaId ("APP9876")) // _HID: Hardware ID\n 15 | Name (_STA, 0x0B) // _STA: Status\n 16 | Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings\n 17 | {\n 18 | Memory32Fixed (ReadWrite,\n 19 | 0xFE000000, // Address Base\n 20 | 0x00010000, // Address Length\n 21 | )\n 22 | })\n 23 | }\n 24 | end 25 | -------------------------------------------------------------------------------- /outros/Renomear-EC0-EC.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # https://hackintoshbrasil.com/forum/ 4 | # 5 | # Compatível com MaciASL (fork Rehabman) 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # Renomear EC0 para EC 9 | 10 | into_all all code_regex EC0\. replaceall_matched begin EC. end; 11 | into_all all code_regex EC0\) replaceall_matched begin EC) end; 12 | into_all all label EC0 set_label begin EC end; 13 | -------------------------------------------------------------------------------- /outros/Renomear-H_EC-EC.txt: -------------------------------------------------------------------------------- 1 | # Grupo: Hackintosh Brasil 2 | # Autor: Jonas Wander 3 | # https://hackintoshbrasil.com/forum/ 4 | # 5 | # Compatível com MaciASL (fork Rehabman) 6 | # https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/ 7 | # 8 | # Renomear H_EC para EC 9 | 10 | into_all all code_regex H_EC\. replaceall_matched begin EC. end; 11 | into_all all label H_EC set_label begin EC end; 12 | --------------------------------------------------------------------------------