Change the brightness of the backlight of your Macbook (Pro)

Programmatically, how can I change the brightness of a backlit keyboard on a Macbook or Macbook Pro using Python?

+3
source share
1 answer

Amit Singh discusses these undocumented APIs in this online bonus section , but does it with C - I'm not sure if the Python extension exists to do the same work with Python, possibly as part of PyObjC (otherwise this extension should be written - or ctypesused to access C shared libraries directly from Python [shudder ;-)]).

+9
source

Source: https://habr.com/ru/post/1710422/


All Articles