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: Generator inspection
Generator Warning Light
1. Verify that the battery is fully charged.
Charge if necessary.
2. Verify that the drive belt deflection/tension is correct. (See DRIVE BELT
INSPECTION.)
If not as specified, replace the drive belt.
3. Turn the ignition switch to ON and verify that the gene ...
Mazda 6 Owners Manual: No. 2 all on-board diagnostic functions inoperative
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 ...