GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - RuochenLyu/iScreenBar-Control: Unofficial native macOS menu bar controller for the BenQ iScreenBar monitor light — built to behave well on Apple Studio Display.

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
Sources/iScreenBarControl
Sources/iScreenBarControl
 
 
Tests/iScreenBarControlTests
Tests/iScreenBarControlTests
 
 
assets
assets
 
 
iScreenBarControl.xcodeproj
iScreenBarControl.xcodeproj
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.en.md
README.en.md
 
 
README.md
README.md
 
 

Repository files navigation

非官方声明(Unofficial): iScreenBar Control 是非官方开源工具,与 BenQ(明基)及 Apple 无隶属、合作或背书关系。

iScreenBar Control

简体中文 · English

极简、纯原生的 macOS 菜单栏挂灯控制工具,用于通过 USB HID 控制 BenQ iScreenBar(04A5:2501),专为解决 Apple Studio Display 等显示器睡眠不断电导致的挂灯异常亮起问题而设计。

iScreenBar Control 菜单栏面板:电源、四个预设、亮度与色温滑杆、自动调光、人体感应、视频模式

解决的核心痛点

Apple Studio Display 等显示器的 USB-C 端口在熄屏睡眠期间仍会持续供电。如果开启了挂灯自带的 24 GHz 毫米波人体感应雷达,路过黑屏的显示器时挂灯会自己重新亮起。iScreenBar Control 会在显示器睡眠时自动关闭灯光并压制人体感应雷达,在屏幕唤醒时精确还原睡眠前的开关与感应状态(支持跨崩溃/重启状态恢复)。

功能特性

  • 纯菜单栏常驻(LSUIElement): 无程序坞(Dock)图标、无主窗口、无独立设置窗口;面板按需加载、收起即释放视图内存,熄屏零轮询。
  • 显示器睡眠联动: 仅响应显示器睡眠与唤醒(screensDidSleep / screensDidWake),锁屏不误关灯,后台静默唤醒(Power Nap)不误亮灯。
  • 摄像头自动切换视频模式: 基于 CoreMediaIO 监听物理摄像头运行状态(1.5s 开启防抖 / 4s 关闭防抖),视频会议自动切入视频模式——零摄像头权限弹窗,不占用画面流。
  • 四档精选预设: 专注(100% · 4000K)、日常(70% · 2700K)、阅读(85% · 3300K)、夜间(20% · 2700K)。
  • 原生控制中心风格滑杆: 支持点击跳转、拖拽、方向键微调及触控板双指滚动调节亮度(1–100%)与色温(2700–6500K)。
  • 零依赖、完全离线: Swift 6(AppKit + SwiftUI + IOKit.hid),支持 macOS 14.0+,中英双语自适应,无任何网络请求或统计埋点。

交互与快捷键

操作 行为
左键单击菜单栏图标 展开 / 收起控制面板
右键单击或 ⌃-单击菜单栏图标(或点击面板右上角 ⋯) 打开原生菜单(打开/关闭灯光、显示器睡眠时关灯、摄像头开启时切换到视频模式、登录时打开、关于、退出)
**⌥-单击(Option + 左键)**菜单栏图标 不展开面板,直接盲切挂灯电源开关
在滑杆上双指滚动或按方向键 精细调节亮度与色温

系统要求与安装

  • macOS 14.0 (Sonoma) 及以上版本(arm64 + x86_64 通用二进制)
  • 通过 USB-C 连接至 Mac 或显示器的 BenQ iScreenBar(无需授予“输入监控”或“摄像头”权限)
  1. 从 GitHub Releases 下载最新的 iScreenBar-Control-v*-macOS.zip。
  2. 解压后将 iScreenBar Control.app 拖入 /Applications(应用程序)目录。
  3. 打开应用,菜单栏出现挂灯图标即可使用。

发布包已使用 Developer ID 签名并经 Apple 公证,可直接打开,无需在“隐私与安全性”中手动放行。应用没有自动更新,新版本请回到 Releases 页面下载。登录时打开仅在应用位于 /Applications 时可用。

已知限制

  • 未睡眠直接拔除显示器连线: 若在显示器未进入睡眠前直接拔掉 Mac 与显示器之间的雷雳/USB-C 线缆,系统无法在断连前发出关灯与关雷达指令,挂灯将保持当前状态且雷达继续工作。
  • 与官方应用并存: 使用本工具时建议退出 BenQ 官方 iScreenBar App,避免两套自动化逻辑互相覆盖参数;同时运行时控制面板顶部会显示非阻塞提示横幅。
  • 本地构建与“登录时打开”: 本地开发构建使用临时签名(ad-hoc),每次重新编译都会改变签名标识;稳定的“登录时打开”体验需使用经 Developer ID 签名并公证(Notarized)的正式发布包且安装在 /Applications 下。

从源码构建

需要 macOS 与 Xcode 16+:

# 构建通用架构 Release 应用 -> build/iScreenBar Control.app
./scripts/build-app.sh

# 安装至“应用程序”目录(启用“登录时打开”所需)
cp -R "build/iScreenBar Control.app" /Applications/

# 运行单元测试
./scripts/build-app.sh --test

免责声明与开源协议

iScreenBar Control 是非官方开源工具,与 BenQ 及 Apple 无关联。BenQ 与 iScreenBar 是明基电通股份有限公司(BenQ Corporation)的商标;Apple 与 Studio Display 是 Apple Inc. 的商标。

本项目基于 MIT License 开源。

About

Unofficial native macOS menu bar controller for the BenQ iScreenBar monitor light — built to behave well on Apple Studio Display.

Topics

appkitbenqhidmacosmenu-barmonitor-lightscreenbarstudio-displayswiftswiftui

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.