3

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

Josh Hunt
  • 14,225
  • 26
  • 79
  • 98

1 Answers1

9

Amit Singh discusses these undocumented APIs in this online bonus chapter, but does so using C -- I'm not sure if a Python extension exists to do the same work from Python, perhaps as part of PyObjC (otherwise, such an extension would have to be written -- or ctypes used to access the shared C libraries directly from Python [shudder;-)]).

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Alex Martelli
  • 854,459
  • 170
  • 1,222
  • 1,395