基本上标题是,使用 nouveau 驱动程序,笔记本电脑屏幕和显示器都可以正常工作。想做一些 nvenc 的东西,所以我通过 20.04 中的附加驱动程序应用程序获得了 nvidia 驱动程序。使用 ubuntu 建议的任何一个(440、435、390),笔记本电脑都会使用笔记本电脑屏幕启动(显示 grub 信息、ubuntu 徽标和启动服务),但是当启动过程完成时,只有辅助屏幕可以工作。我也尝试过在 grub 设置中将 nomodeset 切换为 quiet splash,但没有变化。如果我将 nvidia x 服务器设置中的 gpu 更改为英特尔集成 gpu,笔记本电脑屏幕可以正常工作,但我无法使用 gpu。任何建议都将不胜感激。这台笔记本电脑是戴尔 inspiron 15 i7567。此外,如果我使用 ctrl-alt-f3 切换到不同的 tty,控制台就会出现在笔记本电脑屏幕上。
答案1
长话短说:安装新的 450 驱动程序
长话短说:使用“附加驱动程序”安装新驱动程序,运行sudo dpkg-reconfigure xserver-xorg
,重新启动,重复直到笔记本电脑屏幕上启动,运行sudo Xorg :1 -configure
以生成 xorg.conf.new 文件,将其复制到其他地方以防万一,运行sudo dpkg-reconfigure -phigh xserver-xorg
,重新启动,使用 ctrl-alt-f2 进入 tty2 因为您无法通过登录屏幕,运行sudo ubuntu-drivers autoinstall
安装最新的 450 驱动程序,重新启动,祈祷,一切正常。
我不知道哪个部分修好了它,哪个部分什么也没做,但我运行的所有程序最终都使它工作了。
另外,下面是 NVIDIA X Server Settings 创建的新 xorg.conf,您可以稍加修改并将其放置在 /etc/X11/xorg.conf 中以使您的系统正常工作:
编辑:当小数缩放再次破坏我的配置时,我无法使此文件工作,并且重复这些步骤无法修复它。我认为关键是导致我的 tty2 无法加载到 gui 的原因。
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 440.82
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 3840 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "Xinerama" "0"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "built-ins"
EndSection
Section "Module"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "TOSHIBA-TV"
HorizSync 15.0 - 68.0
VertRefresh 23.0 - 61.0
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "AccelMethod" # <str>
#Option "Backlight" # <str>
#Option "CustomEDID" # <str>
#Option "DRI" # <str>
#Option "Present" # [<bool>]
#Option "ColorKey" # <i>
#Option "VideoKey" # <i>
#Option "Tiling" # [<bool>]
#Option "LinearFramebuffer" # [<bool>]
#Option "HWRotation" # [<bool>]
#Option "VSync" # [<bool>]
#Option "PageFlip" # [<bool>]
#Option "SwapbuffersWait" # [<bool>]
#Option "TripleBuffer" # [<bool>]
#Option "XvPreferOverlay" # [<bool>]
#Option "HotPlug" # [<bool>]
#Option "ReprobeOutputs" # [<bool>]
#Option "XvMC" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "VirtualHeads" # <i>
#Option "TearFree" # [<bool>]
#Option "PerCrtcPixmaps" # [<bool>]
#Option "FallbackDebug" # [<bool>]
#Option "DebugFlushBatches" # [<bool>]
#Option "DebugFlushCaches" # [<bool>]
#Option "DebugWait" # [<bool>]
#Option "BufferCache" # [<bool>]
Identifier "Card0"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "VideoKey" # <i>
#Option "WrappedFB" # [<bool>]
#Option "GLXVBlank" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "PageFlip" # [<bool>]
#Option "SwapLimit" # <i>
#Option "AsyncUTSDFS" # [<bool>]
#Option "AccelMethod" # <str>
#Option "DRI" # <i>
Identifier "Card1"
Driver "nouveau"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 1050"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-0"
Option "metamodes" "nvidia-auto-select +3840+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection