Information display Buick LaCrosse 05

My information display works sometimes and sometimes not. It will say I need headlight when it is bright and sunny. Sometimes after being driven for 2-3 hours it will go dim. Coming back from a trip Sat. going due West, it said we were going E.

I took it to the dealer, of course it was working fine, and he said he could not diagnose it.