关于ubuntu:ubuntu系统笔记本电池坏掉的情况下性能严重下降的解决办法

  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 performance
    sudo cpufreq-set -c 1 -g performance
    sudo cpufreq-set -c 2 -g performance
    sudo cpufreq-set -c 3 -g performance
    
    modprobe msr
    wrmsr 0x1FC 2 //敞开BD PROCHOT
    
    watch -n 1 "cat /proc/cpuinfo | grep MHz"
  4. 再次查看 cpufreq-info ,此时模式曾经批改过去,电脑不再卡顿

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理