Does DRI_PRIME=1 not work with Windows games?

Apparently not, because it’s using my 460, not the 570.

Just run sensors, the temperature for the 570 is low, the 460 is higher.

Maybe launching games from Lutris doesn’t work. I’ll try with a native game from Lutris. You can import Steam games, with it.

Nope, don’t think Torchlight 2 is using the 570 either.

Just installed radeontop from the AUR, run it with -b xx to use the other video card. Let’s see if that goes up.

Got Torchlight 2 to run on the other video card. Problem is, I can’t see it. I told Lutris to open in a terminal, and copied the command, and ran with my rx570 script, the VRAM usage went up. Probably need to make a screen for it. Let’s see if Linux will freeze by doing that.

Update
Seems to be working now. According to “radeontop -b 28”. But it doesn’t work with DXVK, it’s all gibberish. Didn’t try Wine or a different Proton. So Fallout 76 doesn’t work.

You need to not configure it in xorg.conf, so it should have a black screen, on but a blank screen. You don’t switch monitors, shows it on the primary card.

/etc/X11/xorg.conf.d/xorg.conf:

<br>
Section "ServerLayout"<br>
	Identifier     "X.org Configured"<br>
	Screen      0  "Screen0" 0 0<br>
	Option "AutoAddGPU" "false"<br>
EndSection</p>
<p>Section "Files"<br>
	ModulePath   "/usr/lib/xorg/modules"<br>
	FontPath     "/usr/share/fonts/misc/"<br>
	FontPath     "/usr/share/fonts/TTF/"<br>
	FontPath     "/usr/share/fonts/OTF/"<br>
	FontPath     "/usr/share/fonts/Type1/"<br>
	FontPath     "/usr/share/fonts/100dpi/"<br>
	FontPath     "/usr/share/fonts/75dpi/"<br>
EndSection</p>
<p>Section "Module"<br>
	Load  "glx"<br>
	#Load  "vnc"<br>
EndSection</p>
<p>Section "Monitor"<br>
	Identifier   "Monitor0"<br>
	VendorName   "Monitor Vendor"<br>
	ModelName    "Monitor Model"<br>
EndSection</p>
<p>Section "Device"<br>
        ### Available Driver options are:-<br>
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",<br>
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",<br>
        ### <percent>: "<f>%"<br>
        ### [arg]: arg optional<br>
        #Option     "SWcursor"           	# [<bool>]<br>
        #Option     "kmsdev"             	# <str><br>
        #Option     "ShadowFB"           	# [<bool>]<br>
        #Option     "AccelMethod"        	# <str><br>
        #Option     "PageFlip"           	# [<bool>]<br>
        #Option     "ZaphodHeads"        	# <str><br>
        #Option     "DoubleShadow"       	# [<bool>]<br>
	Identifier  "Card0"<br>
	Driver      "amdgpu"<br>
	Option 	    "DRI"			"3"<br>
      	BusID	    "PCI:27:0:0"<br>
EndSection</bool></str></bool></str></bool></str></bool></f></percent></f></freq></string></bool></f></i></p><i>
<p>#Section "Device"<br>
        ### Available Driver options are:-<br>
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",<br>
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",<br>
        ### <percent>: "<f>%"<br>
        ### [arg]: arg optional<br>
        #Option     "SWcursor"                  # [<bool>]<br>
        #Option     "kmsdev"                    # <str><br>
        #Option     "ShadowFB"                  # [<bool>]<br>
        #Option     "AccelMethod"               # <str><br>
        #Option     "PageFlip"                  # [<bool>]<br>
        #Option     "ZaphodHeads"               # <str><br>
        #Option     "DoubleShadow"              # [<bool>]<br>
#        Identifier  "Card1"<br>
#        Driver      "amdgpu"<br>
#        Option      "DRI"                       "3"<br>
#        BusID       "PCI:28:0:0"<br>
#EndSection</bool></str></bool></str></bool></str></bool></f></percent></f></freq></string></bool></f></i></p><i>
<p>Section "Screen"<br>
	Identifier "Screen0"<br>
	Device     "Card0"<br>
	Monitor    "Monitor0"<br>
	SubSection "Display"<br>
		Viewport   0 0<br>
		Depth     1<br>
	EndSubSection<br>
	SubSection "Display"<br>
		Viewport   0 0<br>
		Depth     4<br>
	EndSubSection<br>
	SubSection "Display"<br>
		Viewport   0 0<br>
		Depth     8<br>
	EndSubSection<br>
	SubSection "Display"<br>
		Viewport   0 0<br>
		Depth     15<br>
	EndSubSection<br>
	SubSection "Display"<br>
		Viewport   0 0<br>
		Depth     16<br>
	EndSubSection<br>
	SubSection "Display"<br>
		Viewport   0 0<br>
		Depth     24<br>
	EndSubSection<br>
EndSection<br>

You probably only need “Option “AutoAddGPU” “false””.

/home/user/bin/rx570:

#!/usr/bin/bash
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_icd64.json:/usr/share/vulkan/icd.d/amd_icd32.json DRI_PRIME=1 "$@"

If using Lutris, add that to the Command prefix under System options, you might need to enable advanced options to see it.

To use it with the VM, just use libvirt, it does everything automatically.

Need to reboot, to see if that still works.

Seeing if No Man’s Sky works, might be downloading an update. Maybe I’m using the wrong ICD files, am I supposed to use the one that is listed in the json file? Or am I supposed to use the radeon one?

VK_ICD_FILENAMES=/usr/lib/amdvlk64.so:/usr/lib32/amdvlk32.so DRI_PRIME=1 "$@"

That did the trick. That works with Manjaro. That only allows the launcher to work, not the game. The game just closes.

No Man’s Sky is loading, apparently Fallout 76 is broken. Or is it not using DXVK? I launched from Lutris, then Steam launched it.

Still trying to install vcrun2015, it requires various lib32 in Manjaro, looks like it worked this time. Horrible advice, that killed the launcher, just black.

Uninstalling that didn’t fix it. I deleted the prefix. Going to recreate it.

Made a 32bit prefix, in case that’s the problem. Installing the launcher from their site, that’s where the installer is, in your browser, click install and select Lutris, and it opens the installer. Won’t work in Firejail, just used Firefox not in Firejail.

Lutris is like a free Crossover. If people stop buying Crossover, there won’t be paid developers working on it anymore. Might not matter, or they’ll continue working on Wine anyways.

If I was rich, I’d buy Crossover, and hire more people. Also, it would be free. And similar to Lutris, or just buy Lutris too, and combine em. Letting people pick the Wine runner is a great idea.

Just charge for priority support. Or get money some other way, to fund it.

You can download the install script, so you don’t need to open a different browser not in Firejail. Don’t think I can run Chromium in Firejail, and not in it at the same time.

If the game works now, how do I donate to Lutris? In a couple months, donate $100.

Lies, somebody said Lutris has patched launcher or something, so you don’t have to rename a file to “download” it. Delete “cdpprod.dch”, don’t rename the .tmp file. Permission error now though.

Might be working now. Restarted it, then instead of selecting the “D” drive, I just went to the media/games folder. Last time, I had to add a D drive, and use that, because it said there wasn’t enough space.

If I was a programmer, I’d fix Wine, so you don’t need to delete a file.

There’s a helper.sh script, no need to manually delete anything. And you only get that if you install Fallout 76, you can manually download the script though. Using their installer to install Fallout 76, to the same folder. I’m lazy, so used Firefox again. And I really need to go to bed.

Some kind of bug with PRIME and Fallout 76, doesn’t work with DXVK disabled either.

Rebooting works. Fallout 76 still doesn’t work.

Oh yeah, don’t leave radeontop running on the shared card when booting the VM, you’ll get a kernel panic and/or freeze.

There is a prime setting in Lutris, but it doesn’t work, probably because it’s not setting “VK_ICD_FILENAMES”, setting that as an environment variable might work.