nriley / brightness

Command-line display brightness control for macOS.
BSD 2-Clause "Simplified" License
605 stars 55 forks source link

Depending on your brightness #18

Closed kootenpv closed 7 years ago

kootenpv commented 7 years ago

I'm creating a lib and I want to base it on this one.

I'm curious if you know how the internals work.... do you know if a file is being written to? Like on linux it is writing to /sys/class/backlight/vendor/brightness. Is this also the case on OSX?

nriley commented 7 years ago

Nope - it's all IOKit futzing. macOS doesn't have anything like sysfs - the IOKit registry is a bit like it, I guess.