尽管 PRIME 同步,Nvidia Optimus 屏幕仍撕裂

尽管 PRIME 同步,Nvidia Optimus 屏幕仍撕裂

我在运行 Mint 的 Nvidia Optimus 笔记本电脑上遇到持续的屏幕撕裂问题(但我也尝试过其他所有发行版),并且通常推荐的解决方案对我不起作用。我有一个外接显示器,通常与内置笔记本电脑显示器一起使用。

nvidia-smi 输出:

user@mint:~$ nvidia-smi 
Wed Nov 13 18:46:55 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 435.21       Driver Version: 435.21       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1050    Off  | 00000000:01:00.0  On |                  N/A |
| N/A   44C    P0    N/A /  N/A |    581MiB /  3020MiB |      2%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1110      G   /usr/lib/xorg/Xorg                           327MiB |
|    0      1706      G   cinnamon                                      50MiB |
|    0      2005      G   /usr/lib/firefox/firefox                      27MiB |
|    0      2039      G   /usr/lib/firefox/firefox                     151MiB |
+-----------------------------------------------------------------------------+

第一个常用的解决方案 - 打开 PRIME 同步

user@mint:~$ sudo cat /sys/module/nvidia_drm/parameters/modeset
[sudo] password for user:        
Y

我这样做了,但屏幕仍然撕裂。

第二个常用的解决方案 - 力合成管道

这确实有效,但我一生都无法弄清楚如何让它坚持下去。如果我进入“NVIDIA X 设置”,我可以启用“强制合成管道”或“强制完整合成管道”;两者的工作原理似乎相同,但当我重新启动时该选项被禁用。如果我尝试将配置保存到 X 配置文件,则会导致内置监视器被禁用。我尝试使用以下命令并将其设置为在启动时执行:

nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"

它也确实有效(不会禁用内置显示器),但它会重置我的显示配置。我可以手动修复它,但这在每次重新启动时都会很烦人。

据我了解,我需要修改命令以适应内置显示,但即​​使在阅读了我能找到的文档(例如 ArchWiki)后,我也不知道如何做到这一点。

我也得到这个输出:

user@mint:~$ nvidia-settings --query CurrentMetaMode

  Attribute 'CurrentMetaMode' (mint:0.0): id=50, switchable=no,
  source=RandR :: DPY-0: nvidia-auto-select @1920x1080 +1920+0
  {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0,
  ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}

有谁知道从这里去哪里?

编辑:请求的输出:

user@mint:~$ xrandr --props | awk '/ conn/{flag=1;}/discon/{flag=0}flag'
HDMI-0 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm
    CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
    EDID: 
        00ffffffffffff0004724c066c325074
        2d1b010380351e78ca6c40a755519f27
        145054bfef80714f8140818081c08100
        9500b300d1c0023a801871382d40582c
        45000f282100001e000000fd00384c1f
        5311000a202020202020000000fc004b
        41323431590a202020202020000000ff
        005442514545303031383533310a01a3
        020322f14f9001020304050607111213
        1415161f230907078301000065030c00
        1000023a801871382d40582c45000f28
        2100001e011d8018711c1620582c2500
        0f282100009e011d007251d01e206e28
        55000f282100001e8c0ad08a20e02d10
        103e96000f2821000018000000000000
        00000000000000000000000000000005
    BorderDimensions: 4 
        supported: 4
    Border: 0 0 0 0 
        range: (0, 65535)
    SignalFormat: TMDS 
        supported: TMDS
    ConnectorType: HDMI 
    ConnectorNumber: 4 
    _ConnectorLocation: 4 
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
eDP-1-1 connected 1920x1080+0+568 (normal left inverted right x axis y axis) 344mm x 194mm
    EDID: 
        00ffffffffffff0009e5000700000000
        011a0104a522137802c9a0955d599429
        24505400000001010101010101010101
        0101010101019c3b803671383c403020
        360058c21000001a0000000000000000
        00000000000000000000000000fe0042
        4f452043510a202020202020000000fe
        004e5631353646484d2d4e34380a007c
    PRIME Synchronization: 1 
        supported: 0, 1
    scaling mode: Full aspect 
        supported: Full, Center, Full aspect
    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
   1920x1080     60.03*+  60.01    59.97    59.96    59.93  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
  1680x1050 (0x49) 146.250MHz -HSync +VSync
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock  65.29KHz
        v: height 1050 start 1053 end 1059 total 1089           clock  59.95Hz
  1280x1024 (0x51) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1440x900 (0x52) 106.500MHz -HSync +VSync
        h: width  1440 start 1520 end 1672 total 1904 skew    0 clock  55.93KHz
        v: height  900 start  903 end  909 total  934           clock  59.89Hz
  1280x960 (0x55) 108.000MHz +HSync +VSync
        h: width  1280 start 1376 end 1488 total 1800 skew    0 clock  60.00KHz
        v: height  960 start  961 end  964 total 1000           clock  60.00Hz
  1280x800 (0x5e) 83.500MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock  49.70KHz
        v: height  800 start  803 end  809 total  831           clock  59.81Hz
  1024x768 (0x66) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x75) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x76) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  640x480 (0x84) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz

角色用完了...

用户@mint:~$ xrandr --verbose | awk'/conn/{flag=1;}/discon/{flag=0}flag'

https://paste.sh/JDe-NRuv#eH0BRJYykGXuKjVHo_2ip_mQ

相关内容