Hi everyone,
I'm running a Yocto build on an i.MX6 board and I'm trying to stop the screen from shutting off after 15 minutes of inactivity. I've tried the following things with no success:
- passing consoleblank=0 to bootargs
- modifying drivers/tty/vt/vt.c with static int blankinterval = 0;
Neither of these has had any effect.
cat /sys/module/kernel/parameters/consoleblank returns a value of 900.
My system does not have setterm.
Please help!
Thanks
Marlon
已解决! 转到解答。
Marlon,
Perhaps the problem concerns with the fact, that the mentioned command(s) should be
issued, when all Linux sub-systems are working. As a solution, one can run (own) special
application (at start up), which should issue the command ("echo 0 > /sys/class/graphics/fb0/blank")
after some period of time (several munutes).
~Yuri.
Please try the following :
echo -e -n '\033[9]' > /dev/tty0
or
echo 0 > /sys/class/graphics/fbx/blank
fbx - is number of framebuffer (LCD, LVDS, HDMI), x =0,1,2
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Yuri, if I run that command after the screen has shut off, it does turn the screen back on. So it seems I'm on the right track. However when I run the command in a script on startup it does not seem to prevent the screen from blanking eventually. Any thoughts?
Marlon,
Perhaps the problem concerns with the fact, that the mentioned command(s) should be
issued, when all Linux sub-systems are working. As a solution, one can run (own) special
application (at start up), which should issue the command ("echo 0 > /sys/class/graphics/fb0/blank")
after some period of time (several munutes).
~Yuri.
Thanks for the help Yuri. What finally solved the problem was calling
echo -e '\033[9;0]' > /dev/tty1
from within my application, which runs once the rest of the system has been started.
Marlon