Users who install the Ubuntu system often find that after a long computer time, they start to get hot and lose a lot of power, and in contrast, the Ubuntu system has only about half the battery time in the Windows system, which makes people wonder if it's the Ubuntu system itself. The following small compilation teaches everybody a way to cool down the computer of Ubuntu system, reduce the loss by cooling the hard disk, this can delay the endurance time. Let's have a try now!
Programme I
1. Install Laptop_mode
sudo apt-get install Laptop-mode-tools
2. Start Laptop_mode
sudo laptop_mode start
3. Test is enabled
Cat/proc/sys/vm/laptop_mode
0 indicates that no other representation is enabled.
View the detailed status of the Laptop_mode report.
sudo laptop_mode status
4. Take a look at the state of your hard drive (SATA hard drive)
sudo hdparm-i/dev/sda |grep Advanced
5. Set Laptop_mode to enable
sudo gedit/etc/default/acpi-support
The last line is generally changed into enable_laptop_mode=true.
6. Configure laptop-mode.conf
sudo gedit/etc/laptop-mode/laptop-mode.conf
Enable_laptop_mode_on_ac=1 #当笔记本使用交流电时也开启laptop-mode
Control_hd_idle_timeout=0 #关闭 hd_idle_timeout (hard drive into standby)
Control_readahead=1 #启用readahead
lm_readahead=4096
nolm_readahead=128 #readahead Buffer, if it is to listen to MP3 3-5m, if it is to see a movie 8-10m
Enable_laptop_mode_when_lid_closed=1 # This seems to be a function of closing the laptop lid.
minimum_battery_charge_percent=11 # about 11% battery power disabled Laptop_mode
Disable_laptop_mode_on_critical_battery_level=8 #极低电量禁用 Laptop_mode
Control_hd_powermgmt=1 #启动硬盘电源的管理模式
batt_hd_powermgmt=192
lm_ac_hd_powermgmt=192
nolm_ac_hd_powermgmt=192
Programme II
In Ubuntu, the size of the swappiness value has a big connection to how the swap partition is used. Swappiness=0 the maximum use of physical memory, and then the swap space, swappiness=100 when the positive use of the swap partition, and the memory of the data in a timely manner into the swap space. Two extremes, for Ubuntu's default setting, this value is equal to 60, and the recommended modification is 10.
1. View the swappiness in your system
sudo cat/proc/sys/vm/swappiness
Can see is 60.
2. Modify Swappiness value to 10
sudo gedit/etc/sysctl.conf
At the end of this document, add this line:
vm.swappiness=10
Save shutdown.
3. Reboot
sudo reboot
The above two methods can effectively help the Ubuntu system's computer cooling, is to use the hard drive to cool down the way to achieve, here to note that, to avoid SSD hard drives, other can be used. Small friends to quickly verify the correctness of this method!