HGL
extended-salmon

Cant use the Nvidia GPU

I have a laptop, with a integrated GPU (intel UHD) and the nvidia gtx 1650 I play genshin, but it keeps using the intel GPU instead of the nividia one, i tried to change some options in the launcher like adding some arguments to force nvidia gpu but ig it didnt go well or i did it wrong coz the game didnt open after that, Ubuntu 24.04 LTS
38 Replies
HeroicBot
HeroicBot2w ago
To help you, we need a game log. Please see the following images on how to get it.
From An unknown user
From An unknown user
From An unknown user
From An unknown user
From An unknown user
From An unknown user
extended-salmon
extended-salmonOP2w ago
https://0x0.st/KiIo.log everything works fine but its just the gpu
HeroicBot
HeroicBot2w ago
Please send the following into this channel: - A recent game log (with verbose logging enabled), if not sent already - The output of the following commands: - flatpak run --command=vulkaninfo com.heroicgameslauncher.hgl --summary - flatpak run --command=vkcube com.heroicgameslauncher.hgl - nvidia-smi - flatpak list --runtime -v
CommandMC
CommandMC2w ago
(no need to run the vkcube one really)
fair-rose
fair-rose2w ago
That log indicates flatpak nv driver is missing so wouldnt flatpak update just resolve it?
CommandMC
CommandMC2w ago
Assuming their host driver is working correctly, yes
fair-rose
fair-rose2w ago
But ofc it depends on nvidia-smi Ye
extended-salmon
extended-salmonOP2w ago
CommandMC
CommandMC2w ago
That's why I like to confirm that is the issue before trying to resolve it like that Yup, that's the issue Run flatpak update That should make you install org.freedesktop.Platform.GL.nvidia-575-64-03 and org.freedesktop.Platform.GL32.nvidia-575-64-03 and remove org.freedesktop.Platform.GL.nvidia-535-247-01 and org.freedesktop.Platform.GL32.nvidia-535-247-01
extended-salmon
extended-salmonOP2w ago
termnh@strix:~$ flatpak update
Looking for updates…


ID Branch Op Remote Download
1. [✓] org.freedesktop.Platform.GL.nvidia-575-64-03 1.4 i flathub 315.6 MB / 316.0 MB
2. [✓] org.freedesktop.Platform.GL32.nvidia-575-64-03 1.4 i flathub 122.0 MB / 177.6 MB

Installation complete.
termnh@strix:~$
termnh@strix:~$ flatpak update
Looking for updates…


ID Branch Op Remote Download
1. [✓] org.freedesktop.Platform.GL.nvidia-575-64-03 1.4 i flathub 315.6 MB / 316.0 MB
2. [✓] org.freedesktop.Platform.GL32.nvidia-575-64-03 1.4 i flathub 122.0 MB / 177.6 MB

Installation complete.
termnh@strix:~$
is a reboot needed?
CommandMC
CommandMC2w ago
No You will have to restart any Flatpak apps though Also, you can now manually remove the old drivers with
flatpak remove org.freedesktop.Platform.GL.nvidia-535-247-01 org.freedesktop.Platform.GL32.nvidia-535-247-01
flatpak remove org.freedesktop.Platform.GL.nvidia-535-247-01 org.freedesktop.Platform.GL32.nvidia-535-247-01
to save a bit of disk space
fair-rose
fair-rose2w ago
flatpak uninstall --unused
flatpak uninstall --unused
Imo a better way to handle it
CommandMC
CommandMC2w ago
In my experience that just ends up doing nothing sometimes, even if an older driver is installed
fair-rose
fair-rose2w ago
It has this kind of catch ( from my experience ) once every flatpak app is launched with new runtime that command works 🐸 Odd but it worked that way for me
extended-salmon
extended-salmonOP2w ago
hmmm
No description
extended-salmon
extended-salmonOP2w ago
fair-rose
fair-rose2w ago
info: Presenter: Got VK_ERROR_OUT_OF_DATE_KHR, recreating swapchain
Now your NV driver works but it seems it has some problems on wsi side
extended-salmon
extended-salmonOP2w ago
hm:thonk:
fair-rose
fair-rose2w ago
Basically not something any human being here can resolve, only can offer workarounds. It is a windowing problem i think, you got in game, it resized window and boom @CommandMC What was the flatpak command to install gamescope?
extended-salmon
extended-salmonOP2w ago
oh ye it gone boom black flashed a bit then crashed
fair-rose
fair-rose2w ago
Do you play game in fullscreen? Or windowed mode?
extended-salmon
extended-salmonOP2w ago
full screen
fair-rose
fair-rose2w ago
Try windowed mode first
extended-salmon
extended-salmonOP2w ago
okay I tried borderless the same happened, I'll restart the game and try windowed
extended-salmon
extended-salmonOP2w ago
same
No description
fair-rose
fair-rose2w ago
Then wait for commandmc to return so you can try with gamescope
extended-salmon
extended-salmonOP2w ago
okie
fair-rose
fair-rose2w ago
Until then DXVK_FILTER_DEVICE_NAME="630" Should make the game run on intel one
extended-salmon
extended-salmonOP2w ago
argument to put in the game settings? the laucher settings
fair-rose
fair-rose2w ago
Game setting page in heroic, advanced Environment variables DXVK_FILTER_DEVICE_NAME is key , "630" is value
CommandMC
CommandMC2w ago
flatpak install flathub runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08
flatpak install flathub runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08
fair-rose
fair-rose2w ago
@termnh ^ Do this Restart heroic After that you should have toggle to turn on/off gamescope visible/interactable
extended-salmon
extended-salmonOP2w ago
okay
extended-salmon
extended-salmonOP2w ago
No description
extended-salmon
extended-salmonOP2w ago
It works so finee Thanks
fair-rose
fair-rose2w ago
You removed dxvk filter env right?
extended-salmon
extended-salmonOP2w ago
yes
fair-rose
fair-rose2w ago
👍

Did you find this page helpful?