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: No.6 windshield fogged
When performing an asterisked (*) troubleshooting inspection, shake the
wiring harness and connectors while doing the inspection to discover whether
poor contact points are the cause of any intermittent malfunctions. If there
is a problem, check to make sure connectors, terminals and wir ...
Mazda 6 Owners Manual: Front door removal/installation
1. Disconnect the negative battery cable.
2. To remove the front door hinge, remove the front fender panel.
3. To remove the checker, remove the door speaker.
4. Remove in the order indicated in the table.
5. Install in the reverse order of removal.
6. Adjust the front door. (See DOOR ADJUS ...