Check the value returned by fopen() during display initialization