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: Child-Restraint Precautions
Mazda strongly urges the use of child-restraint systems for children small enough
to use them.
You are required by law to use a child-restraint system for children in the U.S.
and Canada. Check your local and state or provincial laws for specific requirements
regarding the safety of children ...
Mazda 6 Owners Manual: Combine sensor removal/installation
Caution
Be careful and do not allow the combine sensor to fall. If by
chance it is subjected to strong impact, replace it.
1. Remove the center console.
2. Remove in the order indicated in the table.
3. Install in the reverse order of removal.
4. After installation, perform the comb ...