Safety Warning
DIY auto repair can cause serious injury, fire, or vehicle damage. These guides are for informational purposes only. Always follow OEM torque specs, wear PPE, and consult a certified mechanic if you are unsure. You are solely responsible for your safety.
2012 Mazda 3 L4-2.5LFACTORY OEM SERVICE PROCEDURE
Programming and Relearning
HEADLIGHT AUTO LEVELING SYSTEM INITIALIZATION
CAUTION:
- If the headlight auto leveling initial setting is not stored correctly, the headlight auto leveling system may not operate normally. To store the initial setting correctly, perform the initial setting with the vehicle under the following conditions:
- No occupants inside vehicle
- Cargo other than spare tire, jack, and tools not loaded
- Tire pressure is at specification [1][2]Specifications
NOTE:
- The headlight auto leveling system initial setting has a procedure which uses the M-MDS and one which does not. Because the procedure differs depending on the part which is replaced in the method not using the M-MDS, refer to the following and perform the initial setting.
- If the following servicing is to be done, perform the procedure for the case where system initialization has never been done. (See Initialization has never been performed.)
- AFS (adaptive front lighting system) control module is newly replaced.
- If the following servicing is done, perform the procedure for the case where the system is reset after initialization has already been completed. (See Initialization operation implemented and resetting to be performed.)
- Auto leveling sensor is removed/installed.
- Auto leveling sensor is replaced.
- Procedure for changing vehicle height is performed such as changing suspension.
Using M-MDS
1. Connect the M-MDS to the DLC-2.
2. After the vehicle is identified, select the following items from the initial screen of the M-MDS.
- When using the IDS (laptop PC)
1 Select "Electrical".
2 Select "Exterior Lighting".
3 Select "Headlamp".
4 Select "Auto Leveling Sensor Re-zero Procedure"
3. Adjust the headlight aiming. Adjustments
Without using M-MDS
Initialization has never been performed
1. Switch the ignition ON.
NOTE:
- If the headlight auto leveling system initial setting is not completed, the AFS OFF indicator light flashes at 0.5 s intervals when the ignition is switched ON. This does not indicate a system malfunction, therefore, perform the initial setting.
2. Ground the DLC-2 B terminal 3 times or more at 1 s intervals using the jumper wire.
3. If the headlight auto leveling system initial setting is completed normally, the AFS OFF indicator light flashes three times at 0.5 s intervals and it turns off.
NOTE:
- If the AFS OFF indicator light continues to flash at 0.5 s intervals, the following malfunction can be considered. Repair or replace the malfunctioning area, then repeat the procedure from Step 1. Troubleshooting Index
- With the normal completion of the headlight auto leveling system initial setting, the headlight leveling actuator operation can also be verified. If the headlight auto leveling system initial setting is completed normally, the headlight leveling actuator lowers from its current position for approx. 2 s and returns to its original position.
4. Disconnect the jumper wire from DLC-2.
5. Verify that the AFS OFF indicator light is not illuminated.
6. Adjust the headlight aiming. Adjustments
Initialization operation implemented and resetting to be performed
CAUTION:
- Perform the procedures in Steps 2 to 3 within 5 s.
With DRL (Discharge type) or without DRL
- Switch the ignition ON.
- Connect terminal B (INIT) of the DLC-2 to terminal J (GND) using a jumper wire.
CAUTION:
- If the terminals are mistakenly connected, vehicle damage or fire could occur. When connecting with the jumper wire, thoroughly verify what terminals are being connected to prevent a miss-connection.
- The light switch switches in the following order: OFF->HEAD->OFF->HEAD->OFF->HEAD->OFF
CAUTION:
- If Step 3 is not completed within 5 s after Step 2, the initial setting is not stored. If Step 3 cannot be completed within 5 s after Step 2, switch the ignition to LOCK and repeat the procedure from Step 1.
- If the headlight auto leveling system initial setting is completed normally, the AFS OFF indicator light flashes three times at 0.5 s intervals and it turns off.
NOTE:
- If the AFS OFF indicator light continues to flash at 0.5 s intervals, the following malfunction can be considered. Repair or replace the malfunctioning area, then repeat the procedure from Step 1. Troubleshooting Index
- With the normal completion of the headlight auto leveling system initial setting, the headlight leveling actuator operation can also be verified. If the headlight auto leveling system initial setting is completed normally, the headlight leveling actuator lowers from its current position for approx. 2 s and returns to its original position.
- Pull out the jumper wire from DLC-2.
- Verify that the AFS OFF indicator light is not illuminated.
- Adjust the headlight aiming. Adjustments
CAUTION:
- Perform the procedures in Steps 3 to 4 within 5 s.
With DRL (Halogen type)
- Turn on the headlights TNS position.
- Switch the ignition ON.
- Connect terminal B (INIT) of the DLC-2 to terminal J (GND) using a jumper wire.
CAUTION:
- If the terminals are mistakenly connected, vehicle damage or fire could occur. When connecting with the jumper wire, thoroughly verify what terminals are being connected to prevent a miss-connection.
- The light switch switches in the following order: TNS->HEAD->OFF->HEAD->OFF->HEAD->OFF
CAUTION:
- If Step 4 is not completed within 5 s after Step 3, the initial setting is not stored. If Step 4 cannot be completed within 5 s after Step 3, switch the ignition to LOCK and repeat the procedure from Step 1.
- If the headlight auto leveling system initial setting is completed normally, the AFS OFF indicator light flashes three times at 0.5 s intervals and it turns off.
NOTE:
- If the AFS OFF indicator light continues to flash at 0.5 s intervals, the following malfunction can be considered. Repair or replace the malfunctioning area, then repeat the procedure from Step 1. Troubleshooting Index
- With the normal completion of the headlight auto leveling system initial setting, the headlight leveling actuator operation can also be verified. If the headlight auto leveling system initial setting is completed normally, the headlight leveling actuator lowers from its current position for approx. 2 s and returns to its original position.
- Pull out the jumper wire from DLC-2.
- Verify that the AFS OFF indicator light is not illuminated.
- Adjust the headlight aiming. Adjustments
Factory Service Tools
Use the Manual With the Right Hardware
Pair factory procedures with proven DIY tools so the instructions are easier to execute.
Disclosure: Verified tool recommendations may earn an affiliate commission at no cost to you.
When to See a Mechanic
Stop DIY work and contact a certified mechanic immediately if any of the following apply:
- β’ You smell fuel, burning insulation, or see smoke.
- β’ Brakes feel soft, pull hard to one side, or make grinding noises.
- β’ The engine overheats, stalls repeatedly, or misfires under load.
- β’ You are missing required tools, torque specs, or safe lifting equipment.
- β’ You are not confident in the next step or safety outcome.
