MacBookPro+ Razer CoreX with Geforce RTX2080 super doesnt work in Ubuntu 18.04

if I turn on or restart the computer with the eGPU connected it does not turn on, it stays black …

I have always connected eGPU after login in ubuntu …
and then logout again. but it does not work,

do you have any idea

and now it doesn’t recognize my ethernet connection …

sorry

Please check if removing it from the bus and adding it back makes it work:
https://github.com/Dunedan/mbp-2016-linux/issues/60#issuecomment-397834729

f##k me… i cant…

1./
(base) jorgeandrespenaaraya@jorgeandrespenaaraya-MacBookPro:~$ echo 1 > /sys/bus/pci/devices/0000:00:01.1/remove
bash: /sys/bus/pci/devices/0000:00:01.1/remove: Permission denied

(base) jorgeandrespenaaraya@jorgeandrespenaaraya-MacBookPro:~$ echo 1 > /sys/bus/pci/devices/0000:00:01.2/remove
bash: /sys/bus/pci/devices/0000:00:01.2/remove: Permission denied

i cant remove …or change the permission…

(base) jorgeandrespenaaraya@jorgeandrespenaaraya-MacBookPro:~$ cd /sys/bus/pci/devices

(base) jorgeandrespenaaraya@jorgeandrespenaaraya-MacBookPro:/sys/bus/pci/devices$ ls
0000:00:00.0 0000:00:1c.0 0000:01:00.0 0000:06:00.0 0000:b7:00.0
0000:00:01.0 0000:00:1e.0 0000:01:00.1 0000:07:00.0 0000:b8:01.0
0000:00:01.1 0000:00:1e.1 0000:02:00.0 0000:7a:00.0 0000:b9:00.0
0000:00:01.2 0000:00:1e.2 0000:03:00.0 0000:7b:00.0 0000:b9:00.1
0000:00:14.0 0000:00:1e.3 0000:04:00.0 0000:7b:01.0 0000:b9:00.2
0000:00:15.0 0000:00:1f.0 0000:05:00.0 0000:7b:02.0 0000:b9:00.3
0000:00:16.0 0000:00:1f.2 0000:05:01.0 0000:7b:04.0
0000:00:19.0 0000:00:1f.3 0000:05:02.0 0000:7c:00.0
0000:00:1b.0 0000:00:1f.4 0000:05:04.0 0000:7d:00.0

(base) jorgeandrespenaaraya@jorgeandrespenaaraya-MacBookPro:/sys/bus/pci/devices$ rm 0000:00:01.1
rm: cannot remove ‘0000:00:01.1’: Permission denied

$ ls -la
total 0
drwxr-xr-x 2 root root 0 jun 17 18:32 .
drwxr-xr-x 5 root root 0 jun 17 18:32 …
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:00.0 → …/…/…/devices/pci0000:00/0000:00:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:01.0 → …/…/…/devices/pci0000:00/0000:00:01.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:01.1 → …/…/…/devices/pci0000:00/0000:00:01.1
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:01.2 → …/…/…/devices/pci0000:00/0000:00:01.2
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:14.0 → …/…/…/devices/pci0000:00/0000:00:14.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:15.0 → …/…/…/devices/pci0000:00/0000:00:15.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:16.0 → …/…/…/devices/pci0000:00/0000:00:16.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:19.0 → …/…/…/devices/pci0000:00/0000:00:19.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:1b.0 → …/…/…/devices/pci0000:00/0000:00:1b.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:1c.0 → …/…/…/devices/pci0000:00/0000:00:1c.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:1e.0 → …/…/…/devices/pci0000:00/0000:00:1e.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:1e.1 → …/…/…/devices/pci0000:00/0000:00:1e.1
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:1e.2 → …/…/…/devices/pci0000:00/0000:00:1e.2
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:1e.3 → …/…/…/devices/pci0000:00/0000:00:1e.3
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:1f.0 → …/…/…/devices/pci0000:00/0000:00:1f.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:1f.2 → …/…/…/devices/pci0000:00/0000:00:1f.2
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:1f.3 → …/…/…/devices/pci0000:00/0000:00:1f.3
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:00:1f.4 → …/…/…/devices/pci0000:00/0000:00:1f.4
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:01:00.0 → …/…/…/devices/pci0000:00/0000:00:01.0/0000:01:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:01:00.1 → …/…/…/devices/pci0000:00/0000:00:01.0/0000:01:00.1
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:02:00.0 → …/…/…/devices/pci0000:00/0000:00:1b.0/0000:02:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:03:00.0 → …/…/…/devices/pci0000:00/0000:00:1c.0/0000:03:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:04:00.0 → …/…/…/devices/pci0000:00/0000:00:01.1/0000:04:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:05:00.0 → …/…/…/devices/pci0000:00/0000:00:01.1/0000:04:00.0/0000:05:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:05:01.0 → …/…/…/devices/pci0000:00/0000:00:01.1/0000:04:00.0/0000:05:01.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:05:02.0 → …/…/…/devices/pci0000:00/0000:00:01.1/0000:04:00.0/0000:05:02.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:05:04.0 → …/…/…/devices/pci0000:00/0000:00:01.1/0000:04:00.0/0000:05:04.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:06:00.0 → …/…/…/devices/pci0000:00/0000:00:01.1/0000:04:00.0/0000:05:00.0/0000:06:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:07:00.0 → …/…/…/devices/pci0000:00/0000:00:01.1/0000:04:00.0/0000:05:02.0/0000:07:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:7a:00.0 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:7b:00.0 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0/0000:7b:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:7b:01.0 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0/0000:7b:01.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:7b:02.0 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0/0000:7b:02.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:7b:04.0 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0/0000:7b:04.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:7c:00.0 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0/0000:7b:00.0/0000:7c:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:7d:00.0 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0/0000:7b:02.0/0000:7d:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:b7:00.0 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0/0000:7b:04.0/0000:b7:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:b8:01.0 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0/0000:7b:04.0/0000:b7:00.0/0000:b8:01.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:b9:00.0 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0/0000:7b:04.0/0000:b7:00.0/0000:b8:01.0/0000:b9:00.0
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:b9:00.1 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0/0000:7b:04.0/0000:b7:00.0/0000:b8:01.0/0000:b9:00.1
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:b9:00.2 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0/0000:7b:04.0/0000:b7:00.0/0000:b8:01.0/0000:b9:00.2
lrwxrwxrwx 1 root root 0 jun 17 18:32 0000:b9:00.3 → …/…/…/devices/pci0000:00/0000:00:01.2/0000:7a:00.0/0000:7b:04.0/0000:b7:00.0/0000:b8:01.0/0000:b9:00.3

i did that…

(base) jorgeandrespenaaraya@jorgeandrespenaaraya-MacBookPro:~$ echo 1 | sudo /sys/bus/pci/devices/0000:00:01.1/remove
[sudo] password for jorgeandrespenaaraya:
sudo: /sys/bus/pci/devices/0000:00:01.1/remove: command not found

(base) jorgeandrespenaaraya@jorgeandrespenaaraya-MacBookPro:~$ echo 1 | sudo /sys/bus/pci/devices/0000:00:01.2/remove
sudo: /sys/bus/pci/devices/0000:00:01.2/remove: command not found

(base) jorgeandrespenaaraya@jorgeandrespenaaraya-MacBookPro:~$ echo 1 | sudo tee /sys/bus/pci/rescan
1

think they were erased … right?

but when i reboot, it continues to black out the screens

Get a root shell first
sudo -s
and then just run the commands without sudo

I did it, …thanks generix

then restart the computer … and it freezes …

Don’t reboot after you issued the commands, instead run
sudo dmesg >dmesg.log
and attach the output file dmesg.log to your post.

(base) root@jorgeandrespenaaraya-MacBookPro:~# echo 1 > /sys/bus/pci/devices/0000:00:01.1/remove
(base) root@jorgeandrespenaaraya-MacBookPro:~# echo 1 > /sys/bus/pci/devices/0000:00:01.2/remove
(base) root@jorgeandrespenaaraya-MacBookPro:~# echo 1 > /sys/bus/pci/rescan
(base) root@jorgeandrespenaaraya-MacBookPro:~# sudo dmesg >dmesg.log

dmesg.log (237.5 KB)

Looks like the nvidia gpu should be accessible, the driver loads after issueing the commands.

It is the first time that it appears in months … :)
I had to change the driver to 435 … it doesn’t work with cuda … you know why?

and I have a monitor connected and it’s still black

do you have another suggestion

Thanks a lot

sorry for any inconvenience

Why did you have to revert the driver to 435?

To have the Desktop expanded to the nvidia outputs,
modify /usr/share/X11/xorg.conf.d/10-amdgpu.conf
replacing only

Driver "amdgpu"

with

Driver "modesetting"

Please add inside the OutputClass of /usr/share/X11/xorg.conf.d/10-nvidia.conf

Option "PrimaryGPU" "Yes"
Option "AllowExternalGpus" "true"

Then create two files optimus.desktop in /etc/xdg/autostart/ and /usr/share/gdm/greeter/autostart/ containing

[Desktop Entry]
Type=Application
Name=Optimus
Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto"
NoDisplay=true
X-GNOME-Autostart-Phase=DisplayServer

Then log out, switch to VT (ctrl+alt+f4), log in and restart gdm
sudo systemctl restart gdm

Why did you have to roll back the controller to 435?

I don’t know why, but it was the only way it worked … :(

Regarding the external monitor, I did what you suggested. after
sudo systemctl restart gdm

The purple screen appears on the external monitor and I log in, but after a few seconds (black screens) the purple screen comes back and I login again, … and again and again (I don’t log in)…:(

sorry. it worked with 440 nvidia driver…

understand that to configure the monitor use the GDM software.

Thank you generix

Please create a new nvidia-bug-report.log in the current state.

nvidia-bug-report20_6.log (930.4 KB)

Hi @generix , I’ve done everything you mentioned above but still won’t be able to get it working. I have retried a couple times as well. Could you please take a look?

The setting is MacBookPro + RazerCoreX with Geforce GTX1080 Ti on Ubuntu 20.4.2 and nvidia-driver 460.

$ nvidia-settings

ERROR: Unable to load info from any available system

(nvidia-settings:3562): GLib-GObject-CRITICAL **: 21:32:14.291: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 21:32:14.295: PRIME: Requires offloading
** Message: 21:32:14.295: PRIME: is it supported? yes
** Message: 21:32:14.327: PRIME: Usage: /usr/bin/prime-select nvidia|intel|on-demand|query
** Message: 21:32:14.327: PRIME: on-demand mode: “1”
** Message: 21:32:14.327: PRIME: is “on-demand” mode supported? yes

$ nvidia-smi
No devices were found

$ sudo dmesg >dmesg.log
dmesg.log (101.9 KB)

nvidia-bug-report.log (3.0 MB)

Would really appreciate your help!