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

Source: Internet
Author: User
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 lack of ubuntu system power management, but the use of linux systems is about to make full use of the spirit, so I found the relevant funds...
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 (only about N cards), and set the integrated video card and adjust the brightness. the independent video card has serious heat and power consumption. 1. install bumblebee1) open the terminal (not to mention this), and execute the following code in sequence to complete the installation: Code: sudo add-apt-repository ppa: bumblebee/stablesudo apt-get updatesudo apt-get install bumblebee-restart diasudo 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. Open another terminal and enter lspci | grep-I vga to list the Intel integrated display and NVIDIA independent display. the NVIDIA graphics card information is displayed in the "rev + number" format, it indicates that the exclusive display is enabled and is working. Then, turn off the window that shows the 3D gear screen named "glxgears", and enter: lspci | grep-I vga to list the operating conditions of Intel and NVIDIA dual displays, the NVIDIA graphics card information is changed back to the "rev ff" format, indicating that the dedicated display has been disabled. Integrate the video card settings and brightness adjustment settings to set the gamma value and brightness (by default, only the Fn key is used to adjust the brightness) Code: xgamma-gamma. 7 indicates that the gamma value is set to 0.7 and the brightness cannot be adjusted with Fn. Fn adjusts the/sys/class/backlight/acpi_video0/brightness file, while the I card file is/sys/class/backlight/intel_backlight/brightness. Run the following commands in sequence (still on the Terminal): sudo suecho 500>/sys/class/backlight/intel_backlight/brightness OK. Now you can use the fn key to set the brightness, after successfully disabling the N card, we can enable the automatic adjustment function of the Intel HD 3000 integrated graphics card. The terminal is still sudo gedit/etc/default/grub. find GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash ", add pcie_aspm = force fill = 1 acpi_osi = Linux acpi_backlight = vendor elevator = noop kernel _ enable_rc6 = 1 Kernel _ enable_fbc = 1 Kernel _ downclock = 1 in quiet splash space and click save and close. editor execution: su Do update-grub and restart www.2cto.com again. second, hard disk energy saving. this is relatively simple. you only need to install laptop-mode-tools to open the terminal and execute: sudo apt-get install laptop-mode-tools can be installed to adjust the hard drive speed. by default, the highest performance (the fastest speed) is used when the AC power supply is used, and the opposite is used when the battery is used. You can also perform some advanced settings through configuration. for details, run: cat/proc/sys/vm/laptop_mode. if the AC power is used, the return value is 0, if battery is used, other values are returned, indicating that the battery is enabled successfully. Refer to: Laptop Mode Tools (simplified Chinese) and then add 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. Here we mainly recommend two tools: one is the familiar Jupiter, and the other is Cpufreqd. we recommend Cpufreqd based on relevant information. First install Cpufreqd to open the terminal, and then execute: sudo add-apt-repository ppa: artfwo/ppa.
Sudo apt-get updatesudo 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.
Related Article

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.