osx-brightness
osx-brightness copied to clipboard
Error: This display is not supported
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.