Contribute
Register

[Guide] How to patch DSDT for working battery status

Thank you haha. I patched the fields one by one, is there a way to read all patches in one .txt file or do I have to start all over?

I'm not sure what you're referring to.
You will need to explain your question in detail.
 
I'm not sure what you're referring to.
You will need to explain your question in detail.

Sorry it was badly worded. As I patched my DSDT field by field, and saved it multiple times in the process, I do not have a proper battery patch in .txt format that you could add in the repo. So I was wondering if it was possible to create one now that the DSDT is patched or do I need to repeat the patching process on an unmodified DSDT and pay attention this time? I hope it's clearer this time.
 
Sorry it was badly worded. As I patched my DSDT field by field, and saved it multiple times in the process, I do not have a proper battery patch in .txt format that you could add in the repo. So I was wondering if it was possible to create one now that the DSDT is patched or do I need to repeat the patching process on an unmodified DSDT and pay attention this time? I hope it's clearer this time.

Post #1 has details on how to create applicable patches for MaciASL automated patching.
 
@RehabMan Here's my DSDT patch for the Lenovo Ideapad 510-15IKB.
It works but some manual patching may be required.

The attached archive contains:
  • original DSDT, SSDT, etc...
  • patched DSDT (in both .dsl and .aml formats)
  • patch for maciASL
Specifications:
  • Intel Core i5-7200U
  • Intel HD 620 + NVIDIA GeForce GT 940MX 2 GB, 1920x1080@60 display
  • 8 GB DDR4 RAM
  • 2 USB 3.1 (1st gen.?) ports
  • 1 USB 2.0 port
 

Attachments

  • battery_ideapad-510-15IKB.zip
    216.3 KB · Views: 65
@RehabMan Here's my DSDT patch for the Lenovo Ideapad 510-15IKB.
It works but some manual patching may be required.

The attached archive contains:
  • original DSDT, SSDT, etc...
  • patched DSDT (in both .dsl and .aml formats)
  • patch for maciASL
Specifications:
  • Intel Core i5-7200U
  • Intel HD 620 + NVIDIA GeForce GT 940MX 2 GB, 1920x1080@60 display
  • 8 GB DDR4 RAM
  • 2 USB 3.1 (1st gen.?) ports
  • 1 USB 2.0 port

Probably no need for an additional patch file.
Existing patch for "Lenovo Ideapad-Y700" seems like a match.
Please test and report back, and I'll add a comment in the file to that effect.
 
Probably no need for an additional patch file.
Existing patch for "Lenovo Ideapad-Y700" seems like a match.
Please test and report back, and I'll add a comment in the file to that effect.
Yep, it works.
 
Can you help me what's wrong with my laptop? My battery percentage not updated realtime in top widget, but about 30 minutes or more once. When I look battery percentage in 3rd party, like HWMonitor it's updated realtime but it not updated in default battery widget. What patch must applied to my laptop? Thanks.
 

Attachments

  • debug_21062.zip
    3.1 MB · Views: 58
Can you help me what's wrong with my laptop? My battery percentage not updated realtime in top widget, but about 30 minutes or more once. When I look battery percentage in 3rd party, like HWMonitor it's updated realtime but it not updated in default battery widget. What patch must applied to my laptop? Thanks.

Your kextcache output proves kexts are not installed correctly.
All kexts you need must be installed to the system volume.
Read post #2 of the Clover guide for details:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/
 
Hi
I'm strugling with my configuration , on a Lenovo S440 with High Sierria
I patched my DSDT according post#1 guide
But as soon I reboot with the DSDT.aml in the EFI partition I got an Kernel Panic
Code:
0xffffff811ce63f50 : 0xffffff8013674966
0xffffff811ce63fa0 : 0xffffff801301f4f7
      Kernel Extensions in backtrace:
         com.apple.iokit.IOACPIFamily(1.4)[95DA39BB-7C39-3742-A2E5-86C555E21D67]@0xffffff7f939b4000->0xffffff7f939bcfff
         com.apple.driver.AppleACPIPlatform(6.1)[FC118BB9-2E67-35DD-BB25-BA6DFAF5AE88]@0xffffff7f94cff000->0xffffff7f94d9afff
            dependency: com.apple.iokit.IOACPIFamily(1.4)[95DA39BB-7C39-3742-A2E5-86C555E21D67]@0xffffff7f939b4000
            dependency: com.apple.iokit.IOPCIFamily(2.9)[1850E7DA-E707-3027-A3AA-637C80B57219]@0xffffff7f93894000
            dependency: com.apple.driver.AppleSMC(3.1.9)[497D69E7-C1FB-3435-B4D9-ED1DC51727D1]@0xffffff7f93e4f000
         org.rehabman.driver.AppleSmartBatteryManager(1.55)[43FC443B-927B-33B3-A081-CCAC54573CB2]@0xffffff7f93d37000->0xffffff7f93d3efff
            dependency: com.apple.iokit.IOACPIFamily(1.4)[95DA39BB-7C39-3742-A2E5-86C555E21D67]@0xffffff7f939b4000

BSD process name corresponding to current thread: kernel_task
Boot args: kext-dev-mode=1 dart=0 nv_disable=1

No more sure what to check

In the attached file the CLOVER folder , the orig DSDT as well as my patched one

Thanks
 

Attachments

  • debug.zip
    1.9 MB · Views: 96
  • kextcache.txt
    1.4 KB · Views: 114
Last edited:
Back
Top