Screen Blanking With Purebasic

Linux specific forum
Alex
User
User
Posts: 41
Joined: Fri Aug 19, 2005 8:14 pm

Screen Blanking With Purebasic

Post 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
"How is it possible to bring order out of memory? I should like to begin at the beginning, patiently, like a weaver at his loom. I should like to say, 'This is the place to start, there can be no other.'

-Beryl Markham
WishMaster
Enthusiast
Enthusiast
Posts: 277
Joined: Fri Jun 17, 2005 7:13 pm
Location: Franconia
Contact:

Post by WishMaster »

You can try this:

Code: Select all

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

Code: Select all

RunProgram("xset", "dpms force standby", "")
Image Image
Alex
User
User
Posts: 41
Joined: Fri Aug 19, 2005 8:14 pm

Post 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", "")
"How is it possible to bring order out of memory? I should like to begin at the beginning, patiently, like a weaver at his loom. I should like to say, 'This is the place to start, there can be no other.'

-Beryl Markham
Post Reply