KDE Plasma not starting after installing Nvidia non-free driver on 2012 MacBook Pro

Hmm, not sure that is correct. I have a mbp 2009 gt9400m running on nvidia340 and a 2015 gt860m running the video-hybrid-intel-nvidia-470xx-prime with a choice of 390 or 470 in manjaro hardware manager.

The 650m is much closer to that 860m, I’d definitely try 390 for that 2017! laptop. The nvidia site says 418 so the available manjaro 390 or, since it’s a hybrid, the video-hybrid-intel-nvidia-390xx-prime should get both intel and nvidia cards working.

just checked again, and the latest drivers for your nvidia are the 418:

so the 390 series that you had installed are correct, we just need to find out why they are not working …
thanks @6x12 for pointing it out …

Btw, this is a mbp 10,1 ‘mid 2012’, not a 2017! Exactly identifying your model is crucial with apple hardware, even inxi would show it. Unless you crop it off :roll_eyes:

I installed that 860m only 2 days ago, starting out running (2 screens nicely) only on the intel igpu and nouveau shown as driver for the inactive nvidia.
Manjaro settings manager, install the nidia390-intel-hybrid-prime. Don’t reboot. Remove the video-nvidia (nouveau). Reboot. Install optimus-manager and optimus-manager-qt if you want the panel applet. Reboot. Should look like this only with 390:

$ mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-470xx-prime            2021.11.04               false            PCI
     video-modesetting            2020.01.13                true            PCI

What I don’t get is that the mhwd -l does offer 390 and 390-hybrid-bumblebee but not video-hybrid-intel-nvidia-390xx-prime which is the one that should work.

Thanks for looking into this @6x12 and @brahma.

You’re right @6x12, it’s actually a 2012 MacBook Pro (10,1)! Sorry for the confusion. I’ve updated the post title.

This is what I see in Hardware Configuration after a fresh install,

I tried “Auto Install Proprietary Driver”, right-click > Remove on “video-linux”, then a reboot. Still seeing the same issue.

@6x12 can you point me in the right direction for installing nvidia390-intel-hybrid-prime?

As I said:

Let’s see if someone knows why video-hybrid-intel-nvidia-390xx-prime isn’t listed by mhwd. You should still be able to install the necessary packages outside mhwd but wait until @brahma or some of the more knowledgeable ppl chime in.

your laptop isnt a optimus/prime laptop thats why there are no prime drivers available …
and i think the reason you end up in a black screen, is that the bumblebee installs with it bbswitch which causes this …
it would be good to completely purge nvidia drivers/bbswitch/their configs first, and then trying to install the drivers manually, post output from:
pacman -Qs 'nvidia|bumblebee|bbswitch'
find /etc/X11/ -name "*.conf"

I have a clean install of Manjaro using the latest Plasma Desktop installer. Sorry, noob here, I’ll need some pointers on installing the drivers manually.

so if its a clean install, try installing these:

pamac install nvidia-390xx-utils linux515-nvidia-390xx lib32-nvidia-390xx-utils libxnvctrl-390xx

then reboot

if you again end up in a black screen, try entering into tty with Ctrl+Alt+F1 through F7 and remove them:

pamac remove nvidia-390xx-utils linux515-nvidia-390xx lib32-nvidia-390xx-utils libxnvctrl-390xx

reboot:
systemctl reboot

I think it technically is but it looks like OSX picks the (‘mac edition’ ?) card. You can run it on i915 or on the nvidia but you have to set it under OSX.

  • boot into OSX
  • install gfxcardstatus 2.2.1
  • select Discrete first ; then select Integrated card (a popup must be displayed in both cases in the top right corner indicating the operation succeeded)
  • reboot, start Linux
    MacBook Pro 10,1 + i915

…and you running on intel; cooler but with a lamer gfx. If you want more gfx power follow @brahma’s advice.

Update: MacBookPro10,x - ArchWiki has all/further info on the issues with the 10,1 15" model.

To sum it up: “Nouveau and intel work fine.”

That worked @brahma! Plasma starts up properly after installing those packages. And looks to be using the Nvidia GPU,

~> nvidia-smi -L
GPU 0: GeForce GT 650M (UUID: GPU-69b1f7e3-6b65-0cef-89c6-c58ed091b22d)

Also, the output you asked for earlier,

~> pacman -Qs 'nvidia|bumblebee|bbswitch'
local/egl-wayland 2:1.1.11-2
    EGLStream-based Wayland external platform
local/lib32-libvdpau 1.5-1
    Nvidia VDPAU library
local/lib32-nvidia-390xx-utils 390.154-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl-390xx 390.154-1
    NVIDIA NV-CONTROL X extension
local/linux515-nvidia-390xx 390.154-8 (linux515-extramodules)
    NVIDIA drivers for linux
local/mhwd-nvidia 515.65.01-3
    MHWD module-ids for nvidia 515.65.01
local/mhwd-nvidia-390xx 390.154-1
    MHWD module-ids for nvidia 390.154
local/mhwd-nvidia-470xx 470.141.03-1
    MHWD module-ids for nvidia 470.141.03
local/nvidia-390xx-utils 390.154-1
    NVIDIA drivers utilities
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards

and

~> find /etc/X11/ -name "*.conf"
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/xorg.conf.d/30-touchpad.conf

post the whole output from this:
nvidia-smi
inxi -G

~> nvidia-smi
Wed Sep 14 06:47:09 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.154                Driver Version: 390.154                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GT 650M     Off  | 00000000:01:00.0 N/A |                  N/A |
| N/A   41C    P5    N/A /  N/A |    404MiB /   981MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+
~> inxi -G
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel
  Device-2: NVIDIA GK107M [GeForce GT 650M Mac Edition] driver: nvidia
    v: 390.154
  Device-3: Apple FaceTime HD Camera (Built-in) type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.4 driver: X:
    loaded: modesetting,nvidia unloaded: nouveau gpu: i915,nvidia
    resolution: 2880x1800~60Hz
  OpenGL: renderer: GeForce GT 650M/PCIe/SSE2 v: 4.6.0 NVIDIA 390.154

so according to inxi, the proper nvidia are now installed… however nvidia is not active, according to nvidia-smi, so you are still on the intel one…
check the @6x12 post above on how to switch by setting it up under osx

I’m not dual-booting so I’ll have to reinstall macOS, but I want to try it now.

ok, so post output from:
lspci | grep nvidia

I did a net-install of macOS. Mountain Lion was a blast from the past. gfxcardstatus version 2.2.1 wasn’t available as a packaged release, so I installed 2.3 (after manually allowing some certificates globally in Keychain).

When I selected “Discrete”, it automatically switched back to “Dynamic”. I selected “Integrated” after that.

Screen Shot 2022-09-14 at 4.32.47 PM

Then I reinstalled Plasma Manjaro and ran,

pamac install nvidia-390xx-utils linux515-nvidia-390xx lib32-nvidia-390xx-utils libxnvctrl-390xx

Then did a reboot.

Didn’t seem to have the desired affect,

~> nvidia-smi
Thu Sep 15 08:09:16 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.154                Driver Version: 390.154                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GT 650M     Off  | 00000000:01:00.0 N/A |                  N/A |
| N/A   64C    P0    N/A /  N/A |    292MiB /   981MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+
~> inxi -G
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel
  Device-2: NVIDIA GK107M [GeForce GT 650M Mac Edition] driver: nvidia
    v: 390.154
  Device-3: Apple FaceTime HD Camera (Built-in) type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.4 driver: X:
    loaded: modesetting,nvidia unloaded: nouveau gpu: i915,nvidia
    resolution: 2880x1800~60Hz
  OpenGL: renderer: GeForce GT 650M/PCIe/SSE2 v: 4.6.0 NVIDIA 390.154
~> lspci | grep nvidia
~> 

I’m thinking I should just accept that this machine isn’t a hard-core gaming or 3D rendering machine. Getting the Nvidia drivers running isn’t straight forward on this mac specific hardware - especially for someone like me who hasn’t explored this stuff before. I might go back to the simpler open-source drivers.

thats why i asked for the lspci | grep nvidia output, to get nvidias busid, to create a conf that should switch to discrete only, if it would work of course…

gfxcardstatus version 2.2.1 wasn’t available

As far as I know it has to be 2.2.1, later versions have a problem activating the Intel (although yours does show in inxi). Check the arch wiki link at your first thread: KDE Plasma not starting after installing Nvidia non-free driver on 2012 MacBook Pro - #15 by 6x12

Wouldn’t it be possible to offload to the Nvidia GPU manually? Wild guess following how it works with prime-run, we can try to see the result with these commands:

glxinfo | grep vendor
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep vendor

Give result of both commands, if you don’t have glxinfo installed, install mesa-utils package first.

//EDIT: maybe it requires a proper xorg configuration file, maybe driver 390 can’t work like that.