1
Scripting / Re: screensaver.nut calling external shell script? Want to force HDMI power off
« on: February 10, 2017, 11:42:15 PM »
For those who have been trying to get tvservices to turn off the monitor and put it into power save mode, use vcgencmd instead.
vcgencmd display_power 0 turns off the screen
vcgencmd display_power 1 turns on the screen
Running it from command line works perfectly, however when the same command is entered within the screensaver config file, it doesn't seem to run.
Update:
Created a short shell script and called it instead. I am guessing the cmd field in screensaver.nut has problems interpreting command line arguments being passed in.
Example of "tvOFF"
#!/bin/sh
vcgencmd diplay_power 0
Example of "tvON"
#!/bin/sh
vcgencmd display_power1
vcgencmd display_power 0 turns off the screen
vcgencmd display_power 1 turns on the screen
Running it from command line works perfectly, however when the same command is entered within the screensaver config file, it doesn't seem to run.
Update:
Created a short shell script and called it instead. I am guessing the cmd field in screensaver.nut has problems interpreting command line arguments being passed in.
Example of "tvOFF"
#!/bin/sh
vcgencmd diplay_power 0
Example of "tvON"
#!/bin/sh
vcgencmd display_power1