I would say first that its probably the alternator, and if not that, then an electrical connection coming connected/unconnected. Dim lights sometimes means youre running off the battery if the connection to the alternator is broken. Maybe the TOD thing was wildly fluctuating voltage, and the computer got confused?