HGL
correct-apricot

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
HeroicBot3mo 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
correct-apricot
correct-apricotOP3mo ago
https://0x0.st/KiIo.log everything works fine but its just the gpu
HeroicBot
HeroicBot3mo 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
CommandMC3mo ago
(no need to run the vkcube one really)
fair-rose
fair-rose3mo ago
That log indicates flatpak nv driver is missing so wouldnt flatpak update just resolve it?
CommandMC
CommandMC3mo ago
Assuming their host driver is working correctly, yes
fair-rose
fair-rose3mo ago
But ofc it depends on nvidia-smi Ye
correct-apricot
correct-apricotOP3mo ago
CommandMC
CommandMC3mo 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
correct-apricot
correct-apricotOP3mo 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
CommandMC3mo 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-rose3mo ago
flatpak uninstall --unused
flatpak uninstall --unused
Imo a better way to handle it
CommandMC
CommandMC3mo ago
In my experience that just ends up doing nothing sometimes, even if an older driver is installed
fair-rose
fair-rose3mo 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
correct-apricot
correct-apricotOP3mo ago
hmmm
No description
correct-apricot
correct-apricotOP3mo ago
fair-rose
fair-rose3mo 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
correct-apricot
correct-apricotOP3mo ago
hm:thonk:
fair-rose
fair-rose3mo 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?
correct-apricot
correct-apricotOP3mo ago
oh ye it gone boom black flashed a bit then crashed
fair-rose
fair-rose3mo ago
Do you play game in fullscreen? Or windowed mode?
correct-apricot
correct-apricotOP3mo ago
full screen
fair-rose
fair-rose3mo ago
Try windowed mode first
correct-apricot
correct-apricotOP3mo ago
okay I tried borderless the same happened, I'll restart the game and try windowed
correct-apricot
correct-apricotOP3mo ago
same
No description
fair-rose
fair-rose3mo ago
Then wait for commandmc to return so you can try with gamescope
correct-apricot
correct-apricotOP3mo ago
okie
fair-rose
fair-rose3mo ago
Until then DXVK_FILTER_DEVICE_NAME="630" Should make the game run on intel one
correct-apricot
correct-apricotOP3mo ago
argument to put in the game settings? the laucher settings
fair-rose
fair-rose3mo ago
Game setting page in heroic, advanced Environment variables DXVK_FILTER_DEVICE_NAME is key , "630" is value
CommandMC
CommandMC3mo 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-rose3mo ago
@termnh ^ Do this Restart heroic After that you should have toggle to turn on/off gamescope visible/interactable
correct-apricot
correct-apricotOP3mo ago
okay
correct-apricot
correct-apricotOP3mo ago
No description
correct-apricot
correct-apricotOP3mo ago
It works so finee Thanks
fair-rose
fair-rose3mo ago
You removed dxvk filter env right?
correct-apricot
correct-apricotOP3mo ago
yes
fair-rose
fair-rose3mo ago
👍

Did you find this page helpful?