1. Disconnect the negative battery cable.
2. Remove the headliner.
3. Disconnect the connector.
4. Remove the screws, and then remove the sunroof motor.

Sunroof unit disassembly/assembly
Sunroof motor installationMazda 6 Service Manual: Abs (abs/tcs) hu/cm system inspection
System Inspection
Preparation
1. Verify that the battery is fully charged. With the ignition switch on,
verify that the ABS and BRAKE system warning lights goes out after 2.4
seconds.
2. If the lights stays on after 2.4 seconds, the ABS (ABS/TCS) HU/CM
detects a failure. Follow the troubles ...
Mazda 6 Service Manual: Transmitter battery replacement
1. Insert a small screwdriver into the slot and gently pry open the
transmitter.
2. Press the portion of the battery indicated by A and remove the battery.
3. Install a new battery (CR2025) into the front portion of the holder with
the positive pole (+) facing up. Press on the B portion of ...