CPU and GPU mixed usage trouble

I looked for a while and found nothing so I am asking here.

Installed Manjaro KDE today on an MSI GS60 Ghost Pro. The power button changes color depending on the GPU being used. For the first few hours it was normal, meaning the Intel GPU was being used for basic applications. However, so far I have encountered the following issues I cannot resolve or find a solution to:

  • When running Steam, Intel GPU is being used instead of NVIDIA.
  • After making some minor UI changes and rebooting to see them, the color on the power button started indicating the NVIDIA GPU being used. It's been like that ever since. Steam still runs on integrated graphics, though. : D

What do? Plis, halp.

My speculation is I have missed something when installing drivers or the like. I did download the latest hybrid driver and installed it but nothing else in particular.

Please reference me to useful threads or ask whatever you would like to know.
My knowledge of Linux may be devastatingly close to null but I hope to manage with online guides if you tell me what has to be done to reach the desired info.

Thanks in advance.

System:    Kernel: 5.6.4-1-rt3-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.6-rt-x86_64 
           root=UUID=b8d31c08-795a-4a67-b5ce-a0c3300cd47f rw quiet intel_iommu=on 
           Desktop: KDE Plasma 5.18.4 tk: Qt 5.14.2 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Laptop System: Micro-Star product: GS60 2QE v: REV:1.0 serial: <filter> Chassis: 
           type: 10 serial: <filter> 
           Mobo: Micro-Star model: MS-16H5 v: REV:0.B serial: <filter> UEFI: American Megatrends 
           v: E16H5IMS.509 date: 07/27/2015 
Battery:   ID-1: BAT1 charge: 30.7 Wh condition: 33.2/49.0 Wh (68%) volts: 12.4/11.4 
           model: MSI BIF0_9 type: Li-ion serial: N/A status: Unknown 
CPU:       Topology: Quad Core model: Intel Core i7-5700HQ bits: 64 type: MT MCP arch: Broadwell 
           family: 6 model-id: 47 (71) stepping: 1 microcode: 21 L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 43119 
           Speed: 1098 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 1161 2: 1256 3: 1259 
           4: 1257 5: 1342 6: 1295 7: 1293 8: 1249 
           Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass 
           mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, 
           STIBP: conditional, RSB filling 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel HD Graphics 5600 vendor: Micro-Star MSI driver: i915 v: kernel 
           bus ID: 00:02.0 chip ID: 8086:1612 
           Device-2: NVIDIA GM204M [GeForce GTX 970M] vendor: Micro-Star MSI driver: N/A 
           bus ID: 01:00.0 chip ID: 10de:13d8 
           Display: x11 server: X.Org 1.20.8 driver: modesetting unloaded: intel,vesa 
           alternate: fbdev compositor: kwin_x11 resolution: 3840x2160~60Hz 
           OpenGL: renderer: Mesa Intel HD Graphics 5600 (BDW GT2) v: 4.6 Mesa 20.0.4 
           direct render: Yes 
Audio:     Device-1: Intel Broadwell-U Audio vendor: Micro-Star MSI driver: snd_hda_intel 
           v: kernel bus ID: 00:03.0 chip ID: 8086:160c 
           Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Micro-Star MSI 
           driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:8c20 
           Sound Server: ALSA v: k5.6.4-1-rt3-MANJARO 
Network:   Device-1: Qualcomm Atheros Killer E220x Gigabit Ethernet vendor: Micro-Star MSI 
           driver: alx v: kernel port: 3000 bus ID: 04:00.0 chip ID: 1969:e091 
           IF: enp4s0 state: down mac: <filter> 
           Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
           vendor: Bigfoot Networks Killer N1525 Wireless-AC driver: ath10k_pci v: kernel 
           port: 3000 bus ID: 05:00.0 chip ID: 168c:003e 
           IF: wlp5s0 state: up mac: <filter> 
           Device-3: Qualcomm Atheros AR3012 Bluetooth 4.0 type: USB driver: btusb 
           bus ID: 1-1.3:3 chip ID: 0cf3:3004 
Drives:    Local Storage: total: 1.03 TiB used: 15.15 GiB (1.4%) 
           ID-1: /dev/sda vendor: Toshiba model: THNSNJ128G8NU size: 119.24 GiB block size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: 0102 scheme: GPT 
           ID-2: /dev/sdb vendor: HGST (Hitachi) model: HTS721010A9E630 size: 931.51 GiB 
           block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s rotation: 7200 rpm 
           serial: <filter> rev: A3J0 scheme: GPT 
Partition: ID-1: / raw size: 110.15 GiB size: 107.92 GiB (97.98%) used: 15.15 GiB (14.0%) 
           fs: ext4 dev: /dev/sda2 
           ID-2: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap swappiness: 60 (default) 
           cache pressure: 100 (default) dev: /dev/sda3 
Sensors:   System Temperatures: cpu: 59.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 277 Uptime: 1h 25m Memory: 15.54 GiB used: 4.33 GiB (27.9%) Init: systemd 
           v: 244 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.16 running in: konsole inxi: 3.0.37 
  1. In hybrid mode, you need to:

    prime-run NameOfExecutable
    

    to have the nVidia take up the application NameOfExecutable (I don't use Steam, but here are some screenshots on how to accomplish this and here is a way of automating this through environment variables and the whole shebang is here...)

  2. If you turn on too many pizzas in KDE, KDE will automatically turn on the nVidia for said pizzas, so turn your settings back off! We don't know what you did but the easy ones are here:

    2020-04-23_00-10

    That didn't fix it? Transparent windows, cube desktop animation, magic lamps, ... are the most likely culprits, and if that doesn't help either, let us know if that also happens in a new user different from your existing one. (E.G. xeno2).

Thank you for the swift response, Fabby!

I have been trying all those things and nothing is working so far.

  • Steam is lagging for no reason even when browsing. Thumbnails are animated and when you move your cursor, they enlarge a bit. Usually it's a smooth animation but now it's obviously choppy.
  • Dedicated GPU is still being used without any reason even after turning off every single desktop effect. When I go to nvidia-settings it says there is no such driver detected. When I try to have the GPU's listed with lspci -k | grep -A 2 -i "VGA" only the Intel one appears.
  • CPU and GPU both have high usage. Fans are flapping, at times, so hard that I feel like the laptop is gonna take off. Seriously, what. :smiley:

Been reading in forums and testing every possible command and execution, ran into several more issues on the way, including apt-get command not being found and others.

What happens if you create a new user E.G. xeno2 and log in there? Is that one still having the same issue?

If yes, provide the output of:

mhwd --list
mhwd --listinstalled

If no, I've got a trick up my sleeves to easily resolve this...

First command brought up the following:

> 0000:01:00.0 (0302:10de:13d8) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-440xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-435xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-430xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-418xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2019.10.25               false            PCI
    video-nvidia-440xx            2019.10.25               false            PCI
    video-nvidia-435xx            2019.10.25               false            PCI
    video-nvidia-430xx            2019.10.25               false            PCI
    video-nvidia-418xx            2019.10.25               false            PCI
    video-nvidia-390xx            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI


> 0000:00:02.0 (0300:8086:1612) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-440xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-435xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-430xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-418xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

And this is the result from the second command:


> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
            video-vesa            2017.03.12                true            PCI
     video-modesetting            2020.01.13                true            PCI
           video-linux            2018.05.04                true            PCI
video-hybrid-intel-nvidia-440xx-prime            2019.10.25               false            PCI


Warning: No installed USB configs!

I'm sorry: I made a mistake in my previous question to you:

So is it happening in the new user as well?

And video-vesa is definitely not needed so:

sudo mhwd --remove pci video-vesa

I think it was me that misunderstood the question.

Tried what you suggested. The color of the power button still indicates dedicated GPU being used. The only time it doesn't show such usage is I boot the system, right before the KDE loading screen appears. And a weird thing I noticed is that if I try to login to the og user when changing users, I am redirected to the Plasma made by KDE loading screen. There, the loading icon stops spinning after a few seconds and I have to manually turn off the system from the power button.

The commands' output are as follows:
mhwd --list:

> 0000:01:00.0 (0302:10de:13d8) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-440xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-435xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-430xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-418xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2019.10.25               false            PCI
    video-nvidia-440xx            2019.10.25               false            PCI
    video-nvidia-435xx            2019.10.25               false            PCI
    video-nvidia-430xx            2019.10.25               false            PCI
    video-nvidia-418xx            2019.10.25               false            PCI
    video-nvidia-390xx            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI


> 0000:00:02.0 (0300:8086:1612) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-440xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-435xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-430xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-418xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


mhwd --listinstalled:

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI
           video-linux            2018.05.04                true            PCI
video-hybrid-intel-nvidia-440xx-prime            2019.10.25               false            PCI


Warning: No installed USB configs!

I'm all out of ideas, sorry.... The nVidia should only be used with a prime-run szApplicationCommand and as I don't have an MSI, I don't know what that button is telling you exactly (also: I run in full nVidia mode all of the time)

:sob:

1 Like

Not at all. I really appreciate the help.
After a whole day of failures I decided to simply perform a clean install of Manjaro all over again.
Started to document every change in a note on my phone in case I encounter an issue. Helps to keep check of what's done and what's to be done. Also following some tutorials on YouTube to confirm all necessary steps and commands. This time I am more aware of my string of actions.

  • Orange light on power button still indicates dedicated GPU usage. However, I am pretty sure it's because when installing Manjaro this time, I chose nonfree driver. As such, the system must have chosen to use the NVIDIA GPU as the default one. Been monitoring temps since the beginning using sensors and NVIDIA X Server Settings' Thermal Settings tab. A spike in CPU usage could be seen whilst downloading and installing large quantity of packages and updates before first reboot on the fresh system. Unusual? Don't know but otherwise it's functioning at a lean 45 degrees Celsius/113 degrees Fahrenheit.
  • Steam using integrated CPU issue is still persistent. However, I hope to fix it now, following the links you sent and comparing with other sources. Will edit this reply after I have more info on the matter.
1 Like

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

Forum kindly sponsored by