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: General procedures
PRECAUTION (SUSPENSION)
Wheels and Tires Removal/Installation
When a wheel is installed, tighten it to 88-118 N·m {9.0-12.0 kgf·m,
65.0-87.0 ft·lbf}.
Suspension Links Removal/Installation
Tighten any part of the suspension that uses rubber bushings only after the
vehicle has been lowered ...
Mazda 6 Owners Manual: Vehicle speedometer sensor (vss) removal/installation
Caution
Water or foreign objects entering the connector can cause a poor
connection or corrosion. Be sure not to drop water or foreign objects on the
connector when disconnecting it.
If foreign materials are stuck to the VSS, disturbance by magnetic
flux can cause sensor output to be ...