Optimus-manager failed at switching to hybrid

I gave up many times trying to change gpu and finally it’s very possible that i used only optimus.

> pacman -Qm
ceph-libs 15.2.14-6
google-chrome 106.0.5249.103-1
manjaro-documentation-en 20181009-1
manjaro-firmware 20160419-1
visual-studio-code-bin 1.72.0-1

remove these:

pamac remove ceph-libs manjaro-documentation-en manjaro-firmware

did you rebooted after you uninstalled optimus?


post again output from:
ls /etc/modprobe.d
find /etc/X11/ -name "*.conf"

No, i’ve done it now.

> ls /etc/modprobe.d                                                                                   
mhwd-gpu.conf

> find /etc/X11/ -name "*.conf"                                                                                 
/etc/X11/mhwd.d/nvidia.conf
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/xorg.conf.d/30-touchpad.conf

so if you rebooted now, post again output from:
inxi -G

> inxi -G
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] driver: N/A
  Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: modesetting
    dri: iris gpu: i915 resolution: 1920x1080~144Hz
  API: OpenGL v: 4.6 Mesa 22.2.3 renderer: Mesa Intel UHD Graphics (CML GT2)

still nothing…
output from:
cat /etc/modprobe.d/mhwd-gpu.conf

> cat /etc/modprobe.d/mhwd-gpu.conf                                          
##
## Generated by mhwd - Manjaro Hardware Detection
##
 
blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm
options nvidia "NVreg_DynamicPowerManagement=0x02"

open it:
kate /etc/modprobe.d/mhwd-gpu.conf
and remove this line:

options nvidia "NVreg_DynamicPowerManagement=0x02"

save it, and delete also this:
sudo rm /etc/X11/mhwd.d/nvidia.conf

REBOOT

and check again with:
inxi -G

Still driver is N/A

> inxi -G                                                                                                       
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] driver: N/A
  Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: modesetting
    dri: iris gpu: i915 resolution: 1920x1080~144Hz
  API: OpenGL v: 4.6 Mesa 22.2.3 renderer: Mesa Intel UHD Graphics (CML GT2)

post again output from logs, if its still being blacklisted:
journalctl -b0 -g nvidia

and post also output from:
head /etc/default/grub

> journalctl -b0 -g nvidia
lis 17 09:48:31 kacper-gf65thin10ue kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input18
lis 17 09:48:31 kacper-gf65thin10ue kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input19
lis 17 09:48:31 kacper-gf65thin10ue kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input20
lis 17 09:48:31 kacper-gf65thin10ue kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input21
lis 17 09:48:31 kacper-gf65thin10ue kernel: nvidia: loading out-of-tree module taints kernel.
lis 17 09:48:31 kacper-gf65thin10ue kernel: nvidia: module license 'NVIDIA' taints kernel.
lis 17 09:48:31 kacper-gf65thin10ue kernel: nvidia: module verification failed: signature and/or required key missing - tainting kernel
lis 17 09:48:31 kacper-gf65thin10ue kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 510
lis 17 09:48:31 kacper-gf65thin10ue kernel: nvidia 0000:01:00.0: enabling device (0000 -> 0003)
lis 17 09:48:31 kacper-gf65thin10ue kernel: NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
                                            NVRM: BAR0 is 0M @ 0x0 (PCI:0000:01:00.0)
lis 17 09:48:31 kacper-gf65thin10ue kernel: nvidia: probe of 0000:01:00.0 failed with error -1
lis 17 09:48:31 kacper-gf65thin10ue kernel: NVRM: The NVIDIA probe routine failed for 1 device(s).
lis 17 09:48:31 kacper-gf65thin10ue kernel: NVRM: None of the NVIDIA devices were initialized.
lis 17 09:48:31 kacper-gf65thin10ue kernel: nvidia-nvlink: Unregistered Nvlink Core, major device number 510
lis 17 09:48:31 kacper-gf65thin10ue systemd-udevd[321]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
lis 17 09:48:31 kacper-gf65thin10ue systemd-udevd[321]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
lis 17 09:48:31 kacper-gf65thin10ue systemd-modules-load[292]: Failed to insert module 'nvidia': No such device
lis 17 09:48:31 kacper-gf65thin10ue kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 510
lis 17 09:48:31 kacper-gf65thin10ue kernel: NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
                                            NVRM: BAR0 is 0M @ 0x0 (PCI:0000:01:00.0)
lis 17 09:48:31 kacper-gf65thin10ue kernel: nvidia: probe of 0000:01:00.0 failed with error -1
lis 17 09:48:31 kacper-gf65thin10ue kernel: NVRM: The NVIDIA probe routine failed for 1 device(s).
lis 17 09:48:31 kacper-gf65thin10ue kernel: NVRM: None of the NVIDIA devices were initialized.
lis 17 09:48:31 kacper-gf65thin10ue kernel: nvidia-nvlink: Unregistered Nvlink Core, major device number 510
lis 17 09:48:31 kacper-gf65thin10ue systemd-udevd[331]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
lis 17 09:48:31 kacper-gf65thin10ue systemd-udevd[331]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
lis 17 09:48:32 kacper-gf65thin10ue kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 510
lis 17 09:48:32 kacper-gf65thin10ue kernel: NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
                                            NVRM: BAR0 is 0M @ 0x0 (PCI:0000:01:00.0)
lis 17 09:48:32 kacper-gf65thin10ue kernel: nvidia: probe of 0000:01:00.0 failed with error -1
lis 17 09:48:32 kacper-gf65thin10ue kernel: NVRM: The NVIDIA probe routine failed for 1 device(s).
lis 17 09:48:32 kacper-gf65thin10ue kernel: NVRM: None of the NVIDIA devices were initialized.
lis 17 09:48:32 kacper-gf65thin10ue kernel: nvidia-nvlink: Unregistered Nvlink Core, major device number 510
lis 17 09:48:32 kacper-gf65thin10ue systemd-udevd[312]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
lis 17 09:48:32 kacper-gf65thin10ue systemd-udevd[312]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
lis 17 09:48:32 kacper-gf65thin10ue systemd-modules-load[292]: Failed to insert module 'nvidia_drm': No such device
lis 17 09:48:33 kacper-gf65thin10ue kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 510
lis 17 09:48:33 kacper-gf65thin10ue kernel: NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
                                            NVRM: BAR0 is 0M @ 0x0 (PCI:0000:01:00.0)
lis 17 09:48:33 kacper-gf65thin10ue kernel: nvidia: probe of 0000:01:00.0 failed with error -1
lis 17 09:48:33 kacper-gf65thin10ue kernel: NVRM: The NVIDIA probe routine failed for 1 device(s).
lis 17 09:48:33 kacper-gf65thin10ue kernel: NVRM: None of the NVIDIA devices were initialized.
lis 17 09:48:33 kacper-gf65thin10ue kernel: nvidia-nvlink: Unregistered Nvlink Core, major device number 510
lis 17 09:48:33 kacper-gf65thin10ue systemd-udevd[312]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
lis 17 09:48:33 kacper-gf65thin10ue systemd-udevd[312]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
lis 17 09:48:34 kacper-gf65thin10ue kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 510
lis 17 09:48:34 kacper-gf65thin10ue kernel: NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
                                            NVRM: BAR0 is 0M @ 0x0 (PCI:0000:01:00.0)
lis 17 09:48:34 kacper-gf65thin10ue kernel: nvidia: probe of 0000:01:00.0 failed with error -1
lis 17 09:48:34 kacper-gf65thin10ue kernel: NVRM: The NVIDIA probe routine failed for 1 device(s).
lis 17 09:48:34 kacper-gf65thin10ue kernel: NVRM: None of the NVIDIA devices were initialized.
lis 17 09:48:34 kacper-gf65thin10ue kernel: nvidia-nvlink: Unregistered Nvlink Core, major device number 510
lis 17 09:48:34 kacper-gf65thin10ue systemd-udevd[317]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
lis 17 09:48:34 kacper-gf65thin10ue systemd-udevd[312]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
lis 17 09:48:34 kacper-gf65thin10ue systemd-modules-load[292]: Failed to insert module 'nvidia_uvm': No such device
lis 17 09:48:35 kacper-gf65thin10ue systemd-udevd[312]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
lis 17 09:48:35 kacper-gf65thin10ue kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 510
lis 17 09:48:35 kacper-gf65thin10ue kernel: NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
                                            NVRM: BAR0 is 0M @ 0x0 (PCI:0000:01:00.0)
lis 17 09:48:35 kacper-gf65thin10ue kernel: nvidia: probe of 0000:01:00.0 failed with error -1
lis 17 09:48:35 kacper-gf65thin10ue kernel: NVRM: The NVIDIA probe routine failed for 1 device(s).
lis 17 09:48:35 kacper-gf65thin10ue kernel: NVRM: None of the NVIDIA devices were initialized.
lis 17 09:48:35 kacper-gf65thin10ue kernel: nvidia-nvlink: Unregistered Nvlink Core, major device number 510
lis 17 09:48:35 kacper-gf65thin10ue systemd-udevd[312]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.

> head /etc/default/grub
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=TRUE
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet udev.log_priority=3, ibt=off"
GRUB_CMDLINE_LINUX=""

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.

you have this:


add another kernel parameter, just like you did with the ibt=off above:
pci=realloc
save grub, update grub: sudo update-grub
REBOOT
and check with inxi -G again

Finally, driver is loaded.

> inxi -G                                                                   
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] driver: nvidia
    v: 520.56.06
  Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: modesetting,nvidia
    dri: iris gpu: i915 resolution: 1920x1080~144Hz
  API: OpenGL v: 4.6 Mesa 22.2.3 renderer: Mesa Intel UHD Graphics (CML GT2)

so you are now in hybrid mode…

Thank you very much :smiley:

now that you have properly working nvidia, you can install optimus again if you wish