Thanks! Great! Jussi
On Thu, Feb 19, 2009 at 10:20 PM, Jose J. Rodriguez <joe1...@gmail.com> wrote: > On 2/19/09, Jussi Lahtinen <jussi.lahti...@gmail.com> 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 > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user