我最近(今天)在我的笔记本电脑上安装了 Nvidia 图形驱动程序,我按照教程中的说明使用nvidia-xconfig
. 我正在使用笔记本电脑并已插入外接显示器,外接显示器的分辨率很好,但笔记本电脑的主屏幕已达到 4:3 分辨率。我不知道xorg.conf
文件中有什么,我从来没有见过这样的东西,谁能帮我把屏幕分辨率改回 16:9、1366x768。
这是 xorg.conf 文件。
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 390.48 (buildmeister@swio-display-x86-rhel47-07) Thu Mar 22 01:07:32 PDT 2018
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia" 0 0
Inactive "intel"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 60.0 - 100.0
VertRefresh 60.0 - 100.0
Option "DPMS"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Monitor "Monitor0"
DefaultDepth 24
Option "AllowEmptyInitialConfiguration"
Option "RegistryDwords" "PrefLevelSrc=0x2222"
Option "TripleBuffer" "True"
SubSection "Display"
Depth 24
Modes "nvidia-auto-select"
EndSubSection
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
Monitor "Monitor0"
EndSection
好的,在搜索网络之后,这就是我想出的解决方案。我正在使用手动生成的
xorg.conf
文件nvidia-xconfig
。哪个没有生成正确的配置。这最终对我有用。按
ctrl+alt+f2
(或您用来进入命令行模式的任何组合键)以管理员身份登录。
如果您
GDM
像我一样使用,请继续并停止该过程,使用service gdm stop
.检查您
X-server
是否正在运行。使用ps -C Xorg
然后终止该进程。kill -9 PID
使用
Xorg -configure
将生成xorg.conf.new
现在只需将
.new
文件移动到/etc/X11/
目录,使用mv xorg.conf.new /etc/X11/xorg.conf
现在重新启动
GDM
service gdm start
你完成了。