Не удается принудительно использовать синхронизацию PRIME - разрыв экрана

Как сказано в названии, я не могу придумать способ заставить мой ноутбук использовать синхронизацию PRIME, и, насколько я понимаю, это может очень хорошо по этой причине при просмотре видео у меня довольно много разрывов экрана.

Я перепробовал практически все, что мог найти достаточно недавно, но ничего не работает.

Я убедился, что файл DRM настроен правильно:

(base) alex@alex:/etc/modprobe.d$ cat nvidia-drm.conf 
options nvidia-drm modeset=1

Я попытался принудительно настроить его с помощью xrandr --output eDP-1-1 --set "PRIME Synchronization" 1 , но он остается на 0.

Я обязательно выполнил следующую команду и перезагрузился:

(base) alex@alex:/etc/modprobe.d$ sudo update-initramfs -u
[sudo] password for alex: 
update-initramfs: Generating /boot/initrd.img-5.3.0-24-generic
I: The initramfs will attempt to resume from /dev/nvme0n1p4
I: (UUID=4ef37681-250c-4d75-954b-c8cf78fd5e65)
I: Set the RESUME variable to override this.

* когда я пробовал то же самое, но создав файл zz-nvidia-modesetconf, как я читал в некоторых сообщениях, сгенерированная команда update-initramfs много ошибок.

После всего этого я все еще получаю следующий результат:

(base) alex@alex:/etc/modprobe.d$ sudo cat /sys/module/nvidia_drm/parameters/modeset
N

У меня есть Dell xps 9570 с картой GTX 1050 ti, и я использую Ubuntu 19.10.

Вот еще несколько результатов, которые могут помочь (мой монитор - eDP-1-1):

base) alex@alex:/etc/modprobe.d$ xrandr --prop
Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
eDP-1-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
    _MUTTER_PRESENTATION_OUTPUT: 0 
    EDID: 
        00ffffffffffff004d108d1400000000
        051c0104a52213780eef4fa95334bc25
        0d515400000001010101010101010101
        0101010101014dd000a0f0703e803020
        350058c2100000180000000000000000
        00000000000000000000000000fe0046
        4e564452804c51313536443100000000
        0002410328011200000b010a2020004c
    PRIME Synchronization: 0 
        supported: 0, 1
    scaling mode: Full aspect 
        supported: Full, Center, Full aspect
    max bpc: 12 
        range: (6, 12)
    Broadcast RGB: Automatic 
        supported: Automatic, Full, Limited 16:235
    link-status: Good 
        supported: Good, Bad
    CONNECTOR_ID: 86 
        supported: 86
    non-desktop: 0 
        range: (0, 1)
   3840x2160     60.00 +  59.98    59.97  
   3200x1800     59.96    59.94  
   2880x1620     59.96    59.97  
   2560x1600     59.99    59.97  
   2560x1440     59.99    59.99*   59.96    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.99    59.98    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     60.01    59.97    59.96    59.93  
   1600x1200     60.00  
   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  
DP-1-1 disconnected (normal left inverted right x axis y axis)
    PRIME Synchronization: 1 
        supported: 0, 1
    Content Protection: Undesired 
        supported: Undesired, Desired, Enabled
    max bpc: 12 
        range: (6, 12)
    Broadcast RGB: Automatic 
        supported: Automatic, Full, Limited 16:235
    audio: auto 
        supported: force-dvi, off, auto, on
    link-status: Good 
        supported: Good, Bad
    CONNECTOR_ID: 92 
        supported: 92
    non-desktop: 0 
        range: (0, 1)
DP-1-2 disconnected (normal left inverted right x axis y axis)
    PRIME Synchronization: 1 
        supported: 0, 1
    Content Protection: Undesired 
        supported: Undesired, Desired, Enabled
    max bpc: 12 
        range: (6, 12)
    Broadcast RGB: Automatic 
        supported: Automatic, Full, Limited 16:235
    audio: auto 
        supported: force-dvi, off, auto, on
    link-status: Good 
        supported: Good, Bad
    CONNECTOR_ID: 100 
        supported: 100
    non-desktop: 0 
        range: (0, 1)
DP-1-3 disconnected (normal left inverted right x axis y axis)
    PRIME Synchronization: 1 
        supported: 0, 1
    Content Protection: Undesired 
        supported: Undesired, Desired, Enabled
    max bpc: 12 
        range: (6, 12)
    Broadcast RGB: Automatic 
        supported: Automatic, Full, Limited 16:235
    audio: auto 
        supported: force-dvi, off, auto, on
    link-status: Good 
        supported: Good, Bad
    CONNECTOR_ID: 106 
        supported: 106
    non-desktop: 0 
        range: (0, 1)


(base) alex@alex:/etc/modprobe.d$ dmesg | grep drm
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.3.0-24-generic root=UUID=3aed6bfe-476b-4f03-a33a-8265acaf1a5a ro quiet splash acpi_rev_override=1 acpi_osi=Linux nouveau.modeset=0 pcie_aspm=force drm.vblankoffdelay=1 scsi_mod.use_blk_mq=1 nouveau.runpm=0 mem_sleep_default=deep pti=off spectre_v2=off l1tf=off nospec_store_bypass_disable no_stf_barrier vt.handoff=7
[    0.131737] Kernel command line: BOOT_IMAGE=/vmlinuz-5.3.0-24-generic root=UUID=3aed6bfe-476b-4f03-a33a-8265acaf1a5a ro quiet splash acpi_rev_override=1 acpi_osi=Linux nouveau.modeset=0 pcie_aspm=force drm.vblankoffdelay=1 scsi_mod.use_blk_mq=1 nouveau.runpm=0 mem_sleep_default=deep pti=off spectre_v2=off l1tf=off nospec_store_bypass_disable no_stf_barrier vt.handoff=7
[    3.004066] [drm] Incompatible option detected: enable_guc=3, GuC submission not supported!
[    3.004066] [drm] Switching to non-GuC submission mode!
[    3.004671] fb0: switching to inteldrmfb from EFI VGA
[    3.016968] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.016969] [drm] Driver supports precise vblank timestamp query.
[    3.024951] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[    3.096695] [drm] HuC: Loaded firmware i915/kbl_huc_ver02_00_1810.bin (version 2.0)
[    3.107310] [drm] GuC: Loaded firmware i915/kbl_guc_32.0.3.bin (version 32.0)
[    3.107444] [drm] CT: enabled
[    3.137213] [drm] Initialized i915 1.6.0 20190619 for 0000:00:02.0 on minor 0
[    3.376284] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    3.376286] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[    3.413727] fbcon: i915drmfb (fb0) is primary device
[    3.413802] i915 0000:00:02.0: fb0: i915drmfb frame buffer device


(base) alex@alex:/etc/modprobe.d$ nvidia-smi
Sat Dec  7 13:10:10 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 105...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   44C    P8    N/A /  N/A |    600MiB /  4042MiB |     31%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1520      G   /usr/lib/xorg/Xorg                            72MiB |
|    0      2495      G   /usr/lib/xorg/Xorg                           137MiB |
|    0      2768      G   /usr/bin/gnome-shell                         207MiB |
|    0      3410      G   ...quest-channel-token=2905873432716077065   133MiB |
+-----------------------------------------------------------------------------+

Любые идеи приветствуются, спасибо!

0
задан 7 December 2019 в 23:48

1 ответ

Этот ответ предоставлен @doug в комментариях к вопросу выше.

Я протестировал это решение на Dell XPS 9570 с GTX 1050 Ti под управлением Ubuntu 18.04, и оно сработало.

  • sudo update-initramfs -u
  • Измените /etc/default/grub, запустив sudo nano /etc/default/grub
    • Измените GRUB_CMDLINE_LINUX_DEFAULT= для включения параметра nvidia-drm.modeset=1
    • Если строка была GRUB_CMDLINE_LINUX_DEFAULT="quiet splash", то вы должны изменить ее на GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia -drm.modeset=1"
  • sudo update-grub
  • Перезагрузить

Если вы хотите сначала попробовать это перед изменением grub, вы можете изменить параметры загрузки в меню grub при загрузке машины.

7
ответ дан 11 August 2020 в 05:20

Другие вопросы по тегам:

Похожие вопросы: