I already installed optimus-manager and optimus-manager-qt. Also, I installed video-hybrid-intel-nvidia-prime, video modesetting, video-vesa. I can not install video-nvidia since it conflict with video-hybrid-intel-nvidia-prime.
My problem:
My laptop can not detect and connect to an external monitor using HDMI port. The laptop is dual boot and HDMI works well with Windows.
The driver is not loaded, that’s at least one of the problems. Please install video-hybrid-intel-nvidia-prime again, then reboot, afterwards run nvidia-modprobe, and post the output of sudo dmesg | grep -i nvidia and inxi -Gazy.
Thank you for your advice. I installed optimus-manager-qt and set the mode as hybrid at the moment. However, my laptop still can not detect an external monitor through HDMI port. Windows work normally.
Please have a look at the outputs:
With sudo rmmod nvidia-drm nvidia-modeset nvidia:
rmmod: ERROR: Module nvidia_drm is not currently loaded
rmmod: ERROR: Module nvidia_modeset is not currently loaded
rmmod: ERROR: Module nvidia is not currently loaded
With sudo modprobe nvidia NVreg_ResmanDebugLevel=0:
modprobe: ERROR: could not insert ‘nvidia’: No such device
With sudo dmesg | egrep -i '(nvrm|nvidia)':
[ 2.891733] nvidia: loading out-of-tree module taints kernel.
[ 2.891739] nvidia: module license ‘NVIDIA’ taints kernel.
[ 2.924958] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 2.934164] nvidia-nvlink: Nvlink Core is being initialized, major device number 234
[ 2.934438] nvidia 0000:01:00.0: enabling device (0000 → 0003)
[ 2.934535] NVRM: request_mem_region failed for 0M @ 0x0. This can
NVRM: occur when a driver such as rivatv is loaded and claims
NVRM: ownership of the device’s registers.
[ 2.934538] nvidia: probe of 0000:01:00.0 failed with error -1
[ 2.934547] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 2.934548] NVRM: None of the NVIDIA devices were initialized.
[ 2.934648] nvidia-nvlink: Unregistered the Nvlink Core, major device number 234
[ 248.254414] nvidia-nvlink: Nvlink Core is being initialized, major device number 234
[ 248.254417] NVRM: probing 0x10de 0x2520, class 0x30000
[ 248.254767] NVRM: request_mem_region failed for 0M @ 0x0. This can
NVRM: occur when a driver such as rivatv is loaded and claims
NVRM: ownership of the device’s registers.
[ 248.254770] nvidia: probe of 0000:01:00.0 failed with error -1
[ 248.254779] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 248.254779] NVRM: None of the NVIDIA devices were initialized.
[ 248.254866] nvidia-nvlink: Unregistered the Nvlink Core, major device number 234
Something is wrong with my hardware configuration, right? It’s seem to be complex to me.
/etc/modprobe.d/mhwd-gpu.conf:blacklist nouveau
/etc/modprobe.d/blacklist-nvidia-nouveau.conf:blacklist nouveau
/etc/modprobe.d/blacklist-nvidia-nouveau.conf:options nouveau modeset=0
I suggest reporting the issue here with a title like “nvidia kernel driver cannot bind to RTX 3060 laptop GPU”, and make sure to include the output of inxi -Gazy, the output of sudo dmesg | egrep -i '(nvrm|nvidia)' that you posted previously, the nvidia driver version, and the kernel version.