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 door speaker removal/installation
1. Disconnect the negative battery cable.
2. Remove the rear door trim.
3. Remove in the order indicated in the table.
4. Install in the reverse order of removal.
Rear Door Speaker Installation Note
Attach the speaker with the wiring harness placed in the groove of the door
unit panel.
...
Mazda 6 Owners Manual: Distance Recognition Support System (DRSS) (Some models)
The Distance Recognition Support System (DRSS) measures the distance between
your vehicle and a vehicle ahead using a radar sensor (front) while the vehicle
speed is about 30 km/h (19 mph) or faster, and if your vehicle approaches a vehicle
ahead more closely than what is appropriate for maint ...