daliansky / XiaoXinPro-13-hackintosh

Lenovo XiaoXin Pro 13 2019 Hackintosh
881 stars 136 forks source link

关于YogaSMC 的使用。 #139

Open M69W opened 3 years ago

M69W commented 3 years ago

YogaSMC 可以实现 windows 版的 联想电脑管家部分功能

https://github.com/zhen-zen/YogaSMC

初步确定工作

image image image

cytown commented 3 years ago

能否给给config.plist的patch啊

M69W commented 3 years ago

能否给给config.plist的patch啊

直接引用即可

cytown commented 3 years ago
144a145,160
>           <dict>
>               <key>Comment</key>
>               <string>SSDT-ECRW.aml</string>
>               <key>Enabled</key>
>               <true/>
>               <key>Path</key>
>               <string>SSDT-ECRW.aml</string>
>           </dict>
>           <dict>
>               <key>Comment</key>
>               <string>SSDT-RCSM.aml</string>
>               <key>Enabled</key>
>               <true/>
>               <key>Path</key>
>               <string>SSDT-RCSM.aml</string>
>           </dict>
816a833,852
>           <dict>
>               <key>BundlePath</key>
>               <string>ECEnabler.kext</string>
>               <key>Enabled</key>
>               <true/>
>               <key>ExecutablePath</key>
>               <string>Contents/MacOS/ECEnabler</string>
>               <key>PlistPath</key>
>               <string>Contents/Info.plist</string>
>           </dict>
>           <dict>
>               <key>BundlePath</key>
>               <string>YogaSMC.kext</string>
>               <key>Enabled</key>
>               <true/>
>               <key>ExecutablePath</key>
>               <string>Contents/MacOS/YogaSMC</string>
>               <key>PlistPath</key>
>               <string>Contents/Info.plist</string>
>           </dict>

我也更新一下

M69W commented 3 years ago

@cytown
忘了一个驱动 ECEnabler.kext,上面有更新

cytown commented 3 years ago

@cytown 忘了一个驱动 ECEnabler.kext,上面有更新

看看更新的,没问题吧?

建议直接打个包,直接做好。。。

jiangbeilaodao commented 3 years ago
image
M69W commented 3 years ago

@jiangbeilaodao 也是小新pro? 系统是多少

jiangbeilaodao commented 3 years ago

小新pro13 i7 catalina 10.15.7 直接使用有点小问题。显示电池信息调用了acpi gbid、gsbi方法,需要进行hotpatch

M69W commented 3 years ago

表示并不懂ACPI(SSDT)

M69W commented 3 years ago

小新pro13 i7 catalina 10.15.7 直接使用有点小问题。显示电池信息调用了acpi gbid、gsbi方法,需要进行hotpatch

image 是这个意思?

ruigemen commented 3 years ago

Clover也如法炮制吗

cytown commented 3 years ago

小新pro13 i7 catalina 10.15.7 直接使用有点小问题。显示电池信息调用了acpi gbid、gsbi方法,需要进行hotpatch

如何做,能解釋下麽?

jiangbeilaodao commented 3 years ago

请参考电池热补丁的教程 https://xstar-dev.github.io/hackintosh_advanced/Guide_For_Battery_Hotpatch.html

cytown commented 3 years ago

请参考电池热补丁的教程 https://xstar-dev.github.io/hackintosh_advanced/Guide_For_Battery_Hotpatch.html

请问你怎么改的,能介绍下么?

jiangbeilaodao commented 3 years ago

imageimage

jiangbeilaodao commented 3 years ago

GSBI 同样处理

cytown commented 3 years ago

收到,謝謝,我去看看

cytown commented 3 years ago

汗,看了看没太明白,这个应该是在哪个ami文件里面???

cytown commented 3 years ago

能否直接发个现成文件啊?还是说每台机器都不能一样?

cytown commented 3 years ago

我用hacktools导出了acpi文件,在DSDT.dsl文件里面找到这些内容:

Method (GBID, 0, NotSerialized)
                {
                    Name (BFIF, Package (0x04)
                    {
                        Buffer (0x02)
                        {
                             0x00, 0x00                                     
                        }, 

                        Buffer (0x02)
                        {
                             0xFF, 0xFF                                     
                        }, 

                        Buffer (0x08)
                        {
                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 
                        }, 

                        Buffer (0x08)
                        {
                             0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF 
                        }
                    })
                    Store (B1CY, Index (DerefOf (Index (BFIF, Zero)), Zero))
                    Store (BMIL, Index (DerefOf (Index (BFIF, 0x02)), Zero))
                    Store (BMIH, Index (DerefOf (Index (BFIF, 0x02)), One))
                    Store (HIDL, Index (DerefOf (Index (BFIF, 0x02)), 0x02))
                    Store (HIDH, Index (DerefOf (Index (BFIF, 0x02)), 0x03))
                    Store (FMVL, Index (DerefOf (Index (BFIF, 0x02)), 0x04))
                    Store (FMVH, Index (DerefOf (Index (BFIF, 0x02)), 0x05))
                    Store (DAVL, Index (DerefOf (Index (BFIF, 0x02)), 0x06))
                    Store (DAVH, Index (DerefOf (Index (BFIF, 0x02)), 0x07))
                    Return (BFIF)
                }

下一步如何操作?

ClayMoreBoy commented 3 years ago

@M69W 下個版本整合進efi

M69W commented 3 years ago

@M69W 下個版本整合進efi

先在issue 大家测试一下,没问题在内置进去

M69W commented 3 years ago

@jiangbeilaodao 大佬可直接发SSDT文件?

jiangbeilaodao commented 3 years ago

仅供参考: SSDT-Pro13-GBID-GSBI.aml.zip

config.plist->api->patch:加2条重命名 Comment: GBID renamed XBID Find: 47424944 Replace: 58424944

Comment: GSBI renamed XSBI Find: 47534249
Replace: 58534249

M69W commented 3 years ago

仅供参考: SSDT-Pro13-GBID-GSBI.aml.zip

config.plist->api->patch:加2条重命名 Comment: GBID renamed XBID Find: 47424944 Replace: 58424944

Comment: GSBI renamed XSBI Find: 47534249 Replace: 58534249

我先来测试一波

M69W commented 3 years ago

@jiangbeilaodao 使用 https://github.com/daliansky/XiaoXinPro-13-hackintosh/releases/tag/v3.0.0

配置如下, image image

貌似没识别出来 image

M69W commented 3 years ago

可以了,要把之前的电池SSDT 都去掉。。

M69W commented 3 years ago

image 不知道哪个才是准确的

M69W commented 3 years ago

OC.zip

M69W commented 3 years ago

@jiangbeilaodao 暂时发现两个地方异常

image image

jiangbeilaodao commented 3 years ago

请问SSDT-OCBAT1-lenovoPRO13.aml加载了么?

jiangbeilaodao commented 3 years ago

合并SSDT-OCBAT1-lenovoPRO13.aml、SSDT-Pro13-GBID-GSBI.aml: SSDT-Pro13-BAT1.aml.zip

M69W commented 3 years ago

请问SSDT-OCBAT1-lenovoPRO13.aml加载了么?

如果加载了,它是无法识别,所以就直接去掉了。

M69W commented 3 years ago

合并SSDT-OCBAT1-lenovoPRO13.aml、SSDT-Pro13-GBID-GSBI.aml: SSDT-Pro13-BAT1.aml.zip

试试这个

M69W commented 3 years ago

OC-SSDT-Pro13-BAT1.zip

目测正常了。

FINatiend commented 3 years ago

按fn+q只会显示Fn-Q Cooling,切换不了quiet balance performance

M69W commented 3 years ago

按fn+q只会显示Fn-Q Cooling,切换不了quiet balance performance

可以在界面上切换。

Kosthi commented 3 years ago

在系统设置与面板间切换时有时会报错

M69W commented 3 years ago

在系统设置与面板间切换时有时会报错