Page 1 of 1

Screen Blanking With Purebasic

Posted: Wed Dec 06, 2006 6:46 am
by Alex
Does anyone know a good way to blank the screen with Purebasic under Linux? I need to be able to turn the screen off with a single mouse click, and have it turn back on in response to the usual kinds of input - mouse, keyboard, etc.

Alex

Posted: Wed Dec 06, 2006 7:05 am
by WishMaster
You can try this:

Code: Select all

RunProgram("xset", "dpms force suspend", "")
or this:

Code: Select all

RunProgram("xset", "dpms force standby", "")

Posted: Wed Dec 06, 2006 5:42 pm
by Alex
Excellent. That's perfect!

Alex

WishMaster wrote:You can try this:

Code: Select all

RunProgram("xset", "dpms force suspend", "")
or this:

Code: Select all

RunProgram("xset", "dpms force standby", "")