Thinkpad X201

/etc/thinkfan.conf

hwmon /sys/class/hwmon/hwmon1/temp2_input 
hwmon /sys/class/hwmon/hwmon1/temp4_input

#thermal /proc/acpi/ibm/thermal

(0,     0,      55)
(1,     48,     60)
(2,     50,     61)
(3,     52,     63)
(4,     56,     65)
(5,     59,     66)
# (7,   63,     32767)
(7,     63,     82)
(127, 80, 32767)

/usr/local/sbin/cpufreq-temp.sh

#! /bin/sh

MAILTO=""

# set temp above which to drop the maximum frequency
scaledowntemp=62
# set temp below which to reset the maximum frequency
scaleuptemp=59
# get cpu temperature
#cputemp=`sensors | grep "Core 0" | awk '{print $3}' | sed -e 's/+//g' | head --bytes=-3`
cputemp=`sensors | grep "Core 0"| sed 's/^.*:[^0-9]*+\([0-9]*\)\.\([0-9]\).*/\1/'`
echo CPUtemp=$cputemp
if [ $cputemp -lt $scaleuptemp ] # if temp is in acceptable range, set max frequencies free
then
    echo 1203000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    echo 1203000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
    echo 1203000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
    echo 1203000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq

    #cpufreq-set -c 0 -u 2.81Ghz
    #cpufreq-set -c 1 -u 2.81Ghz
fi
if [ $cputemp -gt $scaledowntemp ] # if temp is too high, limit cores to 1.6Ghz
then
    echo 2133000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    echo 2133000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
    echo 2133000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
    echo 2133000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq

    #cpufreq-set -c 0 -u 1.61Ghz
    #cpufreq-set -c 1 -u 1.61Ghz
fi

##take from http://ubuntuforums.org/showthread.php?t=1735914
crontab
   */2 * * * *       /usr/local/sbin/cpufreq-temp.sh > /tmp/cpufreqtemp.log

alsa

cat ~/.asoundrc

defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1