You are not logged in.
Originally the second monitor was simply labeled disconnected by xrandr. However, after installing the nvidia driver rather than the nvidia-nouveau driver, the monitor came up as connected. However, it simply displays no signal and my mouse cannot leave the border of my laptop screen.
My laptop is running arch and the WM is dwm. It has an integrated AMD graphics card and a dedicated nvidia one.
My xrandr output is
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 144.00*+ 60.01 59.97 59.96 59.93
1680x1050 144.00 59.95 59.88
1400x1050 74.76 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 144.00 85.02 75.02 60.02
1440x900 144.00
1400x900 59.96 59.88
1280x960 85.00 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1280x800 144.00 59.99 59.97 59.81 59.91
1152x864 75.00
1280x720 144.00 60.00 59.99 59.86 59.74
1024x768 144.00 85.00 75.05 60.04 85.00 75.03 70.07 60.00
1024x768i 86.96
960x720 85.00 75.00 60.00
928x696 75.00 60.05
896x672 75.05 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
832x624 74.55
960x540 59.96 59.99 59.63 59.82
800x600 144.00 85.00 75.00 70.00 65.00 60.00 85.14 72.19 75.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
700x525 74.76 59.98
800x450 59.95 59.82
640x512 85.02 75.02 60.02
700x450 59.96 59.88
640x480 144.00 85.09 60.00 85.01 72.81 75.00 59.94
720x405 59.51 58.99
720x400 85.04
684x384 59.88 59.85
640x400 59.88 59.98 85.08
576x432 75.00
640x360 59.86 59.83 59.84 59.32
640x350 85.08
512x384 85.00 75.03 70.07 60.00
512x384i 87.06
512x288 60.00 59.92
416x312 74.66
480x270 59.63 59.82
400x300 85.27 72.19 75.12 60.32 56.34
432x243 59.92 59.57
320x240 85.18 72.81 75.00 60.05
360x202 59.51 59.13
360x200 85.04
320x200 85.27
320x180 59.84 59.32
320x175 85.27
DP-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 connected (normal left inverted right x axis y axis)
1920x1080 60.00 + 60.00 59.94 50.00 50.00 29.97 23.98
1680x1050 59.95
1280x1024 75.02 60.02
1280x960 75.00
1280x720 60.00 59.94 50.00
1152x864 75.00 60.00
1024x768 75.03 70.07 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94
DP-1-2 disconnected (normal left inverted right x axis y axis)
1680x1050 (0x4b) 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 (0x55) 135.000MHz +HSync +VSync
h: width 1280 start 1296 end 1440 total 1688 skew 0 clock 79.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 75.02Hz
1280x1024 (0x56) 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
1152x864 (0x65) 108.000MHz +HSync +VSync
h: width 1152 start 1216 end 1344 total 1600 skew 0 clock 67.50KHz
v: height 864 start 865 end 868 total 900 clock 75.00Hz
1024x768 (0x70) 78.750MHz +HSync +VSync
h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.02KHz
v: height 768 start 769 end 772 total 800 clock 75.03Hz
1024x768 (0x71) 75.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1328 skew 0 clock 56.48KHz
v: height 768 start 771 end 777 total 806 clock 70.07Hz
1024x768 (0x72) 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 (0x8e) 49.500MHz +HSync +VSync
h: width 800 start 816 end 896 total 1056 skew 0 clock 46.88KHz
v: height 600 start 601 end 604 total 625 clock 75.00Hz
800x600 (0x8f) 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
640x480 (0xa3) 31.500MHz -HSync -VSync
h: width 640 start 656 end 720 total 840 skew 0 clock 37.50KHz
v: height 480 start 481 end 484 total 500 clock 75.00Hz
640x480 (0xa4) 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
and `xrandr --listproviders` gives
Providers: number : 2
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 1 associated providers: 1 name:modesetting
Provider 1: id: 0x277 cap: 0x2, Sink Output crtcs: 4 outputs: 4 associated providers: 1 name:NVIDIA-G0
my relevant `lspci -nnk` output is
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] [10de:1f95] (rev a1)
Subsystem: Lenovo Device [17aa:3a3e]
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev c6)
Subsystem: Lenovo Device [17aa:3a3e]
Kernel driver in use: amdgpu
Kernel modules: amdgpu
I have tried `xrandr --output "eDP-1" --auto --output "HDMI-1-0" --above "eDP-1"` however that did nothing. `xrandr --output "HDMI-1-0" --set audio force-dvi --mode 1920x1080` results in
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 11 (RRQueryOutputProperty)
Serial number of failed request: 51
Current serial number in output stream: 51
I tried adding `amdgpu.dc=0` to my kernel boot parameters via GRUB however that just results in the login screen not loading properly and the graphics look messed up. I also tried changing the HDMI cable but I still get the same issue. I ran into a similar problem on Ubuntu ages ago but I managed to fix it by messing around with the drivers, however, unfortunately I can't remember what I did.
Some weird things I've noticed:
When I plug in the second monitor sometimes the screen brightness on the primary monitor goes to 20 (out of a maximum of 255).
When I plug in the monitor the Xorg.0.log shows
[ 1597.016] (--) NVIDIA(GPU-0): LG Electronics M2762DP (DFP-2): connected
[ 1597.016] (--) NVIDIA(GPU-0): LG Electronics M2762DP (DFP-2): Internal TMDS
[ 1597.016] (--) NVIDIA(GPU-0): LG Electronics M2762DP (DFP-2): 600.0 MHz maximum pixel clock
This is strange as I'd assume the second monitor would be `HDMI-1-0` but here it seems to be `DFP-2` despite that not showing up in the xrandr. However, I may just be misunderstanding what the log is saying.
Any help would be greatly appreciated! Thanks :)
Offline
Did you try activating it?
xrandr --output HDMI-1-0 --auto
Offline
Did you try activating it?
xrandr --output HDMI-1-0 --auto
When I do that my main screen goes black for a second and then it just returns the error
xrandr: Configure crtc 4 failed
Offline
But your main and active screen is the internal panel eDP-1, isn't?
How do y ou configure the system?
Did you
xrandr --setprovideroutputsource NVIDIA-G0 modesetting
(assuming you're running on the modesetting driver on the amd chip)
Offline
Yes, eDP-1 is the internal panel and my main and active screen.
I have not changed the default xrandr conf, as it worked with my laptop screen out of the box. I believe it is set up like that as the providers are
Providers: number : 2
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 1 associated providers: 1 name:modesetting
Provider 1: id: 0x277 cap: 0x2, Sink Output crtcs: 4 outputs: 4 associated providers: 1 name:NVIDIA-G0
and if I run that command nothing seems to happen.
Offline
Just that you see the providers doesn't mean they're wired and there's no "default" nor "xrandr conf".
Setting the output provider source will not do somthing visibly but you may
1. see different/more entries in "xrandr -q"
2. be able to activate the HDMI-1-0 ouput
Edit: see the note in https://wiki.archlinux.org/title/PRIME#Reverse_PRIME
Last edited by seth (2021-08-08 21:03:50)
Offline
I have set my /etc/X11/xorg.conf to
Section "ServerLayout"
Identifier "layout"
Screen 0 "amd"
Inactive "nvidia"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
EndSection
Section "Device"
Identifier "amd"
Driver "modesetting"
BusID "PCI:5:0:0"
EndSection
Section "Screen"
Identifier "amd"
Device "amd"
EndSection
and then ran the commands
xrandr --setprovideroutputsource NVIDIA-G0 modesetting
xrandr --output HDMI-1-0 --auto --above eDP-1
However I still just get the error
xrandr: Configure crtc 4 failed
I also can't seem to see any new entries in my xrandr output.
Offline
I meant the note that starts with
Reverse PRIME is not supported for AMDGPU + NVIDIA on NVIDIA driver prior to 470 beta.
Offline
I am having the same issue on my laptop (Dell G15 5515) with the same error result when I try to set up an external monitor, using the Nvidia 495.44 drivers. I have set up xorg.conf the same way (using the "amdgpu" driver instead of "modesetting" if that makes any difference), ran the xrandr --setprovideroutputsource command, and get the same symptoms: the display goes blank for a second and then the terminal displays:
xrandr: Configure crtc 4 failed
The logs in Xorg.0.log reports this at the same time:
[ 1221.335] randr: failed to create shared pixmap
[ 1221.335] (EE) NVIDIA(G0): Failed to configure Reverse PRIME on output HDMI-1-0.
and on a later attempt:
[ 1403.889] randr: failed to create shared pixmap
[ 1403.889] (EE) NVIDIA(G0): Failed to configure Reverse PRIME on output HDMI-1-0.
[ 1404.113] (EE) AMDGPU(0): drmmode_do_crtc_dpms cannot get last vblank counter
Everything works fine if I turn off hybrid graphics in the BIOS, which disables the iGPU, but the battery life is much better with hybrid mode, so I'm pretty motivated to try to get this working.
Offline
Apparently, much of this is resolved with the 5.16 kernel. I now have working backlight control and external monitors (through reverse PRIME) using AMDGPU + NVIDIA with the 495.46 driver and 5.16 kernel. I am now having an issue with VSync not working properly, such that any application that waits for sync on an external monitor only refreshes every second or two. Dragging it across to the internal display (even just an edge of it) makes it work again, which is a rather awkward workaround.
Offline