robert arles robert.arles.us

robert.arles.us

Github Twitter?
about1 android1 backlight1 bash1 bayesian probability1 bayesian probablilty1 browsermob2 django5 docker1 firstpost1 flask1 go2 golang2 hugo1 init1 java1 jenkins2 jinja1 keyboard1 linux1 lubuntu1 mitmproxy1 nerdlynews1 nginx1 nltk1 pageloadstats2 pelican1 python11 qa automation1 rabot2 saucelabs1 selenium4 threading1 ubuntu2 webdriver4

Lubuntu

Keyboard-backlight, A utility to control my Macbook's backlight

keyboard-backlight on GitHub I’ve been running the Beta MacOS (Catalina 10.5) and having unusually bad luck with it. I’ve been experiencing system hangs that leave the keyboard and mouse unresponsive. In response I’ve been booting from my Lubuntu partition most of the time, which is almost always fine with me (It’s what I’m using to type this post) One thing I’ve been frustrated by is that my keyboard backlight was not working in Lubuntu. I spent a few hours this weekend searching for a solution, but gave up on that. I then searched for the device file that controls my backlight, and wrote a quick little utility in Go that I could simply assign to the keyboard shortcuts XF86KbdBrightnessUp and XF86KbdBrightnessDown. I chose Go because it’s fast and compiles to an executable binary, so there is very little startup+execution lag. The resulting keyboard-backlight utility literally feels instantanous. If you decide to give it a try, keep in mind that it works on my Early 2015 Macbook Pro 13" Retina. The device file that keyboard-backlight is working with may be different than on your Macbook model, but it’s easy to change if yours is different, and you know what file it is.

-