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

4次阅读

共计 470 个字符,预计需要花费 2 分钟才能阅读完成。

  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,此时模式曾经批改过去,电脑不再卡顿
正文完
 0