Ubuntu, GeForce GTX 1660Ti, problem with connection to external monitor through DP, HDMI

Hello,

I have an HP OMEN Ryzen 7 4800 with a GeForce GTX 1660Ti running a dual boot with Windows 10 and Linux - Ubuntu 20.04.2 LTS with 5.14.0-1020-oem kernel.

I started the following thread some time ago:

My problem was solved back then, but one day out of the blue, without doing anything that could change the “working” configuration (to my knowledge), upon booting my system up my laptop’s screen looked like static TV black and white noise.

After searching the issue online I found that kernel 5.13 was responsible for this bug.

After switching to kernel 5.11 or 5.14 the main screen was working again.

The problem is that I could not make my external monitor work anymore.

It worked with kernel 5.13(only the external monitor)until I switched my nvidia prime options to “Power saving mode (Intel)” trying to solve the problem.

I could not make anything work so far, even though I tried to follow each step of the solution of my previous thread.

Kernel: 5.14.0-1020-oem

lspci -k | grep -A 2 -i "VGA" shows:

01:00.0 VGA compatible controller: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1)
	DeviceName: NVIDIA Graphics Device
	Subsystem: Hewlett-Packard Company TU116M [GeForce GTX 1660 Ti Mobile]
--
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6)
	DeviceName:  Onboard IGD
	Subsystem: Hewlett-Packard Company Renoir

lshw -C video shows:

  *-display UNCLAIMED       
       description: VGA compatible controller
       product: TU116M [GeForce GTX 1660 Ti Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller cap_list
       configuration: latency=0
       resources: memory:fb000000-fbffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:f000(size=128) memory:fc000000-fc07ffff
  *-display
       description: VGA compatible controller
       product: Renoir
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:06:00.0
       version: c6
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi msix vga_controller bus_master cap_list
       configuration: driver=amdgpu latency=0
       resources: irq:52 memory:d0000000-dfffffff memory:e0000000-e01fffff ioport:c000(size=256) memory:fc500000-fc57ffff

nvidia-smi shows:

NVIDIA-SMI has failed because it couldnt communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

nvidia-settings shows:

ERROR: NVIDIA driver is not loaded


ERROR: Unable to load info from any available system


(nvidia-settings:8036): GLib-GObject-CRITICAL **: 22:01:58.439: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 22:01:58.445: PRIME: No offloading required. Abort
** Message: 22:01:58.445: PRIME: is it supported? no

And also loads a blank NVIDIA X Server Settings tab.

dkms status shows:

nvidia, 460.91.03, 5.13.0-27-generic, x86_64: installed

Lastly, I have attached the output of nvidia-bug-report.sh :
nvidia-bug-report.log.gz (145.7 KB)

I would appreciate any help.

Thanks in advance.

Please try reinstalling the kernel headers
sudo apt install linux-headers-$(uname -r)

sudo apt install linux-headers-$(uname -r) returns:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-5.14.0-1020-oem is already the newest version (5.14.0-1020.22).
linux-headers-5.14.0-1020-oem set to manually installed.
The following package was automatically installed and is no longer required:
  python3-crcmod
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.

The command for re-installing would be: sudo apt reinstall
But yeah, you already have the headers installed.
So you would need to dkms install the driver (not sure up to which kernel the 460 driver has support for) for your current kernel. It is installed for 5.13.0-27 - but that one is buggy, so try it for the 5.14 one.
And why not go with the current production release?
sudo apt install nvidia-driver-470

@Mart Actually the 460 driver for 5.13.0-27 was working just fine. The bug was with the laptop’s main screen which was using the AMD card. The external monitor was using NVIDIA connected through the DP.

But I tried to install the 470 driver with sudo apt install nvidia-driver-470 but something is wrong here too:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-driver-470 : Depends: libnvidia-gl-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-decode-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-encode-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: nvidia-utils-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: xserver-xorg-video-nvidia-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-cfg1-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-ifr1-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-fbc1-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Recommends: libnvidia-compute-470:i386 (= 470.86-0ubuntu0.20.04.2)
                     Recommends: libnvidia-decode-470:i386 (= 470.86-0ubuntu0.20.04.2)
                     Recommends: libnvidia-encode-470:i386 (= 470.86-0ubuntu0.20.04.2)
                     Recommends: libnvidia-ifr1-470:i386 (= 470.86-0ubuntu0.20.04.2)
                     Recommends: libnvidia-fbc1-470:i386 (= 470.86-0ubuntu0.20.04.2)
                     Recommends: libnvidia-gl-470:i386 (= 470.86-0ubuntu0.20.04.2)
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:2
E: Unable to correct problems, you have held broken packages.

Fix that first hand, otherwise apt won’t do anything.
You could try: sudo apt --fix-broken install

I tried sudo apt --fix-broken install and then again sudo apt install nvidia-driver-470 but it did not work once again.

Without terminal output, it’s just a guessing game for those willing to help you. So please provide helpful info.

You are right I thought it was the exact same output like before that’s why I didn’t provided the terminal output.
It is slightly different though. Here it is:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-driver-470 : Depends: libnvidia-gl-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-decode-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-encode-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: nvidia-utils-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: xserver-xorg-video-nvidia-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-cfg1-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-ifr1-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-fbc1-470 (= 470.86-0ubuntu0.20.04.2) but it is not going to be installed
                     Recommends: libnvidia-compute-470:i386 (= 470.86-0ubuntu0.20.04.2)
                     Recommends: libnvidia-decode-470:i386 (= 470.86-0ubuntu0.20.04.2)
                     Recommends: libnvidia-encode-470:i386 (= 470.86-0ubuntu0.20.04.2)
                     Recommends: libnvidia-ifr1-470:i386 (= 470.86-0ubuntu0.20.04.2)
                     Recommends: libnvidia-fbc1-470:i386 (= 470.86-0ubuntu0.20.04.2)
                     Recommends: libnvidia-gl-470:i386 (= 470.86-0ubuntu0.20.04.2)
E: Unable to correct problems, you have held broken packages.

You have to correct your broken package manager situation first!

Done!(The nvidia 470 drivers part.External monitor still don’t work)

For anybody with similar issues, I installed aptitude with sudo apt-get install aptitude and then installed the drivers with it sudo aptitude install nvidia-driver-470

I don’t know if it helps but the output of modinfo nvidia is:

filename:       /lib/modules/5.14.0-1020-oem/updates/dkms/nvidia.ko
firmware:       nvidia/470.86/gsp.bin
alias:          char-major-195-*
version:        470.86
supported:      external
license:        NVIDIA
srcversion:     E66753074ED62D36C634AF6
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        drm
retpoline:      Y
name:           nvidia
vermagic:       5.14.0-1020-oem SMP mod_unload modversions 
sig_id:         *****
signer:         ubuntu Secure Boot Module Signature key
sig_key:        ********************************************************
sig_hashalgo:   *****
signature:     ********************************************************
parm:           NvSwitchRegDwords:NvSwitch regkey (charp)
parm:           NvSwitchBlacklist:NvSwitchBlacklist=uuid[,uuid...] (charp)
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_RegisterForACPIEvents:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_EnableStreamMemOPs:int
parm:           NVreg_RestrictProfilingToAdminUsers:int
parm:           NVreg_PreserveVideoMemoryAllocations:int
parm:           NVreg_EnableS0ixPowerManagement:int
parm:           NVreg_S0ixPowerManagementVideoMemoryThreshold:int
parm:           NVreg_DynamicPowerManagement:int
parm:           NVreg_DynamicPowerManagementVideoMemoryThreshold:int
parm:           NVreg_EnableGpuFirmware:int
parm:           NVreg_EnableUserNUMAManagement:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_KMallocHeapMaxSize:int
parm:           NVreg_VMallocHeapMaxSize:int
parm:           NVreg_IgnoreMMIOCheck:int
parm:           NVreg_NvLinkDisable:int
parm:           NVreg_EnablePCIERelaxedOrderingMode:int
parm:           NVreg_RegisterPCIDriver:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RegistryDwordsPerDevice:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_GpuBlacklist:charp
parm:           NVreg_TemporaryFilePath:charp
parm:           NVreg_ExcludedGpus:charp
parm:           rm_firmware_active:charp

and the output of dkms status is:

nvidia, 470.86, 5.14.0-1020-oem, x86_64: installed

The output of nvidia-smi is still:

NVIDIA-SMI has failed because it couldnt communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Hope it helps, thanks in advance,

Please create a new bug report.

Here it is:
nvidia-bug-report.log.gz (140.4 KB)

nvidiafb is loading, but it should be blacklisted.

Please look for nvidia blacklist files:

grep -r nvidia /etc/modprobe.d /lib/modprobe.d

if you do find a file with the entry: blacklist nvidia, that entry should be removed.
if you do NOT find a file with the entry blacklist nvidiafb, you should create one (ie /etc/modprobe.de/blacklist-nvidiafb.conf) with exactly that content.

If any of this applies, then run sudo update-initramfs -u and reboot.

1 Like

Hey @Mart Everything seems to be working properly now!

Thank you very much for your help and your time!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.