Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

惠普2代笔记本使用HPAE会导致开机后无故重启 #54

Open
gujiangjiang opened this issue Oct 1, 2023 · 0 comments
Open

惠普2代笔记本使用HPAE会导致开机后无故重启 #54

gujiangjiang opened this issue Oct 1, 2023 · 0 comments

Comments

@gujiangjiang
Copy link

https://github.com/daliansky/OC-little/blob/master/21-%E5%A3%B0%E5%8D%A1IRQ%E8%A1%A5%E4%B8%81/SSDT-HPET_RTC_TIMR-fix.dsl

使用该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么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant