Framework 16 with dedicated GPU AMD driver issue

Okay I might tenatively call this solved.
By installing amdgpu in the kernel only configuration it boots properly and games still use mesa.

//First I uninstalled the amdgpu drivers
amdgpu-uninstall 
//And then reinstalled them with the usecase flag for kernel only
amdgpu-install --usecase=dkms

Still seems like a strange problem to exist.

Device details below.

I recently got the FW16 with the dGPU module and am now running Ubuntu 24.04 LTS on it.

After a while it started booting to black and I assumed it was the problem that is fixed here

This seemed to work but after a while it started again. I then noticed that it would not boot to black in recovery mode, so I assumed it had to do with drivers, presumably for the dGPU.

So I tried installing the amdgpu drivers using the amdgpu-install script. After this the problem was gone! It now reliably boots.
HOWEVER, now I cannot play games on Steam. To be fair I have only tried with Project Zomboid since thats the only thing I have installed currently but I can try with other games later. Project Zomboid starts, shows the black screen with ‘loading lua’ etc as usual and then crashes.

So it seems that with the mesa drivers that should come with the kernel my laptop wont boot reliably (maybe problems with recognizing the dGPU during startup?) and with the proprietary AMD drivers games wont work.

Is there a way to use one set of drivers for the general kerfuffle and one for the games? Or maybe switching the kernel to something else? But I don’t really know how to do that under Ubuntu or if that is even supported.

If I need to supply any additional info let me know!

Which Linux distro are you using?
Ubuntu 24.04 LTS

Which kernel are you using?
Linux 6.8.0-52-generic

Which BIOS version are you using?
3.03

Which Framework Laptop 16 model are you using? (AMD Ryzen™ 7040 Series)
AMD Ryzen™ 7 7840HS w/ Radeon™ 780M Graphics × 16
96 GiB RAM
Graphics Module (AMD Radeon™ RX 7700S)