If it still works OK on household current, it must be voltage fluctuations from the generator. You can check the generator voltage with a meter to see if there are fluctuations, but there is not much you can do about it. If your generator has DC output, you could use that instead of the power supply.