您如何控制Apple MacBook的“睡眠"功能?光? [英] How do you control the Apple MacBook "Sleep" light?

查看:122
本文介绍了您如何控制Apple MacBook的“睡眠"功能?光?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想控制MacBook或iMac上的睡眠"灯.

I would like to control the "sleep" light on a MacBook or iMac.

也就是说,我希望能够使其打开,关闭和脉动.

That is, I want to be able to make it turn on, turn off, and pulsate.

我很高兴在用户模式或内核模式下执行此操作.我认为我需要root.

I am happy to do this in usermode or in kernel mode. I assume I'll need root.

有什么想法吗?

推荐答案

您不这样做,至少不会以任何方式使您的计算机无法运行.睡眠灯由SMC控制(在Intel Mac上),您甚至无法通过Open Firmware进入.

You don't, at least not in any way that will not involve possibly bricking your machine. The sleep light is controlled (on intel macs) by the SMC, and you can't even get to it through Open Firmware.

有希望,因为苹果公司实际上已经发布了固件更新来制造LED调光器(在某些机器上它是疯狂地亮着).您可以查看已交付的SMC的EFI固件更新,并查看是否可以了解它们如何控制灯.但是,即使在那种情况下,您所做的任何事情都必须完全在固件中完成,因为不太可能使SMC将该变量公开给软件.如果您打开MacBook Pro的外壳,其中可能有一个赛普拉斯MSA,它可能是SMC的功能,因为它已挂接到键盘USB上,因此可以在不运行主CPU的情况下从睡眠中唤醒. (您也可以跟踪睡眠灯上的痕迹-如果要完全将其拆下,那里连接了一根小电缆-而且我怀疑如果将整个逻辑板拉出,也会发现它也可以运行到该芯片上).

There is hope, after a fashion, as Apple has actually released firmware updates to make the LED dimmer (on some machines it was insanely bright). You could poke around in the EFI firmware updates for the SMC that have been delivered and see if you can figure out how they control the light. However, even in that case, whatever you did would have to be done completely in firmware, as it's unlikely you can make the SMC expose that variable to software. If you pop open the case of a MacBook Pro, there's a Cypress MSA in there that is probably what is functioning as the SMC, since it's hooked into the keyboard USB and can thus wake from sleep, etc. without running the main CPU. (You can also follow the traces from the sleep light - there's a little cable attached in there if you want to remove it completely - and I suspect if you pulled the whole logic board out that you would find that it runs to that chip as well).

当然,正如我前面提到的,一旦开始刷新SMC,只要拧紧它,就可以轻松地将其砌成砖.

Of course, as I mentioned before, as soon as you start flashing your SMC, you can easily brick the machine if you screw it up.

这篇关于您如何控制Apple MacBook的“睡眠"功能?光?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆