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 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.