Could be a linkage problem..
I would suspect the dimmer switch or "combination switch".
TRY CHECKING TO SEE IF YOU HAVE A HIGH BEAM HEADLIGHT OUT. tHIS WILL CAUSE THE PROBLEM YOU HAVE.
i was wondering whether the switch at the parking brake could affect this problem.
Most headlight circuit breakers are located in the headlight switches. Headlights are on a circuit breaker automatic reset so headlights don't go out if there is a problem and will blink on and off to get you off the road safely until you can fix the problem. Look for a short in the wiring between the headlight switch and the headlights themselves.
I had that issue with my Cavalier and it turned out to be a fuel pump problem. I would check with your local mechanic.
What problem, what year, and what do you need to know?
If the headlights flash on and off, there may be a problem with the bulbs or fuses. There may also be a problem with the battery connections or wiring.
I had a problem with my headlights going off, not the high beams. Replaced the rectangular silver can thingy at the fuse panel under the dash on the drivers side. I put a higher rated one in, which is a no no, but it solved the problem of the headlights going out.
There could be a problem with the power of common ground to the Cavalier light and sun roof. Check the fuses and wiring for the problem.
check the fuse
There's a TSB on this problem.