Make dimmer non blocking

code is untested on device.