LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-25-2020, 05:22 AM   #1
SegFault1
LQ Newbie
 
Registered: Jul 2018
Distribution: Void Linux
Posts: 23

Rep: Reputation: Disabled
I'm not sure if I'm using my dedicated GPU. How can I switch?


I have a integrated Intel Corporation HD Graphics 5500 card and a low-mid range dedicated ATI Radeon Topaz R7 M360 card on laptop. My laptop runs on Linux. I am not a serious gamer. Back when I was a kid, I used to play a lot of games. Now due to this lockdown, I have to sit at home and I've time to play those old games I used to play like Super Mario Brothers, Bomberman, Mario Kart, Donkey Kong, Underground 2, etc. So, my games are not demanding.

I've installed Nestopia, Snes9x, PCSXR, Dolphin etc. And I got some ROM dumps from my best friend Robert. I can play games on the emulator. For Nestopia, Snex9x and PCSXR, the frame rate is reasonable, but Dolphin's framerate is very low about 8-20 FPS when I run Need For Speed Underground 2. So, I guess maybe I can utilize my ATI Radeon Topaz R7 M360 card.

So, right now the following packages are installed from my distro's official repo, and my distro maintainers are quick to push the latest and greatest packages.

Code:
amdvlk
linux-firmware-{amd, intel, network, nvidia}
xf86-video-{amdgpu, ati, dummy, fbdev, intel, mga, nouveau, vesa, vmware, drivers}
Something I guess is related is, when I boot to 5.7 kernel, I get an error,
Code:
kfd kfd: TOPAZ not supported in kfd
I'm not sure what that error is. I thought it might be relevant. At this point, I'm not sure whether my PC is too potato to emulate Dolphin Need for Speed Underground 2 or my ATI Radeon is not being utilized and is sitting idle. When I run radeontop (which I guess is similar to top or htop but for my GPU), I get Memory and Shader clock at 49.59% usage, VRAM at .07% (2M/2043M), GTT at .47 (14M/2942M) and everything else (Tesselator, Shader Interpolator, etc) is zero, even when running games.

My question is, is my GPU running the games? If not, then how can I run my games on GPU instead of CPU. If yes, then my bad luck. Thank you.
 
Old 07-25-2020, 05:28 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
I suppose both GPUs aren't brand-spanking-new? Then Linux should be able to deal with them.
2 GPUs in a laptop usually means some sort of hybrid graphics setup which requires special setup under Linux, too. Keywords are Bumblebee or ... I forget the other one. One was for Nvidia, the other for AMD.
Search your distro's wiki.
 
Old 07-25-2020, 06:19 AM   #3
biker_rat
Member
 
Registered: Feb 2010
Posts: 369

Rep: Reputation: 220Reputation: 220Reputation: 220
On some laptops , if you go into the bios settings , you can select the AMD graphics and disable the Intel. This is superquick and much easier than configuring hybrid graphics. With AMD enabled and Intel disabled your battery will drain faster in an unplugged situation than with a proper hybridized graphic setup, which is important to some people and not important to others. Some people switch to the intel in the bios and don't use graphic intensive apps when they are unplugged to avoid dealing with the more complex hybridized configuration. YMMV.
 
Old 07-25-2020, 08:03 AM   #4
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Quote:
Originally Posted by SegFault1 View Post
My question is, is my GPU running the games? If not, then how can I run my games on GPU instead of CPU. If yes, then my bad luck. Thank you.
Hybrid graphics are explained here.

You should see both GPUs with:
Code:
xrandr --listproviders
Then, set DRI_PRIME=0 to use the integrated GPU or DRI_PRIME=1 to use the discrete GPU.
Ed
 
1 members found this post helpful.
Old 07-26-2020, 07:06 AM   #5
SegFault1
LQ Newbie
 
Registered: Jul 2018
Distribution: Void Linux
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EdGr View Post
Then, set DRI_PRIME=0 to use the integrated GPU or DRI_PRIME=1 to use the discrete GPU.
Ed
This worked. Thank you.
 
  


Reply

Tags
amd, amdgpu, games, switchable graphics



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
finding OpenCL version slack (current) is using... GPU / Blender no recognize GPU BW-userx Slackware 2 02-28-2020 08:20 AM
Does blacklisting discrete GPU driver completely disables discrete GPU, or using acpi_call is better decision? SuperPrower Linux - Hardware 2 08-21-2017 08:32 PM
[SOLVED] using switch in a function to call another function with a switch but it is not going into 2 switch ... BW-userx Programming 2 08-20-2017 11:47 PM
how can I setup the amd GPU as a default gpu instead of intel graphics? divinefishersmith Linux - Newbie 33 08-22-2015 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration