You are not logged in.
Hi,
I'm trying to get rid of my screen tearing issues by activating Prime Synchronization but I can't figure out a way to activate Prime Synchronization on my computer, despite having read the wiki.
My method doesn't work as I should get all 1s (full output below) (changing grub + mkinitcpio config file to get nvidia modsetting working) :
➜ ~ xrandr --prop | grep PRIME
PRIME Synchronization: 1
PRIME Synchronization: 1
PRIME Synchronization: 1
PRIME Synchronization: 1
PRIME Synchronization: 0
PRIME Synchronization: 0
PRIME Synchronization: 1
PRIME Synchronization: 0
Note: Regolith is i3+gnome
-` xavierp@arch
.o+` ------------
`ooo/ OS: Arch Linux x86_64
`+oooo: Host: 20L5CTO1WW ThinkPad T480
`+oooooo: Kernel: 5.15.3-arch1-1
-+oooooo+: Uptime: 13 mins
`/:-:++oooo+: Packages: 926 (pacman)
`/++++/+++++++: Shell: zsh 5.8
`/++++++++++++++: Resolution: 1440x2560, 2560x1440, 1440x2560
`/+++ooooooooooooo/` DE: Regolith
./ooosssso++osssssso+` WM: i3
.oossssso-````/ossssss+` Theme: Dracula [GTK3]
-osssssso. :ssssssso. Icons: Moka [GTK3]
:osssssss/ osssso+++. Terminal: st
/ossssssss/ +ssssooo/- Terminal Font: Liberation Mono
`/ossssso+/:- -:/+osssso+- CPU: Intel i7-8550U (8) @ 4.000GHz
`+sso+:-` `.-/+oso: GPU: NVIDIA GeForce MX150
`++:. `-/+/ GPU: Intel UHD Graphics 620
.` `/ Memory: 1750MiB / 32000MiB
Relevant software information
NVIDIA Driver Version: 495.44
xrandr -v
xrandr program version 1.5.1
Server reports RandR version 1.6
Actual configurations :
Because I have a laptop with Intel/Nvidia GPU I followed the archlinux wiki for Nvidia Optimus
- gdm
/usr/share/gdm/greeter/autostart/optimus.desktop
/etc/xdg/autostart/optimus.desktop
---
[Desktop Entry]
Type=Application
Name=Optimus
Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto"
NoDisplay=true
X-GNOME-Autostart-Phase=DisplayServer
- xorg
➜ ~ cat /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
Section "OutputClass"
Identifier "intel"
MatchDriver "i915"
Driver "modesetting"
EndSection
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSection
- grub
➜ ~ cat /etc/default/grub
# GRUB boot loader configuration
GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="i915.enable_rc6=0 nvidia-drm.modeset=1 intel_idle.max_cstate=0" # nvidia nvidia_modeset nvidia_uvm nvidia_drm nvidia-drm.modeset=1"
# loglevel=3 quiet
GRUB_CMDLINE_LINUX="cryptdevice=UUID=50565c97-984d-423d-adf1-d695ba900389:cryptroot"
...
- mkinitcpio
➜ ~ cat /etc/mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES=(piix ide_disk reiserfs)
MODULES=(i915 nvidia nvidia_modeset nvidia_uvm nvidia_drm)
...
Other Things I tried:
- putting
nvidia nvidia_modeset nvidia_uvm nvidia_drm nvidia-drm.modeset=1
into my grub file
- not including the i915 into grub/mkinitcpio
Full xrandr --prop log with my 3 screens connected
Screen 0: minimum 8 x 8, current 5440 x 2560, maximum 32767 x 32767
eDP-1-1 connected (normal left inverted right x axis y axis)
EDID:
00ffffffffffff0006af362300000000
001b0104a51f117802f4f5a4544d9c27
0f505400000001010101010101010101
010101010101e65f00a0a0a040503020
350035ae100000180000000f00000000
00000000000000000020000000fe0041
554f0a202020202020202020000000fe
004231343051414e30322e33200a00b2
PRIME Synchronization: 1
supported: 0, 1
scaling mode: Full aspect
supported: Full, Center, Full aspect
Colorspace: Default
supported: Default, RGB_Wide_Gamut_Fixed_Point, RGB_Wide_Gamut_Floating_Point, opRGB, DCI-P3_RGB_D65, BT2020_RGB, BT601_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, BT2020_CYCC, BT2020_YCC
max bpc: 12
range: (6, 12)
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
panel orientation: Normal
supported: Normal, Upside Down, Left Side Up, Right Side Up
link-status: Good
supported: Good, Bad
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CONNECTOR_ID: 95
supported: 95
non-desktop: 0
range: (0, 1)
2560x1440 60.01 + 59.99 59.99 59.96 59.95
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
1400x1050 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 60.02
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1280x800 59.99 59.97 59.81 59.91
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
700x525 59.98
800x450 59.95 59.82
640x512 60.02
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
640x400 59.88 59.98
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
HDCP Content Type: HDCP Type0
supported: HDCP Type0, HDCP Type1
Content Protection: Undesired
supported: Undesired, Desired, Enabled
Colorspace: Default
supported: Default, RGB_Wide_Gamut_Fixed_Point, RGB_Wide_Gamut_Floating_Point, opRGB, DCI-P3_RGB_D65, BT2020_RGB, BT601_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, BT2020_CYCC, BT2020_YCC
max bpc: 12
range: (6, 12)
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
subconnector: Unknown
supported: Unknown, VGA, DVI-D, HDMI, DP, Wireless, Native
link-status: Good
supported: Good, Bad
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CONNECTOR_ID: 103
supported: 103
non-desktop: 0
range: (0, 1)
HDMI-1-1 disconnected (normal left inverted right x axis y axis)
PRIME Synchronization: 1
supported: 0, 1
HDCP Content Type: HDCP Type0
supported: HDCP Type0, HDCP Type1
Content Protection: Undesired
supported: Undesired, Desired, Enabled
max bpc: 12
range: (8, 12)
content type: No Data
supported: No Data, Graphics, Photo, Cinema, Game
Colorspace: Default
supported: Default, SMPTE_170M_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, opRGB, BT2020_CYCC, BT2020_RGB, BT2020_YCC, DCI-P3_RGB_D65, DCI-P3_RGB_Theater
aspect ratio: Automatic
supported: Automatic, 4:3, 16:9
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
link-status: Good
supported: Good, Bad
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CONNECTOR_ID: 113
supported: 113
non-desktop: 0
range: (0, 1)
DP-1-2 disconnected (normal left inverted right x axis y axis)
PRIME Synchronization: 1
supported: 0, 1
HDCP Content Type: HDCP Type0
supported: HDCP Type0, HDCP Type1
Content Protection: Undesired
supported: Undesired, Desired, Enabled
Colorspace: Default
supported: Default, RGB_Wide_Gamut_Fixed_Point, RGB_Wide_Gamut_Floating_Point, opRGB, DCI-P3_RGB_D65, BT2020_RGB, BT601_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, BT2020_CYCC, BT2020_YCC
max bpc: 12
range: (6, 12)
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
subconnector: Unknown
supported: Unknown, VGA, DVI-D, HDMI, DP, Wireless, Native
link-status: Good
supported: Good, Bad
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CONNECTOR_ID: 119
supported: 119
non-desktop: 0
range: (0, 1)
HDMI-1-2 connected 1440x2560+4000+0 left (normal left inverted right x axis y axis) 597mm x 336mm
EDID:
00ffffffffffff0010acda414c553146
311e0103803c2278ea8cb5af4f43ab26
0e5054a54b00d100d1c0b300a9408180
8100714fe1c0565e00a0a0a029503020
350055502100001a000000ff00463834
4a3632330a2020202020000000fc0044
454c4c205332373231444746000000fd
0030901ee63c000a2020202020200107
02034bf1525a3f101f20051404131211
03020106071516230907078301000067
030c001000383c67d85dc4017880016d
1a0000020b3090e60f62256230e305c0
00e200d5e606050162623e40e7006aa0
a067500820980455502100001a6fc200
a0a0a055503020350055502100001a00
000000000000000000000000000000e6
_GNOME_FLASHBACK_PRESENTATION_OUTPUT: 0
PRIME Synchronization: 0
supported: 0, 1
HDCP Content Type: HDCP Type0
supported: HDCP Type0, HDCP Type1
Content Protection: Undesired
supported: Undesired, Desired, Enabled
max bpc: 12
range: (8, 12)
content type: No Data
supported: No Data, Graphics, Photo, Cinema, Game
Colorspace: Default
supported: Default, SMPTE_170M_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, opRGB, BT2020_CYCC, BT2020_RGB, BT2020_YCC, DCI-P3_RGB_D65, DCI-P3_RGB_Theater
aspect ratio: Automatic
supported: Automatic, 4:3, 16:9
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
link-status: Good
supported: Good, Bad
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CONNECTOR_ID: 125
supported: 125
non-desktop: 0
range: (0, 1)
2560x1440 59.95*+
2560x1080 60.00 59.94
2048x1152 60.00
1920x1200 59.95
1920x1080 120.00 119.88 60.00 60.00 50.00 59.94 24.00 23.98
1920x1080i 60.00 50.00 59.94
1600x1200 60.00
1680x1050 59.88
1280x1024 75.02 60.02
1280x800 59.91
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x576i 50.00
720x480 60.00 59.94
720x480i 60.00 59.94
640x480 75.00 60.00 59.94
720x400 70.08
DP-1-1-1 connected primary 2560x1440+1440+555 (normal left inverted right x axis y axis) 598mm x 336mm
EDID:
00ffffffffffff000469ec2701010101
29190103803c22780eee91a3544c9926
0f505421080001010101010101010101
010101010101565e00a0a0a029503020
350056502100001a000000ff0046414c
4d51533031383239340a000000fd0018
3c1e8c1e010a202020202020000000fc
00524f47205047323739510a20200136
02031ac147001f041303120123090701
8301000065030c001000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000051
_GNOME_FLASHBACK_PRESENTATION_OUTPUT: 0
PRIME Synchronization: 0
supported: 0, 1
max bpc: 12
range: (6, 12)
HDCP Content Type: HDCP Type0
supported: HDCP Type0, HDCP Type1
Content Protection: Undesired
supported: Undesired, Desired, Enabled
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
link-status: Good
supported: Good, Bad
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CONNECTOR_ID: 97
supported: 97
non-desktop: 0
range: (0, 1)
2560x1440 59.95*+
1920x1080 50.00
1280x720 60.00 50.00 59.94
1024x768 60.00
800x600 60.32
720x576 50.00
720x480 60.00 59.94
640x480 60.00 59.94
DP-1-1-2 disconnected (normal left inverted right x axis y axis)
PRIME Synchronization: 1
supported: 0, 1
max bpc: 12
range: (6, 12)
HDCP Content Type: HDCP Type0
supported: HDCP Type0, HDCP Type1
Content Protection: Undesired
supported: Undesired, Desired, Enabled
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
link-status: Good
supported: Good, Bad
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CONNECTOR_ID: 132
supported: 132
non-desktop: 0
range: (0, 1)
DP-1-1-3 connected 1440x2560+0+0 left (normal left inverted right x axis y axis) 597mm x 336mm
EDID:
00ffffffffffff0010acda414c393646
311e0103803c2278ea8cb5af4f43ab26
0e5054a54b00d100d1c0b300a9408180
8100714fe1c0565e00a0a0a029503020
350055502100001a000000ff00344c34
4a3632330a2020202020000000fc0044
454c4c205332373231444746000000fd
0030901ee63c000a202020202020011c
02034bf1525a3f101f20051404131211
03020106071516230907078301000067
030c001000183c67d85dc4017880016d
1a0000020b3090e60f62256230e305c0
00e200d5e606050162623e40e7006aa0
a067500820980455502100001a6fc200
a0a0a055503020350055502100001a00
00000000000000000000000000000006
_GNOME_FLASHBACK_PRESENTATION_OUTPUT: 0
PRIME Synchronization: 0
supported: 0, 1
max bpc: 12
range: (6, 12)
HDCP Content Type: HDCP Type0
supported: HDCP Type0, HDCP Type1
Content Protection: Undesired
supported: Undesired, Desired, Enabled
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
link-status: Good
supported: Good, Bad
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CONNECTOR_ID: 134
supported: 134
non-desktop: 0
range: (0, 1)
2560x1440 59.95*+ 143.91 120.00
2560x1080 60.00 59.94
2048x1152 60.00
1920x1200 59.95
1920x1080 120.00 119.88 60.00 60.00 50.00 59.94 24.00 23.98
1600x1200 60.00
1680x1050 59.88
1280x1024 75.02 60.02
1280x800 59.91
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 60.00 59.94
640x480 75.00 60.00 59.94
720x400 70.08
Note : Gnome show the wrong information for the displays when connected to my thunderbolt dock so that may or may not be related to this (output and actual display model/information are mixed/wrong).
Last edited by xaperret (2021-11-23 14:07:09)
Offline
Ok so I fixed it myself,
I removed all the intel module inside /etc/mkinitcpio.conf.
I removed also everything in the CMDLINE_LINUX_DEFAULT from my grup config and regenerated it.
I put
options nvidia-drm modset=1
into /etc/modprobe.d/nvidia.conf and then
sudo mkinitcpio -p linux
Now
➜ ~ sudo cat /sys/module/nvidia_drm/parameters/modeset
returns Y and Synch is activated inside nvidia settings
Offline