You are not logged in.

#1 2024-01-08 19:54:58

archedbase
Member
Registered: 2023-12-21
Posts: 19

Intermitant Games Not Running Dual GPU

I am using wayland on a dual gpu ROG Z13 Flow, on some reboots games will run and on others they won't. Not really sure why and any help would be greatly appreciated.

I turn off modesetting and fbdev because I only want wayland to use igpu.

Offline

#2 2024-01-08 21:35:25

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Intermitant Games Not Running Dual GPU

archedbase wrote:

on some reboots games will run and on others they won't

Which games? What do you mean by "doesn't run", exactly? Are there any error messages in the log(s)? See also https://bbs.archlinux.org/viewtopic.php?id=57855

I think that laptop has a MUX switch, which gives automagical GPU switching on my AMD hardware. I presume you have NVIDIA then?

Please share the output of

lspci -knn -d ::03xx
archedbase wrote:

I turn off modesetting and fbdev

That's a bit vague. What exactly have you done? Please share full, exact commands and/or configuration files.


Jin, Jîyan, Azadî

Offline

#3 2024-01-09 00:58:13

archedbase
Member
Registered: 2023-12-21
Posts: 19

Re: Intermitant Games Not Running Dual GPU

I have tried dishonored gog edition with lutris, slay the spire, fallout 4 steam edition. Seems to happen with most games. I used to use supergfxctl but that seemed to to causing problems on hybrid mode with wayland. I had heard you shouldn't need it for hybrid mode with wayland, but it would be nice to be able to switch to mux mode.

I used to have this in /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet nosplash i915.enable_psr=0 nvidia-drm.modeset=1 nvidia-drm.fbdev=1"

and changed it to this but it seemed to make no difference(I was trying to stop wayland using it for compositing)

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet nosplash i915.enable_psr=0"

I also added this to /etc/mkinitcpio.conf

MODULES=( i915 )
lspci -knn -d ::03xx

gave no output so here is lspci instead

0000:00:00.0 Host bridge: Intel Corporation 12th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
0000:00:01.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x16 Controller #1 (rev 02)
0000:00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] (rev 0c)
0000:00:04.0 Signal processing controller: Intel Corporation Alder Lake Innovation Platform Framework Processor Participant (rev 02)
0000:00:06.0 System peripheral: Intel Corporation RST VMD Managed Controller
0000:00:07.0 PCI bridge: Intel Corporation Alder Lake-P Thunderbolt 4 PCI Express Root Port #0 (rev 02)
0000:00:08.0 System peripheral: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator (rev 02)
0000:00:0a.0 Signal processing controller: Intel Corporation Platform Monitoring Technology (rev 01)
0000:00:0d.0 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 USB Controller (rev 02)
0000:00:0d.2 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 NHI #0 (rev 02)
0000:00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller
0000:00:14.0 USB controller: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller (rev 01)
0000:00:14.2 RAM memory: Intel Corporation Alder Lake PCH Shared SRAM (rev 01)
0000:00:14.3 Network controller: Intel Corporation Alder Lake-P PCH CNVi WiFi (rev 01)
0000:00:15.0 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 (rev 01)
0000:00:15.1 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #1 (rev 01)
0000:00:16.0 Communication controller: Intel Corporation Alder Lake PCH HECI Controller (rev 01)
0000:00:1c.0 PCI bridge: Intel Corporation Device 51be (rev 01)
0000:00:1f.0 ISA bridge: Intel Corporation Alder Lake PCH eSPI Controller (rev 01)
0000:00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
0000:00:1f.4 SMBus: Intel Corporation Alder Lake PCH-P SMBus Host Controller (rev 01)
0000:00:1f.5 Serial bus controller: Intel Corporation Alder Lake-P PCH SPI Controller (rev 01)
0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1)
0000:01:00.1 Audio device: NVIDIA Corporation Device 2291 (rev a1)
0000:30:00.0 SD Host controller: Genesys Logic, Inc GL9755 SD Host Controller (rev 01)
10000:e0:06.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 (rev 02)
10000:e1:00.0 Non-Volatile memory controller: Micron Technology Inc 2450 NVMe SSD [HendrixV] (DRAM-less) (rev 01)

Slay the spire error log

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: OpenGL is not supported by the video driver.
	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:322)
	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setupDisplay(LwjglGraphics.java:216)
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:144)
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)
Caused by: org.lwjgl.LWJGLException: X Error - disp: 0x7f1f701d2c60 serial: 197 error: BadValue (integer parameter out of range for operation) request_code: 150 minor_code: 24
	at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:320)
	at org.lwjgl.opengl.LinuxContextImplementation.nCreate(Native Method)
	at org.lwjgl.opengl.LinuxContextImplementation.create(LinuxContextImplementation.java:51)
	at org.lwjgl.opengl.ContextGL.<init>(ContextGL.java:132)
	at org.lwjgl.opengl.Display.create(Display.java:850)
	at org.lwjgl.opengl.Display.create(Display.java:757)
	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:314)
	... 3 more

Dishonored gog on lutris(confirmed works on some reboots)

Started initial process 160843 from gamemoderun /home/james/.local/share/lutris/runners/wine/wine-ge-8-25-x86_64/bin/wine /home/james/Games/dishonored/drive_c/GOG Games/Dishonored/Binaries/Win32/Dishonored.exe
Start monitoring process.
gamemodeauto: 
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  258
  Current serial number in output stream:  259
Monitored process exited.
Initial process has exited (return code: 256)
Exit with return code 256

Offline

#4 2024-01-09 19:32:19

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Intermitant Games Not Running Dual GPU

archedbase wrote:
lspci -knn -d ::03xx

gave no output so here is lspci instead

Did you wait a bit for the output? Was the prompt returned? That command has worked just fine for other NVIDIA users, it lists the display controller device class, of which your graphics cards are members. Anyway the "kernel driver in use" is the important bit so use `lspci -k` if the `-d` option isn't working for you.

I don't support NVIDIA though so you will have to wait for somebody else to take an interest in this thread.


Jin, Jîyan, Azadî

Offline

#5 2024-01-09 19:41:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,232

Re: Intermitant Games Not Running Dual GPU

You absolutely need to keep the modesetting option for nvidia and wayland anything. Set that up again (but don't setup fbdev...).

Then from a general standpoint post the outputs of

glxinfo -B
vulkaninfo --summary 
prime-run glxinfo -B #nvidia-prime package
nvidia-smi

lib32-nvidia-utils and lib32-mesa installed?

Offline

#6 2024-01-10 23:00:40

archedbase
Member
Registered: 2023-12-21
Posts: 19

Re: Intermitant Games Not Running Dual GPU

Here is lspci

[00:00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] [8086:46a6] (rev 0c)
        DeviceName: Second VGA
        Subsystem: ASUSTeK Computer Inc. Alder Lake-P GT2 [Iris Xe Graphics] [1043:1c42]
        Kernel driver in use: i915
        Kernel modules: i915
0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] [10de:25a0] (rev a1)
        DeviceName: VGA
        Subsystem: ASUSTeK Computer Inc. GA107M [GeForce RTX 3050 Ti Mobile] [1043:1c42]
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

Weird because I swear it returned nothing last time(I didnt thing it hung but I am not sure now)

Do I need the modesetting even if the nivdia gpu isnt connected to the screen in hybrid mode?

output of glxinfo -B

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) Graphics (ADL GT2) (0x46a6)
    Version: 23.3.1
    Accelerated: yes
    Video memory: 15685MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) Graphics (ADL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.3.1-arch1.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.3.1-arch1.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.3.1-arch1.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

output of vulkaninfo --summary

ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.274


Instance Extensions: count = 22
-------------------------------
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_EXT_swapchain_colorspace            : extension revision 4
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
VK_LUNARG_direct_driver_loading        : extension revision 1

Instance Layers: count = 10
---------------------------
VK_LAYER_INTEL_nullhw             INTEL NULL HW                1.1.73   version 1
VK_LAYER_MANGOAPP_overlay         Mangoapp Layer               1.3.0    version 1
VK_LAYER_MANGOHUD_overlay_x86_64  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_NV_optimus               NVIDIA Optimus layer         1.3.260  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         = 1.3.267
        driverVersion      = 23.3.1
        vendorID           = 0x8086
        deviceID           = 0x46a6
        deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
        deviceName         = Intel(R) Graphics (ADL GT2)
        driverID           = DRIVER_ID_INTEL_OPEN_SOURCE_MESA
        driverName         = Intel open-source Mesa driver
        driverInfo         = Mesa 23.3.1-arch1.1
        conformanceVersion = 1.3.6.0
        deviceUUID         = 8680a646-0c00-0000-0002-000000000000
        driverUUID         = b4b68806-df7f-0ed9-988d-117727c5596b

output of nvidia-smi

No devices were found

Offline

#7 2024-01-11 00:00:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,232

Re: Intermitant Games Not Running Dual GPU

You need it for the vast majority of wayland compositors to even consider the existance of the GPU/having the ability of accessing and passing information to it.

Throw in a

sudo journalctl -b

so we know what's actually going on.

Offline

#8 2024-01-11 13:58:29

archedbase
Member
Registered: 2023-12-21
Posts: 19

Re: Intermitant Games Not Running Dual GPU

before reboot and nvidia_drm.modesetting=1 output of journalctl - b http://0x0.st/HI9d.txt

Offline

#9 2024-01-11 15:10:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,232

Re: Intermitant Games Not Running Dual GPU

the parameter is

nvidia-drm.modeset=1

and it's not applied in that journal.

But your system is crashing left and right with a bunch of exceptions and CPU breakdowns that aren't directly related to graphics issues. There's an usb device/hub that breaks kernel threads left and right. Do you have a USB hub connected? For what? can it be removed? But also failure to initialize the nvidia card, but that might be a side effect of the rest of the bus getting hammered. might want to add

rcutree.gp_init_delay=1

which might help fixing these.

Last edited by V1del (2024-01-11 15:12:19)

Offline

#10 2024-01-11 15:53:12

archedbase
Member
Registered: 2023-12-21
Posts: 19

Re: Intermitant Games Not Running Dual GPU

This was after waking from suspend so maybe that is why? The usb hub I use for connecting my lap to ethernet while on desktop(it is one of thos massive expanders for a usbc port).

I forgot to regenerate the grub config here is /proc/cmdline after reboot

cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/james--laptop-root rw loglevel=3 quiet nosplash i915.enable_psr=0 nvidia-drm.modeset=1 nvidia-drm.fbdev=0

installed vulkan packages

pacman -Qs vulkan
local/lib32-nvidia-utils 545.29.06-1
    NVIDIA drivers utilities (32-bit)
local/lib32-vulkan-icd-loader 1.3.274-1
    Vulkan Installable Client Driver (ICD) Loader (32-bit)
local/lib32-vulkan-intel 1:23.3.1-1
    Intel's Vulkan mesa driver (32-bit)
local/lib32-vulkan-mesa-layers 1:23.3.1-1
    Mesa's Vulkan layers (32-bit)
local/mangohud 0.7.0-2
    A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more.
local/nvidia-utils 545.29.06-1
    NVIDIA drivers utilities
local/spirv-tools 2023.5-1 (vulkan-devel)
    API and commands for processing SPIR-V modules
local/vulkan-headers 1:1.3.274-1 (vulkan-devel)
    Vulkan header files
local/vulkan-icd-loader 1.3.274-1
    Vulkan Installable Client Driver (ICD) Loader
local/vulkan-intel 1:23.3.1-1
    Intel's Vulkan mesa driver
local/vulkan-mesa-layers 1:23.3.1-1
    Mesa's Vulkan layers
local/vulkan-tools 1.3.269-1 (vulkan-devel)
    Vulkan Utilities and Tools

and here is the journal for that boot http://0x0.st/HIpU.txt games still give same error(this boot didnt have the hub connected).

Next post I will test with

rcutree.gp_init_delay=1

Offline

#11 2024-01-11 15:55:10

archedbase
Member
Registered: 2023-12-21
Posts: 19

Re: Intermitant Games Not Running Dual GPU

Also would it help to have nvidia modules in the mkinitcpio modules to load them early?

Offline

#12 2024-01-11 17:01:22

archedbase
Member
Registered: 2023-12-21
Posts: 19

Re: Intermitant Games Not Running Dual GPU

I should mention that I have tlp and thermald installed. Also I ran sensor-detect and selected yes to all. Do you think it might be a hardware issue? Or is it just new hardware and not well supported yet?

I added the option and rebooted a bunch of times trying to get a boot where I cloud run a game but no luck. Strange because dishonored has worked on this computer while running wayland on gnome.

cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/james--laptop-root rw loglevel=3 quiet nosplash i915.enable_psr=0 nvidia-drm.modeset=1 nvidia-drm.fbdev=0

And here is the journal http://0x0.st/HIfP.txt

Offline

#13 2024-01-11 17:44:27

archedbase
Member
Registered: 2023-12-21
Posts: 19

Re: Intermitant Games Not Running Dual GPU

Sorry just noticed  rcutree.gp_init_delay=1 wasnt there on that last test. Here it is with it on. http://0x0.st/HIf_.txt

BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/james--laptop-root rw loglevel=3 quiet nosplash i915.enable_psr=0 nvidia-drm.modeset=1 nvidia-drm.fbdev=0 rcutree.gp_init_delay=1

I tried dishonored(closed with failure), fallout 4(same), and finally borderlands 2(linux version on steam) and that ran. But then I tried with prime-run %command% as the launch parameter and it hung with the launcher window forever.

Offline

Board footer

Powered by FluxBB