Jump to content

Lenovo W540 Battery Invisible

- - - - -

Best Answer tstc, 02 September 2017 - 12:28 PM

@ Herve

 

Thanks for shedding a little "light" on my issue. After enlisting RehabMan's expertise, was finally able to patch my DSDT with a different model's (Lenovo 550s) battery patch along with an additional patch for mine (Lenovo W540).

# added for Lenovo w540

into method label _L1D code_regex \_SB.PCI0.LPC.EC.HWAC, replaceall_matched begin B1B2(\\_SB.PCI0.LPC.EC.WAC0,\\_SB.PCI0.LPC.EC.WAC1), end;
 

Outcome: still don't have the std MBP battery/level indicator, but coconut and iStat Menus both work well!

THANKYOU REHABMAN!!! 

 

Go to the full post


  • Please log in to reply
9 replies to this topic

#1
tstc

tstc

    InsanelyMac Protégé

  • Donators
  • 45 posts
  • Gender:Male

I put Sierra on this notebook a couple of days ago. System Definition used is MBP 11,5. Just about everything has been smooth with one exception:I can't read or see any battery. Was very surprised how well it went and how close this system definition matched my computer : MacBook Pro (Retina, 15-inch, Mid 2015) ... with the exception of this battery issue. :) 

 

What I’ve done so far(Thanks to REHABMAN)

#1

*D/L ACPIBatteryManager.kext & installed…NO Battery

#2

* Extracted from Clover to /EFI/acpi/origin w /F4

* Checked for duplicates

* Built and installed aisl

* Disassembled DSDT.aml & SSDT*.aml using a refs.txt

* Produced .aml files from .dsl files, as well as others

* Deleted CPU related .dsl files

* Moved aml files to/EFI/acpi/patched

* Re Booted

 

…NO Battery 

 

Any ideas? :( 

 

 



#2
Hervé

Hervé

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,934 posts
  • Gender:Male
  • Location:Rennes, BZH of course!

What you've done with DSDT & SSDT tables is of no use at all until you patch them and you do not appear to have done so... The vanilla system is perfectly able to read those raw tables from BIOS. You only extract and place them in the ACPI\patched  folder if you patch them (hence the name of the folder...).

 

I think Rehabman has a number of battery patches on his repo. Have a look at them.



#3
tstc

tstc

    InsanelyMac Protégé

  • Donators
  • 45 posts
  • Gender:Male

Best Answer

@ Herve

 

Thanks for shedding a little "light" on my issue. After enlisting RehabMan's expertise, was finally able to patch my DSDT with a different model's (Lenovo 550s) battery patch along with an additional patch for mine (Lenovo W540).

# added for Lenovo w540

into method label _L1D code_regex \_SB.PCI0.LPC.EC.HWAC, replaceall_matched begin B1B2(\\_SB.PCI0.LPC.EC.WAC0,\\_SB.PCI0.LPC.EC.WAC1), end;
 

Outcome: still don't have the std MBP battery/level indicator, but coconut and iStat Menus both work well!

THANKYOU REHABMAN!!! 

 



#4
AjTesh

AjTesh

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

I put Sierra on this notebook a couple of days ago. System Definition used is MBP 11,5. Just about everything has been smooth with one exception:I can't read or see any battery. Was very surprised how well it went and how close this system definition matched my computer : MacBook Pro (Retina, 15-inch, Mid 2015) ... with the exception of this battery issue. :) 

 

What I’ve done so far(Thanks to REHABMAN)

#1

*D/L ACPIBatteryManager.kext & installed…NO Battery

#2

* Extracted from Clover to /EFI/acpi/origin w /F4

* Checked for duplicates

* Built and installed aisl

* Disassembled DSDT.aml & SSDT*.aml using a refs.txt

* Produced .aml files from .dsl files, as well as others

* Deleted CPU related .dsl files

* Moved aml files to/EFI/acpi/patched

* Re Booted

 

…NO Battery 

 

Any ideas? :( 

 

Hi, I have also been trying to get my W540 to work with Sierra. I could enable the battery thanks to you. But I am still not able to get my display work with HD4600 properly. I was facing problem even during the installation as the screen would go blank before mac installation starts. Following RehabMan's suggestion I changed ig-platform-id to something invalid which led me to succesfully install Sierra. But with the invalid ig-platform-id I only see 7MB Video memory. If I use 0x0a260006 as ig-platform-id, the laptop screen goes blank. Did you face such issues ? Full details of my problems - https://www.tonymacx...n.231567/page-2.

 

I am using below config from RehabMans repository -

https://github.com/R...4400_4200.plist



#5
Hervé

Hervé

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,934 posts
  • Gender:Male
  • Location:Rennes, BZH of course!

Post a copy of your zipped Clover EFI folder. No reason why you would not have graphics acceleration with your mobile HD4600 if you:

  1. fake desktop HD4600 id 0x0412
  2. inject Azul FB #12 / layout-id 0x0a260006
  3. install Rehabman's FakePCIID + FakePCIID_Intel_HD_Graphics kexts

 

You appear to have a dual-GPU laptop so you may need to disable the discrete GPU for the iGPU to be used by default. Or check if you can disable the dGPU in BIOS. But this is getting off-topic re: initial battery issue...

 

With regards to the link you posted above: http://www.insanelym...ort-tonymacx86/



#6
AjTesh

AjTesh

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

Post a copy of your zipped Clover EFI folder. No reason why you would not have graphics acceleration with your mobile HD4600 if you:

  1. fake desktop HD4600 id 0x0412
  2. inject Azul FB #12 / layout-id 0x0a260006
  3. install Rehabman's FakePCIID + FakePCIID_Intel_HD_Graphcis kexts

 

You appear to have a dual-GPU laptop so you may need to disable the discrete GPU for the iGPU to be used by default. Or check if you can disable the dGPU in BIOS. But this is getting off-topic re: initial battery issue...

 

With regards to the link you posted above: http://www.insanelym...ort-tonymacx86/

 

Please find the attachment.

Attached Files

  • Attached File  EFI.zip   1.51MB   2 downloads


#7
Hervé

Hervé

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,934 posts
  • Gender:Male
  • Location:Rennes, BZH of course!

What can I say, it appears you're missing the FakePCIID_Intel_HD_Graphics kext...



#8
AjTesh

AjTesh

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

What can I say, it appears you're missing the FakePCIID_Intel_HD_Graphics kext...

 

I have that in /Library/Extensions. Please see the attached contents on /L/E and /S/L/E.

 

I deleted all the kext files from the EFI/CLOVER/kext/Other after copying them to /L/E and FakeSMC to both /L/E and /S/L/E and ran Kext Utility. I don't have an option to disable discrete graphics on the BIOS.

Attached Files



#9
Hervé

Hervé

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,934 posts
  • Gender:Male
  • Location:Rennes, BZH of course!

Don't copy kext to /L/E AND /S/L/E, only to either/or. Then, repair permissions and rebuild your cache manually:

sudo chmod -Rf 755 /L*/E*
sudo chown -Rf 0:0 /L*/E*
sudo chmod -Rf 755 /S*/L*/E*
sudo chown -Rf 0:0 /S*/L*/E*
sudo touch -f /L*/E*
sudo touch -f /S*/L*/E*
sudo kextcache -Boot -U /

I would not trust any kext utility since El Capitan. If you get an error 77 after the kextcache command, repeat the sudo touch + sudo kextcache commands.



#10
AjTesh

AjTesh

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

Don't copy kext to /L/E AND /S/L/E, only to either/or. Then, repair permissions and rebuild your cache manually:

sudo chmod -Rf 755 /L*/E*
sudo chown -Rf 0:0 /L*/E*
sudo chmod -Rf 755 /S*/L*/E*
sudo chown -Rf 0:0 /S*/L*/E*
sudo touch -f /L*/E*
sudo touch -f /S*/L*/E*
sudo kextcache -Boot -U /
I would not trust any kext utility since El Capitan. If you get an error 77 after the kextcache command, repeat the sudo touch + sudo kextcache commands.

Did that. Same behaviour.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2016 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy