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: 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 ...
Mazda 6 Service Manual: Shift-Lock System
The shift-lock system prevents shifting out of P unless the brake pedal is depressed.
To shift from P:
1. Depress and hold the brake pedal.
2. Start the engine.
3. Press and hold the lock-release button.
4. Move the selector lever.
NOTE
When the ignition is switched to ACC or the ignition ...