Switching to hybrid integrated graphics driver

Hi,
I want to switch from the video-nvidia drivers to the hybrid video-hybrid-intel-nvidia-prime drivers, however, these two conflict. No problem, I remove the first one. Except when I do that, I get this error(both from GUI and terminal):

Starting
> Removing video-nvidia...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/local/pci/video-nvidia/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing nvidia-utils breaks dependency 'nvidia-utils' required by cuda
Error: pacman failed!
Error: script failed!


Done ...

Can anyone help me? Thanks!

btw, here’s the output of inxi --admin --verbosity=7 --filter --width :

inxi --admin --verbosity=7 --filter --width                                                                                                                                                                   ✔  31s  
System:
  Kernel: 5.15.32-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: root=UUID=d8749c5f-ef6b-44e6-a8a7-71d6d5dd4853 rw quiet
    apparmor=1 security=apparmor udev.log_priority=3
    initrd=boot\initramfs-5.15-x86_64.img
  Desktop: KDE Plasma v: 5.24.4 tk: Qt v: 5.15.3 info: latte-dock
    wm: kwin_wayland vt: 3 dm: 1: GDM v: 41.3 note: stopped 2: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: ROG STRIX Z590-F GAMING WIFI v: Rev 1.xx
    serial: <superuser required> UEFI: American Megatrends v: 1007
    date: 07/13/2021
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: discharging
Memory:
  RAM: total: 31.12 GiB used: 5.62 GiB (18.1%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: 11th Gen Intel Core i7-11700K bits: 64 type: MT MCP
    arch: Rocket Lake family: 6 model-id: 0xA7 (167) stepping: 1 microcode: 0x40
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 640 KiB desc: d-8x48 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 4669 high: 4880 min/max: 800/4900:5000 scaling:
    driver: intel_pstate governor: powersave cores: 1: 4653 2: 4813 3: 4774
    4: 4582 5: 4465 6: 4646 7: 4694 8: 4708 9: 4401 10: 4790 11: 4717 12: 4880
    13: 4801 14: 4389 15: 4700 16: 4700 bogomips: 115232
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 avx512_bitalg avx512_vbmi2
    avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma
    avx512vbmi avx512vl bmi1 bmi2 bts clflush clflushopt cmov constant_tsc
    cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms
    est f16c flexpriority flush_l1d fma fpu fsgsbase fsrm fxsr gfni ht hwp
    hwp_act_window hwp_epp hwp_notify hwp_pkg_req ibpb ibrs ibrs_enhanced ida
    intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor
    movbe mpx msr mtrr nonstop_tsc nopl nx ospke pae pat pbe pcid pclmulqdq
    pdcm pdpe1gb pebs pge pku pln pni popcnt pse pse36 pts rdpid rdrand rdseed
    rdtscp rep_good sdbg sep sha_ni smap smep smx ss ssbd sse sse2 sse4_1
    sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust
    tsc_deadline_timer tsc_known_freq umip vaes vme vmx vnmi vpclmulqdq vpid
    x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  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 status: Vulnerable: eIBRS with unprivileged eBPF
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel RocketLake-S GT1 [UHD Graphics 750] vendor: ASUSTeK
    driver: i915 v: kernel ports: active: DP-1,HDMI-A-2 empty: HDMI-A-1
    bus-ID: 00:02.0 chip-ID: 8086:4c8a class-ID: 0300
  Device-2: NVIDIA GA102 [GeForce RTX 3080 Lite Hash Rate] vendor: ASUSTeK
    driver: nvidia v: 510.60.02 alternate: nouveau,nvidia_drm pcie: gen: 1
    speed: 2.5 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 01:00.0
    chip-ID: 10de:2216 class-ID: 0300
  Device-3: Realtek Streaming Webcam type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-13.1:21 chip-ID: 0bda:5822
    class-ID: 0102 serial: <filter>
  Display: server: X.Org v: 1.21.1.3 with: Xwayland v: 22.1.1 compositors:
    1: kwin_wayland 2: kwin_x11 driver: X: loaded: modesetting,nvidia
    unloaded: nouveau alternate: fbdev,nv,vesa gpu: i915 display-ID: :2
    screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1185x381mm (46.65x15.00")
    s-diag: 1245mm (49.01")
  Monitor-1: DP-1 pos: primary,top-right model: Gigabyte AORUS FI32Q
    serial: <filter> built: 2021 res: 2560x1440 dpi: 93 gamma: 1.2
    size: 698x392mm (27.48x15.43") diag: 801mm (31.5") ratio: 16:9 modes:
    max: 2560x1440 min: 720x400
  Monitor-2: HDMI-A-2 mapped: HDMI-2 pos: bottom-l model: Dell AW2521HFLA
    serial: <filter> built: 2021 res: 1920x1080 dpi: 90 gamma: 1.2
    size: 544x303mm (21.42x11.93") diag: 623mm (24.5") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  OpenGL: renderer: Mesa Intel Graphics (RKL GT1) v: 4.6 Mesa 21.3.8
    direct render: Yes
Audio:
  Device-1: Intel Tiger Lake-H HD Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:43c8 class-ID: 0403
  Device-2: NVIDIA GA102 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 01:00.1 chip-ID: 10de:1aef
    class-ID: 0403
  Device-3: Corsair VOID ELITE Wireless Gaming Dongle type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-10.4:20
    chip-ID: 1b1c:0a51 class-ID: 0300
  Device-4: Realtek Streaming Webcam type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-13.1:21 chip-ID: 0bda:5822
    class-ID: 0102 serial: <filter>
  Device-5: ASUSTek USB Audio type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-14:18 chip-ID: 0b05:1996
    class-ID: 0300
  Device-6: Dell PROFESSIONAL SOUND BAR AE515 type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-6.1.1:14
    chip-ID: 413c:a506 class-ID: 0300
  Device-7: Giga-Byte ESS SABRE HiFi USB Audio Device type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-6.2:11 chip-ID: 0414:a00c
    class-ID: 0300
  Device-8: Giga-Byte USB Audio type: USB driver: snd-usb-audio
    bus-ID: 1-6.3:23 chip-ID: 0414:a008 class-ID: 0102 serial: <filter>
  Sound Server-1: ALSA v: k5.15.32-1-MANJARO running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: JACK v: 1.9.20 running: no
  Sound Server-4: PulseAudio v: 15.0 running: yes
  Sound Server-5: PipeWire v: 0.3.49 running: yes
Network:
  Device-1: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 1 port: N/A bus-ID: 04:00.0 chip-ID: 8086:15f3
    class-ID: 0200
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 05:00.0 chip-ID: 8086:2725
    class-ID: 0280
  IF: wlp5s0 state: down mac: <filter>
  Device-3: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
    bus-ID: 2-3.4:7 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  IF: enp0s20f0u3u4 state: down mac: <filter>
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel AX210 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-2:2
    chip-ID: 8087:0032 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 2.73 TiB used: 322.55 GiB (11.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Corsair model: Corsair MP600 PRO
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: EIFM21.1 temp: 29.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital
    model: WD2003FZEX-00SRLA0 size: 1.82 TiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 1A01 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 470.04 GiB size: 461.6 GiB (98.20%)
    used: 322.52 GiB (69.9%) fs: ext4 dev: /dev/sda5 maj-min: 8:5 label: N/A
    uuid: d8749c5f-ef6b-44e6-a8a7-71d6d5dd4853
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 34 MiB (35.5%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: SYSTEM uuid: DC74-1032
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 930.52 GiB fs: ntfs label: Ultra
    uuid: E2A87482A874574F
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 900 MiB fs: ntfs label: Recovery
    uuid: E80674A706747880
  ID-4: /dev/sda1 maj-min: 8:1 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-5: /dev/sda2 maj-min: 8:2 size: 474.07 GiB fs: ntfs label: Backup
    uuid: 60BAF199BAF16C42
  ID-6: /dev/sda3 maj-min: 8:3 size: 512 MiB fs: vfat label: N/A
    uuid: FCB9-BD34
  ID-7: /dev/sda4 maj-min: 8:4 size: 470.04 GiB fs: ext4 label: N/A
    uuid: fb6be8b6-c27f-46be-9eb1-7bf91ad096be
  ID-8: /dev/sda6 maj-min: 8:6 size: 448.35 GiB fs: ext4 label: N/A
    uuid: 3f242b2b-617c-458d-9178-d71986ebbb56
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-2:2 info: Intel AX210 Bluetooth type: Bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0032
    class-ID: e001
  Hub-2: 1-3:3 info: VIA Labs USB2.0 Hub ports: 4 rev: 2.1 speed: 480 Mb/s
    chip-ID: 2109:2817 class-ID: 0900
  Hub-3: 1-3.3:6 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 1-3.3.2:9 info: GEMBIRD MicroSD Card Reader/Writer
    type: Mass Storage driver: usb-storage interfaces: 1 rev: 2.0
    speed: 480 Mb/s power: 150mA chip-ID: 1908:0226 class-ID: 0806
  Device-2: 1-3.3.4:13 info: GEMBIRD MicroSD Card Reader/Writer
    type: Mass Storage driver: usb-storage interfaces: 1 rev: 2.0
    speed: 480 Mb/s power: 150mA chip-ID: 1908:0226 class-ID: 0806
  Device-3: 1-4:4 info: ASUSTek AURA LED Controller type: HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 16mA
    chip-ID: 0b05:18f3 class-ID: 0300 serial: <filter>
  Hub-4: 1-6:5 info: Realtek RTS5411 Hub ports: 5 rev: 2.1 speed: 480 Mb/s
    chip-ID: 0bda:5411 class-ID: 0900
  Hub-5: 1-6.1:8 info: Realtek USB2.1 Hub ports: 3 rev: 2.1 speed: 480 Mb/s
    chip-ID: 0bda:5412 class-ID: 0900
  Device-1: 1-6.1.1:14 info: Dell PROFESSIONAL SOUND BAR AE515
    type: Audio,HID driver: hid-generic,snd-usb-audio,usbhid interfaces: 4
    rev: 2.0 speed: 12 Mb/s power: 500mA chip-ID: 413c:a506 class-ID: 0300
  Device-2: 1-6.1.2:17 info: SHARKOON GmbH Keyboard type: Keyboard,HID
    driver: semitek,usbhid interfaces: 3 rev: 1.1 speed: 12 Mb/s power: 100mA
    chip-ID: 1ea7:0907 class-ID: 0300 serial: <filter>
  Device-3: 1-6.2:11 info: Giga-Byte ESS SABRE HiFi USB Audio Device
    type: Audio,HID driver: hid-generic,snd-usb-audio,usbhid interfaces: 4
    rev: 2.0 speed: 480 Mb/s power: 100mA chip-ID: 0414:a00c class-ID: 0300
  Device-4: 1-6.3:23 info: Giga-Byte USB Audio type: Audio
    driver: snd-usb-audio interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0414:a008 class-ID: 0102 serial: <filter>
  Device-5: 1-6.4:26 info: Integrated Express ITE Device(8595)
    type: Keyboard driver: hid-generic,usbhid interfaces: 1 rev: 2.0
    speed: 12 Mb/s power: 100mA chip-ID: 048d:8295 class-ID: 0301
  Device-6: 1-6.5:25 info: Realtek HID Device type: HID
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 0bda:1100 class-ID: 0300
  Hub-6: 1-10:7 info: ASMedia ASM1074 High-Speed hub ports: 4 rev: 2.1
    speed: 480 Mb/s power: 100mA chip-ID: 174c:2074 class-ID: 0900
  Hub-7: 1-10.1:12 info: Microchip (formerly SMSC) USB2734 ports: 5 rev: 2.1
    speed: 480 Mb/s chip-ID: 0424:2734 class-ID: 0900
  Device-1: 1-10.1.5:19 info: Alienware Hub Controller type: HID
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 480 Mb/s
    chip-ID: 187c:1007 class-ID: 0300
  Device-2: 1-10.2:16 info: American Power Conversion Uninterruptible Supply
    type: HID driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s
    power: 2mA chip-ID: 051d:0002 class-ID: 0300 serial: <filter>
  Device-3: 1-10.4:20 info: Corsair VOID ELITE Wireless Gaming Dongle
    type: Audio,HID driver: hid-generic,snd-usb-audio,usbhid interfaces: 4
    rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 1b1c:0a51 class-ID: 0300
  Device-4: 1-11:10 info: Logitech Unifying Receiver
    type: Keyboard,Mouse,HID driver: logitech-djreceiver,usbhid interfaces: 3
    rev: 2.0 speed: 12 Mb/s power: 98mA chip-ID: 046d:c52b class-ID: 0300
  Hub-8: 1-13:15 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 1-13.1:21 info: Realtek Streaming Webcam type: Video,Audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.1 speed: 480 Mb/s
    power: 500mA chip-ID: 0bda:5822 class-ID: 0102 serial: <filter>
  Device-2: 1-13.3:22 info: Corsair iCUE Commander CORE type: HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 1b1c:0c1c class-ID: 0300 serial: <filter>
  Device-3: 1-14:18 info: ASUSTek USB Audio type: Audio,HID
    driver: hid-generic,snd-usb-audio,usbhid interfaces: 8 rev: 2.0
    speed: 480 Mb/s power: 100mA chip-ID: 0b05:1996 class-ID: 0300
  Hub-9: 2-0:1 info: Super-speed hub ports: 9 rev: 3.1 speed: 20 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-10: 2-3:2 info: VIA Labs USB3.0 Hub ports: 4 rev: 3.1 speed: 5 Gb/s
    chip-ID: 2109:0817 class-ID: 0900
  Device-1: 2-3.4:7 info: Realtek RTL8153 Gigabit Ethernet Adapter
    type: Network driver: r8152 interfaces: 1 rev: 3.0 speed: 5 Gb/s
    power: 288mA chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  Hub-11: 2-5:3 info: Realtek Hub ports: 1 rev: 3.2 speed: 5 Gb/s
    chip-ID: 0bda:0411 class-ID: 0900
  Hub-12: 2-5.1:5 info: Realtek USB3.2 Hub ports: 2 rev: 3.2 speed: 5 Gb/s
    chip-ID: 0bda:0412 class-ID: 0900
  Hub-13: 2-9:4 info: ASMedia ASM1074 SuperSpeed hub ports: 4 rev: 3.0
    speed: 5 Gb/s power: 8mA chip-ID: 174c:3074 class-ID: 0900
  Hub-14: 2-9.1:6 info: Microchip (formerly SMSC) USB5734 ports: 5 rev: 3.2
    speed: 5 Gb/s chip-ID: 0424:5734 class-ID: 0900
Sensors:
  System Temperatures: cpu: 27.8 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 425 Uptime: 1h 5m wakeups: 2 Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: 2050 note: see --pkg apt: 0
  pacman: 2012 lib: 527 flatpak: 34 snap: 4 Shell: Zsh v: 5.8.1 default: Bash
  v: 5.1.16 running-in: yakuake inxi: 3.3.15

Remove cuda first …