1. 编辑此文件(或创建它)

1. 编辑此文件(或创建它)

我的电脑上有 2 个显示器18.04,一个在内部英特尔 GPU 上运行,第二个屏幕通过 DVI-D 运行NVIDIA GT 710卡,虽然我有最新的415 NVIDIA 驱动程序。在 NVIDIA 连接的显示器上观看视频时,我会看到水平线在视频上不断上下移动,我认为这叫做屏幕撕裂。

我尝试过建议的解决方案,例如设置为中的nvidia-drm.modeset=1线路,但 NVIDIA 显示器会阻止'GRUB_CMDLINE_LINUX_DEFAULT/etc/default/grub启动 Gnome DISPLAY 管理器' 在启动过程中,而另一台显示器登录正常;然后在显示器配置后我再也看不到第二台显示器了。

更新:英特尔显示器也会出现撕裂现象,尽管程度较轻。

运行xrandr --verbose返回以下内容(已过滤相关性):

Screen 0: minimum 8 x 8, current 3840 x 1200, maximum 16384 x 16384
DVI-D-0 connected 1920x1200+1920+0 (0x46) normal (normal left inverted right x axis y axis) 518mm x 324mm
    Identifier: 0x2b1
    Timestamp:  148801474
    Subpixel:   unknown
    Gamma:      1.0:1.0:1.0
    Brightness: 1.0
    Clones:    
    CRTC:       1
    CRTCs:      1 2 3 4
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter: 
    _MUTTER_PRESENTATION_OUTPUT: 0 
    CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
    BorderDimensions: 4 
        supported: 4
    Border: 0 0 0 0 
        range: (0, 65535)
    SignalFormat: TMDS 
        supported: TMDS
    ConnectorType: DVI-D 
    ConnectorNumber: 0 
    _ConnectorLocation: 0 
  1920x1200 (0x46) 154.000MHz +HSync -VSync *current +preferred
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock  74.04KHz
        v: height 1200 start 1203 end 1209 total 1235           clock  59.95Hz
  1920x1080 (0x2b2) 148.500MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz
DP-1-1 connected primary 1920x1200+0+0 (0x46) normal (normal left inverted right x axis y axis) 518mm x 324mm
    Identifier: 0x42
    Timestamp:  148801426
    Subpixel:   unknown
    Gamma:      1.0:1.0:1.0
    Brightness: 1.0
    Clones:     HDMI-1-1
    CRTC:       0
    CRTCs:      0 5 6
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter: 
    _MUTTER_PRESENTATION_OUTPUT: 0 
    PRIME Synchronization: 0 
        supported: 0, 1
    Broadcast RGB: Automatic 
        supported: Automatic, Full, Limited 16:235
    audio: auto 
        supported: force-dvi, off, auto, on
    non-desktop: 0 
        range: (0, 1)
    link-status: Good 
        supported: Good, Bad
  1920x1200 (0x46) 154.000MHz +HSync -VSync *current +preferred
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock  74.04KHz
        v: height 1200 start 1203 end 1209 total 1235           clock  59.95Hz
  1920x1080 (0x47) 148.500MHz -HSync -VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz
DP-1-2 disconnected (normal left inverted right x axis y axis)
    Identifier: 0x44
    Timestamp:  148801426
    Subpixel:   unknown
    Clones:    
    CRTCs:      0 5 6
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter: 
    PRIME Synchronization: 1 
        supported: 0, 1
    Broadcast RGB: Automatic 
        supported: Automatic, Full, Limited 16:235
    audio: auto 
        supported: force-dvi, off, auto, on
    non-desktop: 0 
        range: (0, 1)
    link-status: Good 
        supported: Good, Bad
  1920x1200 (0x46) 154.000MHz +HSync -VSync
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock  74.04KHz
        v: height 1200 start 1203 end 1209 total 1235           clock  59.95Hz

答案1

我也有同样的问题。我找到了一些解决方案,也许这有帮助

1. 编辑此文件(或创建它)

sudo nano /etc/modprobe.d/zz-nvidia-modeset.conf

2.并添加此行

选项 nvidia_drm 模式集=1

3. 最后,使用以下命令更新 initramfs

sudo update-initramfs -u

4.然后重新启动。

来源:https://www.cmscritic.com/stop-screen-tearing-with-optimus-laptops-using-nvidia-drivers-in-linux/

相关内容