These instructions apply to the Mazda 6 Mk3 (GJ/GL) 2012-Present. For other models, please choose your vehicle here.
Last updated:
If your Mazda 6 Mk3 (GJ/GL, 2012–present) has the electric glass sunroof and its one-touch open/tilt has stopped working — typically after a battery disconnection, a flat battery or a fuse change — the roof needs re-initialising so it relearns its end positions. It is a quick no-tools job from the cabin. This guide shows how.
Why the Sunroof Needs Re-initialising
The sunroof motor stores its fully-closed, fully-tilted and fully-open positions so the one-touch and anti-trap (pinch protection) functions work. Losing power clears that memory — the roof will still move while you hold the switch, but the automatic operation stops until it is re-taught.
How to Re-initialise the Mazda 6 Sunroof
Do this with the ignition on (engine can be off):
- Turn the ignition on — do not start the engine.
- Operate the overhead sunroof switch to tilt the roof up to its maximum tilt position.
- Press and hold the switch in the tilt-up direction at that maximum position for a few seconds — you may hear or feel the roof confirm the relearn.
- Release the switch, then cycle the roof fully open and fully closed once using the switch to confirm normal operation.
- Test the one-touch function — a single press should now tilt/open the roof automatically.
If It Still Won’t Operate Automatically
- Repeat the procedure — the hold at the maximum tilt position must be long enough to register.
- Check the roof reaches its true end positions — debris in the channel can stop it short and block the relearn.
- This roof initialisation is exactly the step Mazda lists after reconnecting the battery, so if you have just done battery work, run it alongside the window initialise and TPMS reset.
Frequently Asked Questions
Why did my sunroof stop auto-opening after a battery change?
Disconnecting the battery wipes the roof’s stored end positions, so one-touch and anti-trap switch off until you re-teach it the routine above.
Do I need any tools?
No — just the overhead switch and the ignition on. No diagnostic equipment is required.
The roof reverses when closing — what’s wrong?
That is the anti-trap protection reacting because the limits aren’t learned. Re-run the initialisation and make sure nothing is obstructing the channel.
My Mazda 6 doesn’t have a sunroof — does this matter?
No — only cars optioned with the electric glass sunroof need this step. If yours has none, skip it.
To clear a service reminder after maintenance, see our Mazda 6 service indicator reset guide. For warning lights, look up the code on autodtcs.com.
Disclaimer: The information on this page is provided for general guidance only. Always follow your official service manual and safety precautions when working on your vehicle. We are not responsible for errors, omissions, or any damage resulting from the use of this information.
This website is an independent resource and is not affiliated with, endorsed by, or sponsored by Mazda. All trademarks and brand names belong to their respective owners.