I have a script which corrects my screen brightness based on an ambient light sensor. I want it to stop changing my screen brightness when my screen dims as a result of user inactivity.

How can I subscribe to a screen dim event?

2 Answers 2


I'm not sure, but xautolock looks promising for your case, if you're using X.


Try this:

dbus-monitor interface='org.freedesktop.DBus.Properties',member='PropertiesChanged' --profile | grep backlight

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .