1. Disconnect the negative battery cable.
2. Remove the front door trim or rear door trim.
3. Remove the screws, then the power window switch.

4. Install in the reverse order of removal.
Door glass position change procedure
Power window main switch inspectionMazda 6 Service Manual: Rocking the Vehicle
WARNING
Do not spin the wheels at more than 56 km/h (35 mph), and do not allow
anyone to stand behind a wheel when pushing the vehicle: When the vehicle
is stuck, spinning the wheels at high speed is dangerous. The spinning tire could
overheat and explode. This could cause serious injuries.
...
Mazda 6 Service Manual: High Beam Control System (HBC) (Some models)
The High Beam Control System (HBC) determines the conditions in front of the
vehicle using the Forward Sensing Camera (FSC) while driving in darkness to automatically
switch the headlights between high and low beams.
Refer to Warning/Indicator Lights.
While driving the vehicle at a speed of ab ...