1. Remove the sunroof switch.
2. Inspect for continuity between the sunroof switch terminals using an ohmmeter.


Sunroof switch removal/installationMazda 6 Service Manual: A-pillar trim removal
1. Turn the seaming welt over.
2. Disengage clips A using a fastener remover.
3. Pull the A-pillar trim, then disengage clip B (1).
4. Pull the A-pillar trim upward, then disengage clip B from the A-pillar
trim (2).
5. Pull clip B out, then rotate 45°.
6. Remove clip B from the grommet b ...
Mazda 6 Service Manual: Disconnection of the negative battery cable
Before beginning any work, turn the ignition switch to LOCK position,
then disconnect the negative battery cable and wait for more than 1 minute
to allow the backup power supply of the SAS unit to deplete its stored
power. Disconnecting the battery cable will delete the memories of the
...