jsassu20 / Lenovo-ThinkPad-T450-macOS-Catalina

Lenovo ThinkPad T450 || macOS Catalina || Hotpatched || Broadwell || *** iMessage: Jsassu20@gmail.com ***
145 stars 41 forks source link

sleep/hibernation? #35

Open surrogatecode opened 4 years ago

surrogatecode commented 4 years ago

Has anybody managed to successfully activate hibernation?

tl;dr: My laptop may have hibernated briefly, when the battery ran out of power and forcibly entered hibernation. Upon connecting the power-cable I got a boot-splash and was loaded right back into macOS. I am still trying to reproduce this on a charged battery.


I am aware that hibernation is a tricky subject, and the general answer appears to be "do not even try".

I had one successful sleep during installation, then got stuck on a kernel panic whenever sleep was initiated (the trace-back showed a kernel panic in relation to the VoodooPS2Controller; I tried troubleshooting with rehabman/acidanthera & jpe230 kexts; no dice). I did end up removing all clover-related kexts installed to L/E/ for troubleshooting. To my surprise, loading kexts only from /Other re-enabled sleep and wake.

I have since then proceeded trying to enable hibernation on the X1C but I haven't found a combination of settings in pmset and clover configurator that seems to work properly, if at all.

pmset -a hibernatemode 25 is active, but it does not put the laptop into hibernation. clover configurator has hibernation fixup, rtchibernateaware activated.

Oddly, when I checked what would happen when the battery completely drains, the laptop shut-down around 1% battery. I connected it to the charger and booted, got a boot-splash and soon after macOS with all windows re-opened, no crash report window, nothing. It appears as if it had successfully hibernated due to the battery running low on power, but I cannot reproduce it with a full battery, yet. I will look into repeating this, but somehow logging the process in order to have more than just my word for it.

I'd appreciate, if anyone else could share their own experience with hibernating the T450?


fyi, I am running jsassu20's build on a X1 Carbon 3. I had no major problems, but I have yet to look into DMVT and a few other things. That said, thanks a lot for sharing your guide and repository @jsassu20.

surrogatecode commented 4 years ago

Update: Since December laptop has been running well, hibernation remains spotty, yet appears to be activated on occasion(?), successfully loading an image from disc. That is, X1 Carbon 3rd will wake from sleep via a power-on button press, will ignore the hdd-password (very odd), clover (Timeout =1), macOS, I put in login password, reopens all windows & apps, WiFi will be off (just needs to be activated). - If I do a proper restart/reboot I will have to enter a hdd-password, WiFi will be on. This has me believe, there is some semblance of hibernation going on, but it is spotty in its behaviour.

macOS Mojave will also not remember it has hibernated, such as: $ pmset -g stats Sleep Count:8 Dark Wake Count:0 User Wake Count:8

Here's the pmset settings, maybe they help somebody: $ pmset -g System-wide power settings: Currently in use: lidwake 1 autopoweroff 1 standbydelayhigh 3600 autopoweroffdelay 3610 proximitywake 0 standby 1 standbydelaylow 360 ttyskeepawake 0 hibernatemode 25 powernap 0 gpuswitch 2 hibernatefile /var/vm/sleepimage highstandbythreshold 50 displaysleep 4 sleep 10 tcpkeepalive 1 halfdim 1 acwake 0 disksleep 8

clover boot settings: darkwake=0 Timeout set to 1 second HibernationFixup checked RtcHibernateAware checked

jsassu20 commented 4 years ago

check out hackintool and make sure your sleep settings are proper, it'll detect it automatically and then allow you to fix it. Hibernation is not implemented in the same fashion on Mac and pc because of the find my feature which needs to be able to communicate in a low power state that non apple airport cards aren't designed for. Thats why I specifically am recommending everyone try and go with the officiaL apple hardware in order to resolve these random issues that everyone deals with and I have not had any issues with myself following the decision to move to an actual airport card.

surrogatecode commented 4 years ago

I have not used hackingtool, yet. I will give it a look. Thank you.

Oh, yes. I am aware of your recommendations to get an official airport card and NGFF A/E adapter. I think this is a great solution. However, I am using a X1 Carbon 3rd and there is no way I can make that card and adapter fit. Thanks.

Just in case, someone will find this information down the line:

For the X1 Carbon 3rd I installed a Broadcom BCM94352Z DW1560 without major problems. The card is, similarly to the airport card, detected during installation and works fine apart from hiccups after sleep/hibernation. Just make sure you get the correct kexts from acidanthera and the DW1560 will be running smoothly.

jsassu20 commented 4 years ago

Try the MacBook Air 2015 WiFi card it’s a smaller form factor you can get one on eBay for 6 bucks

jsassu20 commented 4 years ago

https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.ebay.com%2Fulk%2Fitm%2F262144387375

surrogatecode commented 4 years ago

Oh, this suggestion seems so obvious, now that you have brought it up. I will give that a go. Maybe I can fit it. Thank you.

surrogatecode commented 4 years ago

edited for better language

I will give that a go. Maybe I can fit it.

Hmm, I did some research, but I think it won't fit. The X1C3 has a M.2 A/E key slot, while the Macbook 2015 WiFi Card requires the above-mentioned NGFF/miniPCIe. So, if I understand this correctly, this setup still requires an NGFF A/E adapter.

The X1C3 only has room for a single-sided tiny 27.8mm card like the DW1560.

Alternatively, I wondered about using the WWAN slot (longer format that could potentially fit the airport card and adapter, to the left of the image). However, I haven't found any reliable information about the WWAN and WLAN being interchangeable. Most information focused on the WWAN slot not having any SATA lanes.

No fret, though. I am not desperately in need of an airport card nor 100% hibernation, at the moment.