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: Height Adjustment
Adjust the head restraint so that the center is even with the top of the passenger's
ears.
To raise a head restraint, pull it up to the desired position.
To lower the head restraint, press the stopcatch release, then push the head
restraint down.
Front outboard seat
Rear outboard seat
...
Mazda 6 Owners Manual: Selector cable adjustment
1. Remove the center console.
2. Shift the selector lever to P position.
3. Unlock the lock piece of the selector cable (selector lever side) in the
order shown in the figure.
4. Verify that the manual shaft is in P position.
5. Lock the lock piece of the selector cable (selector lever side) ...