Fixed the issue that no effect for setting the option 'Keep lights on after lock computer' and corrected the logic to turn off the lights.