[ARM應(yīng)用]不改變內(nèi)核代碼,解決LCD屏自動并閉
[導(dǎo)讀] 可以在應(yīng)用程序中實現(xiàn),不要去改動內(nèi)核驅(qū)動,編一小程序:#include #include #include void keep_LCD_screen(void){ int fd; fd = open("/dev/tty0", O_RDWR); write(fd, "\\033[9;0]", 8); close(fd);}int main(v
可以在應(yīng)用程序中實現(xiàn),不要去改動內(nèi)核驅(qū)動,編一小程序:
#include
#include
#include
void keep_LCD_screen(void)
{
int fd;
fd = open("/dev/tty0", O_RDWR);
write(fd, "