Megabits Profile picture
Mar 29 5 tweets 2 min read
在 Intel 的 Mac 上,可以通过修改 BCLM 参数来限制电池充电到 80% 左右来延长电池寿命。但在 M1 上是做不到的。苹果虽然提供了一个“优化电池充电”的功能,但我并不是很相信它。

有一款 App 叫做 AlDente 的可以做到限制充电比例,但完整功能需要付费。于是我开始自己研究如何复刻他的功能(接下文) Image
首先我找到在 M1 Mac 上 CH0B 和 CH0C 两个 SMC 参数可以控制是否向电池充电,但已经无法直接限制百分比了。我还找到有人写了一个命令行工具来修改这两个数。github.com/actuallymentor… 但需要手动修改,不够自动化。由于我有安装 Keyboard Maestro,我配合这个工具做了一个自动化脚本来解决这一问题。 Image
首先你需要安装 battery,因为现在 Mac 默认用 zsh 了,他给的安装命令是用不了的,你得自己下载下来运行安装脚本。然后要用 battery visudo 来永久给他 root 权限。之后就可以来安装我的脚本使用了。drive.google.com/file/d/11j6dwa… Image
当然了,如果你有 SetApp,那你应该已经有 AlDente 了,可以忽略我这条推。我先出去吃个晚饭,晚上我再看看用 Shortcuts 能不能做。
Shortcuts 暂时还不能,因为 Mac 版本现在还不支持自动化。

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Megabits

Megabits Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Megabits_mzq

Aug 17, 2021
鉴于最近越来越多的东西开始 Electron 了,给各位推荐一些不错的原生 App。

首先我想推荐一个日本人开发的编辑器 CotEditer,超级无敌方便,我觉得在 Mac 上可以对标 Notepad++ 的免费又简洁的编辑器就是这个了。自从用了这个我什么文件都是秒开,再也不用等 VSCode 加载了。coteditor.com Image
下一个我想推荐的是 CloudMounter,最近 Google Drive 和 Dropbox 的客户端都 Electron 了,而且做得又特别烂,我把我所有的云盘都转移到用这个 App 来挂载了。cloudmounter.net Image
下一个我想推荐的是 ForkLift。这个没什么和 Electron 对标的,纯粹我就是我觉得他用着舒服。这是一款用于连接 FTP/SFTP 等文件服务器的 App。直接买可能有点贵,可以等 Bundle。 binarynights.com Image
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(