Monday, December 26, 2005

Howto turn off your monitor when you lock your screen

I wanted to turn off my monitor when I lock my screen. Now, I use xfce, and the (default) shortcut to lock your screen in xfce is ctrl+alt+del

I have a habbit of pressing ctrl+alt+del when I leave the PC for a few minutes, and I thought it would be nice if I could turn off the monitor simultaneously. So here's what I did.

xfce runs the "xflock4" script to lock the screen. So open the script in a text editor
sudo gedit /usr/bin/xflock4

Now add this line before "exit 0"
xset dpms force off

So basically, your file will look like this:

# xfce4
# Copyright (C) 1999, 2003 Olivier Fourdan (
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

xscreensaver-command -lock || xlock $*
xset dpms force off
exit 0

The disadvantage is that if your mouse moves, or any key is pressed, the monitor won't turn off again, but I can live with that :)

Please feel free to leave comments and suggestions.

Again, do this at your own risk, and don't forget to make a backup. - Double Sided Printing - Double Sided Printing

Note: I haven't tried it out yet, but it looks promising. - Ultimate gimp tutorials and community forum - Ultimate gimp tutorials and community forum

Wednesday, December 21, 2005

GNU/Linux Cool Tools

GNU/Linux Cool Tools - Turn Monitor off, use Keyboard LEDs

I found some really cool apps, check out this link: - Turn Monitor off, use Keyboard LEDs

I especially like the one called "tleds." It blinks the LEDs of the keyboard indicating TX and RX network packets :)

Tuesday, December 20, 2005

HOWTO Automatically turn off your monitor

HOWTO Automatically turn off your monitor - Gentoo Linux Wiki

I've used it in ubuntu, haven't tested it out yet, but I guess it will work.

Sunday, December 11, 2005

Firefox middle-click to close tab solution

I upgraded to firefox 1.5 using the ubuntu wiki. (see previous post). Its really cool, the only problem I came across was that when I was middle-clicking to close a tab, it was opening a google "I'm feeling lucky" page.

So I came up with a solution on my own. (yay) :) Here's what I did...

  1. Type about:config in the address-bar
  2. Enter middle in the "filter" area. You will see a few options
  3. Right-click on middlemouse.contentLoadURL and click on Toggle. This will now become bold, and it will show "user set"

And thats it! Now I can middle click on a tab to close it. :)

Warning: Do this at your own risk

Thursday, December 01, 2005

Slashdot | Driving Away Teens With High Frequency Noise

Source: Slashdot | Driving Away Teens With High Frequency Noise

"The New York Times is reporting on a device called the Mosquito invented by Howard Stapleton designed to drive teens away by emitting a high frequency noise at 75db. Apparently most older people can not hear the sounds, but teens can not stand it. Reports are that it works quite well, but some older people can hear it too. He found the prefect irritating sound by experimenting on his children."

Welcome to my linux blog

My website was getting rather difficult to maintain, so I decided to start a linux blog. I'll just keep dumping interesting linux and opensource related stuff on this blog. Feel free to leave comments. :)