tylernguyen / x1c6-hackintosh

READMEs, OpenCore configurations, patches, and notes for the Thinkpad X1 Carbon 6th Gen 2018 Hackintosh
https://tylernguyen.github.io/x1c6-hackintosh/
The Unlicense
627 stars 110 forks source link

Battery drained fast during sleep #62

Closed denghanx closed 4 years ago

denghanx commented 4 years ago

Dear Tyler. I'm very appreciative of your hard-working on this EFI and all functions worked so well. However, it seems that battery consumption during sleep was abnormally high in my laptop. Like the log I post below, the battery drained very fast during sleep that cost nearly 40 percent in 3 hours.

2020-07-01 18:29:59 +0800 Sleep Entering DarkWake state due to 'Software Sleep pid=131':TCPKeepAlive=active Using Batt (Charge:81%) 11262 secs 2020-07-01 21:37:41 +0800 Wake DarkWake to FullWake from Invalid [CDNVA] : due to UserActivity Assertion Using BATT (Charge:46%)

2020-07-01 18:35:16.973954+0800 0x11d32f Default 0x0 160 0 airportd: systemWokenByWiFi: System Wake Reason not found 2020-07-01 21:37:41.539449+0800 0x3a4 Default 0x0 160 0 airportd: systemWokenByWiFi: System Wake Reason not found

I also noticed that the breath light was keeping lighting but not blink during sleep and I guess that the laptop has not truly entered the sleep status but I couldn't solve this problem.

Thank you.

tylernguyen commented 4 years ago

@denghanx Hey there, It seems that your machine is waking due to to network related activities. Particularly, TCPKeepAlive=active

denghanx commented 4 years ago

38AACE4F-1699-48F7-9285-7EF1EF993034 I've made those changes and I uploaded my Hackintool screenshot

tylernguyen commented 4 years ago

You should also set proximity wake to 0. I'll update this in the guide. Once that is resolved, let me know if your machine sleeps properly now.

denghanx commented 4 years ago

I've fixed proximity wake to 0 and the problem still existed.

tylernguyen commented 4 years ago

@denghanx check your sleep logs again

denghanx commented 4 years ago

2020-07-08 16:22:02 +0800 Sleep Entering DarkWake state due to 'Clamshell Sleep':TCPKeepAlive=disabled Using Batt (Charge:100%) 2112 secs 2020-07-08 16:57:14 +0800 Wake DarkWake to FullWake from Invalid [CDNVA] : due to UserActivity Assertion Using BATT (Charge:94%)

2020-07-08 16:22:01.457239+0800 0x3c5 Default 0x0 170 0 airportd: systemWokenByWiFi: System Wake Reason not found 2020-07-08 16:22:01.457459+0800 0x3c5 Default 0x0 170 0 airportd: systemWokenByWiFi: System Wake Reason not found 2020-07-08 16:22:01.457604+0800 0x3c5 Default 0x0 170 0 airportd: systemWokenByWiFi: System Wake Reason not found 2020-07-08 16:22:01.520039+0800 0x357da2 Default 0x0 170 0 airportd: systemWokenByWiFi: System Wake Reason not found 2020-07-08 16:22:20.520156+0800 0x357da2 Default 0x0 170 0 airportd: systemWokenByWiFi: System Wake Reason not found 2020-07-08 16:57:14.045018+0800 0x3c5 Default 0x0 170 0 airportd: systemWokenByWiFi: System Wake Reason not found 2020-07-08 16:57:14.045213+0800 0x3c5 Default 0x0 170 0 airportd: systemWokenByWiFi: System Wake Reason not found 2020-07-08 16:57:14.045388+0800 0x3c5 Default 0x0 170 0 airportd: systemWokenByWiFi: System Wake Reason not found 2020-07-08 16:57:14.103564+0800 0x35b249 Default 0x0 170 0 airportd: systemWokenByWiFi: System Wake Reason not found

9B521EAD-5666-4EFA-8696-979422E4325E

tylernguyen commented 4 years ago

@denghanx What wifi card are you using? Also, can you provide a zip of your EFI?

denghanx commented 4 years ago

I used a wifi card from a Macbook Air BCM94360CS2 with an adapter. I've uploaded EFI folder, dsdt.aml and IOReg file here https://drive.google.com/file/d/1lGZOlHspeO2_lx-IsjXxGBr-i_Fq_uye/view?usp=sharing Thanks for helping

tylernguyen commented 4 years ago

@denghanx A few notes: DSDT.aml should not belong in a patched ACPI folder. I don't see it in your config.plist but you should probably remove it regardless.

What is USBPower.kext? Where did you get it from or how did you create it?

Can you please double check that your network settings are disabled/unchecked in both battery and power adapter?

As a precaution, disable UEFI network environments in BIOS. And try it without USBpower.kext and post sleep logs again.

Also, please check under Peripherals in Hackintool and see if your en0 is built in.

Finally, can you think of any apps on your machine that may be running during sleep? especially ones that require network access?

EDIT: after trying to sleep again, can you please also post nvram.plist? It should be dumped by HibernationFixup and be under your root drive.

another edit: Your DSDT seems quite a bit different from mine. What is your machine spec and what bios version is it on?

denghanx commented 4 years ago

Thanks for your suggestions. I've removed DSDT.aml. USBPower.kext is a kext to increase the maximum current of USB port which is necessary for using some apple devices such as apple super drive. I've checked remove it but the battery problem still existed. I've also double checked the network settings in power management. En0 is built in.

tylernguyen commented 4 years ago

@denghanx Try disabling handoff. If that still doesn't fix it. Check the logs one final time and try a clean install without any apps. Make those adjustments and test again. It is hard to pinpoint the issue when the log is systemWokenByWiFi: System Wake Reason not found

b00t0x commented 4 years ago

@denghanx Did you set the Sleep State BIOS setting to Linux? I had the same problem that LED not blinking, but chaging Sleep State setting resolved the issue. see also : https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Suspend_issues

tylernguyen commented 4 years ago

@denghanx Did you set the Sleep State BIOS setting to Linux? I had the same problem that LED not blinking, but chaging Sleep State setting resolved the issue. see also : https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Suspend_issues

I completely forgot about that! That is most likely the fix, I will add this to the repo. Thanks @b00t0x

denghanx commented 4 years ago

@b00t0x Thanks a lot. I've set the Sleep State and it seems the problem solved.