GPU Switch Integrated AMD -> Dedicated NVIDIA

I am sure there is more output … what else is there ?

(possibly ‘existing files’ … from the unsupported installs?)

Mine updates black arch with core, extra and multilib, that’s a problem?

Forgot to say it errors about failing to prepare transaction (conflicting dependencies)

Maybe share the actual output … but it sounds like a normal update output.
Besides the ‘blackarch’ addition which will probably be a source of pain if this is all a bit difficult.

OK … what is the actual output? Please stop referencing things vaguely. Copy the text here.

It’s just because I was in phone because I had no video, I’m gonna go to the forum by pc

Ah right. Desktop wasnt working , but it is now :slight_smile:

> Dependencies to install:  video-linux
> Installing dependency video-linux...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/video-linux/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0380
Processing classid: 0302
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 multilib downloading...
 blackarch downloading...
resolving dependencies...
looking for conflicting packages...

Packages (15) lib32-libvdpau-1.5-2  libxvmc-1.0.13-2  lib32-libva-vdpau-driver-0.7.4-7  lib32-mesa-vdpau-1:23.1.9-1  lib32-vulkan-intel-1:23.1.9-1  lib32-vulkan-radeon-1:23.1.9-1  libva-mesa-driver-1:23.1.9-1  libva-vdpau-driver-0.7.4-6  mesa-vdpau-1:23.1.9-1  vulkan-intel-1:23.1.9-1  vulkan-radeon-1:23.1.9-1  xf86-video-amdgpu-23.0.0-1  xf86-video-ati-1:22.0.0-1  xf86-video-intel-1:2.99.917+923+gb74b67f0-1  xf86-video-nouveau-1.0.17-2

Total Download Size:     4,47 MiB
Total Installed Size:  117,53 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 vulkan-intel-1:23.1.9-1-x86_64 downloading...
 lib32-vulkan-intel-1:23.1.9-1-x86_64 downloading...
 libva-mesa-driver-1:23.1.9-1-x86_64 downloading...
 lib32-mesa-vdpau-1:23.1.9-1-x86_64 downloading...
 mesa-vdpau-1:23.1.9-1-x86_64 downloading...
 lib32-vulkan-radeon-1:23.1.9-1-x86_64 downloading...
 vulkan-radeon-1:23.1.9-1-x86_64 downloading...
 xf86-video-intel-1:2.99.917+923+gb74b67f0-1-x86_64 downloading...
 xf86-video-ati-1:22.0.0-1-x86_64 downloading...
 xf86-video-nouveau-1.0.17-2-x86_64 downloading...
 xf86-video-amdgpu-23.0.0-1-x86_64 downloading...
 lib32-libva-vdpau-driver-0.7.4-7-x86_64 downloading...
 libva-vdpau-driver-0.7.4-6-x86_64 downloading...
 libxvmc-1.0.13-2-x86_64 downloading...
 lib32-libvdpau-1.5-2-x86_64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing xf86-video-ati...
installing xf86-video-amdgpu...
installing libxvmc...
installing xf86-video-intel...
>>> This driver now uses DRI3 as the default Direct Rendering
    Infrastructure. You can try falling back to DRI2 if you run
    into trouble. To do so, save a file with the following 
    content as /etc/X11/xorg.conf.d/20-intel.conf :
      Section "Device"
        Identifier  "Intel Graphics"
        Driver      "intel"
        Option      "DRI" "2"             # DRI3 is now default 
        #Option      "AccelMethod"  "sna" # default
        #Option      "AccelMethod"  "uxa" # fallback
      EndSection
Optional dependencies for xf86-video-intel
    libxrandr: for intel-virtual-output [installed]
    libxinerama: for intel-virtual-output [installed]
    libxcursor: for intel-virtual-output [installed]
    libxtst: for intel-virtual-output [installed]
    libxss: for intel-virtual-output [installed]
installing xf86-video-nouveau...
installing vulkan-intel...
Optional dependencies for vulkan-intel
    vulkan-mesa-layers: additional vulkan layers
installing vulkan-radeon...
Optional dependencies for vulkan-radeon
    vulkan-mesa-layers: additional vulkan layers
installing libva-mesa-driver...
installing libva-vdpau-driver...
installing mesa-vdpau...
installing lib32-vulkan-intel...
Optional dependencies for lib32-vulkan-intel
    lib32-vulkan-mesa-layers: additional vulkan layers
installing lib32-vulkan-radeon...
Optional dependencies for lib32-vulkan-radeon
    lib32-vulkan-mesa-layers: additional vulkan layers
installing lib32-libvdpau...
Optional dependencies for lib32-libvdpau
    lib32-mesa-vdpau: driver for Mesa [pending]
    lib32-nvidia-utils: driver for NVIDIA
installing lib32-libva-vdpau-driver...
installing lib32-mesa-vdpau...
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Refreshing PackageKit...
(3/3) Generating Menu Items...
xf86-video-ati: install reason has been set to 'explicitly installed'
xf86-video-amdgpu: install reason has been set to 'explicitly installed'
xf86-video-intel: install reason has been set to 'explicitly installed'
xf86-video-nouveau: install reason has been set to 'explicitly installed'
vulkan-intel: install reason has been set to 'explicitly installed'
vulkan-radeon: install reason has been set to 'explicitly installed'
libva-mesa-driver: install reason has been set to 'explicitly installed'
libva-vdpau-driver: install reason has been set to 'explicitly installed'
mesa-vdpau: install reason has been set to 'explicitly installed'
lib32-vulkan-intel: install reason has been set to 'explicitly installed'
lib32-vulkan-radeon: install reason has been set to 'explicitly installed'
lib32-libva-vdpau-driver: install reason has been set to 'explicitly installed'
lib32-mesa-vdpau: install reason has been set to 'explicitly installed'
> Successfully installed dependency video-linux
> Installing video-hybrid-amd-nvidia-prime...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-amd-nvidia-prime/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
warning: nvidia-utils-545.29.06-1 is up to date -- skipping
resolving dependencies...
looking for conflicting packages...
:: linux65-nvidia and nvidia-dkms are in conflict (NVIDIA-MODULE). Remove nvidia-dkms? [y/N] error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)

:: linux65-nvidia and nvidia-dkms are in conflict
Error: pacman failed!
Error: script failed!

its a OMEN laptop btw

So you have another nvidia driver installed that needs to be removed first.
Possibly more … lets look:

pacman -Qs nvidia

Output:

local/egl-wayland 2:1.1.13-1
    EGLStream-based Wayland external platform
local/lib32-libvdpau 1.5-2
    Nvidia VDPAU library
local/libvdpau 1.5-2
    Nvidia VDPAU library
local/mhwd-nvidia 545.29.06-1
    MHWD module-ids for nvidia 545.29.06
local/mhwd-nvidia-390xx 390.157-9
    MHWD module-ids for nvidia 390.157
local/mhwd-nvidia-470xx 470.223.02-1
    MHWD module-ids for nvidia 470.223.02
local/nvidia-dkms 545.29.06-1
    NVIDIA drivers - module sources
local/nvidia-utils 545.29.06-1
    NVIDIA drivers utilities
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards                                    

OK, just the one.
I dont know why it cant be removed easily … but lets try:

sudo pacman -Rns nvidia-dkms

Output

checking dependencies...

Packages (1) nvidia-dkms-545.29.06-1

Total Removed Size:  69,84 MiB

:: Do you want to remove these packages? [Y/n] 
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove --no-depmod nvidia/545.29.06 -k 6.5.13-1-MANJARO
==> depmod 6.5.13-1-MANJARO
:: Processing package changes...
(1/1) removing nvidia-dkms                                                  [##########################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Refreshing PackageKit...
(3/3) Removing Unnecessary Menu Items...

worked fine. ok mhwd :sweat_smile:

now back on track:

A bunch of possibly missing firmware :skull: :skull: :skull: :skull: :skull: :skull: :skull: :skull:

But is succesfully installed

Again you did not include the output … but it sounds like its just the common warnings for (likely not present) firmware during building the initramfs.

For more about it you can see here:
https://wiki.archlinux.org/title/Mkinitcpio#Possibly_missing_firmware_for_module_XXXX

But, at least for now, it can be ignored … at least only ones printed from the ‘fallback’ image creation.

Output:

OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.54, 6.6.3-1-MANJARO)

Output:

libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.54, 6.6.3-1-MANJARO)

OK … so now we are somwhere.
That command should have used the nvidia.

And it looks like it tried, though with nouveau? Before falling back to the AMD.

So now we need to go sperlunking for extra options and things.

grep CMD /etc/default/grub
cat /etc/modprobe.d/*
ls /etc/X11/{mhwd,xorg.conf}.d/

Output:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash udev.log_priority=3"
GRUB_CMDLINE_LINUX=""