osx-brightness icon indicating copy to clipboard operation
osx-brightness copied to clipboard

Error: This display is not supported

Open promotion-xu opened this issue 3 years ago • 0 comments

cpu: Apple M1 Max "osx-brightness": "^4.0.0"

my code:

async function main() {
  const brightness = require("brightness");
  console.log("----brightness", brightness);
  const result = await brightness.get();
  console.log("----brightness.get", result);
  return parseFloat(result.toFixed(2));
}
main()

when I run this code, It occurs error, "This display is not supported"

but in inter cpu, it doesn't matter.

promotion-xu avatar Jul 12 '22 06:07 promotion-xu