C/C++教程

[已解决] Ubuntu 显卡风扇调节问题 Unable to locate/open X configuration file. No package ‘xorg-server‘ found

本文主要是介绍[已解决] Ubuntu 显卡风扇调节问题 Unable to locate/open X configuration file. No package ‘xorg-server‘ found,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

问题

显卡发烫风扇蜗速旋转,NVIDIA控制面板没有风扇信息,上网查解决方案输入sudo nvidia-xconfig --cool-bits=4之后报警告:

WARNING: Unable to locate/open X configuration file.

Package xorg-server was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-server.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-server' found
New X configuration file written to '/etc/X11/xorg.conf'

如果忽略警告继续重启可能面临开机黑屏,这时按Ctrl+Alt+F1进入DOS输入rm /etc/X11/xord.conf删掉文件还原更改然后reboot重启就行。

解决办法

仔细看上面的警告,是缺包引起的。用下面命令将包安好即可:

 sudo apt install xorg-server-source

欸呦图丢了
然后警告消除。
继续按照网上进行:

sudo nvidia-xconfig --cool-bits=4

然后改/etc/X11/xord.conf文件:

Section "Device"
	Identifier		"Device0"
	Driver			"nvidia"
	VendorName		"NVIDIA Corporation"
	Option			"NoLogo" "True"
	Option			"Coolbits" "4"
EndSection
这篇关于[已解决] Ubuntu 显卡风扇调节问题 Unable to locate/open X configuration file. No package ‘xorg-server‘ found的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!