Tiny Core Linux

General TC => General TC Talk => Topic started by: ttz on September 22, 2015, 09:21:35 PM

Title: setterm error/msg: can't (un)set pwr save mode
Post by: ttz on September 22, 2015, 09:21:35 PM
don't want screen to blank in tty.

what i did:
in /opt/bootlocal.sh i added: setterm -powersave off -blank 0

reboot & then the msg:
setterm: cannot (un)set powersave mode: Inapproprate ioctl for device

as far as i can tell, what i did worked; it is good for me. but then there is that msg. ignore it? if not, do what?
Title: Re: setterm error/msg: can't (un)set pwr save mode
Post by: Misalf on September 23, 2015, 01:41:02 AM
No idea, but you could try this instead:
Code: [Select]
echo -e '\033[9;0]'
"0" means blank in 0 minutes, i.e. blanking off.
Title: Re: setterm error/msg: can't (un)set pwr save mode
Post by: curaga on September 23, 2015, 01:58:27 AM
bootlocal.sh runs on /dev/console, not a tty. To run that command on a tty, put it in .profile.
Title: Re: setterm error/msg: can't (un)set pwr save mode
Post by: ttz on September 23, 2015, 09:14:44 PM
did as curaga said. success on two boxes.

CURAGA!!!!!!!:):)

@curaga

thank you!