Dimming gesture test OK

Add shutdown funtion in dimming mode.