rhysmorgan134 / JaguarXf_CAN

25 stars 7 forks source link

Screen dimming #5

Open alierhan opened 4 years ago

alierhan commented 4 years ago

My XF had headlights on AUTO, when I started the car headlights were on, I've noticed that pi screen dimmed a little. I could control amount of dimming with the usual pot under the steering wheel. When I moved the light switch to OFF, pi screen went completely blank, manual adjustment did not work at all.

I do not have daytime running lights, not sure if that could be the reason.

rhysmorgan134 commented 4 years ago

This is working as intended, the set up is the same as the way the factory set up works.

So when lights are off, brightness is controlled by the solar sensor at the top of the dash. (You can test this by covering up/shining a light on the sensor)

When lights are on a ratio is applied to give a starting dim, and then the value of the physical brightness control is added on top.

Are you finding the screen is too bright/dim?

alierhan commented 4 years ago

I will check out the dimming level when I take her out for a drive.

I started going through the code, made some changes to index.html as trying to test and align the objects etc. I then realised that there was an error

Loading failed for the Githubissues.

  • Githubissues is a development platform for aggregating issues.