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: Roof molding installation
1. Attach the roof molding to the T stud at the A section.
2. Press in the roof molding along the direction (1) shown in the figure and
attach it to the clip A at the B section.
3. Hook the roof molding to the clip B at the C section, press it in, and
attach the roof molding to the clip B.
...
Mazda 6 Owners Manual: Dehumidifying (With air conditioner)
Operate the air conditioner in cool or cold weather to help defog the windshield
and side windows.
1. Set the mode selector dial to the desired position.
2. Set the air intake selector to the outside air position (indicator light turns
off).
3. Set the temperature control dial to the desired ...