Disable exclusive display + power-saving and cooling settings in Ubuntu

Source: Internet
Author: User

Reprinted: http://www.2cto.com/ OS /201212/175873.html

Disable exclusive display + power-saving and cooling settings in Ubuntu

After Ubuntu is installed in a notebook, you will find that power consumption and heat consumption will be very serious. If you use a battery, the endurance will be very short, almost half the time in windows, this is a shortage of ubuntu system power management, but the use of the Linux system is about to make full use of the spirit, so I searched for the relevant information and other methods, the following is a summary, I try to write details and understand them as much as possible.
Www.2cto.com
First, turn off the independent video card (N cards only), and enable integrated video card settings and brightness adjustment. The independent video card has severe heat and power consumption.
1. Install bumblebee
1) Open the terminal (not to mention that you won't) and execute the following code in sequence to complete the installation:
Code:
Sudo add-Apt-repository PPA: Bumblebee/stable
Sudo apt-Get update
Sudo apt-Get install Bumblebee bumblebee-NVIDIA
Sudo reboot
The last step is to restart (you should know)
2) then execute the code
Lspci | grep VGA
Note: The following lists the operations of Intel and NVIDIA dual display. The NVIDIA graphics card information is followed by a "Rev FF", indicating that the dual display has been disabled.

Enter:
Sudo optirun glxgears

This is a window named "glxgears" that displays the 3D Gear screen. Do not close the window.

If no gear exists and Exec: glxgears: Not found is displayed, run: sudo
Apt-Get install Mesa-utils



Open another terminal and enter:
Lspci | grep-I VGA
The following lists the intel and NVIDIA dual display operations. The NVIDIA graphics card information is displayed in the "REV + number" format, indicating that the dual display has been enabled and is currently working.
Then, close the window with the name "glxgears" and display the 3D Gear screen, and then enter:
Lspci | grep-I VGA
The following lists the intel and NVIDIA dual display operations. The NVIDIA graphics card information is changed back to the "Rev FF" format, indicating that the dual display has been disabled.

Integrated video card settings and brightness adjustment
Set the GAMMA value and brightness (by default, only the FN key is used to adjust the brightness)
Code:
Xgamma-Gamma. 7
Sets the GAMMA value to 0.7.
Set the brightness. FN cannot be used to adjust the brightness. FN adjusts the/sys/class/backlight/acpi_video0/brightness file, while the I card file is/sys/class/backlight/intel_backlight/brightness.
Execute in sequence (still in the terminal ):
Sudo Su
Echo 500>/sys/class/backlight/intel_backlight/brightness

OK; now you can use the FN key to set the brightness, and N cards are successfully disabled.

Next we will enable the automatic adjustment function of Intel HD 3000 integrated graphics card.
Still a terminal:
Sudo gedit/etc/default/GRUB
Find grub_cmdline_linux_default = "quiet Splash ", add pcie_aspm = force mask = 1 acpi_osi = Linux acpi_backlight = vendor elevator = Noop KERNEL _ enable_rc6 = 1 KERNEL _ enable_fbc = 1 i915.lvds _ downclock = 1
Click Save and close the editor.
Run:
Sudo Update-grub
Restart the instance again.
Www.2cto.com
Second, hard disk energy saving, this is relatively simple, just install laptop-mode-Tools
Open the terminal and execute:
Sudo apt-Get install laptop-mode-Tools
You can complete the installation.

This tool can adjust the hard drive speed. By default, the highest performance (the fastest speed) is used when the AC power supply is used, but the opposite is used when the battery is used.
You can also perform some advanced settings through configuration, so you can find relevant information on your own.

Run:
CAT/proc/sys/Vm/laptop_mode
If AC power is used, the return value is 0. If battery is used, other values are returned, indicating that the function is enabled successfully.
Reference: Laptop mode tools (Simplified Chinese)

And then add the CPU ....

Third, CPU energy-saving settings and dynamic CPU frequency management.
Note: Only the CPU with adjustable frequency is supported, such as Intel's I series CPU. Generally, the notebook processor is adjustable for energy saving.
Two tools are recommended: one is familiar Jupiter and the other is cpufreqd.
We recommend that you use cpufreqd based on relevant information.
First install cpufreqd

Open the terminal and execute the following commands in sequence:
Sudo add-Apt-repository PPA: artfwo/PPA
Sudo apt-Get update
Sudo apt-Get install cpufreqd indicator-cpufreq
(The current version 12.04.1 seems to contain cpufreqd, so you only need to install indicator-cpufreq)

The indicator-cpufreq behind is a small plug-in on the control panel for easy settings.
Then we can see that this icon is added in the upper right corner, and you can click to adjust related options.


Powersave is a so-called "power-saving" mode that maintains the lowest frequency in any case;
OnDemand, default mode. A task with a CPU computing workload immediately runs at the maximum frequency, and immediately returns to the minimum frequency after the execution is completed. Conservative is translated into a conservative (moderate) mode, it will automatically adjust the upper and lower frequency limits. The difference between OnDemand and OnDemand is that it will distribute the frequency as needed, rather than blindly pursuing the highest frequency;
Performance, as its name implies, focuses only on efficiency and keeps running at the maximum frequency.
Www.2cto. comps: it is not recommended to install multiple CPU management tools, which may cause conflicts. The previously installed hard disk adjustment tool also has the CPU adjustment function, so disable it as follows: open the terminal and run sudo gedit/etc/laptop-mode/CONF. d/cpufreq. in Conf, set control_cpu_frequency = to "0", that is, disable the adjustment.

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.