daliansky / oc-little Goto Github PK
View Code? Open in Web Editor NEWACPI Hotpatch Samples for the OpenCore Bootloader
ACPI Hotpatch Samples for the OpenCore Bootloader
行号 12,14,16,18,25
syntax error 和 invalid character
Whats up buddy Awesome job I converted your repo to English here's the link
我之前在5代CPU上使用了EHCx-OFF,导致现在一个USB端口3.0无法使用
个人觉得是bios和电源管理的锅
1.型号是傻多戴的灵越3543,bios是最新版
2.使用了SSDT-GPRW补丁,电脑才能正常睡眠不被网卡唤醒
3.重置bios后如果不睡眠一样可以关机,但睡眠后不重置bios就不能关机
4.使用opencore引导系统,0.61和0.62都试过,是一样的问题
5.使用了安装mojava和catlina也是这个问题
Hi there.
Thank you for your great work ,but would you consider translate the guide in English?
Thank you again.
你好,我的笔记本是联想E490安装bigsur11.5以后,亮度无法调节,显示器也没有亮度调节滑块,SSDT-PNLF.aml补丁已经注入
在线手册 处 OpenCore 部件库,链接已失效,提示 Couldn't find the requested file /docs/OpenCore部件库.pdf in daliansky/OC-little.
Hey, how do you set the keys to adjust the screen brightness on a laptop keyboard ?? Right now it's fn + f12 and fn + key pause. My bootloader is opencore. In my laptop acer v3-371, the shortcut from adjusting the screen brightness on the keyboard is the shortcut fn + left arrow key and fn + arrow right key.
我是GZ小白,我也想提供一下我的电池教程和博客
Coding:http://yqp7js.coding-pages.com/2020/05/16/为小白设计的电池教程(DSDT)/
http://yqp7js.coding-pages.com/2020/05/16/进阶:电池热补丁(Battery-Hotpatch)之路/
Github:https://gzxiaobai.github.io
我的补丁库在电池补丁那里已经收录了,希望教程也能收录一些,谢谢!
你好,我的笔记本是Y7000P 2020H,安装好后Monterey 12.6后,核显能正常驱动,显示器设置界面中有亮度调整滑块,按功能键Fn+F5、F6也能显示(常说的小太阳),但是拖动亮度调节滑块或按功能键后,屏幕亮度没有变化。按PNLF注入方法中的方式处理后还是不行,请问有没有解决办法啊。
DGPU
对象的 ON
和 OFF
方法DGPU
下的方法是在屏蔽独显 SSDT 中定义的。虽然添加了 CodeRefOf
,但是仍然显得冗余。
DGPU
的必要性在 PTSWAK
期间操作独显 源于 Rehabman 的 Clover HotPatch,在 Rehabman 的 SSDT-RMCF
中也没有说明其必要性,且此值默认为 0
(禁用)。
私以为,操作 DGPU
应该作为可选的 EXT 插件实现。
Hi I have a problem with the PNLF configuration on this HW, well the problem is quite known and I would like to fix it once and for all if possible, maybe with your help
I leave ACPI origin, SSDT Hack and ioreg below, EVERYTHING works, only PNLF is missing I see the control bar, FN keys work but the brightness adjustment has NO effect
我的机型原始GUPC方法为:
Method (GUPC, 1, Serialized)
{
Name (PCKG, Package (0x04)
{
Zero,
0xFF,
Zero,
Zero
})
PCKG [Zero] = Arg0
Return (PCKG)
}
然后任一端口的_UPC Method均调用序列化GUPC方法:
Method (_UPC, 0, NotSerialized)
{
Return (GUPC(One))
}
或
Method (_UPC, 0, NotSerialized)
{
Return (GUPC(Zero))
}
可以看出问题在于把所有的端口都内建了,GUPC函数又只有一个参数用于定义端口存在(One)或被屏蔽(Zero)
故我的处理如下,hotpatch重命名GUPC为XUPC,然后在自定义SSDT重写该方法:
Name (USBP, Zero)
Method (GUPC, 1, Serialized)
{
Name (PCKG, Package (0x04)
{
0xFF,
0x03,
Zero,
Zero
})
USBP += One
If (((USBP == 0x04) || (Arg0 == Zero)))
{
PCKG [Zero] = Zero
}
If ((((USBP == 0x04) || (USBP == 0x05)) || (USBP == 0x06)))
{
PCKG [One] = 0xFF
}
Return (PCKG)
}
因为GUPC方法是序列化的,而且每个USB端口(从HS01到HS10,以及USR1,USR2,SS01到SS06,)均会调用一次,所以定义了USBP并且通过自增实现了端口的一一对应。
本人主要实现了:修正端口连接类型(HS04,HS05,HS06分别为内建指纹识别,相机,蓝牙),并且屏蔽HS04端口。
请教黑果大神,Version2004应该用什么代码?
使用这个SSDT禁用SD卡,RP02,在macOS下面没问题,禁用成功,但是进入Windows的时候会提示ACPI BIOS ERROR,里面有Darwin判断语句不知道为啥还会报错,删掉那个STA语句开机就不报错了,但是进入macOS禁用失效。。。
2021-01-24 02:34:52.011013+0800 0x722fe Default 0x0 72 0 powerd: [powerd:sleepWake] Wake reason: "<private>" identity: "<private>"
2021-01-24 03:05:52.018013+0800 0x75 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 (Alarm)
2021-01-24 03:05:52.018014+0800 0x75 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 (Alarm)
2021-01-24 05:36:27.172503+0800 0x8a8c0 Default 0x0 72 0 powerd: [powerd:sleepWake] Wake reason: "<private>" identity: "<private>"
2021-01-24 05:36:45.421419+0800 0x75 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 (Alarm)
2021-01-24 05:36:45.421420+0800 0x75 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 (Alarm)
2021-01-24 08:07:41.849282+0800 0x75 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 (Alarm)
2021-01-24 08:07:41.849282+0800 0x75 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 (Alarm)
直接修改:
修改 VoodooPS2Keyboard.kext\info\IOKitPersonalities\Platform Profile\Default\LogScanCodes = 1
在控制台也搜不到跟“ ApplePS2Keyboard”有关的内容
使用的模板文件SSDT-PLUG-_SB.PR00.dsl,用Maciasl.app(版本为v1.4)打开,然后另存为SSDT-PLUG-_SB.PR00.aml(ACPI Machine Language Binary),报一堆的错误,错误如下:
Maciasl程序结果
The document “SSDT-PLUG-_SB.PR00.dsl” could not be saved as “SSDT-PLUG-_SB.PR00.aml”.
The compiler returned one or more errors.
Maciasl报错信息
line code Message
12 4096 syntax error, unexpect '('
12 4096 Inalid character (0x3D), expecting ASL keyword or name.
25 4096 syntax error, unexpect '('
25 4096 Inalid character (0x3D), expecting ASL keyword or name.
等等等等
是否是我另存为的方式的问题?
Can someone help me with battry patch according to new guide : https://xstar-dev.github.io/hackintosh_advanced/Guide_For_Battery_Hotpatch.html#如何排查错误 ?
I cannot find any way to download the ssdt from baidu and guide seems laso to difficult for me.
My problem is that my battery percentage is 5-6% off (compared to coconut battery and windows).
Here is my dsdt if anyone can help (seems I havea BAT0 and a BAT1 , but my laptop has only 1 battery installed).
System DSDT.aml.zip
Thanks in advance.
打了这个IRQ补丁以后大概几分钟后自动重启,有没有办法在不重名的前提下解决
使用IRQ补丁在睡眠之后时间为睡眠前的时间,RTC没有工作。刚刚换到opencore引导,原来可以勾选clover的hpet修补,否则开不了机;在clover再使用SSDT-RTC_Y-AWAC_N的补丁就可以解决了。opencore下有什么办法?
建议增加win10 1909的arg 0
1909已经发布,不知参数是多少?
直接删除 TIMR, RTC 的 IRQ, 或者找个空闲的填上 然后手动指定 HEPT 设备的 irq 感觉更方便
这里给出的SSDT-ALSD默认了ALSD设备在_SB下,但有的电脑的ALSD设备在\下,希望可以更新一下文档,分两种情况。改成这样即可,虽然区别不大
DefinitionBlock ("", "SSDT", 2, "OCLT", "ALSD", 0)
{
External (ALSE, IntObj)
Scope (\)
{
If (_OSI ("Darwin"))
{
Store (0x02, ALSE)
}
}
}
或
DefinitionBlock ("", "SSDT", 2, "OCLT", "ALSD", 0)
{
External (ALSE, IntObj)
Scope (_SB)
{
If (_OSI ("Darwin"))
{
Store (0x02, ALSE)
}
}
}
答案不是Acidanthera吗
I followed your guide inside ACPIDebug.
I put "ACPIDebug.kext", that is correctly running:
antonio@MacBook-Pro ~ % sudo kextstat -l|grep rehab Executing: /usr/bin/kmutil showloaded --list-only 71 0 0 0xa000 0xa000 com.rehabman.driver.ACPIDebug (0.1.4) 9A0916D1-E9C6-3570-90E9-4DDC4BB19FB7 <13 5 3>
I created a custom SSDT for almost every EC Query in my DSDT (lost hours...):
DefinitionBlock ("", "SSDT", 2, "REMAP", "_KBD", 0x00000000)
{
External (_SB_.PCI0.LPCB.H_EC, DeviceObj)
External (RMDT.PUSH, MethodObj)
Scope (\_SB.PCI0.LPCB.H_EC)
{
Method (_Q50, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
{
\RMDT.PUSH ("Q50")
}
Method (_Q51, 0, NotSerialized)
{
\RMDT.PUSH ("Q51")
}
Method (_Q6C, 0, NotSerialized)
{
\RMDT.PUSH ("Q6C")
}
and so on...
I made and applied all the rename patches on config.plist.
ACPI table correctly loads but I don't have any sign of life of the EC Queries when I press a key in my log.
Your guide is the only found online that uses custom SSDT to make ACPIDebug work.
Maybe I'm missing something from your folder or maybe there is some operation that is not reported. I hope this reporting could be useful in case something is missing. Sorry if it's my mistake but I can't find other solutions at the moment and I think I did all that was described (helping with google translate).
Thanks in advance
System: Big Sur Beta 9
EDIT: tried to patch DSDT directly with patches by RehabMan. DSDT correctly loaded, with RMDT.PUSH for every EC Query. I don't have any log, though. Maybe the kext doesn't work with Big Sur?
使用该hotpatch,笔记本原始DSDT如下:
` Device (HPET)
{
Name (_HID, EisaId ("PNP0103") /* HPET System Timer */) // _HID: Hardware ID
Name (_UID, Zero) // _UID: Unique ID
Name (BUF0, ResourceTemplate ()
{
Memory32Fixed (ReadWrite,
0xFED00000, // Address Base
0x00000400, // Address Length
_Y0F)
})
Method (_STA, 0, NotSerialized) // _STA: Status
{
If ((OSYS >= 0x07D1))
{
If (HPAE)
{
Return (0x0F)
}
}
ElseIf (HPAE)
{
Return (0x0B)
}
Return (Zero)
}
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
{
If (HPAE)
{
CreateDWordField (BUF0, \_SB.PCI0.LPCB.HPET._Y0F._BAS, HPT0) // _BAS: Base Address
If ((HPAS == One))
{
HPT0 = 0xFED01000
}
If ((HPAS == 0x02))
{
HPT0 = 0xFED02000
}
If ((HPAS == 0x03))
{
HPT0 = 0xFED03000
}
}
Return (BUF0) /* \_SB_.PCI0.LPCB.HPET.BUF0 */
}
}`
所以直接使用HPAE=0禁用HPET,开机后通过IOREG确实看到HPET被禁用,只有HPE0存在,但是开机后1分钟左右电脑便会突然断电,无任何征兆,无五国,无KernelPanic信息,就是无故断电。
除了HPAE=0,还有其余的方法可以禁用并且仿冒HPET么?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.