To add to what others have suggested it sounds like the sidestand switch may be a possible culprit. A test is to bypass it.
To do this locate the G/W & BK/Y wires near the left side of the radiator. Disconnect them then connect the ones coming from the top together. (Yes, the G/W & the BK/Y wires will connect into each other.) If this solves the problem then the sidestand switch is definitively the culprit.
And the battery could still be part of the problem. At idle speed the alternator can't keep up with the electrical demands of the bike. (headlight, ignition, etc.) Revving the engine will get the alternator past the 'break even' point. Since the battery was dead for an undetermined amount of time I'd also spring for a new battery.
'97 EN500LTD 'Hidalgo'
178,000+ miles so far
SlipStreamer Enterprise II, Vista Cruise,
Fiamm air horns, Cobra Spots, LED Rider ProMod Spots, Drifter solo seat, Pro-Tac backrest, 17/42 sprockets, Darkside rear on 500A rim, ScottOiler, F&S luggage rack ,Throttle Rocker, Viking bags, Victory Vegas handlebars, Kuryakyn grips, LED & HID lighting, 4-gal AUX fuel tank, etc...
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.