for x in ${configs[@]}; do echo -e "\n---$x---\n$(cat $x)"; done
and
Check if the nvidia modle is loaded:
lsmod | grep -i "nvidia"
As said… the default way nowadays is offloading only programs which you explicitly want to offload. However… there is a tool called: optimus-manager which can switch the gpu. But you need to relog on every switch.
$ export configs=( "/etc/X11/xorg.conf" "/etc/X11/xorg.conf.d/*.conf" "/etc/modprobe.d/*.conf" "/etc/modules-load.d/*.conf" )
for x in ${configs[@]}; do echo -e "\n---$x---\n$(cat $x)"; done
cat: /etc/X11/xorg.conf: No such file or directory
---/etc/X11/xorg.conf---
cat: '/etc/X11/xorg.conf.d/*.conf': No such file or directory
---/etc/X11/xorg.conf.d/*.conf---
cat: '/etc/modprobe.d/*.conf': No such file or directory
---/etc/modprobe.d/*.conf---
cat: '/etc/modules-load.d/*.conf': No such file or directory
---/etc/modules-load.d/*.conf---
and the grep couldn’t find nvidia in lsmod command
@megavolt@omano@Mirdarthos
I think I found the head of the problem. while booting, in a little moment under the /dev/nvme0n1p3: clean, .... blocks message, it says [FAILED] Failed to start Load Kernel Modules
I tried video-hybrid-intel-nvidia-470xx-prime and got the [FAILED] Failed to start Load Kernel Modules error again but still, the system booted up
Then I tried video-nvidia-470xx and this time I got that error plus it couldn’t load the manjaro interface. So I uninstalled it using the virtual console(ctrl+alt+f2) and finally got to get back to where I was and write this message.
I’m so exhausted. Hopefully, I get to find a way to fix this *$#king problem later.
Note that I uninstalled all the graphic drivers yesterday.
$ sudo mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-modesetting 2020.01.13 true PCI
Warning: No installed USB configs!
$ sudo ls /etc/mkinitcpio.d/*.preset
/etc/mkinitcpio.d/linux510.preset