I have tried as following:
1. Turn off: export DISPLAY=:0.0 && xset dpms force off
2. Turn on: export DISPLAY=:0.0 && xset -dpms
Which works but that is a temporary solution, which does not fix my problem yet. When i reboot system it start again and again the same auto turn off mode.
How can i now remotely using SSH turn it off forever?
IMPORTANT:
- KIOSK (ATM machine will use this option)
- 24/7 advertising display/slides will use this
Optional Note: this guide i followed http://v2kblog.blogspot.com/2008/08/disabling-monitor-power-saver.html , but permanent solution did not worked.
Best Answer
Save this script in something like
/usr/bin
, give it a name (likeswitch_dpms
) and make it executable withchmod 664 /usr/bin/switch_dpm
.Now all you need to do is add it to a cron job. So open your crontab file with:
and add this at the bottom:
Every reboot it will turn
dpms
tooff
and you can also turn iton
from commandline by doing/usr/bin/switch_dpms on
or check its status with/usr/bin/switch_dpms status
.Source for the script