The High Beam Control System (HBC) operates to switch the headlights automatically between high and low beams after the ignition is switched ON and the headlight switch is in the AUTO and high beam position.
The High Beam Control System (HBC) determines that it is dark based on the brightness of the surrounding area. At the same time, the High Beam Control System (HBC) indicator light (green) in the instrument cluster illuminates.

NOTE
When the vehicle speed is less than about 20 km/h (12 mph), the High Beam Control System (HBC) switches the headlights to low beams.
High Beam Control System (HBC) (Some models)
Manual SwitchingMazda 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: No.2 air bag system warning light is illuminated all the time
Diagnostic Procedure
When performing an asterisked (*) troubleshooting inspection, shake the
wiring harness and connectors while doing the inspection to discover whether
poor contact points are the cause of any intermittent malfunction. If there
is a problem, check to make sure connec ...