[Gambas-user] Monitor on/off
Jose J. Rodriguez
joe1962 at ...626...
Thu Feb 19 21:20:21 CET 2009
On 2/19/09, Jussi Lahtinen <jussi.lahtinen at ...626...> wrote:
>
> Anyone know how to turn monitor on/off from Gambas?
> Thanks!
>
I had this tip saved for a while now, which seems to work so far:
<quote>
One click monitor power-down for Linux
By Alastair Otter
19 December, 2007
If you're running a Linux-powered laptop and you want to switch off
the screen, without waiting for the laptop to go into sleep mode, then
this is a great tip from Tombuntu.
To switch the your monitor off use the command: sleep 1 && xset dpms force off.
The sleep 1 (wait for one second) is needed only when you are typing
the command in a terminal. This is because the command is executed as
soon as the enter key is pressed, when it lifts up X turns the monitor
back on.
To turn this into a Linux desktop shortcut, right-click on your
desktop and select "create new launcher".
The "command" setting must be set to "xset dpms force off" (without
the sleep 1).
</quote>
Regards,
Joe1962
More information about the User
mailing list