The sunshade can be opened and closed by hand.
The sunshade opens automatically when the moonroof is opened, but must be closed by hand.

CAUTION
Jam-safe Moonroof
Security SystemMazda 6 Owners Manual: Air bag module and pre-tensioner seat belt disposal procedures
Warning
Before scrapping a vehicle with a live (undeployed) air bag module
and pre-tensioner seat belt, deploy the air bag module and pre-tensioner
seat belt. Never dispose of a live (undeployed) air bag module and pre-tensioner
seat belt.
The air bag module and the pre-tensioner seat ...
Mazda 6 Owners Manual: Clock spring inspection
1. Remove the clock spring.
2. Inspect for continuity between the clock spring terminals using an
ohmmeter.
If not as specified, replace the clock spring.
Note
When the vehicle-side connector of clock spring is disconnected,
the terminals 1A,1B, 1C and 1D are shorted to prevent ...