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

I have tried installing Nvidia non-free drivers two different ways,

  1. Clicking “Auto Install Proprietry Driver” in System Settings > Hardware Configuration
  2. From command line with sudo mhwd -a pci nonfree 0300

After rebooting, I don’t see the log in screen. Just a black screen with one line of boot console output.

Switching consoles with Ctrl+Alt+F1 through F7 does not work. I can recover by booting into Manjaro Live CD, using sudo manjaro-chroot -a, then uninstalling the proprietry driver with sudo mhwd -r pci video-hybrid-intel-nvidia-390xx-bumblebee. System works fine after reboot.

Some system info,

~> inxi
CPU: quad core Intel Core i7-3635QM (-MT MCP-)
speed/min/max: 1732/1200/3400 MHz Kernel: 5.15.60-1-MANJARO x86_64 Up: 1h 33m
Mem: 3437.8/7854.2 MiB (43.8%) Storage: 233.76 GiB (3.8% used) Procs: 277
Shell: Zsh inxi: 3.3.21
~> 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: nouveau
    v: kernel
  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
    gpu: nouveau resolution: 2880x1800~60Hz
  OpenGL: renderer: NVE7 v: 4.3 Mesa 22.1.6
~> mhwd -l
> 0000:01:00.0 (0300:10de:0fd5) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-390xx-bumblebee            2021.11.26               false            PCI
    video-nvidia-390xx            2021.11.26               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:00:02.0 (0300:8086:0166) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-390xx-bumblebee            2021.11.26               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

Any suggestions to get the proprietary drivers working (so I can use hardware accelerated rendering in blender)? Any extra info I can provide?

it looks like your card GeForce GT 650M is no longer supported - you need the 340xx drivers for it, which you have to install manually, but first remove the current nvidia drivers that you have installed, check with:
mhwd -li

Thanks for the prompt reply @brahma. I haven’t installed them manually before. Trying to decide whether to just install the AUR package nvidia-340xx, or follow this post which involves downloading the specific driver from Nvidia: https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-manjaro-linux

check this link:

As I used to use the 340x drivers in my laptop, may I suggest you try the Nouveau drivers? I have been using them for many months. They will do any 2D desktop task you want.

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.