thoughtgo / disable_mac_smart_nap

Disable the Smart Nap features to fix battery drain issue in MacOS(Sonoma)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Purpose

  • Disable the Smart Nap features to fix battery drain issue in MacOS, and it's tested in Sonoma.

  • pmset -g log | grep "Wake from"

2023-12-05 17:30:29 +0800 Wake Wake from Standby [CDNVA] : due to EC.PowerButton/UserActivity Assertion Using AC (Charge:100%)
2023-12-06 08:31:41 +0800 Wake Wake from Standby [CDNVA] : due to EC.ACDetach/UserActivity Assertion Using AC (Charge:92%)

Source

Core Ideas

  • Disable the feature of CoreSmartPowerNap
  • Disable tcpkeepalive

Usage

  • sh disable_mac_smart_nap.sh
  • Remember to reboot after apply scripts.

Troubleshooting tools.

  • pmset -g log | tail -n 500
  • pmset -g log | grep "Wake from"

About

Disable the Smart Nap features to fix battery drain issue in MacOS(Sonoma)


Languages

Language:Shell 100.0%