Skip to content

Commit

Permalink
compatibility comments and additional patches for Thinkpad E580
Browse files Browse the repository at this point in the history
  • Loading branch information
RehabMan committed Jun 3, 2018
1 parent 8560140 commit 055aca9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Patches.xcodeproj/project.pbxproj
Expand Up @@ -161,6 +161,7 @@
ED8F121A1B4DB5D5007ADCA9 /* system_OSYS_win7.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = system_OSYS_win7.txt; path = system/system_OSYS_win7.txt; sourceTree = "<group>"; };
ED8F3B2C1E3671F800C4F906 /* battery_Thunderobot-911.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = "battery_Thunderobot-911.txt"; path = "battery/battery_Thunderobot-911.txt"; sourceTree = "<group>"; };
ED95C7231D5BBC62006BC358 /* battery_Lenovo-Ideapad-Y700.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = "battery_Lenovo-Ideapad-Y700.txt"; path = "battery/battery_Lenovo-Ideapad-Y700.txt"; sourceTree = "<group>"; };
ED98460C20C4314200772A28 /* battery_Gigabyte-Aero15V8.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = "battery_Gigabyte-Aero15V8.txt"; path = "battery/battery_Gigabyte-Aero15V8.txt"; sourceTree = "<group>"; };
EDA0FF632033463F003F732A /* system_Shutdown_restart.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = system_Shutdown_restart.txt; path = system/system_Shutdown_restart.txt; sourceTree = "<group>"; };
EDB15EEA1A34B10C009F0E21 /* graphics_PTS_WAK-disable.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = "graphics_PTS_WAK-disable.txt"; path = "graphics/graphics_PTS_WAK-disable.txt"; sourceTree = "<group>"; };
EDB280191A3A21BD002C47E1 /* graphics_nvidia_laptop2.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = graphics_nvidia_laptop2.txt; path = graphics/graphics_nvidia_laptop2.txt; sourceTree = "<group>"; };
Expand Down Expand Up @@ -309,6 +310,7 @@
84AA4E051846A6750048423C /* battery_Dell-XPS-L502x.txt */,
ED3C8C801E459D7B00C02EB2 /* battery_Fujitsu-Lifebook-A555.txt */,
845A0C2419322B0F005001DE /* battery_Gateway-ID49C07u.txt */,
ED98460C20C4314200772A28 /* battery_Gigabyte-Aero15V8.txt */,
ED77D4F11C3F56F80085DDCA /* battery_Gigabyte-P35Xv3.txt */,
840D7594184398D500160A94 /* battery_Gigabyte-u2442N.txt */,
84C489F118B93BA200061EA3 /* battery_HP-DM4T-1000.txt */,
Expand Down
1 change: 1 addition & 0 deletions battery/battery_Lenovo-X220.txt
Expand Up @@ -19,6 +19,7 @@
# Lenovo T460 (per jkoneal)
# Lenovo x240
# Lenovo X1 Carbon 2017 (per jqqqqqqqqqq)
# Lenovo Yoga 260 (per gi10)

# Note: disable secondary battery
# *** remove this line if you have a second battery installed)
Expand Down
5 changes: 5 additions & 0 deletions battery/battery_Lenovo-X230i.txt
Expand Up @@ -11,6 +11,7 @@
# Lenovo ThinkPad X1 Carbon (5th gen)
# Lenovo ThinkPad P50 (6th gen)
# Lenovo Thinkpad P51 (KabyLake) (per szclsya)
# Lenovo E580 (per jamesst20)

# Note: This DSDT requires "Fix Mutex with non-zero SyncLevel"

Expand Down Expand Up @@ -86,6 +87,10 @@ into device label EC code_regex SBCC,\s+16 replace_matched begin CC00,8,CC01,8,
into device label EC code_regex HWAC,\s+16, replace_matched begin AC10,8,AC11,8, end;
into method label _L17 code_regex \(\\_SB\.PCI0\.LPCB\.EC\.HWAC, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.EC.AC10,\\_SB.PCI0.LPCB.EC.AC11), end;
into method label OWAK code_regex \(\\_SB\.PCI0\.LPCB\.EC\.HWAC, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.EC.AC10,\\_SB.PCI0.LPCB.EC.AC11), end;
# HWAK in OWAK added for Thinkpad E580
into method label OWAK code_regex \(\\_SB\.PCI0\.LPCB\.EC\.HWAK, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.EC.AK00,\\_SB.PCI0.LPCB.EC.AK01), end;
# HWAK in _L43 also for Thinkpad E580
into method label _L43 code_regex \(\\_SB\.PCI0\.LPCB\.EC\.HWAK, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.EC.AK00,\\_SB.PCI0.LPCB.EC.AK01), end;
# added for P50
into method label _WAK code_regex \(\\_SB\.PCI0\.LPC\.EC\.HWAC, replaceall_matched begin (B1B2(\\_SB.PCI0.LPC.EC.AC10,\\_SB.PCI0.LPC.EC.AC11), end;
into method label \_WAK code_regex \(\\_SB\.PCI0\.LPC\.EC\.HWAC, replaceall_matched begin (B1B2(\\_SB.PCI0.LPC.EC.AC10,\\_SB.PCI0.LPC.EC.AC11), end;
Expand Down
2 changes: 2 additions & 0 deletions battery/battery_Microxperts-u731ga1.txt
Expand Up @@ -5,6 +5,8 @@

# works for:
# Microxperts u731ga
# Tuxedo Infinitybook 13v2 (per TheFox88)
# perhaps other Clevo rebrands

# 16-bit registers
into device label H_EC code_regex BDCA,\s+16 replace_matched begin DC00,8,DC01,8 end;
Expand Down

0 comments on commit 055aca9

Please sign in to comment.