power saving for smarter planet

Hi All,

I usually lock my screen when I leave my cubicle for a tea-break etc.
With all the awareness for saving Energy etc. etc. I have disabled screen-savers on my system.
Still when I lock my screen I noticed that the LCD doesn't turn off completely.
Then I wanted to save even that little bit of light emitted i.e. wanted to switch off the LCD.

This command helps us do that :
xset dpms force off;

and this is the command invoked when I press "Alt+Ctrl+l" to lock the screen :
gnome-screensaver-command --lock;

Then, I wanted to associate the following command to a shortcut key:
gnome-screensaver-command --lock; xset dpms force off;

So that I can lock as well as power off my LCD screen with a keyboard shortcut.

So, I installed xbindkeys to add a custom shortcut key:
sudo apt-get install xbindkeys
"gnome-screensaver-command --lock; sleep 1; xset dpms force off;"

created the default config file :
xbindkeys --defaults > /home/your-user-name/.xbindkeysrc

Then to assign a shortkey, you can either edit this file manually or do it through xbindkeys-config(sudo apt-get install xbindkeys-config).
I removed the default enabled lines (somehow they interfered with my other shortcuts) from ~/.xbindkeysrc and appended the following lines :

"gnome-screensaver-command --lock; sleep 1; xset dpms force off;"

I was forced to give a "sleep 1" between the two commands; else it was not working ... maybe because of compiz animation time.

Now, when I press "alt+control+k" I save power as well as lock my screen.

Spread this word and let's save energy, so that our grand-children are not forced to lead a life in dark.

*Tested on Ubuntu 8.10 running on Lenovo T61p

Please feel free to post your comments/suggestions.

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState