I found a way of having screen on. Just get on deveoper mode and setting screen on if charging. That fixes the bug, but you have to connect your cable everytime you are in the car. It is annoying but....
We keep waiting to Android 8 and probably that will fix the bug.