{"code":"var Component=(()=>{var p=Object.create;var a=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var y=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),w=(t,i)=>{for(var n in i)a(t,n,{get:i[n],enumerable:!0})},h=(t,i,n,r)=>{if(i&&typeof i==\"object\"||typeof i==\"function\")for(let s of g(i))!m.call(t,s)&&s!==n&&a(t,s,{get:()=>i[s],enumerable:!(r=k(i,s))||r.enumerable});return t};var f=(t,i,n)=>(n=t!=null?p(u(t)):{},h(i||!t||!t.__esModule?a(n,\"default\",{value:t,enumerable:!0}):n,t)),F=t=>h(a({},\"__esModule\",{value:!0}),t);var d=y((v,l)=>{l.exports=_jsx_runtime});var b={};w(b,{default:()=>c});var e=f(d());function o(t){let i={a:\"a\",code:\"code\",em:\"em\",h2:\"h2\",h3:\"h3\",img:\"img\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",span:\"span\",strong:\"strong\",table:\"table\",tbody:\"tbody\",td:\"td\",th:\"th\",thead:\"thead\",tr:\"tr\",ul:\"ul\",...t.components};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.p,{children:[`You close the lid at 100 percent, and in the morning the Mac is warm and the battery is at 40, or 20, or dead. Since macOS 27 Golden Gate shipped on 14 September, that story has turned up again and again in Apple's support forums: MacBooks that lose a frightening amount of charge while they are supposed to be asleep, or sitting idle on a desk, and run warm while doing it. The usual advice, \"wait for Spotlight to finish\" and \"close some apps\", does not help someone who is three weeks in and still losing a third of the battery overnight. This guide takes a different approach. Instead of a list of generic tips, it shows you how to measure what your Mac actually did overnight, using the logging tools built into macOS, how to read the output, and what to do about each pattern. It also covers the two specific runaway processes people have reported, `,(0,e.jsx)(i.code,{children:\"replicatord\"}),\" and \",(0,e.jsx)(i.code,{children:\"agentstored\"}),\", what is and is not known about them, and what to send Apple so the report is actually useful.\"]}),`\n`,(0,e.jsx)(i.p,{children:(0,e.jsx)(i.img,{alt:\"An older man sitting on the edge of his bed late at night, resting his hand on a closed silver laptop on the bedside table\",src:\"/images/blog/macos-27-battery-drain-overnight-sleep-idle-wake-reasons-fix-2026/hero.webp\",width:\"1200\",height:\"600\"})}),`\n`,(0,e.jsx)(i.h2,{id:\"key-takeaways\",children:\"Key Takeaways\"}),`\n`,(0,e.jsxs)(i.ul,{children:[`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"The reports are real and not acknowledged by Apple.\"}),' The main Apple Support Communities thread shows 73 \"Me too\" clicks and 16 replies as of 14 October. No Apple employee has commented, and Apple describes 27.0.1 only as bug fixes.']}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Not every Mac is affected.\"}),\" One long-standing forum contributor reports about 10 hours of battery use on a 16-inch M4 Pro MacBook Pro with 50 percent left. Measure your own Mac.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Measure before you change anything.\"}),\" \",(0,e.jsx)(i.code,{children:\"pmset -g log\"}),\" records every sleep, wake and DarkWake with a reason, and \",(0,e.jsx)(i.code,{children:\"pmset -g assertions\"}),\" shows who is holding the Mac awake right now.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"A wake reason is a clue, not a verdict.\"}),\" Maintenance wakes are routine. A DarkWake every 15 minutes, or one lasting many minutes, is the pattern worth chasing.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Two process cases exist.\"}),\" A user fixed a \",(0,e.jsx)(i.code,{children:\"replicatord\"}),\" pinned at 100 percent by renaming its database files. \",(0,e.jsx)(i.code,{children:\"agentstored\"}),\" has no known fix.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Skip cleaners, SIP changes and repeated resets.\"}),\" If the Mac is still bad after careful measurement, report it with a sysdiagnose.\"]}),`\n`]}),`\n`,(0,e.jsx)(i.h2,{id:\"what-people-are-actually-reporting\",children:\"What People Are Actually Reporting\"}),`\n`,(0,e.jsxs)(i.p,{children:[\"The most detailed report is the Apple Support Communities thread \",(0,e.jsx)(i.a,{href:\"https://discussions.apple.com/thread/256362772\",children:'\"Severe Battery Drain and overheating on MacBook Pro M5 after upgrading to macOS 27 Golden Gate\"'}),', started on 22 September. When we read it on 14 October, it showed 73 \"Me too\" clicks and 16 replies across two pages. The original poster describes a MacBook Pro (M5 Pro, bought in May 2026) that barely lost charge overnight before the upgrade. Afterwards, unplugged and unused, \"by the next morning the battery can be completely drained\", and the machine felt hot while idle. In one test it went from roughly 100 percent to 1 percent in about 16 hours while supposed to be asleep.']}),`\n`,(0,e.jsx)(i.p,{children:\"Other reports in the thread, all user statements we cannot verify:\"}),`\n`,(0,e.jsxs)(i.ul,{children:[`\n`,(0,e.jsx)(i.li,{children:\"A MacBook Air M5 owner says battery life fell from more than ten hours to four or five.\"}),`\n`,(0,e.jsx)(i.li,{children:\"A 16-inch M4 Pro owner says two days became six hours, though a volunteer noted the attached screenshot shows the display on, so the Mac was not asleep.\"}),`\n`,(0,e.jsx)(i.li,{children:'An M3 MacBook Air owner on 27.0.1 says it \"completely drained itself while not even using it\" twice.'}),`\n`,(0,e.jsx)(i.li,{children:'A MacBook Air M5 owner on a 27.2 build says it \"got worse\" with each update.'}),`\n`,(0,e.jsxs)(i.li,{children:[\"A MacBook Pro M5 owner posted on 8 October that the Mac wakes into DarkWake about every 15 minutes, with the log blaming \",(0,e.jsx)(i.code,{children:\"wifibt\"}),\" and \",(0,e.jsx)(i.code,{children:\"SMC.OutboxNotEmpty\"}),\", even with Wi-Fi and Bluetooth switched off.\"]}),`\n`]}),`\n`,(0,e.jsxs)(i.p,{children:['Two caveats. The original poster wrote on 27 September that uninstalling applications \"deprecated for this macOS version\" returned the Mac to normal, without naming them: an anecdote, not a general fix. And ',(0,e.jsx)(i.strong,{children:\"Apple has not acknowledged a battery problem in macOS 27\"}),\"; a volunteer in the thread notes that Apple does not participate in the forum. The only official statement we found is the description of 27.0.1 (build 26A434, 28 September) on \",(0,e.jsx)(i.a,{href:\"https://support.apple.com/en-us/100100\",children:\"Apple's security releases page\"}),\", which does not mention battery life.\"]}),`\n`,(0,e.jsx)(i.h2,{id:\"what-is-normal-after-a-major-upgrade-and-how-long\",children:\"What Is Normal After a Major Upgrade (and How Long)\"}),`\n`,(0,e.jsx)(i.p,{children:\"Every major upgrade triggers background work: Spotlight rebuilds its index, Photos re-analyses the library, iCloud re-syncs, and on a Mac with Apple Intelligence the on-device models may download. A Mac that is warm on day one is usually fine by day four.\"}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"Apple does not publish a duration.\"}),\" We searched Apple's support pages and found none. Third-party guides quote figures such as 72 hours, but none cites Apple. The time scales with library size and with how much time the Mac spends idle and plugged in.\"]}),`\n`,(0,e.jsxs)(i.table,{children:[(0,e.jsx)(i.thead,{children:(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.th,{children:\"Sign\"}),(0,e.jsx)(i.th,{children:\"More likely normal indexing\"}),(0,e.jsx)(i.th,{children:\"More likely a real problem\"})]})}),(0,e.jsxs)(i.tbody,{children:[(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"Time since upgrade\"}),(0,e.jsx)(i.td,{children:\"One to three days\"}),(0,e.jsx)(i.td,{children:\"A week or more, as in the main thread\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"Where the heat is\"}),(0,e.jsx)(i.td,{children:\"Mac open, plugged in, you walked away\"}),(0,e.jsx)(i.td,{children:\"Mac closed or in a bag, on battery\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"Processes\"}),(0,e.jsxs)(i.td,{children:[(0,e.jsx)(i.code,{children:\"mds_stores\"}),\", \",(0,e.jsx)(i.code,{children:\"photoanalysisd\"}),\", \",(0,e.jsx)(i.code,{children:\"cloudd\"}),\" busy, then settling\"]}),(0,e.jsx)(i.td,{children:\"One process pinned at 100 percent of a core for hours\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"Pattern over days\"}),(0,e.jsx)(i.td,{children:\"Each night a little better\"}),(0,e.jsx)(i.td,{children:\"Flat or worse\"})]})]})]}),`\n`,(0,e.jsxs)(i.p,{children:[\"For the individual causes, see \",(0,e.jsx)(i.a,{href:\"/blog/macos-27-spotlight-reindexing-battery-drain-stuck-how-to-fix-2026\",children:\"Spotlight reindexing after macOS 27\"}),\", \",(0,e.jsx)(i.a,{href:\"/blog/macos-27-disk-space-30gb-apple-intelligence-storage-after-upgrade-2026\",children:\"where the 30 GB went after upgrading\"}),\" (a volunteer in the main thread cites a case of rapid drain on a Mac with only 8 GB free) and \",(0,e.jsx)(i.a,{href:\"/blog/apple-intelligence-stuck-preparing-downloading-mac-fix-2026\",children:\"Apple Intelligence stuck on preparing\"}),\". One Community contributor also states that Apple Intelligence cannot be switched off in macOS 27; we could not confirm that, so we build no advice on it.\"]}),`\n`,(0,e.jsx)(i.h2,{id:\"step-0-make-sure-it-is-a-sleep-problem\",children:\"Step 0: Make Sure It Is a Sleep Problem\"}),`\n`,(0,e.jsxs)(i.ol,{children:[`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Run a controlled test.\"}),\" Charge to 100 percent, unplug, close the lid, note the time, and leave it for a set period such as eight hours. Write down the percentage when you open it. Repeat on a second night.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Keep your normal setup.\"}),\" Leave the Bluetooth mouse and dock as they usually are, so the test reproduces your real overnight state.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Check the Mac really slept.\"}),' A volunteer in the thread notes that closing the lid \"may not put the laptop to sleep\", because anything holding a sleep assertion keeps it awake. An awake Mac in a bag drains fast and gets hot.']}),`\n`]}),`\n`,(0,e.jsx)(i.p,{children:'The result is a label: \"awake all night\", \"intermittently awake\", or \"asleep and still drained\". The next steps tell you which.'}),`\n`,(0,e.jsx)(i.h2,{id:\"the-measurement-toolkit-four-commands-and-one-app\",children:\"The Measurement Toolkit: Four Commands and One App\"}),`\n`,(0,e.jsxs)(i.p,{children:[\"All commands below are documented in macOS's own manual pages, which you can read with \",(0,e.jsx)(i.code,{children:\"man pmset\"}),\", \",(0,e.jsx)(i.code,{children:\"man top\"}),\" and so on. The syntax here matches the macOS 27.0.1 manual pages. We say plainly where we are describing log formats that Apple does not document: the output of \",(0,e.jsx)(i.code,{children:\"pmset -g log\"}),' is described by the manual only as \"a history of sleeps, wakes, and other power management events. This log is for admin & debugging purposes.\" The interpretation of the individual lines below is informed reading, not Apple documentation.']}),`\n`,(0,e.jsxs)(i.p,{children:[\"One zsh gotcha first: in macOS's default shell, \",(0,e.jsx)(i.code,{children:\"log\"}),\" is a shell built-in, so \",(0,e.jsx)(i.code,{children:\"log show\"}),' fails with \"too many arguments\". Always write the full path, ',(0,e.jsx)(i.code,{children:\"/usr/bin/log\"}),\", as the examples do.\"]}),`\n`,(0,e.jsx)(i.h3,{id:\"command-1-pmset--g-stats-the-one-line-overview\",children:\"Command 1: pmset -g stats, the one-line overview\"}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsx)(i.code,{children:(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"pmset\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -g\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" stats\"})]})})})}),`\n`,(0,e.jsxs)(i.p,{children:[\"The manual describes \",(0,e.jsx)(i.code,{children:\"-g stats\"}),' as printing \"the counts for number sleeps and wakes system has gone thru since boot\". The output is three lines: a Sleep Count, a Dark Wake Count and a User Wake Count. This is your first sanity check. If you rebooted a day ago and see a Dark Wake Count in the hundreds, the Mac is waking itself a lot. The reporter in the main thread saw \"225 Sleep/Wakes since boot, and one sleep cycle showed 7 Dark Wakes\".']}),`\n`,(0,e.jsxs)(i.p,{children:[\"A high count is not automatically bad: a DarkWake is a partial wake in which the display stays off and the Mac does background work for a few seconds, and Macs do this routinely for maintenance. A volunteer in the thread states that most DarkWakes use almost no battery and last under a minute, and that a 15-minute DarkWake on their own Mac was unusual. Those are one person's observations, but they match the point that matters: \",(0,e.jsx)(i.strong,{children:\"the count tells you whether to look; the durations and reasons tell you what you are looking at.\"})]}),`\n`,(0,e.jsx)(i.h3,{id:\"command-2-pmset--g-log-the-sleep-and-wake-history\",children:\"Command 2: pmset -g log, the sleep and wake history\"}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsx)(i.code,{children:(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"pmset\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -g\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" log\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" awk\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:` '$4==\"Sleep\"||$4==\"Wake\"||$4==\"DarkWake\"'`}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" tail\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -60\"})]})})})}),`\n`,(0,e.jsxs)(i.p,{children:[\"The log can be tens of thousands of lines long, most of them power assertions. The filter above keeps only the Sleep, Wake and DarkWake entries. A forum volunteer posted a shorter grep with double spaces, \",(0,e.jsx)(i.code,{children:\"grep -E 'Sleep  |Wake  '\"}),\", which works because the type column is padded, but it also catches a few assertion-summary lines, so the awk version is cleaner. Each kept line begins with the date, the time and the time zone, then the event type, then the details.\"]}),`\n`,(0,e.jsx)(i.p,{children:\"Here is what a healthy overnight sequence looks like on macOS 27, with the content lightly edited for clarity:\"}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsxs)(i.code,{children:[(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"09:00:41\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Sleep\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\"      Entering\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Sleep\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" state\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" due\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" to\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" 'Maintenance Sleep':TCPKeepAlive=active\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Using\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Batt\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\" (Charge:100%) 31 secs\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"09:01:12\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" DarkWake\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\"   DarkWake\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" from\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Deep\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Idle\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\" [CDNP] \"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\":\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\" due to smc.sysState.Wake(\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"0x70070000\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\") USB-C_plug SMC.OutboxNotEmpty Using BATT (\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"Charge:100%\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\") 0 secs\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"09:01:13\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Sleep\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\"      Entering\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" DarkWake\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" state\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" due\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" to\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" 'Notification Wake Back to Sleep':TCPKeepAlive=active\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Using\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" AC\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\" (Charge:100%) 108 secs\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"09:03:01\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Wake\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\"       DarkWake\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" to\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" FullWake\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" from\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Deep\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Idle\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\" [CDNVA] \"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\":\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\" due to UserActivity Assertion Using AC (\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"Charge:100%\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\")\"})]})]})})}),`\n`,(0,e.jsx)(i.p,{children:\"Read each line left to right:\"}),`\n`,(0,e.jsxs)(i.ul,{children:[`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Event type.\"}),\" \",(0,e.jsx)(i.code,{children:\"Sleep\"}),\" is the Mac going to sleep or falling back into DarkWake. \",(0,e.jsx)(i.code,{children:\"DarkWake\"}),\" is a wake without the display. \",(0,e.jsx)(i.code,{children:\"Wake\"}),\" is a full wake. \",(0,e.jsx)(i.code,{children:\"Entering ... state due to 'Reason'\"}),\" tells you why it went to sleep.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"The reason in quotes.\"}),\" \",(0,e.jsx)(i.code,{children:\"Maintenance Sleep\"}),\", \",(0,e.jsx)(i.code,{children:\"Sleep Service Back to Sleep\"}),\" and \",(0,e.jsx)(i.code,{children:\"Notification Wake Back to Sleep\"}),\" are the Mac finishing a background session. \",(0,e.jsx)(i.code,{children:\"Clamshell Sleep\"}),\" is the lid being closed. \",(0,e.jsx)(i.code,{children:\"Idle Sleep\"}),\" and \",(0,e.jsx)(i.code,{children:\"Software Sleep\"}),\" are timer or app requests.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"TCPKeepAlive=active.\"}),\" The Mac was keeping TCP connections alive during sleep, which is the standard behaviour with the \",(0,e.jsx)(i.code,{children:\"tcpkeepalive\"}),\" setting at 1.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:'The wake reason after \"due to\".'}),\" This is the string you care about most. Examples are covered in the table later in this article.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Using BATT or Using AC and the charge in brackets.\"}),\" This is the power source and the battery percentage at that moment. Comparing the Charge values across the night gives you a drain curve without any third-party tool.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"The number of seconds at the end.\"}),\" It appears to be how long the Mac spent in the state it just left, though Apple does not document it. A DarkWake that ends with \",(0,e.jsx)(i.code,{children:\"Sleep ... 31 secs\"}),\" was awake about half a minute; one that ends with several hundred seconds was awake for minutes.\"]}),`\n`]}),`\n`,(0,e.jsx)(i.p,{children:\"To turn the log into a drain curve, print only the time, event type and charge:\"}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsx)(i.code,{children:(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"pmset\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -g\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" log\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" awk\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:` '$4==\"Sleep\"||$4==\"Wake\"||$4==\"DarkWake\" {match($0,/Charge:[0-9]+%/); print $1,$2,$4,substr($0,RSTART,RLENGTH)}'`}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" tail\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -80\"})]})})})}),`\n`,(0,e.jsx)(i.p,{children:\"To count DarkWakes per hour, which makes a 15-minute rhythm obvious:\"}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsx)(i.code,{children:(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"pmset\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -g\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" log\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" awk\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:` '$4==\"DarkWake\"{print $1, substr($2,1,2)\":00\"}'`}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" sort\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" uniq\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -c\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" tail\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -24\"})]})})})}),`\n`,(0,e.jsx)(i.p,{children:\"On a Mac that sleeps properly, you will see a handful of DarkWakes each hour. The report from 8 October in the main thread, in which a MacBook Pro M5 woke about every 15 minutes through the night and during the day, would show up as a steady four per hour, with some individual wakes lasting 20 seconds or more. That is not conclusive on its own, but it is a rhythm worth explaining.\"}),`\n`,(0,e.jsx)(i.h3,{id:\"command-3-wake-requests-who-asked-for-the-next-wake\",children:\"Command 3: Wake Requests, who asked for the next wake\"}),`\n`,(0,e.jsx)(i.p,{children:\"The same log also records scheduled wake requests, which are the Mac planning its own future wakes. They look like this, shortened:\"}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsx)(i.code,{children:(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"pmset\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -g\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" log\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" grep\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:' \"Wake Requests\"'}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" tail\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -3\"})]})})})}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsxs)(i.code,{children:[(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"Wake\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" Requests\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"  [process=mDNSResponder \"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\"request=Maintenance\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" deltaSecs=\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\"7198\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" wakeAt=...\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:' info=\"upkeep wake\"]'})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"               [process\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\"=\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"dasd request\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\"=\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"SleepService deltaSecs\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\"=\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\"1016\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\" wakeAt\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\"=\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"... info\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\"=\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:'\"com.apple.dasd:501:...\"'}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"]\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"               [process\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\"=\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"powerd request\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\"=\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"TCPKATurnOff deltaSecs\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\"=\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\"316236\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\" wakeAt\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\"=\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},children:\"...]\"})]})]})})}),`\n`,(0,e.jsxs)(i.p,{children:[\"Each bracket is one request: the \",(0,e.jsx)(i.code,{children:\"process\"}),\" that asked, the \",(0,e.jsx)(i.code,{children:\"request\"}),\" type, how many seconds from now (\",(0,e.jsx)(i.code,{children:\"deltaSecs\"}),\"), and a free-text \",(0,e.jsx)(i.code,{children:\"info\"}),\" string. This is the closest the system gives you to a list of suspects. The \",(0,e.jsx)(i.code,{children:\"dasd\"}),\" entries are the Duet Activity Scheduler, which schedules background tasks and can wake the Mac to run them; the long \",(0,e.jsx)(i.code,{children:\"info\"}),\" strings name the task. On the main thread, a reporter listed tasks that appeared in their log, including \",(0,e.jsx)(i.code,{children:\"com.apple.intelligenceflow.toolbox.update.fastpass\"}),\", Screen Time history cleanup and PowerUIAgent maintenance. Those are names from one person's Mac, not proof of a bug. If the same unusual task name appears in every wake request through the night, that is your lead. For the scheduler's mechanics, see our article on \",(0,e.jsx)(i.a,{href:\"/blog/dasd-appstoreagent-high-cpu-overnight-macos-27-fans-battery-drain-fix-2026\",children:\"dasd and appstoreagent running overnight\"}),\".\"]}),`\n`,(0,e.jsx)(i.h3,{id:\"command-4-pmset--g-assertions-who-is-holding-the-mac-awake-right-now\",children:\"Command 4: pmset -g assertions, who is holding the Mac awake right now\"}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsx)(i.code,{children:(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"pmset\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -g\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" assertions\"})]})})})}),`\n`,(0,e.jsx)(i.p,{children:'The manual says this \"displays a summary of power assertions. Assertions may prevent system sleep or display sleep.\" An assertion is a request from a process: \"do not sleep while I am doing this\". The top of the output is a summary table of counts; below it, \"Listed by owning process\" names each holder. Focus on these:'}),`\n`,(0,e.jsxs)(i.table,{children:[(0,e.jsx)(i.thead,{children:(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.th,{children:\"Assertion\"}),(0,e.jsx)(i.th,{children:\"Meaning\"}),(0,e.jsx)(i.th,{children:\"What a non-zero value suggests\"})]})}),(0,e.jsxs)(i.tbody,{children:[(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:(0,e.jsx)(i.code,{children:\"PreventUserIdleSystemSleep\"})}),(0,e.jsx)(i.td,{children:\"Something is preventing idle sleep\"}),(0,e.jsxs)(i.td,{children:[\"A process (video, download, \",(0,e.jsx)(i.code,{children:\"caffeinate\"}),\", a remote-access tool) wants the Mac awake\"]})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:(0,e.jsx)(i.code,{children:\"PreventSystemSleep\"})}),(0,e.jsx)(i.td,{children:\"Stronger: prevents sleep entirely\"}),(0,e.jsx)(i.td,{children:\"Rarely good; common with some hardware or audio workflows\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsxs)(i.td,{children:[(0,e.jsx)(i.code,{children:\"PreventUserIdleDisplaySleep\"}),\" / \",(0,e.jsx)(i.code,{children:\"InternalPreventDisplaySleep\"})]}),(0,e.jsx)(i.td,{children:\"The display is being kept on or has a pending timeout\"}),(0,e.jsx)(i.td,{children:\"Normal if you are using the Mac\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:(0,e.jsx)(i.code,{children:\"BackgroundTask\"})}),(0,e.jsx)(i.td,{children:\"A background task is running\"}),(0,e.jsx)(i.td,{children:\"Usually temporary; persistent value points to a stuck task\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:(0,e.jsx)(i.code,{children:\"NetworkClientActive\"})}),(0,e.jsx)(i.td,{children:\"Network activity is holding the Mac awake\"}),(0,e.jsx)(i.td,{children:\"A transfer or sync in progress\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:(0,e.jsx)(i.code,{children:\"UserIsActive\"})}),(0,e.jsx)(i.td,{children:\"The Mac believes you are using it\"}),(0,e.jsx)(i.td,{children:\"Often a Bluetooth mouse or keyboard event\"})]})]})]}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"Run it twice.\"}),\" First run it while the Mac is idle with the lid open, and again right after you wake the Mac in the morning. The reporter in the main thread ran it and found no permanent blocker: \",(0,e.jsx)(i.code,{children:\"PreventSystemSleep\"}),\", \",(0,e.jsx)(i.code,{children:\"BackgroundTask\"}),\" and \",(0,e.jsx)(i.code,{children:\"NetworkClientActive\"}),\" were all 0, with a few temporary entries such as one from \",(0,e.jsx)(i.code,{children:\"coreaudiod\"}),' and a kernel assertion tied to a networking client. A volunteer replied that macOS creates a lot of temporary assertions and that they rarely help find the cause. That matches our experience: assertions are most useful for the \"awake all night\" case, and least useful for the \"waking repeatedly\" case.']}),`\n`,(0,e.jsxs)(i.p,{children:[\"For a log of assertions as they are created and released, \",(0,e.jsx)(i.code,{children:\"pmset -g assertionslog\"}),\" streams them live, and you can also search history:\"]}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsx)(i.code,{children:(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"pmset\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -g\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" log\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" grep\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -E\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:' \"Assertions\"'}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" grep\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -i\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:' \"created\"'}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" tail\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -30\"})]})})})}),`\n`,(0,e.jsx)(i.p,{children:'The assertion lines in the log name the owning process and the reason string, for example a \"Video Wake Lock\" from a browser or a \"caffeinate command-line tool\" entry. If one app creates and releases an assertion repeatedly through the night, that app is a suspect.'}),`\n`,(0,e.jsx)(i.h3,{id:\"command-5-pmset--g-and-friends-the-settings-in-effect\",children:\"Command 5: pmset -g and friends, the settings in effect\"}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsxs)(i.code,{children:[(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"pmset\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -g\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"pmset\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -g\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" custom\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"pmset\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -g\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" cap\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"pmset\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -g\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" sched\"})]})]})})}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.code,{children:\"-g\"}),\" prints the settings in use, \",(0,e.jsx)(i.code,{children:\"-g custom\"}),\" separates battery from adapter, \",(0,e.jsx)(i.code,{children:\"-g cap\"}),\" lists the features this Mac supports, and \",(0,e.jsx)(i.code,{children:\"-g sched\"}),\" lists scheduled wakes. The main thread's reporter had \",(0,e.jsx)(i.code,{children:\"powernap = 1\"}),\", \",(0,e.jsx)(i.code,{children:\"tcpkeepalive = 1\"}),\", \",(0,e.jsx)(i.code,{children:\"womp = 0\"}),\", \",(0,e.jsx)(i.code,{children:\"standby = 1\"}),\" and \",(0,e.jsx)(i.code,{children:\"hibernatemode = 3\"}),\", which are ordinary laptop values. Per the manual, \",(0,e.jsx)(i.code,{children:\"powernap\"}),\" toggles Power Nap, \",(0,e.jsx)(i.code,{children:\"womp\"}),' is the same as \"Wake for network access\" in System Settings, and ',(0,e.jsx)(i.code,{children:\"hibernatemode 3\"}),\" (the portable default) keeps memory powered with a copy on disk. \",(0,e.jsx)(i.code,{children:\"tcpkeepalive\"}),\" is not described in the manual's settings list, though it appears in the output and the log (\",(0,e.jsx)(i.code,{children:\"TCPKeepAlive=active\"}),\").\"]}),`\n`,(0,e.jsxs)(i.p,{children:[\"Some guides say to set \",(0,e.jsx)(i.code,{children:\"tcpkeepalive 0\"}),\" or \",(0,e.jsx)(i.code,{children:\"powernap 0\"}),\" straight away. We have not verified what those changes do on macOS 27 beyond the manual, so change one setting at a time, only after a measurement points at it, and note the old value so you can undo it.\"]}),`\n`,(0,e.jsx)(i.h3,{id:\"the-app-activity-monitors-energy-tab-plus-top\",children:\"The app: Activity Monitor's Energy tab, plus top\"}),`\n`,(0,e.jsxs)(i.p,{children:[\"Open Activity Monitor, click \",(0,e.jsx)(i.strong,{children:\"Energy\"}),\", and sort by \",(0,e.jsx)(i.strong,{children:\"12 hr Power\"}),\" (right-click the header to add the column). The \",(0,e.jsx)(i.strong,{children:\"Preventing Sleep\"}),\" column shows which process holds a sleep assertion, linking this tab to \",(0,e.jsx)(i.code,{children:\"pmset -g assertions\"}),\". A process with high 12 hr Power but low CPU is probably waking the Mac often rather than computing, which is exactly what a wake log shows.\"]}),`\n`,(0,e.jsx)(i.p,{children:\"In Terminal:\"}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsx)(i.code,{children:(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"top\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -l\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" 2\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -n\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" 8\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -o\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" cpu\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -stats\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" pid,command,cpu,idlew,power\"})]})})})}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.code,{children:\"-l 2\"}),\" takes two samples (the second has real deltas), \",(0,e.jsx)(i.code,{children:\"-n 8\"}),\" shows eight processes, and \",(0,e.jsx)(i.code,{children:\"-stats\"}),\" picks columns. \",(0,e.jsx)(i.code,{children:\"idlew\"}),\" is idle wakeups and \",(0,e.jsx)(i.code,{children:\"power\"}),\" is an energy score; both are accepted by \",(0,e.jsx)(i.code,{children:\"top\"}),\" in macOS 27.0.1, though the manual does not describe them. Large values flag suspects even when the CPU percentage looks small.\"]}),`\n`,(0,e.jsx)(i.p,{children:(0,e.jsx)(i.img,{alt:\"A man at a home desk late at night reviewing a printed page beside a closed silver laptop, with a small notebook of times and percentages beside it\",src:\"/images/blog/macos-27-battery-drain-overnight-sleep-idle-wake-reasons-fix-2026/content-1.webp\",width:\"1200\",height:\"675\"})}),`\n`,(0,e.jsx)(i.h2,{id:\"reading-the-log-what-you-see-what-it-means-what-to-do\",children:\"Reading the Log: What You See, What It Means, What to Do\"}),`\n`,(0,e.jsxs)(i.p,{children:[\"Here is the decision table. Wake reasons below are real strings that appear in \",(0,e.jsx)(i.code,{children:\"pmset -g log\"}),\" on macOS 27; their meanings are our reading of the strings, which Apple does not document, so treat the third column as a way to proceed, not as proof.\"]}),`\n`,(0,e.jsxs)(i.table,{children:[(0,e.jsx)(i.thead,{children:(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.th,{children:\"What you see in the log\"}),(0,e.jsx)(i.th,{children:\"What it probably means\"}),(0,e.jsx)(i.th,{children:\"What to do\"})]})}),(0,e.jsxs)(i.tbody,{children:[(0,e.jsxs)(i.tr,{children:[(0,e.jsxs)(i.td,{children:[(0,e.jsx)(i.code,{children:\"Clamshell Sleep\"}),\" followed by long gaps with few DarkWakes\"]}),(0,e.jsx)(i.td,{children:\"Lid closed, Mac sleeping normally\"}),(0,e.jsx)(i.td,{children:\"Nothing; this is the healthy shape\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsxs)(i.td,{children:[(0,e.jsx)(i.code,{children:\"rtc/Maintenance\"}),\" or \",(0,e.jsx)(i.code,{children:\"request=Maintenance\"}),\" roughly every two hours\"]}),(0,e.jsxs)(i.td,{children:[\"Scheduled maintenance wake, owned by \",(0,e.jsx)(i.code,{children:\"mDNSResponder\"}),\" in the sample above\"]}),(0,e.jsx)(i.td,{children:\"Normal\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsxs)(i.td,{children:[(0,e.jsx)(i.code,{children:\"rtc/SleepService\"}),\" with a \",(0,e.jsx)(i.code,{children:\"dasd\"}),\" request naming a task\"]}),(0,e.jsx)(i.td,{children:\"Background task scheduled by DAS\"}),(0,e.jsx)(i.td,{children:\"Check the task name in Wake Requests. Many wakes with the same name is a lead\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:(0,e.jsx)(i.code,{children:\"smc.sysState.Wake(0x70070000) wifibt SMC.OutboxNotEmpty\"})}),(0,e.jsx)(i.td,{children:\"The Wi-Fi/Bluetooth chip asked the SMC for a wake\"}),(0,e.jsx)(i.td,{children:\"A few per night are normal. Dozens at 15-minute intervals are the 8 October pattern; test with devices removed (see below)\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsxs)(i.td,{children:[(0,e.jsx)(i.code,{children:\"USB-C_plug\"}),\", \",(0,e.jsx)(i.code,{children:\"acdetach\"})]}),(0,e.jsx)(i.td,{children:\"A power or USB event\"}),(0,e.jsx)(i.td,{children:\"Physical: a dock, hub, charger or cable. Unplug and retest\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:(0,e.jsx)(i.code,{children:\"UserActivity Assertion\"})}),(0,e.jsx)(i.td,{children:\"Something declared you were active\"}),(0,e.jsxs)(i.td,{children:[\"A Bluetooth mouse or keyboard, a trackpad touch, or an app calling the user-active API. Check \",(0,e.jsx)(i.code,{children:\"pmset -g assertions\"}),' for \"Bluetooth LE HID Activity\"']})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"A DarkWake that lasts many minutes\"}),(0,e.jsx)(i.td,{children:\"Something is doing real work\"}),(0,e.jsx)(i.td,{children:\"Capture the unified log for that window (see below) and check Activity Monitor next time\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsxs)(i.td,{children:[\"Back-to-back \",(0,e.jsx)(i.code,{children:\"Wake Requests\"}),\" that all name the same process\"]}),(0,e.jsx)(i.td,{children:\"That process keeps rescheduling itself\"}),(0,e.jsxs)(i.td,{children:[\"Note the name; if it is \",(0,e.jsx)(i.code,{children:\"dasd\"}),\", search the \",(0,e.jsx)(i.code,{children:\"info\"}),\" string\"]})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsxs)(i.td,{children:[(0,e.jsx)(i.code,{children:\"InternalPreventSleep\"}),\" from \",(0,e.jsx)(i.code,{children:\"powerd\"}),\" named \",(0,e.jsx)(i.code,{children:\"com.apple.powermanagement.darkwakelinger\"}),\", timing out\"]}),(0,e.jsx)(i.td,{children:\"Power management keeping the Mac awake briefly after a DarkWake\"}),(0,e.jsx)(i.td,{children:\"A short timeout is likely routine; the reporter listed it, Apple does not document it. Look at the duration, not the name\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"No Sleep entries at all overnight; the Charge falls steadily\"}),(0,e.jsx)(i.td,{children:\"The Mac never slept\"}),(0,e.jsxs)(i.td,{children:['This is the \"awake all night\" case. Run ',(0,e.jsx)(i.code,{children:\"pmset -g assertions\"}),\"; check lid, external devices, \",(0,e.jsx)(i.code,{children:\"caffeinate\"}),\", remote sessions\"]})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"Normal sleep log, but the Charge still falls much faster than before\"}),(0,e.jsx)(i.td,{children:\"Asleep but draining\"}),(0,e.jsx)(i.td,{children:\"Suspect hardware or a firmware problem. See the battery health section\"})]})]})]}),`\n`,(0,e.jsx)(i.p,{children:\"To dig into a single wake, use the time stamp from the log. In the main thread, a volunteer posted this template, and it is the documented way to read the unified log between two times:\"}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsx)(i.code,{children:(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"/usr/bin/log\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" show\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" --start\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:' \"2026-10-14 03:14:00\"'}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" --end\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:' \"2026-10-14 03:16:00\"'}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" --style\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" compact\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" >\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" ~/Desktop/wake-window.txt\"})]})})})}),`\n`,(0,e.jsxs)(i.p,{children:[\"Use the exact times from your own \",(0,e.jsx)(i.code,{children:\"pmset -g log\"}),\" entry for the DarkWake you want to examine, and save the output to a file, because it is large. The volunteer also warned that this log is full of harmless-looking errors and warnings and that finding a single culprit can be difficult, which we agree with. If you know the process name already (from Activity Monitor or Wake Requests), narrow the search:\"]}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsx)(i.code,{children:(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"/usr/bin/log\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" show\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" --last\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" 30m\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" --style\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" compact\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" --predicate\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:` 'process == \"powerd\"'`})]})})})}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.code,{children:\"--last 30m\"}),\" limits the window, \",(0,e.jsx)(i.code,{children:\"--style compact\"}),\" shortens each line, and \",(0,e.jsx)(i.code,{children:\"--predicate\"}),\" filters by process or subsystem. Replace \",(0,e.jsx)(i.code,{children:\"powerd\"}),\" with the process you are investigating. The log only goes back a limited time, so run this soon after the event. Run it as your normal user; add \",(0,e.jsx)(i.code,{children:\"sudo\"}),\" if you need system-level entries.\"]}),`\n`,(0,e.jsx)(i.h3,{id:\"where-apple-silicon-differs\",children:\"Where Apple silicon differs\"}),`\n`,(0,e.jsxs)(i.ul,{children:[`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"No separate SMC reset.\"}),\" A restart does what the old reset did; see our \",(0,e.jsx)(i.a,{href:\"/blog/how-to-reset-nvram-pram-smc-on-mac-complete-guide-2026\",children:\"NVRAM, PRAM and SMC guide\"}),\". The log still shows \",(0,e.jsx)(i.code,{children:\"smc.sysState\"}),\" strings because the text comes from the power controller.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsxs)(i.strong,{children:[\"Available \",(0,e.jsx)(i.code,{children:\"pmset\"}),\" keys depend on the Mac.\"]}),\" \",(0,e.jsx)(i.code,{children:\"pmset -g cap\"}),\" shows what yours supports.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Hibernation is on by default for portables\"}),\" (\",(0,e.jsx)(i.code,{children:\"hibernatemode 3\"}),\"), so a long sleep can lose a little charge until standby kicks in.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Wake-reason strings differ from Intel.\"}),\" Old articles cite \",(0,e.jsx)(i.code,{children:\"EC.LidOpen\"}),\"; on Apple silicon expect \",(0,e.jsx)(i.code,{children:\"smc.sysState.Wake\"}),\", \",(0,e.jsx)(i.code,{children:\"NUB.SPMI\"}),\", \",(0,e.jsx)(i.code,{children:\"rtc/Maintenance\"}),\" and named hardware like \",(0,e.jsx)(i.code,{children:\"wifibt\"}),\". Eclectic Light's \",(0,e.jsx)(i.a,{href:\"https://eclecticlight.co/2017/06/05/exploring-sierra-10-12-5-sleep-and-wake-in-the-log-1/\",children:\"2017 walkthrough\"}),\" explains the structure of a wake, but its strings are Intel-era.\"]}),`\n`]}),`\n`,(0,e.jsx)(i.h2,{id:\"case-study-1-replicatord-at-100-percent-cpu\",children:\"Case Study 1: replicatord at 100 Percent CPU\"}),`\n`,(0,e.jsxs)(i.p,{children:[\"The Apple Support thread \",(0,e.jsx)(i.a,{href:\"https://discussions.apple.com/thread/256358791\",children:'\"replicatord running at 100% CPU on macOS 27\"'}),' was posted on 17 September by an M1 Pro MacBook Pro owner on macOS 27.0. Killing the process or restarting did not help. When we read it, it showed two replies and no \"Me too\" count.']}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsxs)(i.strong,{children:[\"We could not find an Apple description of \",(0,e.jsx)(i.code,{children:\"replicatord\"})]}),\", and we will not guess. The thread gives a method and a fix that worked for one user:\"]}),`\n`,(0,e.jsxs)(i.ol,{children:[`\n`,(0,e.jsxs)(i.li,{children:[\"A volunteer advised leaving the LaunchAgent enabled, testing in Safe Mode, and using \",(0,e.jsx)(i.strong,{children:\"View > Sample Process\"}),\" in Activity Monitor.\"]}),`\n`,(0,e.jsx)(i.li,{children:`The poster's sample showed the CPU time \"nearly completely spent in SQLite database access\", so they suspected a corrupted database.`}),`\n`,(0,e.jsxs)(i.li,{children:[\"Using \",(0,e.jsx)(i.code,{children:\"lsof\"}),\", they found it in \",(0,e.jsx)(i.code,{children:\"~/Library/Group Containers/group.com.apple.replicatord/replicatord/\"}),\".\"]}),`\n`,(0,e.jsxs)(i.li,{children:[\"They renamed \",(0,e.jsx)(i.code,{children:\"replicatord.sql\"}),\", \",(0,e.jsx)(i.code,{children:\"replicatord.sql-shm\"}),\" and \",(0,e.jsx)(i.code,{children:\"replicatord.sql-wal\"}),', killed the process, and it \"came back and created a fresh db. CPU consumption now is back to normal.\"']}),`\n`]}),`\n`,(0,e.jsxs)(i.p,{children:[\"That is a \",(0,e.jsx)(i.strong,{children:\"user-reported fix on one Mac, not confirmed by Apple\"}),\". To try it reversibly:\"]}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsxs)(i.code,{children:[(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\"cd\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:' ~/Library/\"Group Containers\"/group.com.apple.replicatord/replicatord/'})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"ls\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -la\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"mkdir\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -p\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" ~/Desktop/replicatord-backup\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"cp\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -p\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" replicatord.sql\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\"*\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" ~/Desktop/replicatord-backup/\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"mv\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" replicatord.sql\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" replicatord.sql.old\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"mv\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" replicatord.sql-shm\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" replicatord.sql-shm.old\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"mv\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" replicatord.sql-wal\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" replicatord.sql-wal.old\"})]}),`\n`,(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"killall\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" replicatord\"})]})]})})}),`\n`,(0,e.jsxs)(i.p,{children:['If Terminal says \"Operation not permitted\", macOS privacy protection may be blocking access; Full Disk Access for Terminal is one way through, but it is broad, so remove it afterwards. ',(0,e.jsx)(i.strong,{children:\"To undo:\"}),\" run \",(0,e.jsx)(i.code,{children:\"killall replicatord\"}),\", delete the new \",(0,e.jsx)(i.code,{children:\"replicatord.sql*\"}),\" files, rename the \",(0,e.jsx)(i.code,{children:\".old\"}),\" files back, and let the process restart. We cannot tell you what this database holds, which is why the steps rename and back up instead of deleting. If CPU returns to 100 percent, undo and report it. This only helps if \",(0,e.jsx)(i.code,{children:\"replicatord\"}),\" is actually on your CPU list.\"]}),`\n`,(0,e.jsx)(i.h2,{id:\"case-study-2-agentstored-and-why-there-is-no-fix-yet\",children:\"Case Study 2: agentstored, and Why There Is No Fix Yet\"}),`\n`,(0,e.jsxs)(i.p,{children:[\"A MacRumors thread, \",(0,e.jsx)(i.a,{href:\"https://forums.macrumors.com/threads/agentstored-process-constantly-running-on-golden-gate-eating-up-a-lot-of-cpu-and-disk-writes.2491548/\",children:'\"AgentStored process constantly running on Golden Gate\"'}),\", was a day or two old with no replies when we read it on 14 October. The poster says \",(0,e.jsx)(i.code,{children:\"agentstored\"}),\", under \",(0,e.jsx)(i.code,{children:\"/System/Library/PrivateFrameworks/AgentSessionKitRuntime.framework\"}),', \"is sitting at 100% on one core nonstop, even right after a reboot\", with \"34+ hours of CPU time and written ~39 GB to disk\". Turning off Automatic Visual Look Up and moving the AgentSessionKit database out of ',(0,e.jsx)(i.code,{children:\"~/Library/Daemon Containers\"}),\" did not help.\"]}),`\n`,(0,e.jsxs)(i.ul,{children:[`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsxs)(i.strong,{children:[\"We found no Apple documentation for \",(0,e.jsx)(i.code,{children:\"agentstored\"})]}),\", so we will not say what it does.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"There is no known fix\"}),\", and it is a single report without independent confirmation.\"]}),`\n`]}),`\n`,(0,e.jsxs)(i.p,{children:[\"You can still measure it. In Activity Monitor, check \",(0,e.jsx)(i.strong,{children:\"CPU Time\"}),\" in the CPU tab and \",(0,e.jsx)(i.strong,{children:\"Bytes Written\"}),\" in the Disk tab, then use View > Sample Process and keep the sample for a Feedback Assistant report. Do not delete files from \",(0,e.jsx)(i.code,{children:\"~/Library/Daemon Containers\"}),\" as an experiment; the reporter already moved one database without result. Sustained heavy writes are a reason to report sooner rather than wait.\"]}),`\n`,(0,e.jsx)(i.h2,{id:\"settings-that-legitimately-reduce-sleep-drain\",children:\"Settings That Legitimately Reduce Sleep Drain\"}),`\n`,(0,e.jsx)(i.p,{children:\"These change how often the Mac wakes, not a bug. We checked paths against Apple's Mac User Guide pages, which list macOS 27 first in the version selector.\"}),`\n`,(0,e.jsxs)(i.table,{children:[(0,e.jsx)(i.thead,{children:(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.th,{children:\"Setting\"}),(0,e.jsx)(i.th,{children:\"Where\"}),(0,e.jsx)(i.th,{children:\"Notes\"})]})}),(0,e.jsxs)(i.tbody,{children:[(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"Wake for network access\"}),(0,e.jsx)(i.td,{children:\"System Settings > Battery > Options (laptops); Energy (desktops)\"}),(0,e.jsx)(i.td,{children:\"Apple's page says to choose a less frequent option, such as plugged in only or never, to save battery. Verified\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"Low Power Mode / Energy Mode\"}),(0,e.jsx)(i.td,{children:\"System Settings > Battery\"}),(0,e.jsx)(i.td,{children:\"Set separately for battery and adapter. Verified\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"Optimized Battery Charging / Charge Limit\"}),(0,e.jsx)(i.td,{children:\"System Settings > Battery, Charging section, Info button\"}),(0,e.jsx)(i.td,{children:\"Protects battery lifespan; does not cut sleep drain. Verified\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"Power Nap\"}),(0,e.jsxs)(i.td,{children:[(0,e.jsx)(i.code,{children:\"powernap\"}),\" key in \",(0,e.jsx)(i.code,{children:\"pmset\"}),\"; older macOS: Battery > Options\"]}),(0,e.jsx)(i.td,{children:\"Documented in the manual; we could not confirm the macOS 27 System Settings label\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"Bluetooth devices waking the Mac\"}),(0,e.jsx)(i.td,{children:\"Formerly Bluetooth > Advanced\"}),(0,e.jsx)(i.td,{children:\"A 2022 community thread says it was removed in Monterey; we could not confirm its status in macOS 27. Test by switching the device off before sleeping\"})]}),(0,e.jsxs)(i.tr,{children:[(0,e.jsx)(i.td,{children:\"Find My\"}),(0,e.jsx)(i.td,{children:\"Apple Account and Privacy settings\"}),(0,e.jsx)(i.td,{children:\"Exact macOS 27 path not confirmed; we do not recommend disabling it as a test\"})]})]})]}),`\n`,(0,e.jsxs)(i.p,{children:[\"A forum reply also suggested turning off Summarize Notifications and reviewing System Settings > General > Login Items and Extensions; the second is a good habit after any major upgrade. To test Wi-Fi or Bluetooth, switch each off for one night, though the reporter with \",(0,e.jsx)(i.code,{children:\"wifibt\"}),\" wakes saw them continue with both off.\"]}),`\n`,(0,e.jsx)(i.p,{children:(0,e.jsx)(i.img,{alt:\"A close view of a person's hands moving a toggle on a laptop trackpad beside a printed checklist, with the laptop screen blurred and unreadable\",src:\"/images/blog/macos-27-battery-drain-overnight-sleep-idle-wake-reasons-fix-2026/content-2.webp\",width:\"1200\",height:\"800\"})}),`\n`,(0,e.jsx)(i.h2,{id:\"isolating-software\",children:\"Isolating Software\"}),`\n`,(0,e.jsx)(i.p,{children:\"A volunteer in the main thread recommended the right splits:\"}),`\n`,(0,e.jsxs)(i.ol,{children:[`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Safe Mode.\"}),\" On Apple silicon, shut down, hold the power button until startup options appear, select the volume, hold Shift and choose Continue in Safe Mode. A clean log there implicates a third-party extension or login item.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"A new user account.\"}),\" If its overnight pattern is clean, the cause is in your user's settings or data. Delete it afterwards.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Remove or update cleaners, optimizers and similar software\"}),\", then list Login Items and Extensions and disable unfamiliar items one group at a time, comparing DarkWakes per hour between nights.\"]}),`\n`]}),`\n`,(0,e.jsxs)(i.p,{children:[\"Charge-limit tools and menu bar managers have needed macOS 27 updates; see \",(0,e.jsx)(i.a,{href:\"/blog/macos-27-battery-charge-limit-apps-broken-aldente-batt-charging-to-100-fix-2026\",children:\"charge-limit apps on macOS 27\"}),\".\"]}),`\n`,(0,e.jsx)(i.h2,{id:\"when-to-suspect-the-battery-or-hardware\",children:\"When to Suspect the Battery or Hardware\"}),`\n`,(0,e.jsx)(i.p,{children:\"If the log shows long uninterrupted sleeps but the charge still falls much faster than before, suspect the battery.\"}),`\n`,(0,e.jsxs)(i.ol,{children:[`\n`,(0,e.jsxs)(i.li,{children:[\"Open \",(0,e.jsx)(i.strong,{children:\"System Settings > Battery\"}),\" and click the Info button by the battery condition. Apple's macOS 27 page lists Battery Condition and Maximum Capacity.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[\"Apple's \",(0,e.jsx)(i.a,{href:\"https://support.apple.com/108376\",children:\"battery service page\"}),` defines \"Normal\" as \"the battery is functioning normally\" and \"Service Recommended\" as the battery's ability to hold charge being less than when new, or not functioning normally.`]}),`\n`,(0,e.jsxs)(i.li,{children:[\"Run \",(0,e.jsx)(i.code,{children:'system_profiler SPPowerDataType | grep -E \"Cycle Count|Condition|Maximum Capacity\"'}),\"; the Health Information section includes those three values.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[\"For sudden jumps, leave \",(0,e.jsx)(i.code,{children:\"pmset -g pslog\"}),' running on battery. The manual says discontinuities such as 30 percent to 0 are \"indicative of an aging battery\".']}),`\n`]}),`\n`,(0,e.jsxs)(i.p,{children:[\"Heat is covered in our \",(0,e.jsx)(i.a,{href:\"/blog/macbook-pro-m5-overheating-thermal-throttling-fix-guide-2026\",children:\"MacBook Pro M5 overheating guide\"}),\". A healthy battery plus a restless log means software.\"]}),`\n`,(0,e.jsx)(i.h2,{id:\"what-to-send-apple\",children:\"What to Send Apple\"}),`\n`,(0,e.jsxs)(i.p,{children:[\"The route to an engineer is Feedback Assistant. \",(0,e.jsx)(i.a,{href:\"https://developer.apple.com/bug-reporting/mac\",children:\"Apple's bug reporting page\"}),' says it \"automatically attaches a sysdiagnose for each issue\" and that a sysdiagnose \"should be included with all reports, even if you think one is not needed\". Without a developer account, ',(0,e.jsx)(i.a,{href:\"https://www.apple.com/feedback/macos.html\",children:\"Apple's macOS feedback form\"}),\" is a simpler web option.\"]}),`\n`,(0,e.jsxs)(i.ol,{children:[`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Capture a sysdiagnose soon after a bad night.\"}),\" The \",(0,e.jsx)(i.code,{children:\"sysdiagnose\"}),\" manual names Control-Option-Command-Shift-Period as the trigger; \",(0,e.jsx)(i.code,{children:\"sudo sysdiagnose\"}),\" from Terminal writes to \",(0,e.jsx)(i.code,{children:\"/var/tmp\"}),\" by default and takes several minutes. It may contain private information.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Include the facts:\"}),\" macOS 27.0.1 (26A434), Mac model, upgrade or clean install, and your test results (start and end percentage, duration, lid state).\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsxs)(i.strong,{children:[\"Attach the \",(0,e.jsx)(i.code,{children:\"pmset -g log\"}),\" excerpt\"]}),\" and \",(0,e.jsx)(i.code,{children:\"pmset -g stats\"}),\".\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Name suspects\"}),\" with CPU time and bytes written, and what you ruled out: Safe Mode, new user, free space.\"]}),`\n`]}),`\n`,(0,e.jsx)(i.h2,{id:\"what-not-to-do\",children:\"What Not to Do\"}),`\n`,(0,e.jsxs)(i.ul,{children:[`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:'Do not install a \"cleaner\" or \"optimizer\".'}),\" Volunteers in the thread say these cause post-upgrade compatibility problems, and none can fix a wake reason.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Do not disable System Integrity Protection\"}),\" to kill a daemon. The renaming fix needs no such change.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Do not delete random LaunchAgents or LaunchDaemons.\"}),\" A volunteer advised leaving Apple's agents enabled while investigating.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Do not reset the SMC or NVRAM repeatedly.\"}),\" On Apple silicon a restart is the reset; see our \",(0,e.jsx)(i.a,{href:\"/blog/how-to-reset-nvram-pram-smc-on-mac-complete-guide-2026\",children:\"reset guide\"}),\".\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Do not change several settings at once\"}),\", or judge from a single night.\"]}),`\n`,(0,e.jsxs)(i.li,{children:[(0,e.jsx)(i.strong,{children:\"Do not erase and downgrade in a panic.\"}),\" Read the \",(0,e.jsx)(i.a,{href:\"/blog/should-you-update-to-macos-27-golden-gate-vs-tahoe-26-upgrade-decision-guide-2026\",children:\"update decision guide\"}),\" and the \",(0,e.jsx)(i.a,{href:\"/blog/downgrade-macos-27-beta-to-tahoe-without-losing-data-guide-2026\",children:\"downgrade guide\"}),\" first; the cause may be one app.\"]}),`\n`]}),`\n`,(0,e.jsx)(i.h2,{id:\"troubleshooting-common-issues\",children:\"Troubleshooting Common Issues\"}),`\n`,(0,e.jsx)(i.h3,{id:\"my-log-shows-no-sleep-at-all-overnight\",children:\"My log shows no sleep at all overnight\"}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"Symptoms\"}),\": \",(0,e.jsx)(i.code,{children:\"pmset -g log\"}),\" has no \",(0,e.jsx)(i.code,{children:\"Sleep\"}),\" entries between midnight and morning, and the Charge falls steadily.\"]}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"Cause\"}),\": Something kept the Mac awake. Candidates are an assertion from an app (video, download, remote access, \",(0,e.jsx)(i.code,{children:\"caffeinate\"}),\"), a terminal session (the \",(0,e.jsx)(i.code,{children:\"ttyskeepawake\"}),\" setting), a connected device, or a lid that did not close fully.\"]}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"Solution\"}),\":\"]}),`\n`,(0,e.jsxs)(i.ol,{children:[`\n`,(0,e.jsxs)(i.li,{children:[\"Run \",(0,e.jsx)(i.code,{children:\"pmset -g assertions\"}),' and look at \"Listed by owning process\" for ',(0,e.jsx)(i.code,{children:\"PreventUserIdleSystemSleep\"}),\" or \",(0,e.jsx)(i.code,{children:\"PreventSystemSleep\"}),\".\"]}),`\n`,(0,e.jsxs)(i.li,{children:[\"In Activity Monitor's Energy tab, check the \",(0,e.jsx)(i.strong,{children:\"Preventing Sleep\"}),\" column.\"]}),`\n`,(0,e.jsx)(i.li,{children:\"Quit that app normally and retest.\"}),`\n`]}),`\n`,(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(i.pre,{className:\"shiki shiki-themes github-light github-dark\",style:{\"--shiki-light\":\"#24292e\",\"--shiki-dark\":\"#e1e4e8\",\"--shiki-light-bg\":\"#fff\",\"--shiki-dark-bg\":\"#24292e\"},tabIndex:\"0\",icon:'<svg viewBox=\"0 0 24 24\"><path d=\"m 4,4 a 1,1 0 0 0 -0.7070312,0.2929687 1,1 0 0 0 0,1.4140625 L 8.5859375,11 3.2929688,16.292969 a 1,1 0 0 0 0,1.414062 1,1 0 0 0 1.4140624,0 l 5.9999998,-6 a 1.0001,1.0001 0 0 0 0,-1.414062 L 4.7070312,4.2929687 A 1,1 0 0 0 4,4 Z m 8,14 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 8 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z\" fill=\"currentColor\" /></svg>',children:(0,e.jsx)(i.code,{children:(0,e.jsxs)(i.span,{className:\"line\",children:[(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\"pmset\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -g\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:\" assertions\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#D73A49\",\"--shiki-dark\":\"#F97583\"},children:\" |\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},children:\" grep\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},children:\" -E\"}),(0,e.jsx)(i.span,{style:{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},children:' \"PreventUserIdleSystemSleep|PreventSystemSleep|caffeinate\"'})]})})})}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"If that does not work\"}),\": Disconnect all external devices, quit terminal and remote sessions, and run the controlled test again. If the Mac still never sleeps, include the assertions output in your report.\"]}),`\n`,(0,e.jsx)(i.h3,{id:\"the-mac-wakes-about-every-15-minutes-with-wifibt-in-the-reason\",children:\"The Mac wakes about every 15 minutes with wifibt in the reason\"}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"Symptoms\"}),\": DarkWake entries at regular intervals, each citing \",(0,e.jsx)(i.code,{children:\"wifibt SMC.OutboxNotEmpty\"}),\".\"]}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"Cause\"}),\": The wireless chip repeatedly asks the system to wake. This matches the 8 October report on the main thread, where the wakes continued even with Wi-Fi and Bluetooth switched off. We do not know the cause and Apple has not commented.\"]}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"Solution\"}),\":\"]}),`\n`,(0,e.jsxs)(i.ol,{children:[`\n`,(0,e.jsx)(i.li,{children:\"Count the wakes per hour with the awk command above, and note the durations.\"}),`\n`,(0,e.jsx)(i.li,{children:\"Remove Bluetooth accessories and switch off Handoff-related devices nearby, then retest.\"}),`\n`,(0,e.jsxs)(i.li,{children:[\"Set \",(0,e.jsx)(i.strong,{children:\"Wake for network access\"}),\" to Never in System Settings > Battery > Options, and retest for a night.\"]}),`\n`,(0,e.jsx)(i.li,{children:\"Compare with Low Power Mode on.\"}),`\n`]}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"If that does not work\"}),\": This is a candidate for a Feedback Assistant report. Attach the DarkWake counts and a sysdiagnose from the morning after.\"]}),`\n`,(0,e.jsx)(i.h3,{id:\"pmset--g-log-prints-nothing-useful-or-the-grep-returns-nothing\",children:\"pmset -g log prints nothing useful, or the grep returns nothing\"}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"Symptoms\"}),\": Empty output after the filter, or an error from \",(0,e.jsx)(i.code,{children:\"log\"}),\".\"]}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"Cause\"}),\": The \",(0,e.jsx)(i.code,{children:\"grep -E 'Sleep  |Wake  '\"}),\" pattern depends on exact spacing. In zsh, \",(0,e.jsx)(i.code,{children:\"log\"}),' is a shell built-in and fails with \"too many arguments\".']}),`\n`,(0,e.jsxs)(i.p,{children:[(0,e.jsx)(i.strong,{children:\"Solution\"}),\": Use the awk filter, which keys on the event column, and use \",(0,e.jsx)(i.code,{children:\"/usr/bin/log show\"}),\" for the unified log. If \",(0,e.jsx)(i.code,{children:\"pmset -g log\"}),\" is empty after a reboot, give the Mac a few sleep cycles.\"]}),`\n`,(0,e.jsx)(i.h2,{id:\"faq\",children:\"FAQ\"}),`\n`,(0,e.jsx)(i.h3,{id:\"is-macos-27-battery-drain-while-asleep-a-confirmed-bug\",children:\"Is macOS 27 battery drain while asleep a confirmed bug?\"}),`\n`,(0,e.jsx)(i.p,{children:\"Not by Apple. Users on M3, M4 and M5 MacBooks describe heavy overnight drain in Apple's community forums, and other owners report no problems. We found no Apple acknowledgement and no known-issue entry, and 27.0.1 is described only as bug fixes. Treat it as a widely reported, unconfirmed pattern and measure your own Mac before blaming the update.\"}),`\n`,(0,e.jsx)(i.h3,{id:\"how-long-should-spotlight-and-photos-take-after-upgrading\",children:\"How long should Spotlight and Photos take after upgrading?\"}),`\n`,(0,e.jsx)(i.p,{children:\"Apple does not publish a duration, and we found no official figure. Third-party guides mention a few days. The size of your library and how often the Mac sits idle on power both matter. If a Mac is still hot and draining a week later with the lid closed, as in the main thread, the explanation probably is not indexing alone.\"}),`\n`,(0,e.jsx)(i.h3,{id:\"what-does-a-darkwake-mean-and-is-it-bad\",children:\"What does a DarkWake mean and is it bad?\"}),`\n`,(0,e.jsx)(i.p,{children:\"A DarkWake is a partial wake in which the display stays off and the Mac does short background work, such as maintenance, mail checks or network upkeep. Many per night are normal. A forum volunteer says most last under a minute. What matters is frequency, duration and whether the same reason repeats. A DarkWake lasting many minutes deserves investigation.\"}),`\n`,(0,e.jsx)(i.h3,{id:\"can-i-safely-kill-replicatord-or-rename-its-database\",children:\"Can I safely kill replicatord or rename its database?\"}),`\n`,(0,e.jsx)(i.p,{children:\"The only evidence is one user's report that renaming three database files in its Group Container folder and restarting the process brought CPU use back to normal. Apple has not documented the process. If you try it, back up the files first, rename rather than delete, and know how to restore the originals. Do not disable the daemon.\"}),`\n`,(0,e.jsx)(i.h3,{id:\"should-i-turn-off-power-nap-or-wake-for-network-access\",children:\"Should I turn off Power Nap or Wake for network access?\"}),`\n`,(0,e.jsxs)(i.p,{children:[\"They are reasonable tests, not cures. Apple's page says choosing a less frequent option for network wake saves battery, and the \",(0,e.jsx)(i.code,{children:\"powernap\"}),\" key is documented in the pmset manual. Change one setting at a time, run a controlled overnight test and compare DarkWake counts. We could not confirm the macOS 27 System Settings location of the Power Nap switch.\"]}),`\n`,(0,e.jsx)(i.h3,{id:\"will-downgrading-to-tahoe-fix-it\",children:\"Will downgrading to Tahoe fix it?\"}),`\n`,(0,e.jsx)(i.p,{children:\"Possibly, but there is no evidence that it is required for everyone, and it takes an erase and reinstall. Measure first: if one app or process is responsible, removing it is far cheaper. If your log shows the Mac itself waking repeatedly and you cannot tolerate it, the downgrade guide explains the cost.\"}),`\n`,(0,e.jsx)(i.h3,{id:\"what-should-i-attach-to-a-feedback-assistant-report\",children:\"What should I attach to a Feedback Assistant report?\"}),`\n`,(0,e.jsxs)(i.p,{children:[\"Attach a sysdiagnose captured soon after the bad night, your macOS build (for example 27.0.1, 26A434), the Mac model, a log excerpt from \",(0,e.jsx)(i.code,{children:\"pmset -g log\"}),\", and the results of your controlled test with start and end percentages. Apple's own page says a sysdiagnose belongs with every report, so include one even if it feels redundant.\"]}),`\n`,(0,e.jsx)(i.h2,{id:\"conclusion\",children:\"Conclusion\"}),`\n`,(0,e.jsxs)(i.p,{children:[\"Some MacBook owners report heavy overnight drain on macOS 27, Apple has said nothing, and the reports do not point at a single cause. What you can do is measure: run a controlled overnight test, read \",(0,e.jsx)(i.code,{children:\"pmset -g stats\"}),\" and \",(0,e.jsx)(i.code,{children:\"pmset -g log\"}),\" to see whether the Mac slept, woke repeatedly or never slept, check assertions and Activity Monitor, and use the decision table. For \",(0,e.jsx)(i.code,{children:\"replicatord\"}),\" there is a user-reported workaround to try with a backup; for \",(0,e.jsx)(i.code,{children:\"agentstored\"}),\" there is only a clear report to file. If the log is healthy but the battery falls fast, check Battery Health before blaming software. If you decide the Mac is unusable now, see \",(0,e.jsx)(i.a,{href:\"/blog/should-you-update-to-macos-27-golden-gate-vs-tahoe-26-upgrade-decision-guide-2026\",children:\"whether to update\"}),\" and \",(0,e.jsx)(i.a,{href:\"/blog/downgrade-macos-27-beta-to-tahoe-without-losing-data-guide-2026\",children:\"downgrading\"}),\".\"]}),`\n`,(0,e.jsx)(i.p,{children:(0,e.jsxs)(i.em,{children:[\"Related reading: \",(0,e.jsx)(i.a,{href:\"/blog/dasd-appstoreagent-high-cpu-overnight-macos-27-fans-battery-drain-fix-2026\",children:\"dasd and appstoreagent High CPU Overnight on macOS 27\"}),\", \",(0,e.jsx)(i.a,{href:\"/blog/mac-sleep-problems-complete-guide-2025\",children:\"Mac Sleep Problems Complete Guide\"}),\", \",(0,e.jsx)(i.a,{href:\"/blog/macos-27-spotlight-reindexing-battery-drain-stuck-how-to-fix-2026\",children:\"Spotlight Reindexing After macOS 27\"})]})})]})}function c(t={}){let{wrapper:i}=t.components||{};return i?(0,e.jsx)(i,{...t,children:(0,e.jsx)(o,{...t})}):o(t)}return F(b);})();\n;return Component;","toc":[{"title":"Key Takeaways","url":"#key-takeaways","depth":2},{"title":"What People Are Actually Reporting","url":"#what-people-are-actually-reporting","depth":2},{"title":"What Is Normal After a Major Upgrade (and How Long)","url":"#what-is-normal-after-a-major-upgrade-and-how-long","depth":2},{"title":"Step 0: Make Sure It Is a Sleep Problem","url":"#step-0-make-sure-it-is-a-sleep-problem","depth":2},{"title":"The Measurement Toolkit: Four Commands and One App","url":"#the-measurement-toolkit-four-commands-and-one-app","depth":2},{"title":"Command 1: pmset -g stats, the one-line overview","url":"#command-1-pmset--g-stats-the-one-line-overview","depth":3},{"title":"Command 2: pmset -g log, the sleep and wake history","url":"#command-2-pmset--g-log-the-sleep-and-wake-history","depth":3},{"title":"Command 3: Wake Requests, who asked for the next wake","url":"#command-3-wake-requests-who-asked-for-the-next-wake","depth":3},{"title":"Command 4: pmset -g assertions, who is holding the Mac awake right now","url":"#command-4-pmset--g-assertions-who-is-holding-the-mac-awake-right-now","depth":3},{"title":"Command 5: pmset -g and friends, the settings in effect","url":"#command-5-pmset--g-and-friends-the-settings-in-effect","depth":3},{"title":"The app: Activity Monitor's Energy tab, plus top","url":"#the-app-activity-monitors-energy-tab-plus-top","depth":3},{"title":"Reading the Log: What You See, What It Means, What to Do","url":"#reading-the-log-what-you-see-what-it-means-what-to-do","depth":2},{"title":"Where Apple silicon differs","url":"#where-apple-silicon-differs","depth":3},{"title":"Case Study 1: replicatord at 100 Percent CPU","url":"#case-study-1-replicatord-at-100-percent-cpu","depth":2},{"title":"Case Study 2: agentstored, and Why There Is No Fix Yet","url":"#case-study-2-agentstored-and-why-there-is-no-fix-yet","depth":2},{"title":"Settings That Legitimately Reduce Sleep Drain","url":"#settings-that-legitimately-reduce-sleep-drain","depth":2},{"title":"Isolating Software","url":"#isolating-software","depth":2},{"title":"When to Suspect the Battery or Hardware","url":"#when-to-suspect-the-battery-or-hardware","depth":2},{"title":"What to Send Apple","url":"#what-to-send-apple","depth":2},{"title":"What Not to Do","url":"#what-not-to-do","depth":2},{"title":"Troubleshooting Common Issues","url":"#troubleshooting-common-issues","depth":2},{"title":"My log shows no sleep at all overnight","url":"#my-log-shows-no-sleep-at-all-overnight","depth":3},{"title":"The Mac wakes about every 15 minutes with wifibt in the reason","url":"#the-mac-wakes-about-every-15-minutes-with-wifibt-in-the-reason","depth":3},{"title":"pmset -g log prints nothing useful, or the grep returns nothing","url":"#pmset--g-log-prints-nothing-useful-or-the-grep-returns-nothing","depth":3},{"title":"FAQ","url":"#faq","depth":2},{"title":"Is macOS 27 battery drain while asleep a confirmed bug?","url":"#is-macos-27-battery-drain-while-asleep-a-confirmed-bug","depth":3},{"title":"How long should Spotlight and Photos take after upgrading?","url":"#how-long-should-spotlight-and-photos-take-after-upgrading","depth":3},{"title":"What does a DarkWake mean and is it bad?","url":"#what-does-a-darkwake-mean-and-is-it-bad","depth":3},{"title":"Can I safely kill replicatord or rename its database?","url":"#can-i-safely-kill-replicatord-or-rename-its-database","depth":3},{"title":"Should I turn off Power Nap or Wake for network access?","url":"#should-i-turn-off-power-nap-or-wake-for-network-access","depth":3},{"title":"Will downgrading to Tahoe fix it?","url":"#will-downgrading-to-tahoe-fix-it","depth":3},{"title":"What should I attach to a Feedback Assistant report?","url":"#what-should-i-attach-to-a-feedback-assistant-report","depth":3},{"title":"Conclusion","url":"#conclusion","depth":2}],"estimatedTime":30}