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: Selector lever removal/installation
1. Disconnect the negative battery cable.
2. Remove battery and battery tray.
3. Remove the air cleaner compornent. (See INTAKE-AIR SYSTEM
REMOVAL/INSTALLATION.)
4. Remove the console.
5. Remove the dashboard compleat. (See DASHBOARD REMOVAL/INSTALLATION.)
6. Remove the SAS control module. (S ...
Mazda 6 Owners Manual: Control valve body removal
On-Vehicle Removal
Warning
Using compressed air can cause dirt and other particles to fly
out, causing injury to the eyes. Wear protective eyes whenever using
compressed air.
Caution
Clean the transaxle exterior throughout with a steam cleaner or
cleaning solvents before removal ...