Share:

Ubuntu login screen loop when eGPU connected  

  RSS

goksel
(@goksel)
Active Member
Joined: 1 month ago
Posts: 5
April 26, 2019 12:32 am  

Ubuntu login screen loop when eGPU connected
My Aorus gaming box (nvidia 1070) works on windows with no issues but stuck on login screen on ubuntu 18.10 (dell xps 15 9570 with dual gpu - intel / nvidia 1050ti). I type password and Im asked for password again with no error

Disabled Thunderbolt Security in bios

gaming box displays as authorized in thunderbolt devices.

I added nvidia-drm.modeset=1 in /etc/default/grub

added:
Section "Module" Load "modesetting" EndSection
Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:6:0:0" Option "AllowEmptyInitialConfiguration" Option "AllowExternalGpus" EndSection
in /etc/X11/xorg.conf

Some screenshots via tty console:

startx:

grub boot:

added conf I got from here: https://egpu.io/forums/thunderbolt-linux-setup/xorg-config-for-arch-linux-dell-xps-9360-tb3/#post-52514:

nvidia-smi seems to recognize egpu:

When I connect egpu after login:

DELL XPS 15 9570 Intel UHD 960, Nvidia 1050 TI. EGPU: Aorus gaming box Geforce 1070


Quote
Topic Tags
nu_ninja
(@nu_ninja)
Estimable Member
Joined: 1 year ago
Posts: 173
April 26, 2019 2:34 pm  

Change the busID in xorg.conf to match the one nvidia-smi gives you (7 in your case) or better yet you can use one of the scripts on this forum that does it all for you.

Mid-2012 13" Macbook Pro (MacBookPro9,2) TB1 -> RX 460/560 (AKiTiO Node/Thunder2)
+ macOS 10.14+Win10
+ Linux Mint 19.1


ReplyQuote
goksel
(@goksel)
Active Member
Joined: 1 month ago
Posts: 5
April 26, 2019 5:45 pm  

Do you have a link for me to that script?

DELL XPS 15 9570 Intel UHD 960, Nvidia 1050 TI. EGPU: Aorus gaming box Geforce 1070


ReplyQuote
theitsage
(@itsage)
Famed Member Admin
Joined: 3 years ago
Posts: 3939
April 26, 2019 6:08 pm  

@goksel I've found this easy-to-setup script worked very well for my Intel iGPU + Nvidia dGPU laptops. Give it a shot and let us know how it works for you.

Best ultrabooks for eGPU use

eGPU enclosure buying guide

94 external GPU build guides


ReplyQuote
goksel
(@goksel)
Active Member
Joined: 1 month ago
Posts: 5
April 26, 2019 6:32 pm  

I just tried it. getting 404:

Err:18  http://ppa.launchpad.net/hertg/egpu-switcher/ubuntu  cosmic Release 

404 Not Found [IP: 91.189.95.83 80]

DELL XPS 15 9570 Intel UHD 960, Nvidia 1050 TI. EGPU: Aorus gaming box Geforce 1070


ReplyQuote
goksel
(@goksel)
Active Member
Joined: 1 month ago
Posts: 5
April 26, 2019 7:14 pm  

I was able to login now with change bus id to 7 but now gpus seems to be of

 ~ ❯❯❯ nvidia-smi     12:10:15
Fri Apr 26 12:10:26 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.56       Driver Version: 418.56       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| 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 GTX 105...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   50C    P0    N/A /  N/A |    183MiB /  4042MiB |      2%      Default |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX 1070    Off  | 00000000:07:00.0 Off |                  N/A |
| 25%   53C    P8    12W / 151W |      2MiB /  8119MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
This post was modified 1 month ago

DELL XPS 15 9570 Intel UHD 960, Nvidia 1050 TI. EGPU: Aorus gaming box Geforce 1070


ReplyQuote
goksel
(@goksel)
Active Member
Joined: 1 month ago
Posts: 5
April 26, 2019 8:58 pm  

@nu_ninja @theitsage egpu seems to be working in laptop display now but xouldnt make external monitor work

~ ❯❯❯ xrandr                                                                                                                                                                                                                           13:56:17
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
eDP-2-1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   3840x2160     60.00*+  59.98    59.97  
   3200x1800     59.96    59.94  
   2880x1620     59.96    59.97  
   2560x1600     59.99    59.97  
   2560x1440     59.99    59.99    59.96    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.99    59.98    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     60.01    59.97    59.96    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-2-1 disconnected (normal left inverted right x axis y axis)
DP-2-2 disconnected (normal left inverted right x axis y axis)
DP-2-3 disconnected (normal left inverted right x axis y axis)


~ ❯❯❯ nvidia-xconfig --query-gpu-info                                                                                                                                                                                                  14:10:51
Number of GPUs: 1

GPU #0:
  Name      : GeForce GTX 1070
  UUID      : GPU-d120abec-9d54-8a3a-2779-71a375003549
  PCI BusID : PCI:7:0:0

  Number of Display Devices: 1

  Display Device 0 (TV-2):
      EDID Name             : LG Electronics LG Ultra HD
      Minimum HorizSync     : 135.000 kHz
      Maximum HorizSync     : 135.000 kHz
      Minimum VertRefresh   : 40 Hz
      Maximum VertRefresh   : 61 Hz
      Maximum PixelClock    : 560.000 MHz
      Maximum Width         : 3840 pixels
      Maximum Height        : 2160 pixels
      Preferred Width       : 3840 pixels
      Preferred Height      : 2160 pixels
      Preferred VertRefresh : 60 Hz
      Physical Width        : 600 mm
      Physical Height       : 340 mm
This post was modified 1 month ago

DELL XPS 15 9570 Intel UHD 960, Nvidia 1050 TI. EGPU: Aorus gaming box Geforce 1070


ReplyQuote