Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
How do i make debian use the dedicated GPU in games?
- Terminator_3420
- Posts: 73
- Joined: 2021-12-22 13:24
- Been thanked: 1 time
How do i make debian use the dedicated GPU in games?
Well i installed minecraft and i get 90FPS even though i installed optifine. And i think the game uses iGPU not AMD GPU. Well how do i make my games run in dedicated GPU?
I like using Debian.
- canci
- Global Moderator
- Posts: 2502
- Joined: 2006-09-24 11:28
- Has thanked: 136 times
- Been thanked: 136 times
Re: How do i make debian use the dedicated GPU in games?
It's easiest to do in Gnome, where you can just "right-click on the app (while it's not running) in GNOME Shell's Activities Overview and choose the "Launch using Dedicated Graphics Card" option." (Source: switcheroo-control package information).
I'm not sure about KDE, but I can imagine they have a similar option somewhere.
If you don't have Gnome, KDE or another fancy desktop:
It's hard to tell how it was configured on your system, but usually, you can just prepend DRI_PRIME=1 to a command and it will use the dedicated card. So, for example, if you want famous open source game Super Tux Kart to run with your dedicated GPU, you'd start it like this:
In specific cases, the number after = could vary.
You can then write custom scripts or edit application files manually in /usr/share/applications/ in order to have them always run with the dedicated card.
I'm not sure about KDE, but I can imagine they have a similar option somewhere.
If you don't have Gnome, KDE or another fancy desktop:
It's hard to tell how it was configured on your system, but usually, you can just prepend DRI_PRIME=1 to a command and it will use the dedicated card. So, for example, if you want famous open source game Super Tux Kart to run with your dedicated GPU, you'd start it like this:
Code: Select all
DRI_PRIME=1 supertuxkart
You can then write custom scripts or edit application files manually in /usr/share/applications/ in order to have them always run with the dedicated card.
Stable / Asus VivoBook X421DA / AMD Ryzen 7 3700U / Radeon Vega Mobile Gfx (Picasso) / 8 GB RAM / 512GB NVMe
READ THIS:
* How to Post a Thread Here
* Other Tips and Great Resources
READ THIS:
* How to Post a Thread Here
* Other Tips and Great Resources
- Terminator_3420
- Posts: 73
- Joined: 2021-12-22 13:24
- Been thanked: 1 time
Re: How do i make debian use the dedicated GPU in games?
Well i want to play minecraft so i need to type DRI_PRIME=1 Minecraft Launcher right?canci wrote: ↑2022-01-23 10:34 It's easiest to do in Gnome, where you can just "right-click on the app (while it's not running) in GNOME Shell's Activities Overview and choose the "Launch using Dedicated Graphics Card" option." (Source: switcheroo-control package information).
I'm not sure about KDE, but I can imagine they have a similar option somewhere.
If you don't have Gnome, KDE or another fancy desktop:
It's hard to tell how it was configured on your system, but usually, you can just prepend DRI_PRIME=1 to a command and it will use the dedicated card. So, for example, if you want famous open source game Super Tux Kart to run with your dedicated GPU, you'd start it like this:
In specific cases, the number after = could vary.Code: Select all
DRI_PRIME=1 supertuxkart
You can then write custom scripts or edit application files manually in /usr/share/applications/ in order to have them always run with the dedicated card.
I like using Debian.
- canci
- Global Moderator
- Posts: 2502
- Joined: 2006-09-24 11:28
- Has thanked: 136 times
- Been thanked: 136 times
Re: How do i make debian use the dedicated GPU in games?
You can also open the Minecraft Launcher in a text editor and prepend DRI_PRIME=1 where it says Exec= if you start Minecraft that way.
I think in Minecraft, it should say something like:
Change that to:
I think in Minecraft, it should say something like:
Code: Select all
Exec=/opt/minecraft-launcher/minecraft-launcher
Code: Select all
Exec=DRI_PRIME=1 /opt/minecraft-launcher/minecraft-launcher
Stable / Asus VivoBook X421DA / AMD Ryzen 7 3700U / Radeon Vega Mobile Gfx (Picasso) / 8 GB RAM / 512GB NVMe
READ THIS:
* How to Post a Thread Here
* Other Tips and Great Resources
READ THIS:
* How to Post a Thread Here
* Other Tips and Great Resources
- Terminator_3420
- Posts: 73
- Joined: 2021-12-22 13:24
- Been thanked: 1 time
Re: How do i make debian use the dedicated GPU in games?
First i will try to open the game with terminal with this command DRI_PRIME=1 Minecraft Launcher. I hope it works.canci wrote: ↑2022-01-23 11:05 You can also open the Minecraft Launcher in a text editor and prepend DRI_PRIME=1 where it says Exec= if you start Minecraft that way.
I think in Minecraft, it should say something like:
Change that to:Code: Select all
Exec=/opt/minecraft-launcher/minecraft-launcher
Code: Select all
Exec=DRI_PRIME=1 /opt/minecraft-launcher/minecraft-launcher
I like using Debian.
- canci
- Global Moderator
- Posts: 2502
- Joined: 2006-09-24 11:28
- Has thanked: 136 times
- Been thanked: 136 times
Re: How do i make debian use the dedicated GPU in games?
Here's more documentation in case it doesn't work immediately:
https://wiki.archlinux.org/title/PRIME
https://wiki.archlinux.org/title/PRIME
Stable / Asus VivoBook X421DA / AMD Ryzen 7 3700U / Radeon Vega Mobile Gfx (Picasso) / 8 GB RAM / 512GB NVMe
READ THIS:
* How to Post a Thread Here
* Other Tips and Great Resources
READ THIS:
* How to Post a Thread Here
* Other Tips and Great Resources
- Terminator_3420
- Posts: 73
- Joined: 2021-12-22 13:24
- Been thanked: 1 time
Re: How do i make debian use the dedicated GPU in games?
Thanks. But i use debian 11.canci wrote: ↑2022-01-23 11:10 Here's more documentation in case it doesn't work immediately:
https://wiki.archlinux.org/title/PRIME
I like using Debian.
- canci
- Global Moderator
- Posts: 2502
- Joined: 2006-09-24 11:28
- Has thanked: 136 times
- Been thanked: 136 times
Re: How do i make debian use the dedicated GPU in games?
The instructions on the Arch Wiki are generic and work the same on Debian.
Stable / Asus VivoBook X421DA / AMD Ryzen 7 3700U / Radeon Vega Mobile Gfx (Picasso) / 8 GB RAM / 512GB NVMe
READ THIS:
* How to Post a Thread Here
* Other Tips and Great Resources
READ THIS:
* How to Post a Thread Here
* Other Tips and Great Resources
- Terminator_3420
- Posts: 73
- Joined: 2021-12-22 13:24
- Been thanked: 1 time