我有一台顶级机器,在 Windows 上可以非常快速地运行 Stellaris,但在 Ubuntu 18.04 上,stellaris 的运行速度非常慢,就像没有使用显卡一样。我使用的是 nvidia 卡。
在 dmesg 中看到这个,不确定是否相关。我猜是无关的,因为它似乎在不到一秒的时间内发生?:
[ 193.532941] powercap intel-rapl:0: package locked by BIOS, monitoring only
[ 194.574036] CPU5: Core temperature above threshold, cpu clock throttled (total events = 1)
[ 194.574037] CPU1: Core temperature above threshold, cpu clock throttled (total events = 1)
[ 194.574039] CPU3: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 194.574043] CPU4: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 194.574044] CPU6: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 194.574045] CPU7: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 194.574046] CPU0: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 194.574047] CPU2: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 194.574048] CPU1: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 194.574057] CPU5: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 194.575038] CPU1: Core temperature/speed normal
[ 194.575039] CPU5: Core temperature/speed normal
[ 194.575040] CPU4: Package temperature/speed normal
[ 194.575041] CPU0: Package temperature/speed normal
[ 194.575042] CPU7: Package temperature/speed normal
[ 194.575043] CPU3: Package temperature/speed normal
[ 194.575044] CPU6: Package temperature/speed normal
[ 194.575045] CPU2: Package temperature/speed normal
[ 194.575045] CPU5: Package temperature/speed normal
[ 194.575046] CPU1: Package temperature/speed normal
[ 201.541002] intel_pstate: Turbo disabled by BIOS or unavailable on processor
[ 227.457422] intel_pstate: Turbo disabled by BIOS or unavailable on processor
[ 231.461084] intel_pstate: Turbo disabled by BIOS or unavailable on processor
[ 235.464786] intel_pstate: Turbo disabled by BIOS or unavailable on processor
[ 239.468445] intel_pstate: Turbo disabled by BIOS or unavailable on processor
[ 256.793728] intel_pstate: Turbo disabled by BIOS or unavailable on processor
答案1
我刚刚安装了最新的 nVidia 驱动程序(软件和更新 > 附加驱动程序 > nVidia)或sudo apt install nvidia-current
但当我重新启动时,一切都变黑了,因为我使用的是 Optimus 卡(用于笔记本电脑节能的混合 nvidia/intel GPU),所以我安装了 prime:
sudo apt install nvidia-prime
并通过设置正确的 GPU nvidia-settings
(它是英特尔的),然后再次重新启动,一切都运行良好!游戏运行良好!