One problem related to headlights turn off while driving has been reported for the 2012 Hyundai Sonata. The most recently reported issues are listed below. Please also check out the statistics and reliability analysis of the 2012 Hyundai Sonata based on all problems reported for the 2012 Sonata.
In the last few weeks my vehicle has started to have electrical issues related to the steering column. If I turn on my right turn signal, the headlights blink or just turn off. The radio will sometimes turn off as well. If I press any of the volume buttons on the steering wheel for the radio, the car thinks I'm trying to initiate voice commands to call someone. If I try to turn on my high beams, sometimes it works, other times the headlights turn off. All of these things happen whether the vehicle is stationary or moving on any type of road. The vehicle is designed so that if you leave the headlights on, remove the keys, and lock the vehicle, the headlights turn off. It still does this, but the lights will turn on again later and try to kill the battery.