In our system, the Virtual console of the LCD and the console TTY are not the same devices, that is, if the simple printf in the program is not working! This only modifies the blankinterval of the TTY you are using, and you are using a text-only device that does not have a black screen problem.
So, you need to carefully compare/dev/console,/dev/tty,/dev/ttyn device number, in my system, the user program/dev/console and/dev/tty are 5, indicating they are a thing,/dev/ttyn is 4, This is the Virtual Console on FB. But/dev/ttyn is not a TTY in use, so how about printf? Had to use the write function to solve.
Write a code like this:
#include <fcntl.h>
#include <stdio.h>
#include <sys/ioctl.h>
void Some_function ()
{
int F;
f = open ("/dev/tty0", O_RDWR);
Write (F, "/033[9;0]", 8);
Close (f);
}
Modify User program, add code to set Blankinterval (recommended)
2440 Lcd10 minute Sleep modification