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


Sunroof switch removal/installationMazda 6 Service Manual: Operational Range
The system operates only when the driver is in the vehicle or within operational
range while the key is being carried.
Starting the Engine
NOTE
Starting the engine may be possible even if the key is outside of the
vehicle and extremely close to a door and window, however, always start the ...
Mazda 6 Service Manual: Replacing a Tire
WARNING
Always use tires that are in good condition: Driving with worn tires
is dangerous. Reduced braking, steering, and traction could result in an accident.
Replace all four tires at the same time: Replacing just one tire
is dangerous. It could cause poor handling and poor braking resulting ...