I am having multiple problems getting my Nvidia driver to run on ubuntu 18.04. I tried to factory reset and re-install everything from scratch but had no luck either. I realized during my bootup that I see the following errors;
[ 4.802529] nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
[ 4.802587] ucsi_ccg 0-0008: i2c_transfer failed -110
[ 4.802632] ucsi_ccg 0-0008: ucsi_ccg_init failed - -110
After I install the nvidia graphic drivers, my system no longer boots when the display port is connected. It simply freezes after I see the i2c messages posted above. I am only able to boot it up by connection HDMI. If I then plug my display port after my system booted it sometimes freezes my computer or simply does not work.
I have dual boot with windows and secure boot disabled. Booting up in windows works perfectly with no problems.
I have tried multiple options from online and have gotten none to work. Have reinstalled Ubuntu multiple times.
Here are some outputs which may be useful
pc@pcUbuntu:~$ whereis nvidia
nvidia: /usr/lib/x86_64-linux-gnu/nvidia /usr/lib/nvidia /usr/share/nvidia /usr/src/nvidia-460.84/nvidia
pc@pcUbuntu:~$ sudo lspci -v | grep -A 10 VGA
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1e84 (rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 8708
Flags: bus master, fast devsel, latency 0, IRQ 141
Memory at a3000000 (32-bit, non-prefetchable) [size=16M]
Memory at 90000000 (64-bit, prefetchable) [size=256M]
Memory at a0000000 (64-bit, prefetchable) [size=32M]
I/O ports at 3000 [size=128]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Legacy Endpoint, MSI 00
pc@pcUbuntu:~$ dkms status
nvidia, 460.84, 5.4.0-74-generic, x86_64: installed
pc@pcUbuntu:~$ uname -a
Linux sachaUbuntu 5.4.0-74-generic #83~18.04.1-Ubuntu SMP Tue May 11 16:01:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
pc@pcUbuntu::~$ nvidia-smi
Failed to initialize NVML: Driver/library version mismatch