Run this in Terminal. It will dump a log file on your Desktop called sleep.txt and that log will show all wake and sleep events. Might help you troubleshoot.
You know what would be an interesting test, is to hold the shift key at boot to start in safe mode. That stops all launch and startup items from running. Then do not start any apps or anything and put it to sleep. That would at least tell you if it is some app or utility vs. a more serious, underlying issue.
Code:
pmset -g log|grep -e " Sleep " -e " Wake " >~/Desktop/sleep.txt
Hmm
This is very interesting.
As I've said earlier, I have nights with a lot of battery drain while in sleep, and nights without. (almost)
This is what a night without looks like:
2017-01-03 23:14:37 +0100 Sleep Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using Batt (Charge:53%) 7201 secs
2017-01-04 01:14:42 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:52%) 3602 secs
2017-01-04 02:14:48 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:51%) 7228 secs
2017-01-04 04:15:20 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:51%) 7228 secs
2017-01-04 06:15:48 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:50%) 7228 secs
2017-01-04 08:16:16 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:50%) 5523 secs
2017-01-04 09:48:19 +0100 Wake Wake from Standby [CDNVA] due to EC.LidOpen XHC1/Lid Open: Using BATT (Charge:50%) 1874 secs
Some thing with TCPkeepAlive happens about every 2 hours, and the battery is drained about 1% every time.
During a night with a lot of battery drain
2017-01-04 23:19:45 +0100 Sleep Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using Batt (Charge:55%) 1205 secs
2017-01-04 23:40:20 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:53%) 1205 secs
2017-01-05 00:00:55 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:52%) 1203 secs
2017-01-05 00:21:28 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:51%) 1204 secs
2017-01-05 00:42:02 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:50%) 1204 secs
2017-01-05 01:02:36 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:49%) 1204 secs
2017-01-05 01:23:10 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:47%) 1203 secs
... I've removed some lines but there where a total of 40 of them, and they seems to have occurred every 15 minutes or so.
2017-01-05 14:20:36 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=inactive Using Batt (Charge:11%) 6680 secs
2017-01-05 16:11:56 +0100 Wake Wake from Standby [CDNVA] due to EC.LidOpen/Lid Open: Using BATT (Charge:9%) 1911 secs
What does does mean? TCPKeepalive.. TCP, some network activity? How do I stop this?