Set gpio pin PWM

Is there a way to make a gpio pin on a raspberry pi set a pwm without having to call an python script? I want to have my screen dim when the headlights turn on and the screen can be controlled with a pmw input.

In theory, you could try the Servo motor controls, they use PWM. Never tried to use those to anything else than servos though.