xma / T480-Clover

Lenovo T480 hackintosh ThinkPad - using Clover
43 stars 7 forks source link

Lid close sleep #10

Closed bugraduz closed 4 years ago

bugraduz commented 4 years ago

Lid close sleep can't work. Can you check it?

xma commented 4 years ago

it's working fine for me. led blink and laptop goes sleeping

xma commented 4 years ago

pmset -g log | grep -i "wake from"

2020-05-27 19:00:40 +0200 Wake                  Wake from Normal Sleep [CDNVA] : due to PWRB/Lid Open Using BATT (Charge:100%) 1816 secs
2020-05-27 21:37:44 +0200 Wake                  Wake from Normal Sleep [CDNVA] : due to PWRB/Lid Open Using BATT (Charge:98%) 692 secs
2020-05-27 22:14:22 +0200 Wake                  Wake from Normal Sleep [CDNVA] : due to PWRB/UserActivity Assertion Using AC (Charge:95%) 3260 secs
2020-05-28 10:45:01 +0200 Wake                  Wake from Normal Sleep [CDNVA] : due to PWRB/Lid Open Using AC (Charge:100%)
2020-05-28 17:44:38 +0200 Wake                  Wake from Normal Sleep [CDNVA] : due to PWRB/Lid Open Using BATT (Charge:84%)

pmset -g log | grep -i "Entering Sleep"

2020-05-27 18:42:58 +0200 Sleep                 Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=inactive Using AC (Charge:100%) 1062 secs
2020-05-27 19:30:56 +0200 Sleep                 Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=inactive Using Batt (Charge:99%) 7608 secs
2020-05-27 21:49:16 +0200 Sleep                 Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=inactive Using Batt (Charge:96%) 1506 secs
2020-05-27 23:08:42 +0200 Sleep                 Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=inactive Using AC (Charge:100%) 41779 secs
2020-05-28 16:25:30 +0200 Sleep                 Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=inactive Using Batt (Charge:85%) 4748 secs
xma commented 4 years ago

Here are the settings i'm using

pmset -g

System-wide power settings:
Currently in use:
 lidwake              1
 autopoweroff         0
 standbydelayhigh     86400
 autopoweroffdelay    28800
 standbydelaylow      10800
 standby              0
 proximitywake        0
 ttyskeepawake        1
 hibernatemode        0
 powernap             0
 gpuswitch            2
 hibernatefile        /dev/null
 highstandbythreshold 50
 womp                 0
 displaysleep         180
 networkoversleep     0
 sleep                180
 tcpkeepalive         1
 halfdim              1
 disksleep            10
bugraduz commented 4 years ago

ı use same peseta settings but my laptop can't wake from sleep. it is when it waking.But hibarnate file isn't same. My hibernate file/var/vm/sleepimage

bugraduz commented 4 years ago

ı use Catalina 10.15.5

xma commented 4 years ago

oh you upgraded from Mojave

to change: sudo pmset -a hibernatefile /dev/null

bugraduz commented 4 years ago

yes ı updated from Mojave

bugraduz commented 4 years ago

ı try sudo pmset -a hibernatefile /dev/null method but the problem still has not improved. the laptop does not wake up from sleep, it freezes.

xma commented 4 years ago

is there some files in /Library/Logs/DiagnosticReports ?

verify this is set: hibernatemode 0

do you have any device that are plugged in ? like thunderbolt / display / usb ? could you try with nothing plugged ?

if that still doesn't work, could you try without wireless network card ?

bugraduz commented 4 years ago

Ekran Resmi 2020-05-28 23 45 54 shutdown_stall_2020-05-28-232056_Bugra-MacBook-Pro.shutdownStall.zip Ekran Resmi 2020-05-28 23 45 08

xma commented 4 years ago

I've push config.DW1820a.plist => it has a pci id pci14e4,4331 & pci-aspm-default set to 0

it was mentioned here: https://www.tonymacx86.com/threads/the-solution-dell-dw1820a-broadcom-bcm94350zae-macos-15.288026/

could you have a look with hackintool ? https://github.com/headkaze/Hackintool in the PCIe tab ht

it will show L0s+L1 or something like that next to broadcom line and Device Path at the end of line here for me it's "0x1C,6" , if it's different for you (like wireless card in another slot) => config.plist has to be updated

bugraduz commented 4 years ago

yes my problem is solvedd thankss but why dont you use hibarnatemode 3 ?

xma commented 4 years ago

because i'm a security freak, i don't like the idea of RAM memory stored onto disk, at sleep. bonus point: less SSD usage by writing way less data onto the disk

bugraduz commented 4 years ago

Ekran Resmi 2020-05-29 00 24 29

xma commented 4 years ago

ASPM says disabled & path is 0x1C,6. all fine !

bugraduz commented 4 years ago

thank you bro

xma commented 4 years ago

You're welcome !