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: STEP 2: Contact Mazda North American Operations
If for any reason you feel the need for further assistance after contacting your
dealership management or it becomes necessary to have the components or wiring system
for the supplementary restraint system modified to accommodate a person with certain
medical conditions in accordance with a ce ...
Mazda 6 Owners Manual: Door lock timer unit inspection
1. Measure the voltage at the door lock timer unit terminals (other than
terminal 1E and 2W) as indicated below.
If not as specified, inspect the parts listed under Action.
2. Disconnect the negative battery cable.
3. Disconnect the door lock timer unit connector and inspect for continuity ...