The rear of the moonroof can be tilted open to provide more ventilation.
To fully tilt automatically, momentarily press the tilt/slide switch.
To fully close automatically, momentarily press the tilt/slide switch in the forward direction.
To stop tilting partway, press the tilt/slide switch.

Moonroof (Some models)
Slide OperationMazda 6 Owners Manual: Intermittent concern troubleshooting
Vibration Method
1. If malfunction occurs or becomes worse while driving on a rough road or
when engine is vibrating, perform the steps below.
Note
There are several reasons vehicle or engine vibration could cause
an electrical malfunction. Some of the things to check for are:
...
Mazda 6 Owners Manual: Master cylinder disassembly/assembly
Caution
If the master cylinder body is damaged, replace the unit as a
component. When securing the master cylinder in a vise, tighten only the
flange of the master cylinder.
1. Disassemble in the order indicated in the table.
2. Assemble in the reverse order of disassembly.
Stop ...