I’ve been having issues with using multiple monitors. I’m not quite sure which logs I should provide so please request some and I will deliver.
My situation:
my system has an amd ryzen 5 5600x and an NVIDIA RTX 3070.
I’ve had problem with running wayland for a while now but I was content just using x11 for now hoping that a future update might fix things. Today I did an update through the software application and after a reboot I managed to get to the login screen and from then on, no matter what I do, I can’t log in, my screens would just turn black and go to sleep in a couple of seconds, sometimes waking and returning to sleep. Both Gnome and Gnome with x11 options didn’t make a difference. I also tried manually starting a wayland session in the ctrl+alt+f3 login, it didn’t work (just black screen for a bit then back to cli). At the moment everything seems to be updated to the most recent version, sudo dnf upgrade --refresh claims everything is up to date so I am inclined to believe it.
my monitor setup is a Gigabyte m28q (I think) and the other one is a Samsung Odyssey g9 oled. Both work perfectly fine individually but when I plug in both everything goes black. I’ve tried resetting gnome settings to default using dconf reset -f /org/gnome. I didn’t notice any changes. I’ve looked around this forum and haven’t found anything that describes my situation. Does anyone know what I should do? Thanks!
Have you installed the nvidia drivers from rpmfusion?
If not then consider this.
Most laptops with dual GPUs have the external port connected to the dGPU (in this case nvidia) and the built in screen connected to the iGPU.
Nouveau (the default open source nvidia driver) is not fully capable of managing any nvidia GPU and that is more exacerbated with the newer versions.
In almost all cases where your symptoms were reported the installation of the nvidia drivers seemed to have solved the issue.
Drivers can be installed by first verifying that the rpmfusion repo is enabled with dnf repolist and checking the output to see if the repo rpmfusion-nonfree-nvidia-driver is in the list shown. If not then that repo can be enabled by using the gnome software app and the “hamburger” menu in the upper right corner to enable the 3rd party repo. Once you are sure that repo is enabled then you can install the nvidia driver by the following command. sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
Wait 5 minutes then reboot and as long as secure boot is disabled the drivers should load.
If secure boot is enabled it may prevent the nvidia driver from loading until the following steps are completed.
perform the steps identified in /usr/share/doc/akmods/README.secureboot
Those steps will require the use of sudo with each command.
remove the unsigned drivers with sudo dnf remove kmod-nvidia*
rebuild the drivers which will now be signed with sudo akmods --force
reboot and the driver should now load with secure boot either enabled or disabled.
I forgot to mention that I’m talking about a PC I built myself. I have the non free nvidia drivers installed. I tried installing what you suggested anyway and noticed that at least one of them was either out of date or not installed. After rebooting, nothing changed. Secure boot is disabled in the bios. Do you know of anything else I might be missing? Thanks again for your help .
Please post the output of the following commands, using the preformatted text tags as shown so it retains the formatting as seen on-screen.
```
text pasted here
```
lsmod | grep -iE "nvidia|nouveau", dnf list installed \*nvidia\*, mokutil --sb-state, and inxi -Fzxx
You may need to install inxi first.
The inxi output seems to indicate you are using one hdmi port out of 2 and one out of 3 DP ports.
What happens if you switch things around and use different ports?
The indications are you are using HDMI 2 and DP3. Maybe using HDMI 1 would have differing results.
Also the cables / adapters used may matter. Several of the DP to HDMI adapters seem problematic to me.
Hi, for clarification. The commands executed in the last message where done with only one display plugged in. Below are the same commands executed while both displays were plugged in. I did the commands in the ctrl+alt+f3 prompt.
Also. I would like to mention that I have a thunderbolt 4 dock plugged into a usb-c (non thunderbolt, non display) port on my pc. I use it as a normal usb c dock (ethernet, extra usb a and c ports, sd card…) with this pc. Normally there is also a displayport cable connected through that dock. Unplugging the cable however didn’t change anything so I’m not sure if that could be the problem. I just wanted to mention it.
All the active displays are connected straight from the graphics card from the correct port (dp to dp and hdmi to hdmi (no adapting)) to my displays.
The xrandr command outputs cannot open display (or something). I’m guessing that is normal. When I run it with only one of my displays plugged in, in an x11 session this is the output: xrandr:
Screen 0: minimum 8 x 8, current 5120 x 1440, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected primary 5120x1440+0+0 (normal left inverted right x axis y axis) 1mm x 1mm
3840x1080 120.00 + 240.00 60.00
5120x1440 240.00* 120.00 60.00
3840x2160 59.94 50.00
2560x1440 239.97 120.00 59.95
1920x1080 240.00 119.88 59.94 50.00
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1280x1024 60.02
1280x800 59.81
1280x720 60.00 59.94
800x600 60.32
720x480 59.94
640x480 75.00 59.94
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
Not sure if it is useful, as the other display is not plugged in at all.
Those are very interesting since the resolutions reported are far from being synced. It would appear that you possibly have one 4k monitor (the Gigabyte) and one HD (the Samsung) and for some reason they are not properly displaying. I suspect that both are truly HD (1920x1080) and the way they are configured is simply a glitch in the setup.
I could suggest that you enter the gnome settings display panel and delete the config for all monitors shown then log out and back in to see if that may fix it. Do the same with first one monitor then the other to clear out the configs for both.
Also try setting the monitors as mirrored until the glitches are resolved.
The resolutions of my monitors are:
Gigabyte m28u: 3840 x 2160.
Samsung Odyssey g9 OLED: 5120 x 1440.
I would like to try delete the config for the monitors, how would I go about doing this? I can’t seem to find anything other then the I can see the desktop file in “/usr/share/applications”. Is it that file I should delete? Or what are you suggesting I delete?
You shouldn’t need to edit any files under /usr/share/applications. There is a “monitors.xml” file under ~/.config that you might want to make a backup copy of and experiment with.
Try setting the refresh rate to 60 on both monitors. At the resolutions you list that is the only refresh rate that matches both. It should not be required but may be a starting point to iron this out.
Okay, now it seems like we’re getting somewhere. I made a backup of the monitors.xml file and then removed all the configurations in the active one, then logged out and back in. Now I made it into the os with both monitors. Now however all the resolutions and refresh rates were out of wack.
So I set my odyssey resolution to 5120x1440 at 240Hz and the other screen at 4k 60. Everything seems fine. When I set the second monitor to 4k144 however the problem I had before shows back up. I can just wait for 5-10 seconds and it will revert to the previous setting if I don’t touch anything. Would this be a possible bandwidth issue or something? I know that 5120x1440 is not easy to handle, and adding another 4k144 on top might be unstable. Everything did work in the past though so I’m just guessing. Anything else I can try to change so that I can use the monitor to its fullest?
edit:
In addition. I tried playing around a little. If I set the 5120x1440 monitor to 3840x1080 I can set the 4k monitor to 144Hz. I can’t figure out what’s going wrong.
edit 2:
I can also get up to 5120x1440 120 Hz. While the other one is at max (3840x2160 144Hz). It really seems like it just doesn’t want to use both monitors at max settings. Any ideas?
That seems unlikely if your monitors are connected directly to your video card. However, it looks like your video card is PCIe Gen 4. If you’ve put it in a PCIe Gen 3 (or Gen 2) slot, the card might be exceeding the power or bandwidth limitations of the PCI slot when trying to drive those monitors at that high of a resolution and refresh rate.
This line may tell the story.
Some GPUs will only support 4k at a lower refresh rate. If that is the case then you may be limited on that one monitor to the 60 Hz refresh while the other may be able to do a full 240 Hz refresh.