一键设置mac显示选项

by Primož Cigler

通过PrimožCigler

如何通过关闭浏览器中的一个选项卡将Mac上的电池寿命延长一倍 (How I doubled the battery life on my Mac by literally closing one tab in a browser)

Today I want to share a quick and easy hack that doubled the time-on-battery on my laptop.

今天,我想分享一个快速简便的技巧, 使笔记本电脑的电池使用时间延长一倍

It is so easy to do once you know where to look.

一旦知道要看哪里,就很容易做。

I spend most of the time on my laptop in the browser. This is mostly because I read stuff, stick on social media or develop websites. I use Chrome for this, I rarely open any other browser — most of the time for testing only.

我大部分时间都花在浏览器的笔记本电脑上。 这主要是因为我阅读东西,坚持使用社交媒体或开发网站。 我为此使用Chrome,很少打开任何其他浏览器-大部分时间仅用于测试。

Chrome is generally known not being energy efficient app, so it is a trade-off, but I find it much better (especially for dev) than anything else.

众所周知,Chrome并非节能应用,因此需要权衡取舍,但我发现它(特别是对于开发者)比其他任何东西都要好得多。

For quite some time now I started to notice that the battery is not lasting as long as it used to when I bought this laptop a year and a half ago. It is normal that it is losing its power over time. But then one day about 2 weeks ago, when I was lying ill in my bed, I decided to check what is draining my battery so fast and if I can fix it.

现在已经有一段时间了,我开始注意到电池的寿命不像一年半前购买笔记本电脑时的电池寿命那么长。 随着时间的流逝,它失去了动力是正常的。 但是大约2周前的一天,当我生病躺在床上时,我决定检查电池耗尽的速度是否如此之快以及是否可以修复。

Fortunately the OS X comes with the Activity Monitor, which also gives you the overview which apps put most impact on your battery life.

幸运的是,OS X随附有活动监视器,该监视器还概述了哪些应用程序对电池寿命的影响最大。

If you sort the list by column Avg Energy Impact, you will find the most troublesome apps. In my case Google Chrome. You can solve the problem easily by quitting the app, but as I mentioned, this was not viable in my case, as I want to use Chrome.

如果按“ 平均能源影响”列对列表进行排序,则会发现最麻烦的应用程序。 就我而言,谷歌浏览器。 您可以通过退出应用程序轻松解决问题,但是正如我提到的那样,对于我而言,这是不可行的,因为我想使用Chrome。

The screenshot above was taken at the time I am writing this and it showing the “fixed” Chrome. By the time I went to analyze it for the first time, the Avg Energy Impact value for Chrome was well over 100, around 140.

上面的屏幕截图是在我撰写本文时截取的,它显示了“固定的” Chrome。 在我第一次进行分析时,Chrome的平均能量影响值已超过100,约为140

因此,我如何设法将其减少到大约三分之一? (So, how did I manage to cut it down to about one third?)

It was quite simple. I literally had to close one single tab in Chrome, which was using lots of CPU.

这很简单。 我确实不得不关闭 Chrome中的一个选项卡 ,因为它使用了大量CPU。

My toolbar in Chrome looks like this:

我在Chrome浏览器中的工具栏如下所示:

I have couple of pinned tabs which I want always open and then come the tabs that “come and go”.

我有几个固定的选项卡,我想一直打开它们,然后使用“ 来去去去”的选项卡。

There is one not-so-well known tool in Chrome, that allows you to analyse how much resources the individual tabs consume. It is called Task Manager and you can find it in Menu > More Tools > Task Manager.

Chrome中有一个鲜为人知的工具,可让您分析各个标签所消耗的资源。 它称为任务管理器 ,您可以在菜单>更多工具>任务 管理器中找到它。

When opened, it will reveal more fine-grained details about CPU and RAM spent within Chrome.

打开后,它将显示有关Chrome中所用CPU和RAM的更多详细信息。

What you’re interested in is the CPU — this is what is draining your battery.

您感兴趣的是CPU —这就是消耗电池电量的原因。

Find the tabs that are constantly greedy for your CPU and kill them with fire!

找到对您的CPU一直贪婪的选项卡,并用火杀死它们!

To my case. I had the currency exchange rates (USD to EUR) opened all the time. It was this page. And look at this, when I have this page opened and pinned:

就我而言。 我一直都打开货币汇率(USD到EUR)。 就是这个页面 。 当我打开并固定此页面时,请看一下:

It was obvious choice. I can live without pinned tab about exchange rates, if that makes my laptop alive for twice the time.

这是显而易见的选择。 如果我的笔记本电脑可以存活两次,那么我可以不用固定汇率标签来生活。

If you feel that your laptop battery is struggling because of the Chrome, check out the Chrome Task Manager. Kill the most greedy websites with fire and notify their developers. They are probably doing some dirty stuff in JavaScript which is draining your battery like hell.

如果您觉得笔记本电脑的电池因Chrome而无法使用,请查看Chrome任务管理器。 用火杀死最贪婪的网站,并通知其开发者。 他们可能正在用JavaScript做一些肮脏的事情,这会像地狱一样耗尽您的电池。

You might follow me on Twitter, but we both know Twitter is very noisy. So you can leave me your email and I will occasionally send you stuff I find useful.

您可能会在Twitter上关注我,但我们都知道Twitter非常嘈杂。 因此,您可以给我留下您的电子邮件 ,我有时会向您发送我认为有用的内容。

翻译自: https://www.freecodecamp.org/news/how-i-doubled-the-battery-life-on-my-mac-by-literally-closing-one-tab-in-a-browser-d96f2c5374db/

一键设置mac显示选项

一键设置mac显示选项_如何通过关闭浏览器中的一个选项卡将Mac上的电池寿命延长一倍...相关推荐

  1. 软件测试面试题:关闭浏览器中quit和close的区别

    关闭浏览器中quit和close的区别 简单来说,两个都可以实现退出浏览器session功能,close是关闭你当前聚焦的tab页面,而quit是关闭全部浏览器tab页面,并退出浏览器session. ...

  2. iis服务器 访问html,设置好IIS服务器后怎样在浏览器中进行访问

    想让自己电脑上的网页在局域网中可以访问到,就需要我们使用IIS服务器,那么设置好IIS服务器之后怎样在浏览器中进行访问呢?下面学习啦小编告诉你! 设置好IIS服务器后在浏览器中进行访问的方法 首先我们 ...

  3. 4g网络设置dns地址_黑群晖nas中tr软件汉化、路由器设置端口转发教程(二)

    一.安装增强汉化web作者最近又更新了,推荐[通过群晖的"任务计划"自动安装及定期自动更新]这个方式安装,更方便,还能自动更新见作者:下载地址见留言,或私信 官方功能介绍:在线查看 ...

  4. angular select设置默认选中_改进 Angular + Jest 项目中组件测试的调试

    @angular-extensions/pretty-html-log 原文链接​medium.com原作者:Kevin Kreuzer​medium.com 译者: 知乎用户​www.zhihu.c ...

  5. ping mac地址_局域网ip地址如何显示?一个软件搞定

    上次弱电行业网提到关于局域网ip地址如何显示的问题,提供了两种方法,都是通过代码实现的,对于有一定网络基础的朋友来说,肯定是比较简单的,但也有朋友反映不怎么好操作,那有没有更简单的方法呢?答案是肯定有 ...

  6. ssms中怎么设置自增_如何在SSMS状态栏中设置自定义颜色

    ssms中怎么设置自增 This article explains the process of defining custom color codes for SQL Server connecti ...

  7. python界面如何设置成黑色_实战!在Python中制作精美的图形用户界面

    在默认情况下,我们使用PyQt5创建出来的窗口和部件都是自带的默认样式,虽然谈不上很丑,但是也毫无美感可言.其实,在PyQt5中,我们可以有较高的自由度来自定义窗口和各种小部件的样式,通过自定义这些样 ...

  8. 火狐浏览器设置url编码_浅谈不同浏览器地址栏中编码的差异

    今天是上交学院专业 ,权当是娱乐而已,拿不拿奖就是另外一回事了.貌似这篇论文跟我的专业没什么必然的联系,倒是他们网工专业的刚好适合,但不知为什么写这类型的我就特别顺手... 摘要: 本文介绍了中文版本 ...

  9. python如何通过以太网发送指令_用scapy在python中编写一个以太网桥

    我想做这样的事情: 10.1.1.0/24 10.1.2.0/24 ------------ ------------ ------------ | | | | | | | | | | | | | A ...

最新文章

  1. SQL Server通过web方式进行远程维护,管理
  2. Chapter11-RMAN Backups
  3. nginx源码初读(1)--让烦恼从数据结构开始(ngx_cdecl/ngx_int/ngx_log)
  4. javascript之预编译
  5. 3G或应尽早步入细分市场时代
  6. java 符_java运算符
  7. 【狂神说Redis】2Redis入门 2-3测试性能
  8. Ubuntu 设置 samba共享文件夹
  9. linux/unix系统编程手册下载,Linux/UNIX系统编程手册(pdf+epub+mobi+txt+azw3)
  10. 华为P9 回退android6.0,华为P9 Plus从EMUI5.0 版本回退EMUI 4.1官方稳定版本
  11. 固态硬盘打开计算机就死机,SSD死机卡顿怎么办 固态硬盘使用详解
  12. 优雅发送HTTP请求
  13. 图文并茂,动手操作一台宝马X7仪表里程校调,看看你买的二手 “新” 宝马是怎么调出来的!
  14. python开发要学哪些内容_Python开发工程师需要学习哪些内容?
  15. 我国计算机信息系统安全保护工作的重点是,网络信息安全知识:计算机信息系统的安全保护工作,重点维护国家事务、经济建设、国防建设、尖端科学技术等重要领域的()的安全。...
  16. WP-AutoPost自动采集插件 全自动更新你的WordPress站点
  17. Ubuntu 11.04安装pcsx2模拟器简明过程
  18. 系统思考:富者越富基模
  19. 新中大SE(ngpower)反月结、反记账
  20. 【TARS】TarsCpp-Http服务示例

热门文章

  1. css3 背景属性与边框属性的新增 200303
  2. django-csrftoken跨站请求伪造
  3. python-描述符基本
  4. python-json模块
  5. 开启 NFS 文件系统提升 Vagrant 共享目录的性能
  6. https://www.cnblogs.com/jingmoxukong/p/7755643.html
  7. Yii2 理解Validator
  8. 高效数据序列化的工具 FlatBuffers 的初体验
  9. Android SubsamplingScaleImageView(subsampling-scale-image-view)单双击长按事件【系列2】
  10. oninput,onpropertychange,onchange的使用方法和差别