How to stop screen going blank in debian OS
Dear All,
how to use setterm command in debian I mean in /etc/xx files |
Hi,
You can create a script in /etc/init.d to run setterm, e.g.: Code:
#!/bin/sh Code:
update-rc.d scriptname defaults Regards |
does not work
Quote:
I have done as you mentioned the step I followed is as follows ot@ts7000:init.d# vi ww1 #!/bin/sh /usr/bin/setterm -blank 0 root@ts7000:init.d# chmod 777 ww1 root@ts7000:init.d# ./ww1 oot@ts7000:init.d# update-rc.d ww1 defaults Adding system startup for /etc/init.d/ww1 ... /etc/rc0.d/K20ww1 -> ../init.d/ww1 /etc/rc1.d/K20ww1 -> ../init.d/ww1 /etc/rc6.d/K20ww1 -> ../init.d/ww1 /etc/rc2.d/S20ww1 -> ../init.d/ww1 /etc/rc3.d/S20ww1 -> ../init.d/ww1 /etc/rc4.d/S20ww1 -> ../init.d/ww1 /etc/rc5.d/S20ww1 -> ../init.d/ww1 root@ts7000:init.d# reboot same after 10 minutes screen gone blank... could you please suggest any wrong thing I did??? thanks once again for you kind reply |
Hi,
It looks like you have to add some more setterm options Code:
/usr/bin/setterm -blank 0 -powersave off -powerdown 0 |
setterm -cursor off
Quote:
I have even added seterm -cursor off also to make cursor blinking off but after doing this also cursor is blinking.... please suggest any other method... |
Quote:
cannot (un)set powersave mode for /usr/bin/setterm -blank 0 -powersave off -powerdown 0 please guide me how to resolve this issue |
Are you running the command from an xterm? It is supposed to be run from CLI.
If you want to do the same for X you should use xset |
Quote:
|
xterm is a X-windows terminal. What I mean is that if you're trying to run the setterm command from a terminal inside X, it's not going to work.
It is supposed to work when you boot into runlevel 3 and not runlevel 5 (that is X-windows) |
Quote:
now what even I have done on windows Hyperterminal(which is ttyAM0 of TS7260 arm9 board).... now tell me what is wrong that I am doing????????????? |
I don't think you're doing something wrong. I guess it's the customized debian you're running on this board.
You can leave the powersave option out the command and see if it works Code:
/usr/bin/setterm -blank 0 -powerdown 0 |
Quote:
i went init 3 level and executed the shell script and updated rc.d as of ur 1st mail but for rebooting I am saying to reboot and again getting same problem cursor in blink and screen goes blank. |
If you're using console-tools, it's maybe worth trying to edit /etc/console-tools/config and use:
Quote:
|
Quote:
|
Makes sense since you're using a customized debian.
The last thing I can think that it could work, is to use ansi escape codes to do the same as setterm: Code:
echo -e '\033[9;0]\033[14;0]' > /dev/console |
All times are GMT -5. The time now is 03:15 PM. |