1. 问题形容

    • 开机呈现以下问题

      the ac power adapter type cannot be determined
    • 开机抉择diagnose进行查看发现

      the battery is reaching the end of its life

      显示电池曾经达到生命止境

  2. 问题起因剖析
    电池坏掉后cpu动不动就跑满了,因为此时cpu的工作模式被批改了

    • 装置cpufrequency工具

      sudo apt-get install cpufrequtils 
    • 查看cpu信息

      cpufreq-info


      所有内核都变成了powersave的模式

  3. 批改模式

    sudo cpufreq-set -c 0 -g performancesudo cpufreq-set -c 1 -g performancesudo cpufreq-set -c 2 -g performancesudo cpufreq-set -c 3 -g performancemodprobe msrwrmsr 0x1FC 2 //敞开BD PROCHOTwatch -n 1 "cat /proc/cpuinfo | grep MHz"
  4. 再次查看 cpufreq-info ,此时模式曾经批改过去,电脑不再卡顿