Did you find the fault?
If not, it could be a faulty headlamp bulb.
I had a similar problem on my Commando caused by a defective bulb socket.