These instructions apply to the Mercedes GLC Mk1 (X253) 2015-2022.
For other models, please choose your vehicle here.
If the panoramic sunroof on your Mercedes-Benz GLC (X253, 2015–2022) stops auto-closing, won’t tilt properly, or behaves oddly after the battery was disconnected or went flat, it needs re-initialising. This is a normal built-in relearn, not a fault and not a workshop job. The roof motor has lost its learned positions; re-teaching them takes under a minute with the roof switch. Anyone who has just had a new 12 V battery fitted, jump-started the car, or had electrical work done should try this first before assuming the sunroof mechanism itself has failed.

Why It Happens
The sunroof controller stores its tilt, open and closed limits so it can run on one touch and auto-reverse on an obstruction. A power cut clears that memory. Those reference points sit in volatile memory that depends on a constant 12 V supply, so the instant the module is cut off — by a flat battery, a disconnected terminal during servicing, or a fuse being pulled — they are lost. Without them the roof can’t judge where its travel ends, so it either refuses single-press operation, stops part-way, or drops the anti-trap behaviour. The relearn simply runs the panel through its full travel once so the controller can re-measure and store the limits again.
First, a Few Checks
- Park the car and stay stationary so you can focus on the roof rather than driving.
- Switch the ignition on so the sunroof motor has a steady voltage for the whole cycle.
- Check the battery is healthy — a weak battery can stall the relearn part-way and leave things worse.
- Clear the roof track of leaves, grit or anything that might catch the panel as it sweeps.
- Keep hands, hair and objects clear of the opening, as the auto-reverse protection may be inactive during the relearn.
How to Re-initialise the Sunroof
- Switch the ignition on.
- Make sure the sunroof and sunshade are closed.
- Press and hold the close switch (push it to the close position). The roof will move slightly — keep holding.
- The roof runs through its full close/tilt cycle automatically; keep the switch held until it finishes.
- Release — the system is reset and one-touch works again.
If It Doesn’t Complete
- Don’t release early — hold the switch through the entire cycle; letting go too soon is the usual reason it fails.
- Start again from fully closed if the first run stops short, and hold the switch without interruption for one clean sweep.
- Clear any obstruction in the roof track and check the drain channels aren’t blocked with debris.
- Confirm the battery is healthy and the terminals are tight, since a voltage dip will abort the relearn.
- Try with the engine running so the charging system holds the voltage steady through the cycle.
- If it still won’t learn after several clean attempts, have the sunroof motor and switch inspected for a mechanical or electrical fault.
Once It’s Done
Once the cycle finishes and you release the switch, the sunroof should respond to a single press again and the auto-reverse should nudge the panel back if it meets resistance. Run the roof open and closed once or twice to confirm it stops cleanly at both ends of its travel. If it glides to each limit and stops where it should, the relearn is complete and nothing more is needed.
Frequently Asked Questions
Why did my GLC sunroof stop auto-closing?
Because the sunroof control module lost power — typically a flat battery, a disconnect during servicing, or a pulled fuse. That erases the stored tilt, open and closed limits, so the one-touch and auto-reverse functions stop working until you re-initialise them with the roof switch.
How do I reset the Mercedes GLC sunroof?
With the roof and sunshade fully closed and the ignition on, press and hold the close switch. Let the panel run automatically through its full close and tilt cycle, keeping the switch held the entire time, and release only once the cycle has finished.
Is it safe to do myself?
Yes. It is a standard owner procedure using only the roof switch, with no tools and no under-bonnet work. The one precaution is to keep hands, hair and loose objects clear of the roof opening while it cycles, because the anti-trap protection may be suspended during the relearn.
Do I need a tool?
No. The whole procedure is done with the sunroof switch. There is no need for a scan tool, a screwdriver or a workshop visit — the controller re-teaches itself as the roof completes one full travel with the switch held.
Will I have to do this again?
Only if the sunroof loses power again. Once the limits are stored they stay stored through normal use, so you would repeat the relearn after another battery change, a jump start, or fuse work that interrupts the supply to the roof module.
The roof stopped mid-cycle during the relearn — what now?
Begin again from a fully closed start and hold the switch without releasing. A mid-cycle stall usually comes from letting go too soon or from a voltage dip on a tired battery, so run the engine while you retry and make sure nothing is fouling the track.
Re-initialised the sunroof after a battery change? Re-teach the windows too — see our GLC window guide. For warning lights, look up the code on autodtcs.com.
Independent guide — not affiliated with Mercedes. Always follow your official service manual and safety precautions. Read our full disclaimer.