Force Manjaro to use AMD dedicated GPU instead of CPU's integrated one on laptop.

Hey there!
My first post here :slight_smile:
So, I'm having some trouble troubleshooting my Manjaro installation, in regards to the GPU setup. This is a laptop with two graphics cards: one integrated and a dedicated AMD one. I've noticed my GPU isn't being used at, as it seems. I first realized this was happening when psensor wasn't showing up anything about the GPU (below you can see the output of sensors where there's not entry for the graphics card). After some research, I checked inxi -G (you can see the output of inxi -Fx down below) and in fact, the Intel integrated one is being used in the Display and OpenGL. I also saw that there was no driver for the AMD GPU. I did some more digging afterwards, trying to find a way to set the AMD card as the proper hardware to use for these renderers, with no success. I finally ran lspci -k and there's no kernel in use on the entry for the dedicated GPU, despite having both the radeon and amdgpu driver modules.
I'm quite lost with this issue, and I fear my GPU might be foobared. Any ideas?

Thanks in advance!

Now the spammy part :stuck_out_tongue:

sensors

BAT0-acpi-0
Adapter: ACPI interface
in0:          14.80 V  
curr1:            N/A  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +58.8°C  (crit = +159.8°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +58.0°C  (high = +87.0°C, crit = +105.0°C)
Core 0:        +54.0°C  (high = +87.0°C, crit = +105.0°C)
Core 1:        +58.0°C  (high = +87.0°C, crit = +105.0°C)
Core 2:        +54.0°C  (high = +87.0°C, crit = +105.0°C)
Core 3:        +50.0°C  (high = +87.0°C, crit = +105.0°C)

lspci -k

00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
	Subsystem: CLEVO/KAPOK Computer 3rd Gen Core processor DRAM Controller
	Kernel driver in use: ivb_uncore
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
	Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
	DeviceName:  Onboard IGD
	Subsystem: CLEVO/KAPOK Computer 3rd Gen Core processor Graphics Controller
	Kernel driver in use: i915
	Kernel modules: i915
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
	Subsystem: CLEVO/KAPOK Computer 7 Series/C210 Series Chipset Family USB xHCI Host Controller
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
	Subsystem: CLEVO/KAPOK Computer 7 Series/C216 Chipset Family MEI Controller
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
	Subsystem: CLEVO/KAPOK Computer 7 Series/C216 Chipset Family USB Enhanced Host Controller
	Kernel driver in use: ehci-pci
	Kernel modules: ehci_pci
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
	Subsystem: CLEVO/KAPOK Computer 7 Series/C216 Chipset Family High Definition Audio Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
	Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
	Kernel driver in use: pcieport
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
	Kernel driver in use: pcieport
00:1c.3 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 4 (rev c4)
	Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
	Subsystem: CLEVO/KAPOK Computer 7 Series/C216 Chipset Family USB Enhanced Host Controller
	Kernel driver in use: ehci-pci
	Kernel modules: ehci_pci
00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04)
	Subsystem: CLEVO/KAPOK Computer HM77 Express Chipset LPC Controller
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich
00:1f.2 IDE interface: Intel Corporation 7 Series Chipset Family 4-port SATA Controller [IDE mode] (rev 04)
	Subsystem: CLEVO/KAPOK Computer 7 Series Chipset Family 4-port SATA Controller [IDE mode]
	Kernel driver in use: ata_piix
	Kernel modules: ata_piix, pata_acpi, ata_generic
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
	Subsystem: CLEVO/KAPOK Computer 7 Series/C216 Chipset Family SMBus Controller
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
00:1f.5 IDE interface: Intel Corporation 7 Series Chipset Family 2-port SATA Controller [IDE mode] (rev 04)
	Subsystem: CLEVO/KAPOK Computer 7 Series Chipset Family 2-port SATA Controller [IDE mode]
	Kernel driver in use: ata_piix
	Kernel modules: ata_piix, pata_acpi, ata_generic
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Wimbledon XT [Radeon HD 7970M]
	Subsystem: CLEVO/KAPOK Computer Wimbledon XT [Radeon HD 7970M]
	Kernel modules: radeon, amdgpu
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader (rev 01)
	Subsystem: CLEVO/KAPOK Computer RTL8411 PCI Express Card Reader
	Kernel driver in use: rtsx_pci
	Kernel modules: rtsx_pci
03:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a)
	Subsystem: CLEVO/KAPOK Computer RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Kernel driver in use: r8169
	Kernel modules: r8169
04:00.0 Network controller: Intel Corporation Centrino Advanced-N 6235 (rev 24)
	Subsystem: Intel Corporation Centrino Advanced-N 6235 AGN
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
05:00.0 FireWire (IEEE 1394): JMicron Technology Corp. IEEE 1394 Host Controller (rev 30)
	Subsystem: CLEVO/KAPOK Computer IEEE 1394 Host Controller
	Kernel driver in use: firewire_ohci
	Kernel modules: firewire_ohci

inxi -Fx

System:    Host: tmpod-manjaro Kernel: 5.4.6-2-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.0 Desktop: Cinnamon 4.4.5 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: CLEVO product: P170EM v: N/A serial: <root required> 
           Mobo: CLEVO model: P170EM serial: <root required> BIOS: American Megatrends v: 4.6.5 date: 12/19/2012 
Battery:   ID-1: BAT0 charge: 9.5 Wh condition: 9.5/77.0 Wh (12%) model: Clevo CO. X51 status: Full 
CPU:       Topology: Quad Core model: Intel Core i7-3630QM bits: 64 type: MT MCP arch: Ivy Bridge rev: 9 L2 cache: 6144 KiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 38333 
           Speed: 1369 MHz min/max: 1200/3400 MHz Core speeds (MHz): 1: 1336 2: 1366 3: 1336 4: 1397 5: 1382 6: 1377 7: 1380 
           8: 1380 
Graphics:  Device-1: Intel 3rd Gen Core processor Graphics vendor: CLEVO/KAPOK driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: Advanced Micro Devices [AMD/ATI] Wimbledon XT [Radeon HD 7970M] vendor: CLEVO/KAPOK driver: N/A 
           bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.6 driver: intel unloaded: modesetting resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel Ivybridge Mobile v: 4.2 Mesa 19.3.5 direct render: Yes 
Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: CLEVO/KAPOK driver: snd_hda_intel v: kernel 
           bus ID: 00:1b.0 
           Sound Server: ALSA v: k5.4.6-2-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: CLEVO/KAPOK driver: r8169 v: kernel 
           port: d000 bus ID: 03:00.2 
           IF: enp3s0f2 state: down mac: 00:90:f5:e0:78:8c 
           Device-2: Intel Centrino Advanced-N 6235 driver: iwlwifi v: kernel port: d000 bus ID: 04:00.0 
           IF: wlp4s0 state: up mac: c8:f7:33:99:45:8f 
Drives:    Local Storage: total: 931.52 GiB used: 151.56 GiB (16.3%) 
           ID-1: /dev/sda vendor: Western Digital model: WD7500BPKT-75PK4T0 size: 698.64 GiB 
           ID-2: /dev/sdb vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB 
Partition: ID-1: / size: 176.18 GiB used: 151.56 GiB (86.0%) fs: ext4 dev: /dev/sdb2 
           ID-2: swap-1 size: 7.89 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda6 
Sensors:   System Temperatures: cpu: 60.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 259 Uptime: 1h 44m Memory: 15.53 GiB used: 3.23 GiB (20.8%) Init: systemd Compilers: gcc: 9.2.0 
           clang: 9.0.0 Shell: fish v: 3.0.2 inxi: 3.0.37

Edit: fix a typo

Having the same issue with my Dell Inspiron 15, integrated Intel/Nvidia Geforce card. So eagerly awaiting a solution to your topic.

sounds similar but it's not, intel/nvidia optimus laptop options and links to each directions
https://archived.forum.manjaro.org/t/options-for-nvidia-optimus-graphics/75185

@timpod to specify the dGPU to be used you would run the command with DRI_PRIME=1 command .

does running show the dGPU as being the opengl renderer?

DRI_PRIME=1 inxi -Gxxz

if not you might need to enable support for your gpu (southern islands) for amdgpu drivers to load, to do that you can create this file and content

#/etc/modprobe.d/amdgpu.conf

options amdgpu si_support=1
options amdgpu cik_support=0

reboot after

#dglt thanks for the reply, had tried the Nvidia-prime option, but somehow lost the use of my touchpad in the process. So having to navigate by kb to restore, made me think twice about trying it again as I'm not doing anything graphics intensive. This appears to have been a problem for a number of years, so was hoping someone had developed a plug & forget driver :slight_smile:

if you added acpi_osi=! as a parameter for whatever reason then thats what probably broke your touchpad. anyway this is someone else's thread so i'll pm you and request terminal outputs. dont respond here

Nope :frowning:

Graphics:  Device-1: Intel 3rd Gen Core processor Graphics vendor: CLEVO/KAPOK driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:0166 
           Device-2: Advanced Micro Devices [AMD/ATI] Wimbledon XT [Radeon HD 7970M] vendor: CLEVO/KAPOK driver: N/A 
           bus ID: 01:00.0 chip ID: 1002:6800 
           Display: x11 server: X.Org 1.20.6 driver: intel unloaded: modesetting alternate: fbdev,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel Ivybridge Mobile v: 4.2 Mesa 19.3.5 compat-v: 3.0 direct render: Yes

I didn't have the amdgpu.conf file but I had put some similar options in GRUB. I did this because Cinnamon (or something else might have been causing it) sometimes froze in the login screen when booting up. The options I used were radeon.si_support=0 radeon.cik_support=0 radeon.dc=0 radeon.dpm=0 amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.dc=1 amdgpu.dpm=1, so ig these options are enabled already? Either way, I'm going to attempt what you suggested. Will reply with the results.

Edit: missed a grub flag

Just rebooted and the exact same thing is displayed on inxi.

cik (sea islands) should be set to 0.

post these outputs

mhwd -li
grep "MODULES=" /etc/mkinitcpio.conf
ls -laR /etc/X11 ; cat /etc/X11/xorg.conf.d/*.conf
ls -la /etc/modprobe.d ; cat /etc/modprobe.d/*.conf
ls -la /etc/modules-load.d ; cat /etc/modules-load.d/*.conf

Here they are :slight_smile:

mhwd -li

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!

grep "MODULES=" /etc/mkinitcpio.conf

#     MODULES=(piix ide_disk reiserfs)
MODULES=""

ls -laR /etc/X11 ; cat /etc/X11/xorg.conf.d/*.conf

/etc/X11:
total 40
drwxr-xr-x   5 root root  4096 dez 10 12:51 ./
drwxr-xr-x 109 root root 12288 mar 21 14:01 ../
drwxr-xr-x   2 root root  4096 nov 19 23:58 mhwd.d/
drwxr-xr-x   3 root root  4096 dez 10 12:51 xinit/
drwxr-xr-x   2 root root  4096 dez 22 15:20 xorg.conf.d/

/etc/X11/mhwd.d:
total 12
drwxr-xr-x 2 root root 4096 nov 19 23:58 ./
drwxr-xr-x 5 root root 4096 dez 10 12:51 ../

/etc/X11/xinit:
total 28
drwxr-xr-x 3 root root 4096 dez 10 12:51 ./
drwxr-xr-x 5 root root 4096 dez 10 12:51 ../
-rw-r--r-- 1 root root  739 mar  4  2019 xinitrc
drwxr-xr-x 2 root root 4096 dez 10 12:49 xinitrc.d/
-rw-r--r-- 1 root root   45 mar  4  2019 xserverrc

/etc/X11/xinit/xinitrc.d:
total 20
drwxr-xr-x 2 root root 4096 dez 10 12:49 ./
drwxr-xr-x 3 root root 4096 dez 10 12:51 ../
-rwxr-xr-x 1 root root  318 nov  9  2018 40-libcanberra-gtk-module.sh*
-rwxr-xr-x 1 root root  203 dez  8 08:59 50-systemd-user.sh*

/etc/X11/xorg.conf.d:
total 16
drwxr-xr-x 2 root root 4096 dez 22 15:20 ./
drwxr-xr-x 5 root root 4096 dez 10 12:51 ../
-rw-r--r-- 1 root root  301 dez 22 15:20 00-keyboard.conf
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "gb"
        Option "XkbModel" "pc105"
        Option "XkbVariant" "extd"
EndSection

ls -la /etc/modprobe.d ; cat /etc/modprobe.d/*.conf

total 24
drwxr-xr-x   2 root root  4096 mar 21 13:57 ./
drwxr-xr-x 109 root root 12288 mar 21 14:01 ../
-rw-r--r--   1 root root    57 mar 21 13:57 amdgpu.conf
options amdgpu si_support=1
options amdgpu cik_support=0

ls -la /etc/modules-load.d ; cat /etc/modules-load.d/*.conf

total 24
drwxr-xr-x   2 root root  4096 dez 10 12:47 ./
drwxr-xr-x 109 root root 12288 mar 21 14:01 ../
-rw-r--r--   1 root root    34 nov 19 22:24 modules.conf
# List of modules to load at boot

ok, edit /etcmkinitcpio.conf and make the MODULES= line look like this

MODULES="amdgpu radeon"

save/exit, and run sudo mkinitcpio -P

reboot after and see if anything changed

Just did that and nothing changed. Thanks for your time so far :slight_smile:

PS: sry for late reply

Hi, i saw this post, can u tell me where i can find those folders to add those parameters, i have issue where vulkan and dxvt are said to be not installed or not supported ?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by