Volvo Headlight System Malfunction: 2017-2022 S60, V60, S90, V90, XC40, XC60 & XC90
Diagnosing and replacing the LED Headlight Control Module (HCM) on Volvo's SPA platform vehicles and why programming is not optional.
- This part is a Headlight Control Module (HCM), not the main Body Control Module (CEM).
- A replacement HCM (new or used) absolutely requires software programming with Volvo's VIDA tool to function.
- You can avoid programming by transferring your original, working module to a replacement headlight housing.
- Failure often displays a 'Headlamp System Malfunction' message and can disable driver-assist features like Pilot Assist.
Common Failure Symptoms

When the Headlight Control Module (HCM) begins to fail, you will typically see a warning message in the driver's display. The car's computer is very specific, and diagnosing the problem often starts with reading the exact message.
- "Headlamp System Malfunction, Service Required" Message: This is the most common indicator of a fault within the headlight system. It can point to the module, the headlight level sensor, or the internal components of the headlight itself.
- "Auto High Beam Malfunction" Message: This message appears when the system that automatically switches between high and low beams is not working, often due to a fault in the HCM or the forward-facing camera.
- One or More Lights Stop Working: You may notice that the low beam, high beam, or the 'Thor's Hammer' Daytime Running Light (DRL) is out on one side.
- Flickering or Dim Headlights: The light may flicker, appear dim, or change to a pink or purplish color, which often points to a failing module or LED element.
- Active Bending Lights Stop Working: The headlights may stop swiveling when you turn the steering wheel.
- Related Systems Disabled: A headlight system fault can sometimes cause the vehicle to disable driver assistance systems like Pilot Assist, Adaptive Cruise Control, and Lane Keeping Aid, as they may rely on the same camera and sensors.
Associated OBD-II Trouble Codes
A professional scan tool that can read Volvo-specific codes is necessary for an accurate diagnosis. Generic OBD-II readers may not be able to communicate with the HCM. Look for the following codes:
- U040086: Invalid Data Received from Headlamp Control Module.
- B104321 or HCM-B104312: These codes point specifically to the Headlamp Leveling Sensor (often called the front or rear axle sensor), not the module itself. This sensor tells the HCM the car's angle to aim the lights properly. A failure of this sensor can also trigger a "Headlamp System Malfunction" warning, so it's important to read the codes before replacing the module.
Important: A new or used replacement Headlight Control Module MUST be programmed to your vehicle using special software. It is not a plug-and-play part.
Known Issues, TSBs, and Recalls

There are no active recalls or Technical Service Bulletins (TSBs) from Volvo or the NHTSA for a widespread failure of this specific Headlight Control Module. However, there are related software recalls for these vehicles that owners should be aware of.
- NHTSA Recall 19V-849: Affects many 2019-2020 models, including the S60, V60, XC40, XC60, and XC90. A software issue could prevent the Automatic Emergency Brake (AEB) system from detecting obstacles. Since a headlight malfunction can also disable driver-assist features, it's important to ensure your vehicle's software is up to date.
- NHTSA Recall 18V-800: Affects many 2017-2019 models. A software error in the Vehicle Connectivity Module (VCM) could prevent the vehicle's GPS location from being transmitted in an emergency. The fix was a complete software update for the vehicle.
These recalls are addressed by a Volvo dealer, typically with a free software update.
Programming & Replacement

Replacing the HCM is a two-part process: physical installation and software programming. While a skilled DIY mechanic can perform the physical swap, the software programming is mandatory and requires specialized tools.
Software Programming: A Necessary Step
You cannot simply install a new or used HCM and expect it to work. The module must be loaded with the correct software for your vehicle's specific configuration and then paired to the car.
- Tool Required: This programming is done with Volvo's official diagnostic software, called VIDA (Vehicle Information & Diagnostics for Aftersales).
- Who Can Do It: A Volvo dealership or a qualified independent European auto specialist with a VIDA subscription and a J2534 communication tool can perform the programming.
- The Process: The technician connects to the vehicle and performs a "HCM Software Reload." This process requires information from a data sticker on the headlight assembly itself.
- Voltage is Key: A stable power supply (at least 12.5V, but ideally over 13V) must be connected to the vehicle's battery during the entire software download. A voltage drop can interrupt the process and potentially damage the module.
Pro Tip: If your headlight lens is cracked or the housing is damaged but the lights still work, you can avoid programming. Purchase a used headlight assembly and carefully transfer your original, working Headlight Control Module to the replacement housing. Since the module is already programmed to your car, no software reload is needed.
Physical Replacement Walkthrough
The HCM is bolted directly to the bottom or back of the headlight assembly. To access it, the entire headlight must be removed from the vehicle.
- Bumper Removal: The front bumper cover must be at least partially, and often fully, removed. This involves releasing numerous plastic push-clips under the hood, Torx screws in the wheel wells, and bolts underneath the car.
- Headlight Removal: Once the bumper is off, the headlight assembly is typically held in by three T30 Torx bolts.
- Module Swap: With the headlight assembly on a workbench, the HCM can be unbolted and the electrical connector detached. The new module is then bolted in its place.
Buying a Used Body Control Module

Purchasing a used OEM Headlight Control Module is a great way to save a significant amount of money. However, there are critical factors to consider to ensure you get a good part that can be successfully installed.
- Match the Part Number: It is essential to match the OEM part number on your original module to the used one you are buying. The part number is printed on the module's label, but it may be on the surface facing the headlight, requiring you to remove it to read it. The part numbers covered in this guide are interchangeable.
- Inspect for Damage: Check the connectors for any signs of corrosion (green or white powder) or bent pins. Look at the casing for cracks or signs of water intrusion.
- Factor in Programming Costs: Remember that a used module is just the part. You will still have to pay a dealer or independent shop for 1-2 hours of labor to program it. Factor this cost into your total savings.
- Why Used OEM is a Good Choice: For a complex electronic part like this, a used Genuine Volvo module that has been tested is often more reliable than a cheap, new aftermarket part from an unknown brand. These modules are designed to last the life of the vehicle, so a used unit from a lower-mileage vehicle is typically a safe bet.
Cost Breakdown
Prices can vary by location and supplier, but here is a general estimate for replacing a single Headlight Control Module.
| Part / Service | Estimated Cost |
|---|---|
| New OEM Module (Dealer) | $450 - $600 |
| New Aftermarket Module | $75 - $200 (Quality and compatibility may vary) |
| Used OEM Module | $90 - $200 |
| Shop Labor (Physical Replacement) | $150 - $250 (approx. 1.5-2.0 hours) |
| Shop Labor (Programming) | $150 - $250 (approx. 1.0-1.5 hours) |
| Total Dealer Repair (New OEM) | $750 - $1100+ |
| Total Independent Shop (Used OEM) | $390 - $650 |
Frequently Asked Questions (FAQ)
Do I really need to program a replacement headlight module?
Yes, absolutely. A new or used Headlight Control Module will not function correctly until it has been programmed to your car's specific VIN and options using Volvo's VIDA software. The only exception is if you are transferring your car's original module to a new headlight housing.
Can an independent mechanic or a locksmith program this module?
A locksmith cannot. A well-equipped independent European auto shop that has a legitimate subscription to Volvo's VIDA software and a proper J2534 pass-thru device can perform the programming. Many general repair shops will not have this specific, expensive software. It is best to call and confirm they can program Volvo modules before booking the repair.
How do I know if it's the module, the bulb, or a fuse?
These vehicles use integrated LED units, not traditional bulbs, so you can't just swap a bulb. A fuse failure is possible but less common. The best way to diagnose the issue is to have the codes read with a Volvo-specific scan tool. If one entire headlight assembly is dead, you can try swapping the modules from left to right. If the problem moves to the other side, the module is the culprit. If the problem stays on the same side, the issue is likely within the headlight assembly itself.
Is it safe to drive with a "Headlamp System Malfunction" warning?
You should have the vehicle inspected as soon as possible. While the car may be drivable, you could have reduced visibility if a low or high beam is out. Furthermore, the fault may disable safety systems like Active Bending Lights, automatic high beams, and even unrelated systems like Pilot Assist or Adaptive Cruise Control, increasing your risk on the road.
Technical Specifications
OEM Part Numbers: 31427776 32337412 32365274 32420510 A2C7517490
For vehicles equipped with full LED headlights. Mounts directly to the headlight assembly.
We Have This Part in Stock
The information in this article is provided for general reference and educational purposes only. Vehicle specifications, procedures, and part compatibility can vary by production date, trim level, and region. Always consult your vehicle's factory service manual and verify part numbers before purchasing or performing repairs. Safety-critical components such as airbags, seat belts, and braking systems should be installed by a qualified professional.
- Volvo XC60:
- Volvo XC90:
- Volvo S60:
- Volvo V60:
- Volvo XC40:
- Volvo S90:
- Volvo V90: