Hammerspoon/hammerspoon

Document shortcomings of hs.brightness

开放

#1,641 创建于 2018年1月3日

 (13 条评论) (0 个反应) (0 位负责人)Objective-C (688 个派生)batch import
docshelp wanted

仓库指标

星标
 (15,415 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Not working as I expect, not sure if it's working as intended. But should have a note in API docs to clear up confusion if it's suppose to be this way.

I expected it to be exactly the same as if I was interacting with the brightness keys or manually adjusting the brightness slider in OS X.

What it actually does for me is just set the brightness correctly via hardware it looks like but ends up being 'temporarily'. But OS X isn't informed, and it's own brightness controls kick in and 'fixes' the value I set.

For example, I via OS X key or slider set the brightness very low. Run hs.brightness.set(70), I see it light up, then immediately the display dims back to very low on it's own. When set to 70 for that brief moment the OS X brightness slider never moves.

If that's not the intention for this, then maybe a note in the docs to explain what the purpose of it is? Because right now I can't think of a usefulness for it's current functionality as setting a new brightness value is only temporary.

MacBook Pro 13" retina 2015 OSX 10.13.2 (high sierra) With / without external monitor tested; same result.

贡献者指南