Setting up vulkan

Sorry if i sound vague in any part, i am completely new.
I have recently started using manjaro-kde and i have set up optimus-manager and it works fine. But vulkan-caps-viewer only shows me Intel graphics and not my dGPU. After some searching somewhere i saw that i need to install nvidia-vulkan and the lib32-nvidia-vulkan-utils for it. However, when its installing i get an error saying

make: *** [Makefile:81: modules] Error 2
==> ERROR: A failure occurred in build().

Where and in what context, what system, what hardware?

Before you move on, please provide from terminal:
inxi -Fxxxza --no-host
mhwd -li

Make sure you read this part
and mostly this part to understand what is going on with vulkan

inxi gave me

System:    Kernel: 5.7.0-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.7-x86_64 root=UUID=9986fd41-aa3b-44ca-b9f4-cab66434848b rw quiet 
           apparmor=1 security=apparmor udev.log_priority=3 
           Desktop: KDE Plasma 5.18.5 tk: Qt 5.14.2 wm: kwin_x11 dm: GDM 3.34.1, SDDM Distro: Manjaro Linux 
Machine:   Type: Laptop System: ASUSTeK product: X556UQK v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: X556UQK v: 1.0 serial: <filter> UEFI [Legacy]: American Megatrends v: X556UQK.315 
           date: 01/24/2019 
Battery:   ID-1: BAT0 charge: 18.2 Wh condition: 18.6/38.0 Wh (49%) volts: 7.6/7.6 model: ASUSTeK ASUS Battery 
           type: Li-ion serial: <filter> status: Not charging cycles: 147 
CPU:       Topology: Dual Core model: Intel Core i5-7200U bits: 64 type: MT MCP arch: Amber Lake family: 6 
           model-id: 8E (142) stepping: 9 microcode: CA L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 21607 
           Speed: 700 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 700 2: 700 3: 700 4: 700 
           Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 
           mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel HD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:5916 
           Device-2: NVIDIA GM108M [GeForce 940MX] vendor: ASUSTeK driver: nvidia v: 440.82 bus ID: 01:00.0 
           chip ID: 10de:134d 
           Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia compositor: kwin_x11 tty: N/A 
           OpenGL: renderer: GeForce 940MX/PCIe/SSE2 v: 4.6.0 NVIDIA 440.82 direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 chip ID: 8086:9d71 
           Sound Server: ALSA v: k5.7.0-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8169 
           v: kernel port: d000 bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: enp2s0 state: down mac: <filter> 
           Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter vendor: AzureWave 
           driver: ath10k_pci v: kernel port: d000 bus ID: 03:00.0 chip ID: 168c:0042 
           IF: wlp3s0 state: up mac: <filter> 
           IF-ID-1: eth1 state: up speed: -1 duplex: unknown mac: <filter> 
Drives:    Local Storage: total: 1.35 TiB used: 273.02 GiB (19.8%) 
           ID-1: /dev/sda vendor: Western Digital model: WDS480G2G0A-00JH30 size: 447.14 GiB block size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: 0000 scheme: MBR 
           ID-2: /dev/sdb vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB block size: physical: 4096 B 
           logical: 512 B speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> rev: SDM1 scheme: MBR 
Partition: ID-1: / raw size: 447.14 GiB size: 439.12 GiB (98.21%) used: 164.98 GiB (37.6%) fs: ext4 dev: /dev/sda1 
Sensors:   System Temperatures: cpu: 59.0 C mobo: N/A gpu: nvidia temp: 56 C 
           Fan Speeds (RPM): cpu: 3000 
Info:      Processes: 215 Uptime: 1d 6h 28m Memory: 7.66 GiB used: 2.92 GiB (38.1%) Init: systemd v: 245 
           Compilers: gcc: 9.3.0 Shell: bash v: 5.0.16 running in: konsole inxi: 3.0.37

mhwd gave me

> Installed PCI configs:
                  NAME               VERSION          FREEDRIVER           TYPE
video-hybrid-intel-nvidia-440xx-prime            2019.10.25               false            PCI
            video-vesa            2017.03.12                true            PCI
           video-linux            2018.05.04                true            PCI

Warning: No installed USB configs!

I uninstalled and reinstalled vulkan caps viewer and now it shows both gpus.The problem is solved. Thank you so much for your time.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by