WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline ttz

  • Jr. Member
  • **
  • Posts: 82
setterm error/msg: can't (un)set pwr save mode
« 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?

Offline Misalf

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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 9954
Re: setterm error/msg: can't (un)set pwr save mode
« Reply #2 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.
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 23, 2015, 09:14:44 PM »
did as curaga said. success on two boxes.

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

@curaga

thank you!