I have tried installing Nvdia drivers throught garuda settings and pacman too.
they get installed but then im stuck with my internal iGPU as main. optimus-manager doesn't switch the gpu as its not able to detect installed driver.
Nvdia-smi gives me this output:-
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIAdriver is installed and running.
any help would be appreciated
Garuda-Settings Installation log
Starting
> Using config 'video-optimus-manager' for device: 0000:00:02.0 (0300:8086:5917) Display controller Intel Corporation UHD Graphics 620
> Dependencies to install: video-nvidia-prime-render-offload
> Installing dependency video-nvidia-prime-render-offload...
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-prime-render-offload/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
:: Synchronizing package databases...
core downloading...
extra downloading...
community downloading...
multilib downloading...
chaotic-aur downloading...
warning: nvidia-utils-465.31-1 is up to date -- skipping
warning: nvidia-prime-1.0-4 is up to date -- skipping
warning: nvidia-settings-465.27-1 is up to date -- skipping
warning: opencl-nvidia-465.31-1 is up to date -- skipping
warning: egl-wayland-1.1.7-1 is up to date -- skipping
resolving dependencies...
looking for conflicting packages...
Packages (15) dkms-2.8.4-1 gobject-introspection-1.68.0-1 libdazzle-3.40.0-1 python-beaker-1.11.0-6 python-injector-0.18.4-1 python-mako-1.1.4-1 python-peewee-3.14.4-1 python-py3nvml-0.2.6-1 python-rx-3.2.0-1 python-typing_extensions-3.10.0.0-1 python-xlib-0.30-1 gwe-0.15.3-1 lib32-nvidia-utils-465.31-1 lib32-opencl-nvidia-465.31-1 nvidia-dkms-465.31-1
Total Download Size: 67.39 MiB
Total Installed Size: 257.34 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
python-beaker-1.11.0-6-any downloading...
python-mako-1.1.4-1-any downloading...
gobject-introspection-1.68.0-1-x86_64 downloading...
libdazzle-3.40.0-1-x86_64 downloading...
python-typing_extensions-3.10.0.0-1-any downloading...
python-injector-0.18.4-1-any downloading...
python-peewee-3.14.4-1-x86_64 downloading...
python-py3nvml-0.2.6-1-any downloading...
python-rx-3.2.0-1-any downloading...
python-xlib-0.30-1-any downloading...
gwe-0.15.3-1-any downloading...
lib32-nvidia-utils-465.31-1-x86_64 downloading...
lib32-opencl-nvidia-465.
31-1-x86_64 downloading...
dkms-2.8.4-1-any downloading...
nvidia-dkms-465.31-1-x86_64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing python-beaker...
installing python-mako...
installing gobject-introspection...
installing libdazzle...
installing python-typing_extensions...
installing python-injector...
installing python-peewee...
Optional dependencies for python-peewee
python-psycopg2: for PostgreSQL database support
mysql-python: for MySQL database support
installing python-py3nvml...
installing python-rx...
installing python-xlib...
installing gwe...
installing lib32-nvidia-utils...
Optional dependencies for lib32-nvidia-utils
lib32-opencl-nvidia [pending]
installing lib32-opencl-nvidia...
Optional dependencies for lib32-opencl-nvidia
opencl-headers: headers necessary for OpenCL development
installing dkms...
Optional dependencies for dkms
linux-headers: build modules against the Arch kernel
linux-lts-headers: build modules against the LTS kernel
linux-zen-headers: build modules against the ZEN kernel [installed]
linux-hardened-headers: build modules against the HARDENED kernel
installing nvidia-dkms...
:: Running post-transaction hooks...
( 1/12) Syncing all file systems...
( 2/12) Arming ConditionNeedsUpdate...
( 3/12) Install DKMS modules
==> dkms install --no-depmod -m nvidia -v 465.31 -k 5.12.8-zen1-1-zen
Error! Bad return status for module build on kernel: 5.12.8-zen1-1-zen (x86_64)
Consult /var/lib/dkms/nvidia/465.31/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m nvidia -v 465.31 -k 5.12.8-zen1-1-zen' returned 10
==> depmod 5.12.8-zen1-1-zen
( 4/12) Foreign/AUR package notification
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
triehash 0.3-2
( 5/12) Compiling GSettings XML schema files...
( 6/12) Updating icon theme caches...
( 7/12) Mkinitcpio and GRUB update after transactions...
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
-> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img
==> Starting build: 5.12.8-zen1-1-zen
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
-> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect
==> Starting build: 5.12.8-zen1-1-zen
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module
: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen-fallback.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.12.8-arch1-1
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.12.8-arch1-1
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/garuda-dr460nized/theme.txt
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot: initramfs-linux-zen-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
which: no umount in ((null))
Detecting snapshots ...
Info: Separate boot partition not detected
Found snapshot: 2021-06-02 04:57:40 | timeshift-btrfs/snapshots/2021-06-02_04-57-40/@
Found snapshot: 2021-06-02 03:34:30 | timeshift-btrfs/snapshots/2021-06-02_03-34-30/@
Found snapshot: 2021-06-02 01:42:48 | timeshift-btrfs/snapshots/2021-06-02_04-25-44/@
Found snapshot: 2021-06-02 00:45:42 | timeshift-btrfs/snapshots/2021-06-02_00-45-42/@
Found snapshot: 2021-06-01 23:33:49 | timeshift-btrfs/snapshots/2021-06-01_23-33-49/@
Found snapshot: 2021-06-01 17:52:26 | timeshift-btrfs/snapshots/2021-06-01_17-52-25/@
Found snapshot: 2021-06-01 14:11:17 | timeshift-btrfs/snapshots/2021-06-02_01-42-47/@
Found 7 snapshot(s)
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
( 8/12) Orphaned package notification...
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
cmake 3.20.3-1
docbook-xsl 1.79.2-7
doxygen 1.9.1-1
dpkg 1.20.7.1-1
gtest 1.10.0-6
perl-module-build 0.4231-5
perl-pod-parser 1.63-2
perl-sgmls 1:1.1-8
perl-text-wrapi18n 0.06-9
po4a 0.63-1
triehash 0.3-2
( 9/12) Checking for .pacnew and .pacsave files...
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
.pac* files found:
/etc/pacman.conf.pacnew
/etc/pacman.d/mirrorlist.pacnew
/etc/paru.conf.pacnew
/etc/systemd/system.conf.pacnew
/etc/systemd/user.conf.pacnew
Please check and merge
(10/12) Updating pkgfile database...
(11/12) Updating the desktop file MIME type cache...
(12/12) Syncing all file systems...
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
nvidia-utils: install reason has been set to 'explicitly installed'
nvidia-prime: install reason has been set to 'explicitly installed'
nvidia-settings: install reason has been set to 'explicitly installed'
opencl-nvidia: install reason has been set to 'explicitly installed'
egl-wayland: install reason has been set to 'explicitly installed'
gwe: install reason has been set to 'explicitly installed'
lib32-nvidia-utils: install reason has been set to 'explicitly installed'
lib32-opencl-nvidia: install reason has been set to 'explicitly installed'
nvidia-dkms: install reason has been set to 'explicitly installed'
nvidia-dkms: install reason has been set to 'explicitly installed'
nvidia-dkms: install reason has been set to 'explicitly installed'
> Successfully installed dependency video-nvidia-prime-render-offload
> Installing video-optimus-manager...
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/optimus-manager/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
resolving dependencies...
looking for conflicting packages...
Packages (4) acpi_call-dkms-1.2.1-4 bbswitch-dkms-0.8-422 optimus-manager-1.4-2 optimus-manager-qt-1.6.3-1
Total Download Size: 0.26 MiB
Total Installed Size: 1.03 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
optimus-manager-1.4-2-any downloading...
optimus-manager-qt-1.6.3-1-x86_64 downloading...
bbswitch-dkms-0.8-422-x86_64 downloading...
acpi_call-dkms-1.2.1-4-any downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing optimus-manager...
optimus-manager : enabling optimus-manager.service
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Please reboot your computer before using optimus-manager
Optional dependencies for optimus-manager
bbswitch: alternative power switching method [pending]
acpi_call: alternative power switching method [pending]
xf86-video-intel: provides the Xorg intel driver [installed]
installing optimus-manager-qt...
installing bbswitch-dkms...
installing acpi_call-dkms...
:: Running post-transaction hooks...
( 1/12) Syncing all file systems...
( 2/12) Reloading system manager configuration...
( 3/12) Arming ConditionNeedsUpdate...
( 4/12) Install DKMS modules
==> dkms install --no-depmod -m acpi_call -v 1.2.1 -k 5.12.8-zen1-1-zen
Error! Bad return status for module build on kernel: 5.12.8-zen1-1-zen (x86_64)
Consult /var/lib/dkms/acpi_call/1.2.1/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m acpi_call -v 1.2.1 -k 5.12.8-zen1-1-zen' returned 10
==> dkms install --no-depmod -m bbswitch -v 0.8 -k 5.12.8-zen1-1-zen
Error! Bad return status for module build on kernel: 5.12.8-zen1-1-zen (x86_64)
Consult /var/lib/dkms/bbswitch/0.8/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m bbswitch -v 0.8 -k 5.12.8-zen1-1-zen' returned 10
==> depmod 5.12.8-zen1-1-zen
( 5/12) Foreign/AUR package notification
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
triehash 0.3-2
( 6/12) Updating icon theme caches...
( 7/12) Mkinitcpio and GRUB update after transactions...
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
-> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img
==> Starting build: 5.12.8-zen1-1-zen
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
-> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect
==> Starting build: 5.12.8-zen1-1-zen
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen-fallback.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.12.8-arch1-1
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.12.8-arch1-1
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/garuda-dr460nized/theme.txt
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot: initramfs-linux-zen-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-lin
ux-fallback.img
which: no umount in ((null))
Detecting snapshots ...
Info: Separate boot partition not detected
Found snapshot: 2021-06-02 04:57:40 | timeshift-btrfs/snapshots/2021-06-02_04-57-40/@
Found snapshot: 2021-06-02 03:34:30 | timeshift-btrfs/snapshots/2021-06-02_03-34-30/@
Found snapshot: 2021-06-02 01:42:48 | timeshift-btrfs/snapshots/2021-06-02_04-25-44/@
Found snapshot: 2021-06-02 00:45:42 | timeshift-btrfs/snapshots/2021-06-02_00-45-42/@
Found snapshot: 2021-06-01 23:33:49 | timeshift-btrfs/snapshots/2021-06-01_23-33-49/@
Found snapshot: 2021-06-01 17:52:26 | timeshift-btrfs/snapshots/2021-06-01_17-52-25/@
Found snapshot: 2021-06-01 14:11:17 | timeshift-btrfs/snapshots/2021-06-02_01-42-47/@
Found 7 snapshot(s)
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
( 8/12) Orphaned package notification...
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
cmake 3.20.3-1
docbook-xsl 1.79.2-7
doxygen 1.9.1-1
dpkg 1.20.7.1-1
gtest 1.10.0-6
perl-module-build 0.4231-5
perl-pod-parser 1.63-2
perl-sgmls 1:1.1-8
perl-text-wrapi18n 0.06-9
po4a 0.63-1
triehash 0.3-2
( 9/12) Checking for .pacnew and .pacsave files...
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
.pac* files found:
/etc/pacman.conf.pacnew
/etc/pacman.d/mirrorlist.pacnew
/etc/paru.conf.pacnew
/etc/systemd/system.conf.pacnew
/etc/systemd/user.conf.pacnew
Please check and merge
(10/12) Updating pkgfile database...
(11/12) Updating the desktop file MIME type cache...
(12/12) Syncing all file systems...
warning: config file /etc/pacman.conf, line 34: directive 'TotalDownload' in section 'options' not recognized.
optimus-manager: install reason has been set to 'explicitly installed'
optimus-manager-qt: install reason has been set to 'explicitly installed'
bbswitch-dkms: install reason has been set to 'explicitly installed'
acpi_call-dkms: install reason has been set to 'explicitly installed'
bbswitch-dkms: install reason has been set to 'explicitly installed'
acpi_call-dkms: install reason has been set to 'explicitly installed'
bbswitch-dkms: install reason has been set to 'explicitly installed'
acpi_call-dkms: install reason has been set to 'explicitly installed'
sed: can't read /etc/optimus-manager/optimus-manager.conf: No such file or directory
ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Log at /var/log/optimus-manager/switch/switch-20210602T072532.log
If your login manager is GDM, make sure to follow those instructions:
https://github.com/Askannz/optimus-manager#important--gnome-and-gdm-users
If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki:
https://github.com/Askannz/optimus-manager/wiki/FAQ,-common-issues,-troubleshooting
Cannot execute command because of previous errors.
> Successfully installed video-optimus-manager
Done ...