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.7 abs warning light stays on more than 4 seconds with ignition switch on
Diagnostic procedure
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 malfunction. If there is a
problem, check to make sure conne ...
Mazda 6 Owners Manual: Rear wiper motor removal/installation
1. Disconnect the negative battery cable.
2. Remove the rear wiper arm and blade. (See REAR WIPER ARM AND BLADE
REMOVAL/INSTALLATION.)
3. Remove the liftgate lower trim. (See LIFTGATE LOWER TRIM
REMOVAL/INSTALLATION)
4. Remove in the order indicated in the table.
5. Install in the revers ...