Factorio only detect 512 MB of graphic memory on Framework 16 with Radeon 7700S GPU expansion

Which Linux distro are you using?

Ubuntu 24.04.1 LTS

Which kernel are you using?

Linux 6.8.0-48-generic

Which BIOS version are you using?

Framework 3.03 BIOS

Which Framework Laptop 16 model are you using? (AMD Ryzen™ 7040 Series)

AMD 7840 HS w/ Radeon 780M Graphics
AMD Radeon RX 7700S

When I check for the GPU through inxi or ispci, the video card is visible.

When I try to play Factorio, it may crash/freeze rarely. It does struggle with the integrated GPU.

I want to play Factorio with the dedicated GPU 7700S, which have onboard 8 GB memory anyway. How do I go about doing this?

You can launch programs using the dGPU or iGPU with DRI_PRIME=1 or DRI_PRIME=0 in terminal

DRI_PRIME=1 steam
1 Like

FWIW Steam should launch on the dGPU anyway as part of the .desktop file.

You can use either switcherooctl launch %command% or DRI_PRIME=1 %command% in the game’s launch options to have it force-launch on the dGPU.

I added the parameter DRI_PRIME=1 in Lutris for all applications, including Steam.

That worked for Factorio! When I change the graph settings, the Factorio game no longer warns about the lack of graph memory. The game also appears to load and run a bit better.

There is a weird issue with Steam where it doesn’t minimize unless I switch to a different window. Steam also shows over everything else. That is something I can learn to live with.