You are not logged in.

#26 2025-01-26 22:17:00

seth
Member
Registered: 2012-09-03
Posts: 60,889

Re: [SOLVED] NVIDIA black screen after upgrading GPU card

Remove that config, the nvidia driver doesn't care about PreferredMode and the rest is cruft.

"startx", switch back to a TTY and see whether "xrandr --display :0 --output HDMI-1 --mode 1920x1080" allows you to get an output.
Also post the xorg log of that run.

If this works
1. you probably need a better cable
2. /etc/X11/xorg.conf.d/20-nvidia.conf

Section "Device"
    Identifier "RTX3050"
    Driver  "nvidia"
    Option  "MetaModes" "HDMI-1: 1920x1080 +0+0"
EndSection

Edit: the GPU will probably keep at higher clockrates if you're using a multiscreen setup, but I'd run conky on that thing - and share a better picture.
https://bbs.archlinux.org/viewtopic.php … 6#p1932226
https://bbs.archlinux.org/viewtopic.php … 6#p1932596

Last edited by seth (2025-01-26 22:22:39)

Offline

#27 2025-01-30 19:35:35

dzusan
Member
Registered: 2012-05-18
Posts: 29

Re: [SOLVED] NVIDIA black screen after upgrading GPU card

It's ok, I already removed that configuration. It was just an experiment. I tried your xrandr command under secondary TTY with HDMI-1 specified, but it didn't work. Later I saw that in NVIDIA driver it's called HDMI-0.

Never mind, I have other inputs. I tried connecting the monitor via another short HDMI cable of 1.2 m and voila, the picture appeared! I usually use a 7 m cable because of my indoor environment.

Let me remind you, that 7m cable works good with 3050+nouveau, 3050+win10, 1050+nvidia. So, can I make that cable work with 3050+nvidia? Can I adjust the HDMI clockrates?

Below I have posted some information commands from this successful 3050+nvidia connection via 1.2m cable.

$ xrandr --verbose                                    
Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
DVI-D-0 disconnected primary (normal left inverted right x axis y axis)
        Identifier: 0x1bc
        Timestamp:  20907
        Subpixel:   unknown
        Clones:    
        CRTCs:      0 1 2 3
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        CTM:    1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
        CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
        BorderDimensions: 4 
                supported: 4
        Border: 0 0 0 0 
                range: (0, 65535)
        SignalFormat: TMDS 
                supported: TMDS
        ConnectorType: DVI-D 
        ConnectorNumber: 2 
        _ConnectorLocation: 2 
        non-desktop: 0 
                supported: 0, 1
HDMI-0 connected 2560x1440+0+0 (0x1be) normal (normal left inverted right x axis y axis) 708mm x 398mm
        Identifier: 0x1bd
        Timestamp:  20907
        Subpixel:   unknown
        Gamma:      1.0:1.0:1.0
        Brightness: 1.0
        Clones:    
        CRTC:       0
        CRTCs:      0 1 2 3
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        CTM:    1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
        CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
        EDID: 
                00ffffffffffff0009d1178045540000
                151a0103804728782e4180a7554ea025
                0c5054a56b8081c081008180a9c0b300
                d1c001010101565e00a0a0a029503020
                3500c48e2100001a000000ff00373547
                3033343330534c300a20000000fd0032
                4c1e581b000a202020202020000000fc
                0042656e5120424c333230300a200116
                020325f1509005040302011112131406
                0715161f202309070767030c00100038
                3683010000023a801871382d40582c45
                00c48e2100001f011d8018711c162058
                2c250055502100009f011d007251d01e
                206e28550055502100001e8c0ad08a20
                e02d10103e9600555021000018000000
                0000000000000000000000000000000a
        BorderDimensions: 4 
                supported: 4
        Border: 0 0 0 0 
                range: (0, 65535)
        SignalFormat: TMDS 
                supported: TMDS
        ConnectorType: HDMI 
        ConnectorNumber: 0 
        _ConnectorLocation: 0 
        non-desktop: 0 
                supported: 0, 1
  2560x1440 (0x1be) 241.500MHz +HSync -VSync *current +preferred
        h: width  2560 start 2608 end 2640 total 2720 skew    0 clock  88.79KHz
        v: height 1440 start 1443 end 1448 total 1481           clock  59.95Hz
  1920x1080 (0x1bf) 148.500MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz
  1920x1080 (0x1c0) 148.350MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.43KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  59.94Hz
  1920x1080 (0x1c1) 148.500MHz +HSync +VSync
        h: width  1920 start 2448 end 2492 total 2640 skew    0 clock  56.25KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  50.00Hz
  1920x1080 (0x1c2) 74.180MHz +HSync +VSync
        h: width  1920 start 2558 end 2602 total 2750 skew    0 clock  26.97KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  23.98Hz
  1680x1050 (0x1c3) 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
  1600x900 (0x1c4) 108.000MHz +HSync +VSync
        h: width  1600 start 1624 end 1704 total 1800 skew    0 clock  60.00KHz
        v: height  900 start  901 end  904 total 1000           clock  60.00Hz
  1280x1024 (0x1c5) 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 (0x1c6) 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
  1280x800 (0x1c7) 83.500MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock  49.70KHz
        v: height  800 start  803 end  809 total  831           clock  59.81Hz
  1280x720 (0x1c8) 74.250MHz +HSync +VSync
        h: width  1280 start 1390 end 1430 total 1650 skew    0 clock  45.00KHz
        v: height  720 start  725 end  730 total  750           clock  60.00Hz
  1280x720 (0x1c9) 74.180MHz +HSync +VSync
        h: width  1280 start 1390 end 1430 total 1650 skew    0 clock  44.96KHz
        v: height  720 start  725 end  730 total  750           clock  59.94Hz
  1280x720 (0x1ca) 74.250MHz +HSync +VSync
        h: width  1280 start 1720 end 1760 total 1980 skew    0 clock  37.50KHz
        v: height  720 start  725 end  730 total  750           clock  50.00Hz
  1024x768 (0x1cb) 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 (0x1cc) 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 (0x1cd) 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 (0x1ce) 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
  720x576 (0x1cf) 27.000MHz -HSync -VSync
        h: width   720 start  732 end  796 total  864 skew    0 clock  31.25KHz
        v: height  576 start  581 end  586 total  625           clock  50.00Hz
  720x480 (0x1d0) 27.000MHz -HSync -VSync
        h: width   720 start  736 end  798 total  858 skew    0 clock  31.47KHz
        v: height  480 start  489 end  495 total  525           clock  59.94Hz
  640x480 (0x1d1) 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 (0x1d2) 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
  640x480 (0x1d3) 25.170MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.46KHz
        v: height  480 start  490 end  492 total  525           clock  59.93Hz
DP-0 disconnected (normal left inverted right x axis y axis)
        Identifier: 0x1d4
        Timestamp:  20907
        Subpixel:   unknown
        Clones:    
        CRTCs:      0 1 2 3
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        CTM:    1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
        CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
        BorderDimensions: 4 
                supported: 4
        Border: 0 0 0 0 
                range: (0, 65535)
        SignalFormat: DisplayPort 
                supported: DisplayPort
        ConnectorType: DisplayPort 
        ConnectorNumber: 1 
        _ConnectorLocation: 1 
        non-desktop: 0 
                supported: 0, 1
DP-1 disconnected (normal left inverted right x axis y axis)
        Identifier: 0x1d5
        Timestamp:  20907
        Subpixel:   unknown
        Clones:    
        CRTCs:      0 1 2 3
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        CTM:    1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
        CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
        BorderDimensions: 4 
                supported: 4
        Border: 0 0 0 0 
                range: (0, 65535)
        SignalFormat: TMDS 
                supported: TMDS
        ConnectorType: DisplayPort 
        ConnectorNumber: 1 
        _ConnectorLocation: 1 
        non-desktop: 0 
                supported: 0, 1
$ get-edid | parse-edid
This is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
No EDID on bus 0
No EDID on bus 1
No EDID on bus 2
No EDID on bus 3
No EDID on bus 4
No EDID on bus 6
1 potential busses found: 5
256-byte EDID successfully retrieved from i2c bus 5
Looks like i2c was successful. Have a good day.
Checksum Correct

Section "Monitor"
        Identifier "BenQ BL3200"
        ModelName "BenQ BL3200"
        VendorName "BNQ"
        # Monitor Manufactured week 21 of 2016
        # EDID version 1.3
        # Digital Display
        DisplaySize 710 400
        Gamma 2.20
        Option "DPMS" "true"
        Horizsync 30-88
        VertRefresh 50-76
        # Maximum pixel clock is 270MHz
        #Not giving standard mode: 1280x720, 60Hz
        #Not giving standard mode: 1280x800, 60Hz
        #Not giving standard mode: 1280x1024, 60Hz
        #Not giving standard mode: 1600x900, 60Hz
        #Not giving standard mode: 1680x1050, 60Hz
        #Not giving standard mode: 1920x1080, 60Hz

        #Extension block found. Parsing...
        Modeline        "Mode 17" +hsync +vsync 
        Modeline        "Mode 0" +hsync -vsync 
        Modeline        "Mode 1" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
        Modeline        "Mode 2" 74.250 1920 2008 2052 2200 1080 1082 1087 1125 +hsync +vsync interlace
        Modeline        "Mode 3" 74.250 1280 1390 1420 1650 720 725 730 750 +hsync +vsync
        Modeline        "Mode 4" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
        Modeline        "Mode 5" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
        Modeline        "Mode 6" 25.200 640 656 752 800 480 490 492 525 -hsync -vsync
        Modeline        "Mode 7" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
        Modeline        "Mode 8" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
        Modeline        "Mode 9" 74.250 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
        Modeline        "Mode 10" 74.250 1920 2448 2492 2640 1080 1082 1089 1125 +hsync +vsync interlace
        Modeline        "Mode 11" 27.027 1440 1478 1602 1716 480 484 487 525 -hsync -vsync interlace
        Modeline        "Mode 12" 27.027 1440 1478 1602 1716 480 484 487 525 -hsync -vsync interlace
        Modeline        "Mode 13" 27.000 1440 1464 1590 1728 576 578 581 625 -hsync -vsync interlace
        Modeline        "Mode 14" 27.000 1440 1464 1590 1728 576 578 581 625 -hsync -vsync interlace
        Modeline        "Mode 15" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
        Modeline        "Mode 16" 74.250 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
        Modeline        "Mode 18" +hsync +vsync interlace
        Modeline        "Mode 19" +hsync +vsync 
        Modeline        "Mode 20" -hsync -vsync 
        Option "PreferredMode" "Mode 17"
EndSection

Mmm... Oscilloscope xy-art. I like it.

Offline

#28 2025-01-31 09:02:09

seth
Member
Registered: 2012-09-03
Posts: 60,889

Re: [SOLVED] NVIDIA black screen after upgrading GPU card

This is the cvt1 reduced blanking mode, you could try to add and run

◉ cvt12 2560 1440 60 -b
# 2560x1440 @ 60.000 Hz Reduced Blank (CVT) field rate 60.000 Hz; hsync: 88.860 kHz; pclk: 234.59 MHz
Modeline "2560x1440_60.00_rb2"  234.59  2560 2568 2600 2640  1440 1467 1475 1481 +hsync -vsync

or https://wiki.archlinux.org/title/NVIDIA … ubsampling

For the custom modeline you'll have to tell the driver that this is ok.
https://wiki.archlinux.org/title/Xrandr … esolutions

Section "Device"
    Identifier "RTX3050"
#    Option  "ModeValidation"        "NoEdidModes, AllowNonEdidModes" # this allows you to skip all edid modes and add your config below
    Option  "ModeValidation"        "AllowNonEdidModes"
    Option  "MetaModes" "HDMI-0: 2560x1440_60.00_rb2 +0+0"
EndSection

Offline

#29 2025-01-31 10:36:10

dzusan
Member
Registered: 2012-05-18
Posts: 29

Re: [SOLVED] NVIDIA black screen after upgrading GPU card

I should add these 2 files, right?

/etc/X11/xorg.conf.d/10-bnq.conf

Section "Monitor"
        Identifier "BenQ BL3200"
        ModelName "BenQ BL3200"
        VendorName "BNQ"
        Modeline "2560x1440_60.00_rb2"  234.59  2560 2568 2600 2640  1440 1467 1475 1481 +hsync -vsync
        Option "PreferredMode" "2560x1440_60.00_rb2"
EndSection

/etc/X11/xorg.conf.d/20-nvidia.conf

Section "Device"
    Identifier "RTX3050"
#    Option  "ModeValidation"        "NoEdidModes, AllowNonEdidModes" # this allows you to skip all edid modes and add your config below
    Option  "ModeValidation"        "AllowNonEdidModes"
    Option  "MetaModes" "HDMI-0: 2560x1440_60.00_rb2 +0+0"
EndSection

But how to add this mode for virtual TTY?

Offline

#30 2025-02-02 19:56:00

dzusan
Member
Registered: 2012-05-18
Posts: 29

Re: [SOLVED] NVIDIA black screen after upgrading GPU card

I decided to set VT resolution via kernel option like this

video=HDMI-A-1:2560x1440MR@60
video=HDMI-A-1:2560x1440M@59.95
video=HDMI-A-1:2560x1440M@60m

But none of these options worked. And I stay on the

video=HDMI-A-1:1920x1080@60

Then I added 2 files described above to /etc/X11/xorg.conf.d, but got a black screen with the following messages in the Xorg.0.log

[   114.065] (II) Applying OutputClass "nvidia" options to /dev/dri/card1
[   114.065] (**) NVIDIA(0): Option "ModeValidation" "AllowNonEdidModes"
[   114.065] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[   114.065] (**) NVIDIA(0): Option "MetaModes" "HDMI-0: 2560x1440_60.00_rb2 +0+0"
[   114.065] (**) NVIDIA(0): Enabling 2D acceleration
...
[   114.255] (**) NVIDIA(GPU-0): Mode Validation Overrides for BenQ BL3200 (DFP-1):
[   114.255] (**) NVIDIA(GPU-0):     AllowNonEdidModes
[   114.406] (WW) NVIDIA(0): No valid modes for "HDMI-0:2560x1440_60.00_rb2+0+0";
[   114.406] (WW) NVIDIA(0):     removing.
[   114.406] (WW) NVIDIA(0): 
[   114.406] (WW) NVIDIA(0): Unable to validate any modes; falling back to the default mode
[   114.406] (WW) NVIDIA(0):     "nvidia-auto-select".
[   114.406] (WW) NVIDIA(0): 
[   114.411] (II) NVIDIA(0): Validated MetaModes:
[   114.411] (II) NVIDIA(0):     "DFP-1:nvidia-auto-select"

Then I left only one file /etc/X11/xorg.conf.d/20-nvidia.conf

Section "Device"
    Identifier "RTX3050"
    Option  "ModeValidation"        "NoEdidModes, AllowNonEdidModes"
    Option  "MetaModes" "HDMI-0: 2560x1440_60.00_rb2 +0+0"
EndSection

and after watching black screen for about 20 seconds I got X at a awful resolution something like 800x600. I tried to set custom clocks manually

xrandr --newmode "2560x1440_60.00_rb2"  234.59  2560 2568 2600 2640  1440 1467 1475 1481 +hsync -vsync
xrandr --addmode HDMI-0 "2560x1440_60.00_rb2"
xrandr --output HDMI-0 --mode "2560x1440_60.00_rb2"

but a black screen appeared again.

So all that remains is to try other cables. My cable turned out to be 7.5 meters long and not 7 as I wrote earlier. Finally I got another 8m expensive cable and 7m cheap cable. I tried both. The expensive 8m cable - black screen as always, cheap 7m cable - worked flawlessly. Alright the matter was half a meter long.

After a couple of hours I noticed horizontal black lines on the screen, 1 pixel thick. I thought, "oh no not again". I reconnected the cable and fixed it with electrical tape. The lines disappeared and I hope I never see them again.

I think we can close this topic. If the problem happens again, I'll create a new one.

Offline

Board footer

Powered by FluxBB