WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: setterm error/msg: can't (un)set pwr save mode  (Read 2215 times)

Offline ttz

  • Jr. Member
  • **
  • Posts: 82
setterm error/msg: can't (un)set pwr save mode
« on: September 23, 2015, 12:21:35 AM »
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?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: setterm error/msg: can't (un)set pwr save mode
« Reply #1 on: September 23, 2015, 04: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.
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: setterm error/msg: can't (un)set pwr save mode
« Reply #2 on: September 23, 2015, 04:58:27 AM »
bootlocal.sh runs on /dev/console, not a tty. To run that command on a tty, put it in .profile.
The only barriers that can stop you are the ones you create yourself.

Offline ttz

  • Jr. Member
  • **
  • Posts: 82
Re: setterm error/msg: can't (un)set pwr save mode
« Reply #3 on: September 24, 2015, 12:14:44 AM »
did as curaga said. success on two boxes.

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

@curaga

thank you!