Nvidia drivers don't install, conflict with conky dependencies

when trying to install non-free graphics drivers for my GT650M i get this error →

Installing video-hybrid-intel-nvidia-390xx-bumblebee…
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-390xx-bumblebee/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
checking dependencies…
error: failed to prepare transaction (could not satisfy dependencies)
:: removing libxnvctrl breaks dependency ‘libxnvctrl’ required by conky
:: removing libxnvctrl breaks dependency ‘libXNVCtrl.so=0-64’ required by conky
Error: pacman failed!
Error: script failed!

I try to uninstall conky, cause i dont really need it, but it is then listed s a dependency for manjaro-i3-settings and as far as i understand if i uninstall that i will just nuke my OS. Any tips or ideas ?

Welcome!

Remove conky with this command and try again:

sudo pacman -Rdd conky
1 Like

Thanks that worked! But now i encoutered another issue :thinking:

error: target not found: linux513-nvidia-390xx
error: target not found: linux513-bbswitch
Error: pacman failed!

cant seem to find these packages

Output of uname -r. Seems to me that you are using 5.13 which is eol. Switch to newer and stable kernel and try again. Follow this guide:

https://wiki.manjaro.org/index.php/Manjaro_Kernels

don’t remove a active kernel

1 Like

5.13.13-1-MANJARO oh okay. will try to follow that guide and see what i can manage. Thanks!

This reveals the suspected - you are already in an out-of-date (or worse: partial-upgrade) state.
You need to fix that situation first .
(and we should always be updated/synced before installing new packages)

sudo pacman-mirrors -g && sudo pacman -Syyu
sudo mhwd-kernel -i linux510

Then reboot into 5.10 (tap Esc during boot to show grub)
Double check your running kernel is not 5.13 then remove it:

uname -r
sudo mhwd-kernel -r linux513

Then I would guess you can do everything else you want.

1 Like

Just out of cruiocity, you said newer and stable so i checked and it seems 5.15 is newer and stable. Would the reason to go back to 5.10 have any benefits over 5.15 ? PS im at 5.15 now and the nvidia instaltion still gives the same error

error: target not found: linux513-nvidia-390xx
error: target not found: linux513-bbswitch

AFAIK 3xx nvidia drivers don’t work with 5.15 that’s why.

1 Like

make sure that you are not running 5.13 and remove it

1 Like

it worked ! i think ? if i run mhwd -li it outputs

--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-390xx-bumblebee            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI


but if i do inxi -G or try to get any info or set settigns for the GPU it doesnt seem to show up or pick it up.

Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel
  Device-2: NVIDIA GK107M [GeForce GT 650M] driver: N/A

I’m guessing only your Intel card is working/running.

1 Like

Try running optirun inxi -G or primusrun inxi -G.

2 Likes

Now it seems to show up ! what does this mean ? What is this magic ?

[ 1396.357264] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0. 

[ 1396.357311] [ERROR]Aborting because fallback start is disabled.
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel
  Device-2: NVIDIA GK107M [GeForce GT 650M] driver: nvidia v: 390.147
  Device-3: Chicony HP Truevision HD type: USB driver: uvcvideo
  Display: x11 server: X.Org 1.21.1.2 driver: loaded: nvidia
    note: n/a (using device driver) unloaded: nvidia resolution: 1: 1920x1080
    2: 1920x1080~60Hz
  Message: Unable to show advanced data. Required tool glxinfo missing.

EDIT: googled it hahah, kinda get it now! Sorry im fresh to Linux. You guys have been a great help!

1 Like

Here:

https://wiki.manjaro.org/index.php/Configure_Graphics_Cards#Bumblebee

https://wiki.archlinux.org/title/Bumblebee

1 Like