vinegarhq / sober

Runtime for Roblox on Linux
https://sober.vinegarhq.org/
247 stars 8 forks source link

prime-run doesn't work #286

Open AndreyDeimos opened 2 weeks ago

AndreyDeimos commented 2 weeks ago

Acknowledgement of checking existent issues

What problem did you encounter?

Using prime-run (putting prime-run before command in .desktop file or running prime-run flatpak run org.vinegarhq.Sober) still runs Sober on igpu

Roblox Experience link

No response

kirbix12 commented 2 weeks ago

Sober should be running to your discrete GPU by default if detected and installed. Which GPU are you using? Are the drivers installed correctly?

AndreyDeimos commented 2 weeks ago

Possible reason is I deleted nvidia drivers from flatapk because I have them installed using pacman. But with them installed Sober throws an error

2024-10-07T21:16:03.043Z,2.043167,38c006c0,6 [FLog::Graphics] VULKAN ERROR: vkGetPhysicalDeviceSurfacePresentModesKHR(physicalDevice, wd.presentationSurface, &modeCount, nullptr) returned -13 (Unhandled error)
2024-10-07T21:16:03.043Z,2.043177,38c006c0,6 [FLog::Graphics] VULKAN ERROR: vkGetPhysicalDeviceSurfacePresentModesKHR(physicalDevice, wd.presentationSurface, &modeCount, modes.data()) returned -13 (Unhandled error)
kirbix12 commented 2 weeks ago

Possible reason is I deleted nvidia drivers from flatapk because I have them installed using pacman. But with them installed Sober throws an error

2024-10-07T21:16:03.043Z,2.043167,38c006c0,6 [FLog::Graphics] VULKAN ERROR: vkGetPhysicalDeviceSurfacePresentModesKHR(physicalDevice, wd.presentationSurface, &modeCount, nullptr) returned -13 (Unhandled error)
2024-10-07T21:16:03.043Z,2.043177,38c006c0,6 [FLog::Graphics] VULKAN ERROR: vkGetPhysicalDeviceSurfacePresentModesKHR(physicalDevice, wd.presentationSurface, &modeCount, modes.data()) returned -13 (Unhandled error)

You need to have both drivers present, otherwise Flatpak can't detect your NVIDIA GPU.

AndreyDeimos commented 2 weeks ago

Well this error is present with both drivers installed

flatpak list | grep nvidia
nvidia-560-35-03    org.freedesktop.Platform.GL.nvidia-560-35-03        1.4 flathub user
pacman -Q | grep nvidia
lib32-nvidia-utils 560.35.03-1
nvidia 560.35.03-11
nvidia-prime 1.0-5
nvidia-utils 560.35.03-5
opencl-nvidia 560.35.03-5
kirbix12 commented 2 weeks ago

I would probably run though reinstallation of your drivers just to be safe, even if you need to use the proprietary ones from the open kernel if you have a Turing+ card.