跳到正文

WhatCable

Darryl Morley · 在 Apple Silicon Mac 上检查 USB-C 线缆能力、扩展坞拓扑及充电和链路瓶颈。

Cask驱动与硬件自带更新 9,423
主页
安装命令
brew install --cask whatcable
近 30 天安装
1,185
App榜第 275
近一年安装
6,761
365 天累计
最新版本
1.5.1
下载大小
24MB
zip
更新节奏
每天
近 30 天 1 个版本

介绍

WhatCable 是一款 macOS 菜单栏工具,并附带用于检查 USB-C 线缆、已连接设备拓扑和充电行为的命令行工具。它可帮助排查扩展坞、存储速度慢、显示器或充电问题,区分 Mac 端口、线缆和设备各自的能力。它读取 IOKit 提供的端口和电源信息,包括可用时的线缆电子标记数据,但不会对线缆进行电气认证。

安装与支持的硬件

解压官方 ZIP 文件,并将 WhatCable.app 移至“应用程序”,或使用 brew install --cask whatcable。确切的 1.4.0 ZIP 文件大小为 17,166,182 字节。发布方要求使用 macOS 14 或更高版本及 Apple Silicon;Intel Mac 无法提供线缆报告所需的 USB-C 端口控制器数据。需要可用的 USB-C 连接和受支持的硬件数据。未说明固定的最低内存要求。并非所有无源线缆都带有电子标记,扩展坞、适配器和固件也可能限制 macOS 能报告的信息。

功能与付费诊断

基础应用会报告线缆速度和供电能力、已连接设备,以及通俗易懂的链路或充电瓶颈信息。可选的 Pro 功能包括实时功率测量、协商与显示诊断,以及已保存的线缆历史记录。代码仓库中的代码默认采用 MIT 许可,而专有的 WhatCablePlugins 子树另有权利保留条款。Pro 需要单独购买许可;核心免费且开源,并不意味着所有捆绑功能都不受限制或免费。价格和条款请参阅当前 Pro 页面。

权限、账户与网络

发布方称,应用通过 IOKit 在本地读取信息,无需辅助守护进程或特殊权限。常规线缆检查在本地完成,无需云账户。应用会定期联系 GitHub 检查更新。报告线缆问题时,应用会打开一则预填了硬件能力数据的 GitHub 议题;只有在你提交后,这些数据才会发送,并且提交后将公开。“贡献诊断数据”是另一项单独的选择加入操作,会发送匿名化的端口和电源详情。分享前请检查这些数据;使用 GitHub 或激活 Pro 还需要满足各自的账户和网络要求。

安全解读结果

协商得到的充电功率并不总是当前功耗:电池已充满、设置了充电上限或充电器未启用,都可能导致充电功率较低或为零。线缆标称能力、实际实时链路和设备最大能力是不同的指标。认证是自愿的,未列出的 USB-IF 标识并不自动意味着线缆有问题。应将判定结果视为诊断依据,而非避免电气损坏的保证,也不能替代实物检查。官方截图显示的是 1.3.0,因此其布局仅供参考,并非精确的 1.4.0 截图。

来源:官方项目与隐私、Pro、许可、确切版本。

基本信息

系统要求
macOS 14 起
芯片
Apple 芯片
自动更新
是
仓库
开源 · MIT · 4 天前更新★9,423
开发者
Darryl Morley
Homebrew
可以安装,应用会自行更新
其他名称
whatcable
主页
github.com/darrylmorley/whatcable
软件包标识符
whatcable

核查日期

1.5.1 更新内容

新版本 · 来自 GitHub Release

v1.5.1: Cable limits on Apple chargers, a solid window, and fixes from your reports

Cable limits on Apple chargers, a solid window, and fixes from your reports

Charging

  • WhatCable now spots when the cable may be what's limiting an Apple charger (#672, thanks @rcross). If a charger rated well above 60 W only offers 3 A and the cable's details couldn't be read, the card says "Cable may be limiting charging speed" and suggests a cable rated for 5 A, 100 W or more.
  • A charger that's plugged in but not being used now reads "Charger connected", not "Connect a charger". This happens when a charge-limit app holds your Mac on battery. It waits a few seconds before showing, so it doesn't flash as you plug in or unplug.

Displays

  • No more false "Monitor can do more than it is set to" warning when a monitor offers both 4K at 50 Hz and 4K at 60 Hz (#677, thanks @haxsmert). The best mode is now the one that draws the most pixels per second.

App

  • New setting: a solid background for the menu bar window (#562, suggested by @jimmyorz). The see-through background could get uncomfortably bright over light windows.
  • The window remembers its position and size across launches (#522, thanks @PeterGi9313thub).
  • Accessibility tools that press the menu bar icon now open it (#632, thanks @charlessnow).

Pro terminal dashboard

  • Correct colours and no flicker in Terminal.app (#579, thanks @official-Cromatin). The dashboard uses 256 colours unless your terminal says it supports full colour. To force full colour, run it with COLORTERM=truecolor.
  • The dashboard is now translated.

Translations

  • Persian added, contributed by @aliafshany. Italian updates from @bovirus and Traditional Chinese updates from @jimmyorz.
  • Five strings that always showed in English are now translated.

Cables

  • The cable database now holds 157 entries, up from 145.
  • The cable report form shows the fingerprint as a proper table, contributed by @salt-lick.
  • The README now explains how to put the bundled whatcable command on your PATH with /etc/paths.d (#439, thanks @MSSEsq).

For scripts that read WhatCable's output

  • whatcable --json and --bench-report pick the display's top mode the new way: the declared mode with the most picture pixels per second (width x height x refresh), not the highest pixel clock. So a CTA 4K at 50 Hz no longer outranks a reduced-blanking 4K at 60 Hz. --bench-report captures are now schemaVersion 4. topDetailedTimingPixelClockHz, topDetailedTimingRefreshHz and topModeSource keep their names and types.
  • whatcable --json charging.bottleneck and --bench-report diagnostics.charging.kind have a new value, possibleCableLimit. It comes with two new integer fields: chargerRatedW (the rating in the charger's Apple name) and offeredW (its top offer now). Both are left out for every other value. With this value, --bench-report's negotiatedW is the live contract and chargerW is the rating. The change only adds things, so schemaVersion stays 4, but code that switches on the value should handle it.

如何在 Mac 上安装 WhatCable

Homebrew 会把应用安装到“应用程序”文件夹。

不用 Homebrew 安装

直接下载 Homebrew 使用的同一个文件: 安装细节

卸载 WhatCable 与可选的数据清理

卸载命令
brew uninstall --cask whatcable

普通卸载会删除应用本身,设置和缓存会保留。

深度清理(可选)
卸载命令
brew uninstall --zap --cask whatcable

--zap 还会删除 Homebrew 定义里列出的设置、缓存等文件,其中可能有其他应用共用的数据,删除后无法恢复;它也不保证没有任何残留。请先备份需要保留的数据;如要保留设置和缓存,请不要加 --zap。

关于 WhatCable 的常见问题

WhatCable 安全吗?

WhatCable 收录在 Homebrew 官方软件库中,没有被停用。自 2026 年 9 月起,Homebrew 会停用没有通过 macOS Gatekeeper 检查的应用。安装时,Homebrew 会用 SHA-256 校验值核对来自 github.com 的安装包。过去 30 天,它通过 Homebrew 安装了 1,185 次。

WhatCable 是开源软件吗?

WhatCable 的源代码公开在 GitHub 上(darrylmorley/whatcable),使用 MIT 许可证。

怎样在 Mac 上彻底卸载 WhatCable?

运行 brew uninstall --cask whatcable。它会退出应用。要连设置和缓存一起删除,运行 brew uninstall --zap --cask whatcable。--zap 还会删除 Homebrew 定义里列出的设置、缓存等文件,其中可能有其他应用共用的数据,删除后无法恢复;它也不保证没有任何残留。请先备份需要保留的数据;如要保留设置和缓存,请不要加 --zap。这会再删除 11 处文件和文件夹,包括 ~/Library/Application Support/WhatCable。

WhatCable 支持 Apple 芯片(M1 及更新)的 Mac 吗?

支持,而且只能安装在 Apple 芯片的 Mac 上,不支持 Intel 芯片的 Mac。需要 macOS 14 或更高版本。

WhatCable 的设置和数据保存在哪里?

设置保存在 ~/Library/Preferences/uk.whatcable.whatcable.plist。数据保存在 ~/Library/Application Support/WhatCable、~/Library/Containers/uk.whatcable.whatcable.widget和~/Library/Group Containers/M4RUJ7W6MP.uk.whatcable.whatcable。这些位置来自 Homebrew 的清理清单。

WhatCable 的最新版本是多少?

最新版本是 1.5.1,Homebrew 收录于 2026年11月24日。WhatCable 会自动更新;想用 Homebrew 更新时,运行 brew upgrade --cask --greedy whatcable。

安装 WhatCable 还会装上什么?

还会装上 1 个命令行工具:whatcable。

相似应用

  • DisplayLink Manager将兼容的DisplayLink USB扩展坞、适配器和显示器连接到Mac,支持菜单栏状态显示、显示器设置和驱动程序更新通知。
  • FUSE-T无需内核扩展的 FUSE 库和运行时,用于 macOS 用户空间文件系统,使用本地 NFS、SMB 或 FSKit 后端。
  • Logitech G HUB配置受支持的 Logitech G 游戏设备、输入分配、DPI、配置文件和 LIGHTSYNC 灯效。
  • Elgato Stream Deck配置 Stream Deck 的按键、旋钮、配置文件和插件,以控制创意应用、直播工具和日常桌面工作流程。
查看更多