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: Rear Cross Traffic Alert (RCTA) (Some models)
The Rear Cross Traffic Alert (RCTA) system is designed to assist the driver in
checking the area to the rear of the vehicle on both sides while the vehicle is
reversing by alerting the driver to the presence of vehicles approaching the rear
of the vehicle.
The Rear Cross Traffic Alert (RCTA) ...
Mazda 6 Owners Manual: Steering angle sensor inspection
With DSC
1. Remove the column cover. (See COLUMN COVER REMOVAL/INSTALLATION)
2. Disconnect the steering angle sensor connector.
3. Connect battery positive voltage to terminal A and ground to terminal F of
the steering angle sensor.
4. Turn the steering wheel to the right and left, and verify ...