I am not a bike mechanic, but I've got a background in electronics, so I will make an educated guess.
It's definitely not the battery. It's more than likely the alternator or the stator or what ever it is on a bike that creates the juice. It might also be something in the charge circuit, but I'll have to look at my service manual schematic to see what is in there.
Little help, I know. But, the fact that the lights are dim UNTIL the engine almost dies, tells me when the engine is off or about to die the lights are getting the juice from the battery, so it aint the battery. When the engine is running, the voltage on the battery doesn't change, so it's not being charged. And, when the engine is running the lights dim, so something in the circuitry is not allowing power from the battery to the lights...and that might be by design because the battery shouldn't be in use when the bike is running, so that makes sense.
It's definitely not the battery. It's more than likely the alternator or the stator or what ever it is on a bike that creates the juice. It might also be something in the charge circuit, but I'll have to look at my service manual schematic to see what is in there.
Little help, I know. But, the fact that the lights are dim UNTIL the engine almost dies, tells me when the engine is off or about to die the lights are getting the juice from the battery, so it aint the battery. When the engine is running, the voltage on the battery doesn't change, so it's not being charged. And, when the engine is running the lights dim, so something in the circuitry is not allowing power from the battery to the lights...and that might be by design because the battery shouldn't be in use when the bike is running, so that makes sense.