+ lcdfd = open("/dev/dbox/oled0", O_RDWR);
+ if (lcdfd < 0)
+ {
+ FILE *f=fopen("/proc/stb/lcd/oled_brightness", "w");
+ if (!f)
+ f = fopen("/proc/stb/fp/oled_brightness", "w");
+ if (f)
+ {
+ is_oled = 2;
+ fclose(f);
+ }
+ lcdfd = open("/dev/dbox/lcd0", O_RDWR);
+ } else
+ {
+ eDebug("found OLED display!");
+ is_oled = 1;
+ }