You are not logged in.

#1 2021-08-08 14:16:52

Alphabeit
Member
Registered: 2021-08-08
Posts: 10

Problem with HDMI and DP Screens

Hello together, 

First, syr for my English, is not the best, I know.
I not new in in Linux, but I can't me call more as a jung amateur.

I have an strange problem with my screens, both screens. If i boot my system, Linux use just one of my monitor and the other can't be use more, for the session. 
Sometime, the other screen will recognized, sometime not. 
But, if I pull out one of the cables, and boot with only one screen, the other can I connect after the login and both screens works together.

One is connected over HDMI, the others over DP.

I have try it with Arch and the newest kernal, with Manjaro and the lts Kernal, with Garuda and the zen Kernal and Ubuntu with Wayland, not X. 
Aktually I am back on Arch. I use Gnome, with Wayland and X (xwayland) and boot my system with systemctl-boot. Installed is the newest Nvidia-Driver. My CPU (AMD 2600X) have no iGPU, for this I have a Nvidia 2060. My GPU have just one HDMI and one DP Slot. It give still another slot, but this is a DVI for my screens a liddel-bit to old. 

The crazy is, xrandr show my 2 DP Slots, but I don't have so much. Here I show you...

[alphabeit@TowerAlpha ~]$ xrandr
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 621mm x 341mm
   3840x2160     60.00*+  59.94    50.00    30.00    29.97    25.00    23.98  
   2560x1600     59.97  
   2560x1440     59.95  
   1920x1080     60.00    59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1440x576      50.00  
   1440x480      59.94  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00    59.94    50.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  
   640x350       70.07  
DP-0 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 621mm x 341mm
   3840x2160     60.00*+  30.00    29.97  
   2560x1600     59.97  
   2560x1440     59.95  
   1920x1080     60.00    59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1440x576      50.00  
   1440x480      59.94  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00    59.94    50.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  
   640x350       70.07  
DP-1 disconnected (normal left inverted right x axis y axis)
[alphabeit@TowerAlpha ~]$ 

I have try 
... useing xrandr,
... blacklist noveau, 
... change xorg.config,
... useing nvidia-xsettings,
... useing Xfce, Lxqt, KDM, Gnome,
... replace the kabels...
... and a liddel-bit more...

I have a idea, for a solution. If I boot with just one screen and connect the another after I be on the desktop...
But evry time to put-out a cable, is no solution for me. If this possible with one/two line code in the right file, it will be a solution. But I don't have any idea, what and where I must write. 

In advance, thank for you help.

Last edited by Alphabeit (2021-08-08 17:00:52)


As long as it works!

Offline

#2 2021-08-08 14:24:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 14,057

Re: Problem with HDMI and DP Screens

Please use

[code]code tags[/code]

for pasting outputs.

Sounds like the problem that can happen with the early loading race, try configuring https://wiki.archlinux.org/title/NVIDIA … de_setting the important part here is adding the kernel modules to your  mkinitcpio.conf (and setting up the hook) so that updates of the nvidia package trigger a relevant rebuild)

Offline

#3 2021-08-08 16:59:18

Alphabeit
Member
Registered: 2021-08-08
Posts: 10

Re: Problem with HDMI and DP Screens

I have the DRM (Direct Rendering Manager) enabled, by adding the this code (nvidia-drm.modeset=1) in the kernal parameter.

titel   Arch Linux
linux   /vmlinuz-linux
initrd  /initramfs-linux.img
options root=LABEL=ROOT rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8 nvidia-drm.modeset=1

I have me look mkinitcpio.conf, too and include in the line MODULES=() this (nvidia, nvidia_modeset, nvidia_uvm and nvidia_drm).

# 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=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
...

But both has not work. sad

It is badder, I have play a littel with the nvidia x-server seetings (GUI-Application) and now, the HDMI don't show anything..
Before, the HDMI only work, if I putting the DP out the slot. Now he don't work, no matter what I do...


As long as it works!

Offline

#4 2021-08-08 17:34:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 14,057

Re: Problem with HDMI and DP Screens

Did you run

mkinitcpio -P

after adding the modules to that line? You'll also need to do that for the necessary adjustment to actually work.

If you created a xorg config file with nvidia-settings remove the config it created (likely /etc/X11/xorg.conf ) and try to reboot again.

Should it still not work, post your /var/log/Xorg.0.log as well as

sudo journalctl -b

after booting: https://wiki.archlinux.org/title/List_o … n_services

Offline

#5 2021-08-09 19:16:21

Alphabeit
Member
Registered: 2021-08-08
Posts: 10

Re: Problem with HDMI and DP Screens

Yes, of course, I have run

 sudo mkinitcpio -P 

after adding the modules in the line.

Now, I have remove the xorg.conf file bevor to use

 sudo nvidia-xconfig 

but it didn't help me, too.

So, I have use

sudo journalctl -b |& curl -F 'f:1=<-' ix.io 
sudo cat /var/log/Xorg.0.log |& curl -F 'f:1=<-' ix.io 

to upload the information, after you askd.

journalctl -b: http://ix.io/3vuF
cat /var/log/Xorg.0.log: http://ix.io/3vuO


As long as it works!

Offline

#6 2021-08-09 19:43:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 14,057

Re: Problem with HDMI and DP Screens

You do not need any configuration, at all. Remove /etc/X11/xorg.conf and just leave it be and don't replace it with anything.

That said in these outputs everything appears to be detected as needed and your session logs in and then the session dies. Did any of your previous attempts modify your .profile or /etc/profile or so? In general you have a lot of stuff running that I'd not expect to be generally around and the explicit setting of an init and lang parameters on the kernel command line read weird as well.

Offline

#7 2021-08-10 04:43:20

Alphabeit
Member
Registered: 2021-08-08
Posts: 10

Re: Problem with HDMI and DP Screens

I have remove /etc/X11/xorg.conf, the etc/X11/xorg.conf.backup, too, without to recover the file with nvidia-xconfig. The screen keep black.

No, i have do nothings an the .profile files, at least not on purpose .

My system is fresh installed, after the manual in the wiki (german version).


As long as it works!

Offline

#8 2021-08-13 04:16:53

Alphabeit
Member
Registered: 2021-08-08
Posts: 10

Re: Problem with HDMI and DP Screens

I have me remember, that I installed Manajro, ago a half year. To this time, both screens have work on linux.
I have try to downgrade my nvidia-videodriver but I do not find a older package. Can someone explain my, how I downgrade the nvida-driver and where I find the older versions?


As long as it works!

Offline

#9 2021-08-13 06:48:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 14,057

Re: Problem with HDMI and DP Screens

https://wiki.archlinux.org/title/Arch_Linux_Archive - note that to not run into issues with the kernel if you are going to downgrade here, you should install linux-headers (or rather, the headers for whatever kernels you are actively intending to use) and then downgrade the corresponding packages of nvidia-dkms, nvidia-utils and lib32-nvidia-utils.

I'm still not convinced that this is an actual problem. Can you share these outputs again, now that your config should be sane?

Offline

#10 2021-08-14 14:02:44

Alphabeit
Member
Registered: 2021-08-08
Posts: 10

Re: Problem with HDMI and DP Screens

So I have try to downgrade the nvidia driver with dkms, with utils, with seetings, on the version 465. It isn't a solution my problem.

Here is the upload on the information, after you asked.

journalctl -b: http://ix.io/3vZB
cat /var/log/Xorg.0.log: http://ix.io/3vuO


As long as it works!

Offline

#11 2021-09-03 19:50:26

Alphabeit
Member
Registered: 2021-08-08
Posts: 10

Re: Problem with HDMI and DP Screens

I have fix my problem! More or less...
I can use both screens, but can boot the HDMI on just 30Hz. After the login, on the Desktop, I can set the monitor back on 60Hz. This, or I boot with both on 60Hz, and set the HDMI, after the login, on 30Hz and than back to 60Hz....
It just works! Somehow...

I don't understund, why I can not boot with 2 x 4K 60Hz Screens, without to get a problem....

Now I have two questions....
First, how I make a skrip, that automatic (or after a dobbelcklick) Shell Commands start, like a command in the Terminal? If I need a programmlanguage, I use Python.
Second, how I close this here, bzw. set it on solution?


As long as it works!

Offline

Board footer

Powered by FluxBB