Hi, Alexander James
This looks like a hardware power or POST failure rather than a Windows 7 problem. The laptop turns off before reaching the Dell logo, so Windows has not started loading.
Here are some suggestions you can try:
Disconnect the charger and all USB devices. Hold the power button for 30 seconds, then connect only the charger and try starting it again.
Check whether the light on the charger stays on when connected to the laptop. If it goes out, the charging port or motherboard may have an electrical fault.
If you are comfortable opening the laptop, disconnect the internal battery, reseat the memory modules, and test it using only the charger. The Dell XPS 15 L521X Owner’s Manual provides the correct removal steps.
If it starts without the battery, the battery likely needs replacement. If it still briefly lights the keyboard and shuts down, it is recommended that a repair shop test the charger, DC-in port, memory, and motherboard. This same L521X behavior has been associated with battery or motherboard failure.
Given the laptop’s age, compare the repair estimate with the cost of replacing it.
Thank you for your patience in reading, I hope this information has been helpful to you.
If the answer is helpful, please click "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment."
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.