• Post Reply Bookmark Topic Watch Topic
  • New Topic

Monitor And Java  RSS feed

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi 2 All.

Can anybody tell me, how to Swith on and off Monitor(Physical Appliance)?


Thanks in Advance.
 
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Press the power button on the monitor.

Or, build a robot hand to press the button and write a program to make it press the button.

Seriously, this isn't going to be easy. When a PC goes into power saving mode, it can switch off the signal from the video card which will put the monitor into power saving mode. The standard Java API certainly does not have any functionality to control this. Maybe your operating system has functions to do this, which you could call via JNI from Java.
 
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steve Gibson's Wizmo can switch to power save mode - shaking the mouse wakes it up - from the command line. Maybe you could call it via exec. On Windows anyhow.
[ June 06, 2007: Message edited by: Stan James ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!