Nvidia+modeset: Can't set 4K@60Hz: HDMI max TMDS frequency 300000KHz

Bug #1870637 reported by Paul Berkx
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-435 (Ubuntu)
Expired
Undecided
Unassigned
nvidia-graphics-drivers-440 (Ubuntu)
Expired
Undecided
Unassigned
xorg-server (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

When i do get it to work, on reboot it'll be back to fullhd.
this happens on nvidia 440, 435 and 390.

On X.Org X server it does work.

Graphics card: nVidia GT1030
Amp: Onkyo TX-NR646

On 19.10 there are no problems.
A couple of weeks ago i tested a daily build and there were no troubles also, so this is new.

My favourite setting: 3840x2160 200% 60hz.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
Uname: Linux 5.4.0-21-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
.proc.driver.nvidia.gpus.0000.10.00.0: Error: [Errno 21] Is een map: '/proc/driver/nvidia/gpus/0000:10:00.0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 435.21 Sun Aug 25 08:17:57 CDT 2019
 GCC version: gcc version 9.3.0 (Ubuntu 9.3.0-8ubuntu1)
ApportVersion: 2.20.11-0ubuntu22
Architecture: amd64
BootLog: Error: [Errno 13] Toegang geweigerd: '/var/log/boot.log'
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Sat Apr 4 01:02:09 2020
DistUpgraded: Fresh install
DistroCodename: focal
DistroVariant: ubuntu
DkmsStatus: nvidia, 435.21, 5.4.0-21-generic, x86_64: installed
ExtraDebuggingInterest: Yes, if not too technical
GraphicsCard:
 NVIDIA Corporation GP108 [GeForce GT 1030] [10de:1d01] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: ZOTAC International (MCO) Ltd. GP108 [GeForce GT 1030] [19da:2476]
InstallationDate: Installed on 2020-04-03 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200402)
MachineType: Micro-Star International Co., Ltd. MS-7B84
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-21-generic root=UUID=99bd1cce-b30c-44fb-8ead-90317474c33f ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/03/2019
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2.D0
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: B450M PRO-M2 (MS-7B84)
dmi.board.vendor: Micro-Star International Co., Ltd.
dmi.board.version: 1.0
dmi.chassis.asset.tag: To be filled by O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Micro-Star International Co., Ltd.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr2.D0:bd12/03/2019:svnMicro-StarInternationalCo.,Ltd.:pnMS-7B84:pvr1.0:rvnMicro-StarInternationalCo.,Ltd.:rnB450MPRO-M2(MS-7B84):rvr1.0:cvnMicro-StarInternationalCo.,Ltd.:ct3:cvr1.0:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: MS-7B84
dmi.product.sku: To be filled by O.E.M.
dmi.product.version: 1.0
dmi.sys.vendor: Micro-Star International Co., Ltd.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.100-4
version.libgl1-mesa-dri: libgl1-mesa-dri 20.0.2-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.20.7-2ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20190815-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

Revision history for this message
Paul Berkx (pbrk) wrote :
affects: ubuntu → xorg (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

[ 18.036] (II) modeset(0): Not using default mode "3840x2160" (bad mode clock/interlace/doublescan)

affects: xorg (Ubuntu) → xorg-server (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I can see two issues:

1. The 4K monitor is not plugged into the Nvidia card. Is that right?

2. The Radeon GPU it is plugged into is refusing some modes (because they're out of range?):

[ 18.036] (--) modeset(0): HDMI max TMDS frequency 300000KHz
[ 18.036] (II) modeset(0): Not using default mode "3840x2160" (bad mode clock/interlace/doublescan)
[ 18.036] (II) modeset(0): Not using default mode "2560x1440" (bad mode clock/interlace/doublescan)

So make sure the monitor is plugged into the correct HDMI port. And if it still doesn't work then please try a different HDMI cable. You will need an HDMI 2.0 cable to achieve those modes.

Changed in xorg-server (Ubuntu):
status: New → Incomplete
Revision history for this message
Paul Berkx (pbrk) wrote :

Hi,

On the videocard a premium hdmi2.0 is plugged in which connects to my hdmi2.0 Onkyo TX-NR646 amp, which acts as a switch for my windows pc and my ubuntu pc's.

The Onkyo hdmi2.0 out is connected to my Philips 49inch 4K TV.
I will try to connect ubuntu 20.04 to my tv directly and report back here this evening.
This however is no solution for me since i have 1 4K screen and two pc's and want my amp to act as the switch for both pc's

Revision history for this message
Paul Berkx (pbrk) wrote :

So although everything is working fine in windows and ubuntu 19.10;

i swapped my onkyo receiver for a newer Denon hdmi 2.0 receiver - the AVR-X1400H; same issue.
i connected to pc directly to the screen; same issue
i switched to a different brand of premium hdmi 2.0 cable; same issue.

i've also installed the ubuntu budgie flavor beta; same issue.

I think it's pretty safe to say, this not a local hardware issue at this point.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Weird. The XorgLog shows that HDMI is talking to the wrong driver so I assumed that meant it is plugged into the wrong GPU...

Does your computer not have multiple HDMI ports? If not then it looks like there's a problem with how the Nvidia driver is installed here.

- or -

The modeset driver might be refusing high bandwidth modes prematurely?

[ 18.036] (--) modeset(0): HDMI max TMDS frequency 300000KHz
[ 18.036] (II) modeset(0): Not using default mode "3840x2160" (bad mode clock/interlace/doublescan)
[ 18.036] (II) modeset(0): Not using default mode "2560x1440" (bad mode clock/interlace/doublescan)

Changed in xorg-server (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Possibly related: bug 1870740

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Can you please attach a photo showing where your HDMI cable is plugged into the computer?

As far as I can tell, if it's plugged into the motherboard then this would not be a bug. It looks like that model of motherboard does not support 4K at 60Hz, but is limited to 24Hz or 30Hz.

Changed in nvidia-graphics-drivers-435 (Ubuntu):
status: New → Incomplete
Changed in xorg-server (Ubuntu):
status: New → Incomplete
Revision history for this message
Paul Berkx (pbrk) wrote :

my nVidia Zotac grahpics card GT1030 has only one hdmi2.0 port.
I do not use onboard graphics!

Revision history for this message
Paul Berkx (pbrk) wrote :

I bought the 1030GT just because of the hdmi2.0 4K res @60hz

Revision history for this message
Paul Berkx (pbrk) wrote :

> Does your computer not have multiple HDMI ports? If not then it looks like there's a problem with how the Nvidia driver is installed here.

Yes it does have multiple hdmi ports, i currently use a ryzen 2200g cpu and yes the problem is only there with the nvidia drivers (all three of 'm).

Nouveau works fine.

When i set the nvidia driver and than go into screen settings and try to configure 4K @60hz @200% and hit apply i only get 1080p, it never switches to 4K.
Below 30hz @100% it does switch to 4K, but after reboot it will be back to 1080p

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks.

Certainly sounds like a software bug if 'modeset' is being used while the nvidia driver is installed.

summary: - 20.04beta: Cannot set 3840x2160
+ Nvidia driver installed but Xorg uses modeset on the Nvidia card.
Changed in nvidia-graphics-drivers-435 (Ubuntu):
status: Incomplete → New
Changed in xorg-server (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Nvidia driver installed but Xorg uses modeset on the Nvidia card.

Unless the nvidia kernel driver is in drm modesetting mode, and I can't see where that was turned on?...

summary: - Nvidia driver installed but Xorg uses modeset on the Nvidia card.
+ Nvidia+modeset: Can't set 4K@60Hz: HDMI max TMDS frequency 300000KHz
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-435 (Ubuntu):
status: New → Confirmed
Changed in xorg-server (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-440 (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Since you seem to have working DRM support on the card you wish to use, please try selecting "Ubuntu on Wayland" on the login screen.

Revision history for this message
Alberto Milone (albertomilone) wrote :

How did you install the NVIDIA driver? While I can see the kernel modules being loaded, I don't see the NVIDIA libraries in the X log.

Revision history for this message
Paul Berkx (pbrk) wrote :

The first time i was able to install third party propietary software through the ubuntu installation process. (So nvidia was enabled after the ubuntu installation process if i remeber correctly.

Today I installed the nvidia driver through Updatemanagement console, because
currently the ubuntu installer crashes if i set it to install propietary software, this appearently already has been reported.

I have made a second thread (to get new report files to you, since i swapped my 2200G with a ryzen 5 2600. https://bugs.launchpad.net/ubuntu/+bug/1871422 ) - i will now try to login with wayland

Revision history for this message
Paul Berkx (pbrk) wrote :

I don't see an option at the login screen to switch to wayland, how do i do this?

Revision history for this message
Paul Berkx (pbrk) wrote :

I found the wayland option on the login screen and i enabled it,
than i selected the nvidia 440 driver, rebooted and i was back to full hd, not being able to get 4K @60

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I forgot to mention; if the Nvidia driver is in a mode that will support Wayland we still hide the Wayland option. To unhide it you need to comment out the last line of:

  /usr/lib/udev/rules.d/61-gdm.rules

Although that will reintroduce bug 1705369 so you might need to also use one of the other workarounds mentioned in that bug.

Revision history for this message
Paul Berkx (pbrk) wrote :

I've been at it for just about one year now.
I can only hope you guys now have the information it takes to solve this.

I'm done swapping components, wracked a B450 motherboard and or Ryzen 2200g in the process.

I was thinking about that ryzen 7 3700X anyways, so not that big of a disaster.
But i hate the thought of maybe having to switch from 19.04 to 18.04 instead of 20.04.

Good luck, Paul

Webmaster https://starthemel.nl

Revision history for this message
Paul Berkx (pbrk) wrote :

I just downloaded a daily build (12-04-2020)
And am very happy to report 4K 60 is working flawless on this version on the nvidia driver.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes I think this is some kind of failure to install the Nvidia driver correctly, such that the Xorg config was missing. It should work perfectly if installed from the official Ubuntu .deb files or via the GUI.

Unless the problem happens reliably I think this bug should expire.

Changed in nvidia-graphics-drivers-435 (Ubuntu):
status: Confirmed → Incomplete
Changed in nvidia-graphics-drivers-440 (Ubuntu):
status: Confirmed → Incomplete
Changed in xorg-server (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xorg-server (Ubuntu) because there has been no activity for 60 days.]

Changed in xorg-server (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for nvidia-graphics-drivers-435 (Ubuntu) because there has been no activity for 60 days.]

Changed in nvidia-graphics-drivers-435 (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for nvidia-graphics-drivers-440 (Ubuntu) because there has been no activity for 60 days.]

Changed in nvidia-graphics-drivers-440 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.