Ubuntu System notebook monitor screensavers and power management solutions

Source: Internet
Author: User
Keywords Monitor Ubuntu power management
Tags apply command line control course gnome linux monitor movie

This article to achieve the goal: the perfect control of laptop LCD screen saver and black screen, specifically to achieve

1. Normal mouse 10 minutes without action, the LCD into the screensaver, 15 minutes without action, the LCD completely power off
2. MPlayer watching the movie, the constant power of screensaver.
3. Press the ALT, immediately lock the screen and the LCD power off.

Apply to the crowd: Linux users (nonsense, I have no conditions to test BSD and other *nux), GNOME users, Compiz users, using the command line to start the MPlayer user. Of course, if not fully compliant, some of the content can also be referenced, such as double click on the movie file to open the MPlayer users, You can modify the way files are opened, and Compiz users can bind commands in other ways.

Steps:

1. In the section "Serverlayout" of the/etc/x11/xorg.conf file, add a line of option "Offtime" 180″ the value can be larger to avoid the impact of X.

2. Create an executable shell script named MPlayer under ~/bin, and add ~/bin to $path, where you can change your name before/usr/bin.
The script reads as follows:

Code:
&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; #!/bin/sh

Gnome-screensaver-command-i-N "mplayer"-R "watch the movie! "&
/usr/bin/mplayer $*
Mreturn=$?
Kill%
Exit $mreturn

3. System-Preferences-keyboard shortcuts to remove the "lock screen" keyboard bindings.

4. Open CCSM, in general options-commands inside, add a ALT key binding, the command is as follows:

Gnome-screensaver-command-l; Sleep 3; Xset DPMS Force off

5. System-Preferences-screen saver, the theme selected as "Black Screen" (of course, to see personal hobbies, I think the flower CPU to draw screensavers, is a waste, choose a black screen).

6. System-Preferences-power management, set to 15 minutes after the monitor into sleep.

7. Finished, haha ~

Some explanations and nonsense:

This scheme uses the Gnome-screensaver control program Gnome-screensaver-command, I feel very good, do not know XScreenSaver and Kscreensaver is not also have the corresponding command, In some cases, KDE users can also use this scheme.

Control power, use the Xset, no installation of friends, please fix the installation.

MPlayer's 1.0RC2 version, which claims to have the option of stopping xscreensaver and even gnome-screensaver, is not valid according to my experiments, probably because of the SVN version of MPlayer. So I had to write a script to get it done, Scripts are used to replace MPlayer, and can be abbreviated to MP if you like.

In addition, LCD users need to pay attention to in fact, because the LCD does not have the electron beam bombardment fluorescent powder, so the screen saver for CRT is not suitable for LCD, it does not protect the LCD unit and backlight lamp function. Besides, the beautiful 3D screensavers under Linux are actually very CPU-consuming, Now all popular to create an intensive society, are advocating energy-saving emission reduction, so the best option to leave the computer is to use black screen screensaver lock screen + monitor power off. Of course, CRT users are also recommended to do so.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.