This design contains a linear electrical generator which charges a supercapacitor which functions similarly to a rechargeable battery when the flashlight is shaken lengthwise. The battery or capacitor powers a white LED lamp. The linear generator consists of a sliding rare earth magnet which moves back and forth through the center of a solenoid (a coil of copper wire) when it is shaken. A current is induced in the loops of wire by Faraday's law of induction each time the magnet slides through, which charges the capacitor through a rectifier and other circuitry.