You are not logged in.

#26 2022-11-10 20:46:33

rktf
Member
Registered: 2022-11-04
Posts: 32

Re: Graphics Card not detected

pacman -Qs vulkan :

local/amdvlk 2022.Q4.1-2
    AMD's standalone Vulkan driver
local/dxvk-bin 1.10.3-1
    A Vulkan-based compatibility layer for Direct3D 9/10/11 which allows running 3D applications on Linux using Wine (Windows DLL binary files)
local/lib32-amdvlk 2022.Q4.1-2
    AMD's standalone Vulkan driver
local/lib32-obs-vkcapture-git r215.7eddf08-1
    OBS Linux Vulkan/OpenGL game capture (32-bit)
local/lib32-vkd3d 1.5-1
    Direct3D 12 to Vulkan translation library By WineHQ
local/lib32-vulkan-icd-loader 1.3.226-1
    Vulkan Installable Client Driver (ICD) Loader (32-bit)
local/lib32-vulkan-intel 22.2.2-1
    Intel's Vulkan mesa driver (32-bit)
local/lib32-vulkan-radeon 22.2.2-1
    Radeon's Vulkan mesa driver (32-bit)
local/obs-vkcapture-git r215.7eddf08-1
    OBS Linux Vulkan/OpenGL game capture
local/spirv-tools 2022.1-1 (vulkan-devel)
    API and commands for processing SPIR-V modules
local/vkd3d 1.5-1
    Direct3D 12 to Vulkan translation library By WineHQ
local/vulkan-headers 1:1.3.227-1 (vulkan-devel)
    Vulkan header files
local/vulkan-icd-loader 1.3.226-1
    Vulkan Installable Client Driver (ICD) Loader
local/vulkan-intel 22.2.2-1
    Intel's Vulkan mesa driver
local/vulkan-radeon 22.2.2-1
    Radeon's Vulkan mesa driver
local/vulkan-tools 1.3.226-1 (vulkan-devel)
    Vulkan Utilities and Tools

ls -l /usr/share/vulkan/icd.d :

total 24
-rwxr-xr-x 1 root root 615 Nov  2 01:45 amd_icd32.json
-rwxr-xr-x 1 root root 611 Nov  2 02:17 amd_icd64.json
-rw-r--r-- 1 root root 148 Oct 20 18:11 intel_icd.i686.json
-rw-r--r-- 1 root root 146 Oct 20 18:08 intel_icd.x86_64.json
-rw-r--r-- 1 root root 149 Oct 20 18:11 radeon_icd.i686.json
-rw-r--r-- 1 root root 147 Oct 20 18:08 radeon_icd.x86_64.json

I had amdvlk installed it seems, i uninstalled it and now trying DRI_PRIME=1 vkcube results in :

vkEnumerateInstanceExtensionProperties failed to find the VK_KHR_surface extension.

Do you have a compatible Vulkan installable client driver (ICD) installed?
Please look at the Getting Started guide for additional information.

Running DRI_PRIME=1 lutris causes an output like this :

2022-11-10 21:45:47,369: Starting Lutris 0.5.11
2022-11-10 21:45:47,502: Running AMD Mesa driver 22.2.1 on AMD Radeon R5 M330 (hainan, LLVM 14.0.6, DRM 3.48, 6.0.7-zen1-1-zen) (0x6660)
2022-11-10 21:45:47,503: GPU: 8086:1916 103C:8329 (i915 drivers)
2022-11-10 21:45:47,503: GPU: 1002:6660 103C:8329 (amdgpu drivers)
2022-11-10 21:45:47,506: Vulkan is not available or your system isn't Vulkan capable
2022-11-10 21:45:48,689: Startup complete

Minecraft is still same, sometimes it launches, other times i get a black screen which waiting doesn't seem to do anything and trying to close it just freezes the entire system.

Offline

#27 2022-11-10 21:09:09

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,512

Re: Graphics Card not detected

Try installing vulkan-mesa-layers repo package, then run and post output of

$ vulkaninfo --summary

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#28 2022-11-10 21:17:38

rktf
Member
Registered: 2022-11-04
Posts: 32

Re: Graphics Card not detected

Here is the output of vulkaninfo --summary

==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.226


Instance Extensions: count = 20
-------------------------------
VK_EXT_acquire_drm_display             : extension revision 1
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6

Instance Layers: count = 10
---------------------------
VK_LAYER_AMD_switchable_graphics_32 AMD switchable graphics layer 1.3.230  version 1
VK_LAYER_INTEL_nullhw               INTEL NULL HW                 1.1.73   version 1
VK_LAYER_MESA_device_select         Linux device selection layer  1.3.211  version 1
VK_LAYER_MESA_overlay               Mesa Overlay layer            1.3.211  version 1
VK_LAYER_OBS_vkcapture_32           OBS Linux game capture        1.3.227  version 1
VK_LAYER_OBS_vkcapture_64           OBS Linux game capture        1.3.227  version 1
VK_LAYER_VALVE_steam_fossilize_32   Steam Pipeline Caching Layer  1.3.207  version 1
VK_LAYER_VALVE_steam_fossilize_64   Steam Pipeline Caching Layer  1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_32     Steam Overlay Layer           1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_64     Steam Overlay Layer           1.3.207  version 1

Devices:
========
GPU0:
        apiVersion         = 4206816 (1.3.224)
        driverVersion      = 92282882 (0x5802002)
        vendorID           = 0x8086
        deviceID           = 0x1916
        deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
        deviceName         = Intel(R) HD Graphics 520 (SKL GT2)
        driverID           = DRIVER_ID_INTEL_OPEN_SOURCE_MESA
        driverName         = Intel open-source Mesa driver
        driverInfo         = Mesa 22.2.2
        conformanceVersion = 1.3.0.0
        deviceUUID         = e95d4a74-02b8-da35-9627-b555fcb36d23
        driverUUID         = 6a67d25e-30ac-cd39-3ecb-88f56a404ce9

Offline

#29 2022-11-10 22:16:48

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,512

Re: Graphics Card not detected

Looks like you may have removed the wrong driver.

verify amdvlk & lib32-amdvlk are NOT installed anymore, but vulkan-radeon & lib32-vulkan-radeon ARE.

after doing that re-run vulkaninfo --summary again, you should see (atleast) 2 GPU devices listed at the end of the output.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#30 2022-11-11 05:09:24

rktf
Member
Registered: 2022-11-04
Posts: 32

Re: Graphics Card not detected

Here's a pacman -Qs vulkan after i removed lib32-amdvlk (amdvlk was already removed or not existing it seems) :

local/dxvk-bin 1.10.3-1
    A Vulkan-based compatibility layer for Direct3D 9/10/11 which allows running 3D applications on Linux using Wine (Windows DLL binary files)
local/lib32-obs-vkcapture-git r215.7eddf08-1
    OBS Linux Vulkan/OpenGL game capture (32-bit)
local/lib32-vkd3d 1.5-1
    Direct3D 12 to Vulkan translation library By WineHQ
local/lib32-vulkan-icd-loader 1.3.226-1
    Vulkan Installable Client Driver (ICD) Loader (32-bit)
local/lib32-vulkan-intel 22.2.2-1
    Intel's Vulkan mesa driver (32-bit)
local/lib32-vulkan-radeon 22.2.3-1
    Radeon's Vulkan mesa driver (32-bit)
local/obs-vkcapture-git r215.7eddf08-1
    OBS Linux Vulkan/OpenGL game capture
local/spirv-tools 2022.1-1 (vulkan-devel)
    API and commands for processing SPIR-V modules
local/vkd3d 1.5-1
    Direct3D 12 to Vulkan translation library By WineHQ
local/vulkan-headers 1:1.3.227-1 (vulkan-devel)
    Vulkan header files
local/vulkan-icd-loader 1.3.226-1
    Vulkan Installable Client Driver (ICD) Loader
local/vulkan-intel 22.2.2-1
    Intel's Vulkan mesa driver
local/vulkan-mesa-layers 22.2.3-1
    Mesa's Vulkan layers
local/vulkan-radeon 22.2.3-1
    Radeon's Vulkan mesa driver
local/vulkan-tools 1.3.226-1 (vulkan-devel)
    Vulkan Utilities and Tools

Here's the after vulkaninfo --summary

==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.226


Instance Extensions: count = 20
-------------------------------
VK_EXT_acquire_drm_display             : extension revision 1
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6

Instance Layers: count = 9
--------------------------
VK_LAYER_INTEL_nullhw             INTEL NULL HW                1.1.73   version 1
VK_LAYER_MESA_device_select       Linux device selection layer 1.3.211  version 1
VK_LAYER_MESA_overlay             Mesa Overlay layer           1.3.211  version 1
VK_LAYER_OBS_vkcapture_32         OBS Linux game capture       1.3.227  version 1
VK_LAYER_OBS_vkcapture_64         OBS Linux game capture       1.3.227  version 1
VK_LAYER_VALVE_steam_fossilize_32 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_fossilize_64 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_32   Steam Overlay Layer          1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_64   Steam Overlay Layer          1.3.207  version 1

Devices:
========
GPU0:
        apiVersion         = 4206816 (1.3.224)
        driverVersion      = 92282882 (0x5802002)
        vendorID           = 0x8086
        deviceID           = 0x1916
        deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
        deviceName         = Intel(R) HD Graphics 520 (SKL GT2)
        driverID           = DRIVER_ID_INTEL_OPEN_SOURCE_MESA
        driverName         = Intel open-source Mesa driver
        driverInfo         = Mesa 22.2.2
        conformanceVersion = 1.3.0.0
        deviceUUID         = e95d4a74-02b8-da35-9627-b555fcb36d23
        driverUUID         = 6a67d25e-30ac-cd39-3ecb-88f56a404ce9

Seems like it failed to detect the other GPU.

Offline

#31 2022-11-13 18:17:11

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,512

Re: Graphics Card not detected

Are you running X or wayland ?

Can you try with stock kernel ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#32 2022-11-13 18:52:24

rktf
Member
Registered: 2022-11-04
Posts: 32

Re: Graphics Card not detected

I'm using KDE Plasma with Wayland.

I switched to the Linux 6.0.8-arch1-1 kernel.

Seems like applications no longer care about the DRI_PRIME=1 and just launch using the Intel graphics. By looking deeper into a possible reason i noticed that /usr/share/vulkan/icd.d/ no longer has the amd files.

$ ls -l /usr/share/vulkan/icd.d/
total 16
-rw-r--r-- 1 root root 148 Nov  8 20:25 intel_icd.i686.json
-rw-r--r-- 1 root root 146 Nov  8 20:19 intel_icd.x86_64.json
-rw-r--r-- 1 root root 149 Nov  8 20:25 radeon_icd.i686.json
-rw-r--r-- 1 root root 147 Nov  8 20:19 radeon_icd.x86_64.json

Trying to force DXVK games that i have on Lutris to use radeon also returns a "failed to initialize" error.

The same kernel parameters are applied to the Linux entry :

title Arch Linux (linux)
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options cryptdevice=PARTUUID=e69d7c4e-03ec-4e4d-9345-0c9c8ea6037a:luksdev root=/dev/mapper/luksdev zswap.enabled=0 rw intel_pstate=no_hwp rootfstype=ext4 radeon.cik_support=0 amdgpu.cik_support=1 radeon.si_support=0 amdgpu.si_support=1

Offline

#33 2022-11-13 19:20:16

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,512

Re: Graphics Card not detected

The amd json files belong to the amdvlk packages, so they should indeed be gone.

vulkan applications don't use PRIME and atm your system only reports one vulkan capable device : the intel card .

Try removing vulkan-intel & lib32-vulkan-intel , then reboot and rerun vulkaninfo --summary .

Last edited by Lone_Wolf (2022-11-13 19:20:33)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#34 2022-11-13 20:03:09

rktf
Member
Registered: 2022-11-04
Posts: 32

Re: Graphics Card not detected

Here is the result :

WARNING: radv is not a conformant Vulkan implementation, testing use only.
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.226


Instance Extensions: count = 20
-------------------------------
VK_EXT_acquire_drm_display             : extension revision 1
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6

Instance Layers: count = 10
---------------------------
VK_LAYER_INTEL_nullhw             INTEL NULL HW                1.1.73   version 1
VK_LAYER_MANGOHUD_overlay         Vulkan Hud Overlay           1.3.0    version 1
VK_LAYER_MESA_device_select       Linux device selection layer 1.3.211  version 1
VK_LAYER_MESA_overlay             Mesa Overlay layer           1.3.211  version 1
VK_LAYER_OBS_vkcapture_32         OBS Linux game capture       1.3.227  version 1
VK_LAYER_OBS_vkcapture_64         OBS Linux game capture       1.3.227  version 1
VK_LAYER_VALVE_steam_fossilize_32 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_fossilize_64 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_32   Steam Overlay Layer          1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_64   Steam Overlay Layer          1.3.207  version 1

Devices:
========
GPU0:
        apiVersion         = 4206816 (1.3.224)
        driverVersion      = 92282883 (0x5802003)
        vendorID           = 0x1002
        deviceID           = 0x6660
        deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
        deviceName         = AMD Radeon R5 M330 (RADV HAINAN)
        driverID           = DRIVER_ID_MESA_RADV
        driverName         = radv
        driverInfo         = Mesa 22.2.3
        conformanceVersion = 0.0.0.0
        deviceUUID         = 00000000-0100-0000-0000-000000000000
        driverUUID         = 414d442d-4d45-5341-2d44-525600000

Some Lutris games get stuck on black screen, Minecraft can't even show the Launcher, vkcube seems like it's trying to do something but i don't see any output or a window from it.

Offline

#35 2022-11-13 20:08:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,696

Re: Graphics Card not detected

Test a xorg session, how dedicated gpus are supported if at all by any given Wayland compositor can differ case by case

Offline

#36 2022-11-13 20:32:40

rktf
Member
Registered: 2022-11-04
Posts: 32

Re: Graphics Card not detected

Switching to KDE Plasma X11, instead of black screens now i get windows that copy the background of wherever they summoned before and just stay like that.
vkcube still seems like it's trying to do something, but no outputs or windows.

Last edited by rktf (2022-11-13 20:33:19)

Offline

#37 2022-11-15 20:11:05

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,512

Re: Graphics Card not detected

what does vulkaninfo --summary show under X ?

Is xf86-video-intel installed ?
If yes, remove it


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#38 2022-11-16 17:07:41

rktf
Member
Registered: 2022-11-04
Posts: 32

Re: Graphics Card not detected

Using default Linux kernel, with KDE Plasma on X :

ERROR: [Loader Message] Code 0 : loader_get_json: Failed to open JSON file /usr/share/vulkan/icd.d/intel_icd.x86_64.json
ERROR: [Loader Message] Code 0 : vkCreateInstance: Found no drivers!
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /build/vulkan-tools/src/Vulkan-Tools-1.3.226/vulkaninfo/vulkaninfo.h:672:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER

xf86-video-intel seems to be not present on the system.

Offline

#39 2022-11-16 17:17:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,696

Re: Graphics Card not detected

... mesa-amber instead of mesa for some reason? FWIW according to those pacman -Qs your system is at least partially upgraded in what concerns the vulkan-intel driver so first things first I suggest you do a

pacman -Syu mesa

maybe also post the output of

printenv

Last edited by V1del (2022-11-16 17:17:55)

Offline

#40 2022-11-16 17:33:07

rktf
Member
Registered: 2022-11-04
Posts: 32

Re: Graphics Card not detected

Ran the pacman -Syu mesa, restarted the system with default Linux and KDE Plasma X as always, vulkaninfo --summary results in :

ERROR: [../mesa-22.2.3/src/amd/vulkan/radv_device.c:675] Code 0 : Could not open device /dev/dri/renderD128: Invalid argument (VK_ERROR_INCOMPATIBLE_DRIVER)
ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs:  Failed to detect any valid GPUs in the current config
ERROR at /build/vulkan-tools/src/Vulkan-Tools-1.3.226/vulkaninfo/vulkaninfo.h:237:vkEnumeratePhysicalDevices failed with ERROR_INITIALIZATION_FAILED

Offline

#41 2022-11-16 17:59:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,696

Re: Graphics Card not detected

Do you have custom xorg config redirecting things explicitly to intel? Post a Xorg log: https://wiki.archlinux.org/title/Xorg#General and as mentioned printenv and maybe also

LIBGL_DEBUG=1 glxinfo -B

something seems seriously out of whack here.

Offline

#42 2022-11-16 18:50:48

rktf
Member
Registered: 2022-11-04
Posts: 32

Re: Graphics Card not detected

I checked both .Xdefaults and .xinitrc and none of them has anything related to graphics as far as i can see, just a bunch of theme colors and stuff.

Here's my Xorg.0.log
Here's my printenv ourput
And Here's my LIBGL_DEBUG=1 glxinfo -B output

Offline

#43 2022-11-16 19:47:08

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,512

Re: Graphics Card not detected

[   175.479] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_33
[   175.482] (II) xfree86: Adding drm device (/dev/dri/card1)
[   175.482] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card1
[   175.483] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 14 paused 0
[   175.484] (II) xfree86: Adding drm device (/dev/dri/card0)
[   175.484] (II) Platform probe for /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/drm/card0
[   175.485] (EE) systemd-logind: failed to take device /dev/dri/card0: Invalid argument
[   176.070] (--) PCI:*(0@0:2:0) 8086:1916:103c:8329 rev 7, Mem @ 0xa0000000/16777216, 0x90000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[   176.070] (--) PCI: (1@0:0:0) 1002:6660:103c:8329 rev 131, Mem @ 0x80000000/268435456, 0xa1200000/262144, I/O @ 0x00004000/256, BIOS @ 0x????????/131072

The critical line is this one :

[   175.485] (EE) systemd-logind: failed to take device /dev/dri/card0: Invalid argument

please post your /etc/mkinitcpio.conf and ~/.xinitrc

Last edited by Lone_Wolf (2022-11-16 19:48:02)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#44 2022-11-16 20:11:20

rktf
Member
Registered: 2022-11-04
Posts: 32

Re: Graphics Card not detected

mkinitcpio.conf

MODULES=(amdgpu i915)
BINARIES=()
FILES=()
HOOKS=(base udev autodetect keyboard keymap modconf block encrypt filesystems fsck)

And here's my .xinitrc

Offline

#45 2022-11-17 11:36:26

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,512

Re: Graphics Card not detected

The .xinitrc backgrounds a lot of things, but looks ok otherwise.

On most systems with an integrated & discrete gpu card, the integrated gpu needs to initialize first.

edit mkinitcpio.conf, list i915 before amdgpu in modules= line.
regenerate initramfs , reboot and test.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#46 2022-11-17 11:43:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,696

Re: Graphics Card not detected

Maybe also add radeon to the early module load list since it technically needs to be loaded in order to disable it's own cik support you might want to ensure to load it early as well.

Last edited by V1del (2022-11-17 11:44:00)

Offline

#47 2022-11-19 11:22:30

rktf
Member
Registered: 2022-11-04
Posts: 32

Re: Graphics Card not detected

I tried with both MODULES=(i915 amdgpu) and MODULES=(i915 radeon amdgpu).
Using the System Monitor, i can see that the "GPU 2" memory is being used, and the name is reported as Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile] (Radeon R7 M520) but i see zero percent actual usage, and the application performance is also a hint that the GPU is not being utilized.

With the new modules, i'm able to run vkcube in both module configurations.
Games such as Minecraft however, crash after a few seconds and freeze the system completely as usual.

Here's vulkaninfo --summary

WARNING: radv is not a conformant Vulkan implementation, testing use only.
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.226


Instance Extensions: count = 20
-------------------------------
VK_EXT_acquire_drm_display             : extension revision 1
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6

Instance Layers: count = 10
---------------------------
VK_LAYER_INTEL_nullhw             INTEL NULL HW                1.1.73   version 1
VK_LAYER_MANGOHUD_overlay         Vulkan Hud Overlay           1.3.0    version 1
VK_LAYER_MESA_device_select       Linux device selection layer 1.3.211  version 1
VK_LAYER_MESA_overlay             Mesa Overlay layer           1.3.211  version 1
VK_LAYER_OBS_vkcapture_32         OBS Linux game capture       1.3.227  version 1
VK_LAYER_OBS_vkcapture_64         OBS Linux game capture       1.3.227  version 1
VK_LAYER_VALVE_steam_fossilize_32 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_fossilize_64 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_32   Steam Overlay Layer          1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_64   Steam Overlay Layer          1.3.207  version 1

Devices:
========
GPU0:
        apiVersion         = 4206816 (1.3.224)
        driverVersion      = 92282883 (0x5802003)
        vendorID           = 0x1002
        deviceID           = 0x6660
        deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
        deviceName         = AMD Radeon R5 M330 (RADV HAINAN)
        driverID           = DRIVER_ID_MESA_RADV
        driverName         = radv
        driverInfo         = Mesa 22.2.3
        conformanceVersion = 0.0.0.0
        deviceUUID         = 00000000-0100-0000-0000-000000000000
        driverUUID         = 414d442d-4d45-5341-2d44-525600000000

Offline

#48 2022-11-19 18:41:04

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,512

Re: Graphics Card not detected

I assume atm you don't have intel-vulkan installed ?
If so, (re-)install it and check if you can switch between the 2 drivers in vulkan using applications.

Please post a fresh xorg log.

Sidenote : minecraft performance depeends on several factors, including which launcher is used.
It's not suitable for general testing and should be dealt with in a separate thread.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#49 2022-11-19 21:11:50

rktf
Member
Registered: 2022-11-04
Posts: 32

Re: Graphics Card not detected

Here's the fresh Xorg.0.log

Substituting Kerbal Space Program for Minecraft, the performance is bellow expected (i played it before with the same system), the memory usage is still there but utilization is 0% both in MangoHud and System Monitor.

In DXVK, the memory is also being utilized, but the performance is bellow expected. Intel performs a little bit better than AMD, when switching to Intel there's no GPU memory usage.

Offline

#50 2022-11-19 21:55:35

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,512

Re: Graphics Card not detected

xorg log looks a lot better.

[   191.063] (II) RADEON: Driver for ATI/AMD Radeon chipsets:

That indicates you have xf86-video-ati installed .
Although it shouldn't be active it may still have a bad effect and isn't needed anymore .
remove xf86-video-ati .

Post output of pacman -Qs xf86-  .

KSP is also a steam game, let's try with native (non-steam) applications first from archlinux repos.
0ad & xonotic are candidates, but there are more in archlinux repos.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB