Giter VIP home page Giter VIP logo

laptop-dsdt-patch's People

Contributors

ahmad-safar avatar arcterus avatar arg274 avatar arise avatar draekko avatar hexane avatar hexplor avatar kazwolfe avatar ln8711 avatar maiqueg avatar mrnbayoh avatar pretyman avatar rehabman avatar smeedy avatar sztupy avatar toooorch avatar trik avatar yoasif avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laptop-dsdt-patch's Issues

battery_ASUS-N55SL.txt report

hi,thx for this patch,in the early days i used this patch with my N56VV dsdt, when I set smbios is macbook pro9,2 it’s perfect!
But if I change smbios from mbp9,2 to mbp10,1 or mba5,2 and others models, battery in the status bar is always display 100% electricity, even battery level is very low.
link file is the original dsdt
https://www.dropbox.com/s/yhms6oy53s5q0x7/dsdt.zip?dl=0
please help me.

Battery DSDT Patch Trouble for ASUS VivoBook X510UAR

Hi,
I am having issues with my battery symbol on macOS Mojave 10.14.6. I have an ASUS VivoBook X510UAR laptop. For some reason, the battery symbol is stuck at a certain percentage and when toggling percentage (show and hide), it updates itself but the issue won't go away. Sometimes it even says I'm charging after I disconnect the laptop from the charger. I am using ACPIBatteryManager 1.90.1.

I tried to use your DSDT patch that is supposed to work with the VivoBook lineup of laptops, but it completely broke my DSDT. No battery symbol and even sound and Bluetooth were borked because of the DSDT patch. Can anyone help me patch it? Here is a copy of my DSDT.aml file. Please take a look, it's a very annoying bug.

DSDT.aml.zip

Any answer would be very appreciated, I just need help ASAP. Thank you very much.

NOTE: The battery symbol had no issues until the moment I'm writing this. This isn't the first time encountering this issue with the battery.

Thanks in advance.

HD4400/HD4600 for laptop

Please add support for HD4400/HD4600 laptop:

into method label _DSM parent_adr 0x00020000 remove_entry;
into device name_adr 0x00020000 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
    If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }\n
    Return (Package()\n
    {\n
        "AAPL,ig-platform-id", Buffer() { 0x06, 0x00, 0x26, 0x0a },\n
        "hda-gfx", Buffer() { "onboard-1" },\n
        "AAPL00,DualLink", Buffer() { 0x01, 0x00, 0x00, 0x00 },\n
    })\n
}\n
end;

HP Spectre x360

I see the hp_x360 file in /battery, but is the support for the spectre? There are several versions 2015-2017 but I think the wifi/battery stays pretty similar.

Clover loads WIN7 compatible Acpi Table and DSDT patcher to avoid WIN7 0x000000A5 ACPI BSOD ERRORS. Is this idea feasible?

lenovo xiaoxin air14 install WIN7 0x000000A5 ACPI BSOD ERRORS!
Alt text
It may be that the motherboard Acpi Table, DSDT patcher and WIN7 are incompatible, causing WIN7 0x000000A5 ACPI BSOD ERRORS

Find the Acpi Table and DSDT patcher compatible with WIN7,Clover loads WIN7 compatible Acpi Table and DSDT patcher to avoid WIN7 0x000000A5 ACPI BSOD ERRORS,Is this idea feasible? Excuse me, RehabMan, do you have an Acpi Table or DSDT patcher compatible with WIN7?

This is a screenshot of lenovo xiaoxin air14 Bios:
Alt text Alt text

This is the lenovo xiaoxin air14 hardware:
Alt textAlt text

Thank you for your reply and good luck! I am willing to work with you to solve the problem。

graphics_Rename-GFX0.txt - rename missing on x220

Hey Rehabman,

on my x220 I get compile errors if I run your patch.

This is because it leaves 3 entries Scope (PCI0.PEG.VID) in _SB.

I manually renamed them to Scope (PCI0.PEG.IGPU) and now my AGPM works.

Unfortunately no idea how to express them in patch language ;-)

Best,

miaumiau

screen shot 2013-11-13 at 08 20 44

Battery patch G470, 4738z, 1464

Here is list of compatible battery patches:
Lenovo G470 -> Lenovo Twist
Acer 4738z -> Acer 3820g
Dell 1464/1564 -> Dell XPS L502x

Also, Dell XPS L502x is shown as Dell XPX L502x in MacIASL

control Thinkpad fan (similar to acer fan control)

Hey,

I would like to try if I can adapt your code to work with thinkpads.

I got a table for fan values from a win-based tool I used before:

left is celcius temperature, right is fan value that needs to be written via ACPI.

Level=38 0 # fan off
Level=45 1 # fan very silent around 2000 RPM
Level=51 1 # 2000 RPM
Level=64 2 # ~3140rpm
Level=68 3 # ~3660rpm
Level=76 128 # BIOS controlled

Here is some fan related stuff I found in the DSDT I use from that tutorial:

http://www.insanelymac.com/forum/topic/285678-lenovo-thinkpad-t420-with-uefi-only/page-25

// add monitor function for TMP and FAN
                Device (SMCD)
                {
                    Name (_HID, "MON0000")
                    Method (FAN0, 0, NotSerialized)
                    {
                        //Store (\_SB.PCI0.LPC.EC.HFN1, Local0)
                        Store (B1B2 (\_SB.PCI0.LPC.EC.HFN1, \_SB.PCI0.LPC.EC.HFN2), Local0)
                        Return (Local0)
                    }

                    Method (TCPU, 0, NotSerialized)
                    {
                        Store (\_SB.PCI0.LPC.EC.TMP0, Local0)
                        Return (Local0)
                    }
                }

And here is a snippet that sets the thinkpad button to switch between full speed and auto

  Scope (\_SB.PCI0.LPC.EC)
        {
            Method (_Q19, 0, NotSerialized)
            {
// tjl comment old code
//                If (\_SB.PCI0.LPC.EC.HKEY.MHKK (0x00800000))
//                {
//                    \_SB.PCI0.LPC.EC.HKEY.MHKQ (0x1018)
//                }
//
//                \UCMS (0x03)
// change use Thinkpad Button to change fan speed
// tjl-begin
                Name (FANS, 0x01)
                Store (HFSP, FANS)
                XOr (FANS, 0x80, Local0)
                If (Local0)
                {
                    Store (0x80, HFSP) //Fan speed auto
                }
                Else
                {
                    Store (0x07, HFSP) //Fan speed 7
                }
// tjl-end

            }

The full DSDT is available in this archive: http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=137788 (in subdirectory T420/EFI/CLOVER/OEM/ProductID.1366x768/ACPI/patched)

I just need a few pointers as my ACPI knowledge is weak...

Fix _PLD and X220 battery patches seems to not work

So, initially I had error 8302, 6105, Invalid object type for reserved name (_PLD: found Buffer, Package required) and I tried to fix it using Fix _PLD... from your patches, but it seems to be not working (not working regex due to new standards?). Then I went to Gentoo forums and found this:
https://forums-web2.gentoo.org/viewtopic-t-1098226-start-0.html
So I managed to fix _PLD error, but then I got these:
image

And fixing them using X220 battery patches is not working, I'm not familiar with MaciASL patches so I now I don't know how to fix them, also I am using this version of MaciASL:
https://github.com/acidanthera/MaciASL

HP dv6-2090eg Battery

Hi,
I would really like a battery patch for this laptop. It would be very nice if you would be able to do this.

Request to adapt battery drive。surface pro5!

Hello, admirable developer!
Because for me, this computer is very suitable for me to design images
I tried the method in the tutorial myself, but I didn't make it. That's probably why I'm so badLooking forward to your help
thx

Samsung R710 battery

Is it possible mod so battery reports correct cycle count?

`Device(H_EC)
{
Name(_HID, EISAID("PNP0C09"))
Name(_UID, One)
Method(_CRS, 0, NotSerialized)
{
Name(BFFR, ResourceTemplate()
{
IO(Decode16, 0x0062, 0x0062, 0x00, 0x01)
IO(Decode16, 0x0066, 0x0066, 0x00, 0x01)
})
Return(BFFR)
}
OperationRegion(ECR, EmbeddedControl, Zero, 0xFF)
Field(ECR, ByteAcc, Lock, Preserve)
{
Offset(0x18), //Offset(24),
SPTR, 8,
SSTS, 8,
SADR, 8,
SCMD, 8,
SBFR, 256,
SCNT, 8,
Offset(0x80), //Offset(128),
B1EX, 1,
, 1,
ACEX, 1,
, 5,
SWBE, 1,
DCBE, 1,
, 6,
WLST, 1,
, 7,
LIDS, 1,
, 7,
B1ST, 8,
, 8,
BRIT, 8,
Offset(0xA0), //Offset(160),
B1RP, 16,
B1RA, 16,
B1PR, 16,
B1VO, 16,
Offset(0xB0), //Offset(176),
B1DA, 16,
B1DF, 16,
B1DV, 16,
B1DL, 16,
Offset(0xC0), //Offset(192),
CTMP, 8,
Offset(0xC7), //Offset(199),
TIST, 8,
Offset(0xD0), //Offset(208),
B1TI, 16,
B1SE, 16,
B1CR, 16,
B1TM, 16,
}

Device(BAT1)
{
Name(_HID, EISAID("PNP0C0A"))
Name(_UID, One)
Name(BATI, Package(13)
{
One, 0xFFFFFFFF, 0xFFFFFFFF, One, 0xFFFFFFFF, 0x03, 0x0A, One, One,
"Unknown", "Unknown", "Unknown", "Unknown"
})
Method(_BIF, 0, NotSerialized)
{
If(LEqual(ECON, Zero))
{
Store(SECW(0x82, 0xB0, Zero), Local0)
If(LEqual(Local0, 0xFFFF))
{
Store(0xFFFFFFFF, Index(BATI, One))
}
Else
{
Store(Local0, Index(BATI, One))
}
Store(SECW(0x82, 0xB2, Zero), Local0)
If(LEqual(Local0, 0xFFFF))
{
Store(0xFFFFFFFF, Index(BATI, 0x02))
}
Else
{
Store(Local0, Index(BATI, 0x02))
}
Store(SECW(0x82, 0xB4, Zero), Local0)
If(LEqual(Local0, 0xFFFF))
{
Store(0xFFFFFFFF, Index(BATI, 0x04))
}
Else
{
Store(Local0, Index(BATI, 0x04))
}
Store(Zero, Index(BATI, 0x05))
Store(SECW(0x82, 0xB6, Zero), Local0)
If(LEqual(Local0, 0xFFFF))
{
Store(Zero, Index(BATI, 0x06))
}
Else
{
Store(Local0, Index(BATI, 0x06))
}
}
Else
{
Store(B1DA, Local0)
ShiftLeft(Local0, 0x08, Local1)
And(Local1, 0xFF00, Local1)
ShiftRight(Local0, 0x08, Local0)
Or(Local0, Local1, Local0)
If(LEqual(Local0, 0xFFFF))
{
Store(0xFFFFFFFF, Index(BATI, One))
}
Else
{
Store(Local0, Index(BATI, One))
}
Store(B1DF, Local0)
ShiftLeft(Local0, 0x08, Local1)
And(Local1, 0xFF00, Local1)
ShiftRight(Local0, 0x08, Local0)
Or(Local0, Local1, Local0)
If(LEqual(Local0, 0xFFFF))
{
Store(0xFFFFFFFF, Index(BATI, 0x02))
}
Else
{
Store(Local0, Index(BATI, 0x02))
}
Store(B1DV, Local0)
ShiftLeft(Local0, 0x08, Local1)
And(Local1, 0xFF00, Local1)
ShiftRight(Local0, 0x08, Local0)
Or(Local0, Local1, Local0)
If(LEqual(Local0, 0xFFFF))
{
Store(0xFFFFFFFF, Index(BATI, 0x04))
}
Else
{
Store(Local0, Index(BATI, 0x04))
}
Store(Zero, Index(BATI, 0x05))
Store(B1DL, Local0)
ShiftLeft(Local0, 0x08, Local1)
And(Local1, 0xFF00, Local1)
ShiftRight(Local0, 0x08, Local0)
Or(Local0, Local1, Local0)
If(LEqual(Local0, 0xFFFF))
{
Store(0xFFFFFFFF, Index(BATI, 0x06))
}
Else
{
Store(Local0, Index(BATI, 0x06))
}
}
Store("", Index(BATI, 0x09))
Store("", Index(BATI, 0x0A))
Store("LION", Index(BATI, 0x0B))
Store("SAMSUNG Electronics", Index(BATI, 0x0C))
Return(BATI)
}
`

Battery - ASUS ZenBook UX330UAR

Battery indicator for ASUS ZenBook UX330UA-AH55 is showing a false reading of 0% even with the DSDT Patches and the APCIBatteryManager.kext

Need Helps

I have 10.15 hackintosh on hp820g1 laptop. And I use ACPIBatteryManager kext. But it cannot work. It just show charge icon when I connect to the power adaptor. Could you help me to resolved. Thanks.

Error on Asus x550vx

First of all, correct me if i'm wrong because i'm new to this.

I wanna patch my asus x550vx battery and got suggestion to use battery_ASUS-N55SL.txt
I learn from youtube to patching by adding repo, and then browse the patch, then compile it.
But when i compiled it, i got 4 errors as i attached on this site Errors.

If i'm wrong to use it for x550vx, i do apologize. And hope you give some advice which one i should use for High sierra on asus x550vx.

Thanks Before.

ASUS K43E battery patch

Here is the missing patch in ASUS G75VW battery patch for ASUS K43E:

into method label OLPM code_regex \(\\_SB\.PCI0\.SBRG\.EC0\.B0DC, replace_matched begin (B1B2(\\_SB.PCI0.SBRG.EC0.B0D0,\\_SB.PCI0.SBRG.EC0.B0D1), end;

Brightness fix Hotkey v3-371

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.

DSDT patch ``battery_ASUS-G75vw.txt`` no longer work on macOS High Sierra

I just updated my Asus G60vw laptop to macOS High Sierra and found that the battery status disappeared from the status menu and the amount of electricity of battery is zero in Preferences.

I used to make the battery work using battery_ASUS-G75vw.txt patch and your os-x-acpi-battery-driver in macOS Sierra. I tried updating them to the latest available version but the battery still not detected correctly.

I used KextWizard and found AppleSmartBatteryManager was loaded. So I guess there are some new issues that I cannot figure out.

I attached my original DSDT files extracted with Clover.

Looking forward for your help!

origin.zip

Battery patch for ASUS Haswell laptops

Most ASUS Haswell laptops have problems with setting wrong value between battery state. The following patch help it. I hope you can add to ASUS battery patches.

into method label FBST code_regex If\s\(CHGS\s\(Zero\)\)[\s]+\{[\s]+Store\s\(0x02,\sLocal0\)[\s]+\}[\s]+Else[\s]+\{[\s]+Store\s\(One,\sLocal0\)[\s]+\} replaceall_matched begin 
If (CHGS (Zero))\n
{\n
     Store (0x02, Local0)\n
}\n
Else\n
{\n
     Store (Zero, Local0)\n
}
end;

ASUS N550JV hd4600 DSDT fix install

Hi!

I can't install this patch to my DSDT.aml (generated from Windows 8.1 x64 by AIDA64 Engineer):
https://github.com/RehabMan/Laptop-DSDT-Patch/blob/master/graphics/graphics_HD4600_yosemite.txt

I download MaciASL (from your repo) and click "Patch", put contets of this file, but "Apply" button is inactive - shows me 0 changes etc.
I do not have Internet in my Hackintosh to use patches from this repository directly.
What I'm doing wrong?

p.s. I use Clover bootloader. Can I add this fix in Clover?

Dell Latitude E5x30 dsdt patches

Here are some patches for IGPU on Dell Latitude E5x30

into device label VID name_adr 0x00020000 set_label begin IGPU end; into_all all label _SB.PCI0.VID set_label begin _SB.PCI0.IGPU end; into_all all code_regex PCI0\.VID replaceall_matched begin PCI0.IGPU end;

How to fix the new series of motherboards dsdt

Hi RehabMan:
My computer is a desktop, dsdt is what I extracted from the windows, my motherboard is b150m-d2vx-si-cf, Intel (R) 100 Series / C230 Series Chipset Family PMC-A121, but can not find this series of fix Patch, please help me hit the patch, can not find this series of patches on the Internet, or a patch of tools, including the new series of motherboards. There is a problem is that I extracted from the windows ssdt ,how to place it in clover.Thank you.

G50-70 DSDT patching don't solve the battery status

Hello ;)
I didn't know where to write so I put it here. When I patch DSDT I get "only" 290 warnings but since no error I moved it to Clover EFI partition. Still no battery status.
What info you want to get for helping me?
Thanks.

Add Support for Lenovo V310

Hi;
Ideapad V310 15ikb {i7-7500U Intel R620}
at this stage fan control works, keyboard works.
touchpad just works as mouse except it does double tap as double click.
no touchpad in setting of macos mojave.

I: Bus=0011 Vendor=0001 Product=0001 Version=ab83
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input0
U: Uniq=
H: Handlers=sysrq kbd leds event0 
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0003 Version=0000
N: Name="Sleep Button"
P: Phys=PNP0C0E/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2
U: Uniq=
H: Handlers=kbd event1 
B: PROP=0
B: EV=3
B: KEY=4000 0 0

I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input3
U: Uniq=
H: Handlers=event2 
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input4
U: Uniq=
H: Handlers=kbd event3 
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input5
U: Uniq=
H: Handlers=kbd event4 
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="Ideapad extra buttons"
P: Phys=ideapad/input0
S: Sysfs=/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/input/input6
U: Uniq=
H: Handlers=kbd rfkill event5 
B: PROP=0
B: EV=13
B: KEY=81000800100c03 4400000000300000 0 2
B: MSC=10

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input8
U: Uniq=
H: Handlers=kbd event6 
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0

I: Bus=0003 Vendor=5986 Product=0712 Version=5309
N: Name="EasyCamera: EasyCamera"
P: Phys=usb-0000:00:14.0-9/button
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/input/input9
U: Uniq=
H: Handlers=kbd event7 
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0011 Vendor=0002 Product=000e Version=0000
N: Name="ETPS/2 Elantech Touchpad"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input7
U: Uniq=
H: Handlers=event8 mouse0 
B: PROP=1
B: EV=b
B: KEY=e420 30000 0 0 0 0
B: ABS=661800011000003

I: Bus=0001 Vendor=10ec Product=0236 Version=0001
N: Name="HDA Digital PCBeep"
P: Phys=card0/codec#0/beep0
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input10
U: Uniq=
H: Handlers=kbd event9 
B: PROP=0
B: EV=40001
B: SND=6

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH Mic"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input11
U: Uniq=
H: Handlers=event10 
B: PROP=0
B: EV=21
B: SW=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH Headphone"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input12
U: Uniq=
H: Handlers=event11 
B: PROP=0
B: EV=21
B: SW=4

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=3"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input13
U: Uniq=
H: Handlers=event12 
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=7"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input14
U: Uniq=
H: Handlers=event13 
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=8"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input15
U: Uniq=
H: Handlers=event14 
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=9"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input16
U: Uniq=
H: Handlers=event15 
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=10"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input17
U: Uniq=
H: Handlers=event16 
B: PROP=0
B: EV=21
B: SW=140

and here is the efi folder and my whole disassemble dsdt patches.
https://transfer.sh/8hLPJ/dsdt.zip
I am willing to work with you test and all things needed to patch this model and add to your repository.
I would appreciate the help.

PNP0C14 patch

I saw this a lot on many ASUS/Dell laptops
into_all all code_regex \*pnp0c14 replaceall_matched begin PNP0C14 end; into_all all code_regex pnp0c14 replaceall_matched begin PNP0C14 end;

SSDT still have some GFX0

Hi,Rehabman.

I have used the patch to rename GFX0 to IGPU,but...

Before:

    Device (GFX0)
    {
        Name (_ADR, 0x00020000)  // _ADR: Address
        Method (_DEP, 0, NotSerialized)  // _DEP: Dependencies
        {
            ADBG ("GFX0 DEP Call")
            If (LEqual (S0ID, One))
            {
                ADBG ("GFX0 DEP")
                Return (Package (0x01)
                {
                    \_SB.PEPD
                })
            }
            Else
            {
                ADBG ("GFX0 DEP NULL")
                Return (Package (0x00) {})
            }
        }

After:

    Device (IGPU)
    {
        Name (_ADR, 0x00020000)  // _ADR: Address
        Method (_DEP, 0, NotSerialized)  // _DEP: Dependencies
        {
            ADBG ("GFX0 DEP Call")
            If (LEqual (S0ID, One))
            {
                ADBG ("GFX0 DEP")
                Return (Package (0x01)
                {
                    \_SB.PEPD
                })
            }
            Else
            {
                ADBG ("GFX0 DEP NULL")
                Return (Package (0x00) {})
            }
        }

Should i rename them manually?

Thanks for your contribution ,sincerely.

Battery - Thinkpad Yoga X1 3rd Generation

Attached is a maciasl patch file enabling the battery indicator for a Yoga X1 3rd generation running on High Sierra. I have also included the original DSDT.dsl for this laptop extracted via Clover.

This patch is based on the existing battery_Lenovo-X230i.txt, but had enough changes that I thought it was worth separating it out.

Its works with these two caveats:

  • Battery indicator does not display after a reboot. Sounds like RehabMan/OS-X-ACPI-Battery-Driver#21. You have to turn it back on via System Preferences (when you open the Power page you can see the checkbox is checked for a split second, then it unchecks itself. Then you manually check it and the battery indicator is back).

  • When you unplug the power adapter, the indicator takes about 10 seconds to recognize the change. On the other hand, plugging in the adapter is instantaneous and makes a nice beep sound (not sure if that is MacOS or the laptop itself).

Thanks - Charlie

x1y3_bat.maciasl.txt

DSDT.dsl.txt

6126, syntax error, unexpected PARSEOP_NAME

Hi there, I have the some issues with my DSDT.
6126, syntax error, unexpected PARSEOP_NAME.
.........................................
Name (SS1, 0x00)
Name (SS2, 0x00)
Name (SS3, One)
One
Name (SS4, One)
One
OperationRegion (GNVS, SystemMemory, 0x5FF57000, 0x072C)
Field (GNVS, AnyAcc, Lock, Preserve)
..................................
I've deleted the "One" not working, and marqued the Ones as comment with "//" but it always return the error : 6126, syntax error, unexpected PARSEOP_NAME.
I use Catalina on a Thinkpad P51 i7 7700HQ, Quadro 1200, intelHD630 graphic, 24 Gig of RAM,.
Need some help.
Here my files

DSDT.aml.zip
DSDT.dsl.zip
Uploading Screen Shot 2020-02-26 at 3.36.00 PM.png…

OScheck

Hi RehabMan,
Can you explain, how to fix the OScheck? I have a Problem: With my self-patched DSDT system hangs on boot (Sometimes after AppleCPUManament completed, and PCI Begin Configuration). I found out that after adding Darwinfix by clover, it is booting "well" no hang. Do you have any Idea?
What I have done so far:
I completely changed the codes for OS/OSI-Loading to OSFX, LINX, AMAC, OSFL,... I read somewhere that this method is more hackintosh compatible, but it didn't help...

For any help I would be very grateful

EHC1/EHC2/XHC1/LAN sleep fix

Here is the patch to make _PRW method to return the package with 0 in second position. It's based on your Lenovo USB patch, but modified to due with different value in the first position of package.

# set _PRW methods to return 0

into method label _PRW parent_adr 0x001D0000 code_regex Return[^(]*\([^(]*\(([^,]*)[^)]*[^,]* replace_matched
begin
Return (Package(){%1,0})
end;
into method label _PRW parent_adr 0x001A0000 code_regex Return[^(]*\([^(]*\(([^,]*)[^)]*[^,]* replace_matched
begin
Return (Package(){%1,0})
end;
into method label _PRW parent_adr 0x00140000 code_regex Return[^(]*\([^(]*\(([^,]*)[^)]*[^,]* replace_matched
begin
Return (Package(){%1,0})
end;

# change the second index in LANC to 0
into method label _PRW parent_adr 0x00190000 code_regex (Return\s+\(.*) replace_matched
begin
Store (0x00, Index (Local0, 0x01))\n
%1
end;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.