I want a Linux (Ubuntu) program to be able to enable and disable the console screen as needed.
When I run this in a ssh window I can use:
system("xset -display :0 dpms force on")
and
system("xset -display :0 dpms force off")
to get what I need; however if I launch it from /etc/rc.local
that doesn't work.
Is there a good way to progammatically enable/disable the display?