---
title: "Install Mint 12 (Ubuntu 11.10) on Thinkpad T420"
author: "digiter"
date: "2012-03-21T17:07:44Z"
tags: []
categories: ["操作系统"]
slug: "install-mint-12-ubuntu-11-10-on-thinkpad-t420"
draft: false
lastmod: "2012-04-19T21:26:35Z"
id: 1460749
url: "https://digiter.iteye.com/blog/1460749"
---

1) 调节风扇转速(install thinkfan)
refer: <http://ubuntuforums.org/showthread.php?t=1872633>

1. enable power saving render, active state power mgmt: in /etc/default/grub
Code:

> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force i915.i915_enable_rc6=1"

2. update grub
Code:

> update-grub

3. reboot
4. update sensors from lm-sensors
Code:

> sensors-detect
> 

5. enable thinkfan in /etc/defaults/thinkfan
Code:

> START=yes
> 

6. enable acpi fan:
Code:

> echo "options thinkpad_acpi fan_control=1" >>/etc/modprobe.d/thinkpad_acpi.conf
> 

7. add kernel module 'coretemp' to /etc/modules

> sudo sh -c 'echo coretemp >> /etc/modules'

8. load kernel module 'coretemp'

> sudo modprobe coretemp

9. configure thinkfan in /etc/thinkfan.conf
Code:

> sensor /sys/devices/platform/coretemp.0/temp1_input
> sensor /sys/devices/platform/coretemp.0/temp2_input
> sensor /sys/devices/platform/coretemp.0/temp3_input
> sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input

10. reload kernel module 'thinkpad_acpi'

> $ sudo modprobe -r thinkpad_acpi
> $ sudo modprobe thinkpad_acpi
> 

11. enable tlp: /etc/defaults/tlp
Code:

> TLP_ENABLE=1

12. start thinkfan:

> sudo /etc/init.d/thinkfan start

13. check whether it works

> sudo cat /proc/acpi/ibm/fan
> if level has a value between 0 and 7, and changes by times, your thinkfan daemon works.


2) 禁用触摸板(disable touchpad)

> Software Manager -> install gpointing-device-settings
> 

3) 开机禁用无线和蓝牙(disable wifi and bluetooth on startup)
modify /etc/rc.local, add

> rfkill block bluetooth
> rfkill block wifi


4) 设置Gnome3 Panel高度
Alt + Right Click

5) 设置GCC编译32位库
Be sure to install gcc-multilib and g++-multilib. These depend on both the 64 as the 32-bit gcc and stdc++ libraries.

6) gedit中文乱码
终端输入dconf-editor，展开org/gnome/gedit/preferences/encodings，添加GB18030到UTF-8后面

7) 安装nvidia驱动后解决无法调整屏幕亮度问题

> sudo vim /etc/X11/xorg.conf
> Section "Device"
> Identifier "Device0"
> Driver "nvidia"
> VendorName "NVIDIA Corporation"
> Option "RegistryDwords" "EnableBrightnessControl=1" （加这句话，原本没有这句话）
> EndSection