Yeah, could be anything: switch, emitter, driver, battery, etc.
Just gotta play Columbo and vary one thing at a time 'til the problem goes away. Then concentrate on the Bad Thing.
Also, if you use a remote switch, those damned things use microthin telephone cable half the time.