Headlight switch , is it the cause? or the curse?

Frankly I think the dimmer switch is the result and not the cause.