 You know that I got that new M1 Pro based MacBook Pro recently, which I'm still liking. It's heavier than the air. Not sure if I'll if I'll keep it or if I'll give it to my son. That's still that jury is still out on that. But it's a great machine, obviously. The battery has been dying while it's been sleeping. But I knew it wasn't a problem, not dying, but draining rapidly, like going from I'll put it to sleep at, you know, 11 p.m. And it's at 70 percent. And the next morning, it'll be at 40 percent. You know, like that's not good, right? Over the course of, you know, it was it was draining two percent or more per hour. This seemed like a little much. Yeah. So but I knew it wasn't a problem with my with the hardware on my new M1 Pro MacBook Pro, because I was having exactly the same issue on my on my my M1 air. And it had only started recently. Like it was definitely a last few weeks kind of thing. But it was certainly happening. And it transferred over whatever I did with migration assistant brought it with it. So I was like, OK, I got to solve this problem. This is driving me crazy. But I know it's a software problem. Like I've proven that I've ruled that out. So I I started digging around and I found it's like, you know, this is always a thing, right? Like, what's the what's the you know, what's what's causing my battery to drain? Right? We get this question a lot. So I started digging and I found Apple discussion article with a command that I found super helpful to me. And the command, John, is here we are at the terminal again. I know. Sorry, I guess. Not sorry, not at all. The command is PM set, which is the power manager, set or set or set or upper configurator. There you go. Better word. PM spent PM set. This all be in the show notes. We always put commands in the show notes so you don't have to try and remember or interpret what we said. PM set space dash G space log. And that will display a very long log of all of the power management related events. And so this was helpful. And now whenever I'm doing something with a log like that, I wind up wanting to use the the the pipe and a grep command so that I could so that I can, you know, narrow it down. So what I did was and this is the command I'll put in the show notes, John, is I did PM set dash G log pipe grep space colon a quote and in quotes with a capital W and a capital R. I put wake requests because I had this feeling that my Mac was waking up during sleep. And as soon as I did that, all was revealed to me, John. And I can't believe we've been doing this show this long and I've never learned about the PM set log command. But this immediately showed me that every few seconds my Mac was waking up so that an operation from an app could run. Now this made it super easy because I deleted the app and my problems were gone. Here's the interesting part about this. The app was the channel's app, which is the the, you know, the DVR that that I've been using. The DVR runs on my Synology. There is no Mac channels app, but there is an iPhone and iPad channels app. And because it's an M1 Mac, I can download iPad apps onto it. And I did. And for whatever reason, the it's clean cash operation was running every few seconds, even though it's only supposed to run in the background once every 24 hours. So there was a bug where I triggered some event that caused it to say it needed to run all the time instead of just one of the times. And I obviously reported this to the channels folks and they're digging in and like, you know, it was an interesting thing. But that PM set dash G log and then grepping for wake requests and you could just do PM set dash G log and then in the terminal, use the terminals find command for wake space requests. Like that's totally fine. But as soon as I deleted the channels app and then I noticed that they were still happening even after I deleted and emptied the trash. So I restarted my Mac and after that it settled right in and things have been totally fine. I'll put it to sleep with 70 percent battery and wake up and it's got, you know, 68 percent battery. And it's like, OK, this is how it should be. Thank goodness I found this. But yeah, that PM set command that that's the what a great thing to have found. So I wanted to share. It was it was it was definitely something driving me crazy. As I know, it would any of you, you don't want to see your battery just, you know, draining like crazy during sleep. I thought it was like trying to do a time machine back. You know, my mind was going in all the obvious places. And I proved that assumptions are not necessarily correct. So it's pretty cool, though, huh? Yeah, yeah. Back in the old days, you could I think and it doesn't work anymore. So I won't talk about using power G that was the old way to find out, I think, sure, wake events. You're right. That's right. Yeah. Yeah, this is yeah, this is different. And I don't know where you would see that log otherwise. But I didn't I stopped my search right there. So yeah. But yeah, I know, PM set dash G log. It's great. But again, you're going to want to filter it down. And so I put the command in there to show you how to filter it. It's in the show notes at MacGicab.com. This is show nine to one, so you'll find them there.