#StackBounty: #nvidia #graphics #19.04 How to enable NVIDIA?

Bounty: 50

Note: Even after I followed the explanation in another question (as my question was identified as a possible duplicate of it) nothing changed of what I am detailing below.


I know there are myriad questions and how-to’s about installing and using NVIDIA graphics card on Ubuntu, but my case is a bit different (probably due to using Ubuntu 19.04).

My laptop has a GeForce GTX 1050 NVIDIA graphics card besides the “default” Intel graphics card. (I am using the laptop’s own display and nothing is connected to the HDMI port.)

$ lspci -k | grep -A 2 -i "VGA"
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
    Subsystem: Tongfang Hongkong Limited UHD Graphics 630 (Mobile)
    Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
    Subsystem: Tongfang Hongkong Limited GP107M [GeForce GTX 1050 Mobile]
    Kernel driver in use: nvidia

I already have installed the latest recommended NVIDIA driver (probably several weeks ago!):

$ sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001C8Dsv00001D05sd00001042bc03sc00i00
vendor   : NVIDIA Corporation
model    : GP107M [GeForce GTX 1050 Mobile]
driver   : nvidia-driver-390 - distro non-free
driver   : nvidia-driver-418 - distro non-free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

$ sudo apt-get install nvidia-driver-418
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nvidia-driver-418 is already the newest version (418.56-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ prime-select query
nvidia

However, system Settings | Details | About displays that the following graphics processor is active:

IntelĀ® UHD Graphics 630 (Coffeelake 3x8 GT2)

I get the following output from nvidia-smi command:

$ nvidia-smi
Wed May 29 19:17:55 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 1050    Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   33C    P8    N/A /  N/A |      2MiB /  4040MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

The GPU seems idle.

And the nvidia-settings command just displays a simple window like this:

enter image description here

Considering all these, I believe that currently the Intel graphics card, and not the NVIDIA graphics card is active in my system.

Purging and reinstalling the NVIDIA driver does not help.

Certainly I am missing something. But what?


Get this bounty!!!

#StackBounty: #drivers #nvidia #graphics #xorg #gpu Using P104-100 GPU on Ubuntu (as single or second GPU)

Bounty: 50

What I have:

GA-B250-Fintech motherboard

Ubuntu 18.04 (but I’m ready to reinstall to any version if it will work)

$ uname -r
4.18.0-18-generic

And P104-100 video card.

$ lspci | grep NVIDIA
01:00.0 3D controller: NVIDIA Corporation GP104 [P104-100] (rev a1)

gcc --version
gcc (Ubuntu 7.4.0-9ubuntu1~18.04.york0) 7.4.0

The problem:
every time I install nvidia drivers, Ubuntu stop loading. Usually with message:

started user manager uid 121.

I plug out P104-100 and plug in GTX 1060, this works correctly:

~$ nvidia-smi
Mon May 13 22:56:17 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.74       Driver Version: 418.74       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 106...  Off  | 00000000:01:00.0 Off |                  N/A |
|  0%   42C    P8     6W / 120W |      0MiB /  6078MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

Then I tried plug in P104-100 as second card using another slot, and Ubuntu stops loading: freeze with message

Started GNOME Display Manager.

P.S. Using lshw -C display I found both cards have
physical id: 0
Can it be a reason?


Question:
How to install both cards on Ubuntu?
I think if I successfully install P104-100 as single card the same solution could be for installing both of them.


P.S. I found some solution about editing xconf for using on multiple GPUs: for example.
But it did not help.


Get this bounty!!!

#StackBounty: #drivers #18.04 #nvidia #kernel #multiple-monitors Internal laptop screen stuck on Ubuntu loading screen, secondary monit…

Bounty: 100

I have a laptop with a gtx 1060 currently running on NVIDIA’s 418.39 driver. My secondary screen is working just fine, but my laptop screen is just stuck on the loading Ubuntu screen with the 5 dots.

If i do a sudo prime-select intel and rebootmy laptop screen works just fine but is stuck in 800×600 resolution without me being able to change it. when I do sudo prime-select nvidia I am stuck in the situation explained.

I have spend so much time trying to fix this, I am at a loss now, hopefully someone here can point me in the right direction. It would be nice to be able to use my laptop without a secondary screen.

Update: After trying to fix this issue my laptop screen now dosen’t work at all when loading Ubuntu, I have never been able to successfully install the Nvidia drivers either.


Get this bounty!!!

#StackBounty: #ubuntu #xorg #nvidia #troubleshooting xrandr doesn't list display port

Bounty: 100

My laptop (Thinkpad W530) has a VGA and a mini DP port (OR a DP port via docking station). Ubuntu 18.04, xrandr in particular doesn’t seem to recognize the DP. For example if I run xrandr gives me

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
LVDS-1-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.00*+  59.97    59.96    59.93    50.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  
VGA-1-1 disconnected (normal left inverted right x axis y axis)

So not only the external monitor on DP isn’t recognized but even the port itself doesn’t seem to be recognized (it doesn’t show something like “DP… disconnected”).

If I check prime-select query I get nvidia. I am using nvidia driver 430.

I should add that the external monitor works with a live usb stick and that it worked in the past. However I didn’t use it for several month, so it might be that I screwed something up in the meantime. Thus I don’t think that there is not a bug but a misconfiguration somewhere.

What can I do to identify the source of the problem and how can I fix it (but I don’t want to reinstall the entire system)?

If I ask nvidia-settings to detect external screens it also finds nothing.

I also tried to change in BIOS settings from optimus to discrete graphics. But then I wasn’t even able to login to my graphical interface (I am using xmonad as WM without display manager, just using startx).

Here is my /var/log/Xorg.0.log.

Output of lspci -nnk | grep -iA2 vga:

lspci -nnk | grep -iA2 vga 
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21f5]
    Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GLM [Quadro K2000M] [10de:0ffb] (rev a1)
    Subsystem: Lenovo GK107GLM [Quadro K2000M] [17aa:21f5]
    Kernel driver in use: nvidia

output of inxi -Gx:

Graphics:  Card-1: Intel 3rd Gen Core processor Graphics Controller bus-ID: 00:02.0
           Card-2: NVIDIA GK107GLM [Quadro K2000M] bus-ID: 01:00.0
           Display Server: X.Org 1.19.6 drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Quadro K2000M/PCIe/SSE2 version: 4.6.0 NVIDIA 430.09 Direct Render: Yes

and sudo lshw -class video | grep driver= gives:

   configuration: driver=nvidia latency=0
   configuration: driver=i915 latency=0

lsmod | grep nvidia gives

lsmod | grep nvidia
nvidia_uvm            815104  0
nvidia_drm             45056  4
nvidia_modeset       1101824  1 nvidia_drm
nvidia              18448384  98 nvidia_uvm,nvidia_modeset
drm_kms_helper        167936  2 nvidia_drm,i915
ipmi_msghandler        53248  2 ipmi_devintf,nvidia
drm                   401408  7 drm_kms_helper,nvidia_drm,i915

I also checked lsmod vesa and lsmod nouveau to see if there was a fallback to vesa or nouveau. But this results in no output.


Get this bounty!!!

#StackBounty: #ubuntu #xorg #nvidia #troubleshooting xrandr doesn't list display port

Bounty: 100

My laptop (Thinkpad W530) has a VGA and a mini DP port (OR a DP port via docking station). Ubuntu 18.04, xrandr in particular doesn’t seem to recognize the DP. For example if I run xrandr gives me

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
LVDS-1-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.00*+  59.97    59.96    59.93    50.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  
VGA-1-1 disconnected (normal left inverted right x axis y axis)

So not only the external monitor on DP isn’t recognized but even the port itself doesn’t seem to be recognized (it doesn’t show something like “DP… disconnected”).

If I check prime-select query I get nvidia. I am using nvidia driver 430.

I should add that the external monitor works with a live usb stick and that it worked in the past. However I didn’t use it for several month, so it might be that I screwed something up in the meantime. Thus I don’t think that there is not a bug but a misconfiguration somewhere.

What can I do to identify the source of the problem and how can I fix it (but I don’t want to reinstall the entire system)?

If I ask nvidia-settings to detect external screens it also finds nothing.

I also tried to change in BIOS settings from optimus to discrete graphics. But then I wasn’t even able to login to my graphical interface (I am using xmonad as WM without display manager, just using startx).

Here is my /var/log/Xorg.0.log.

Output of lspci -nnk | grep -iA2 vga:

lspci -nnk | grep -iA2 vga 
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21f5]
    Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GLM [Quadro K2000M] [10de:0ffb] (rev a1)
    Subsystem: Lenovo GK107GLM [Quadro K2000M] [17aa:21f5]
    Kernel driver in use: nvidia

output of inxi -Gx:

Graphics:  Card-1: Intel 3rd Gen Core processor Graphics Controller bus-ID: 00:02.0
           Card-2: NVIDIA GK107GLM [Quadro K2000M] bus-ID: 01:00.0
           Display Server: X.Org 1.19.6 drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Quadro K2000M/PCIe/SSE2 version: 4.6.0 NVIDIA 430.09 Direct Render: Yes

and sudo lshw -class video | grep driver= gives:

   configuration: driver=nvidia latency=0
   configuration: driver=i915 latency=0

lsmod | grep nvidia gives

lsmod | grep nvidia
nvidia_uvm            815104  0
nvidia_drm             45056  4
nvidia_modeset       1101824  1 nvidia_drm
nvidia              18448384  98 nvidia_uvm,nvidia_modeset
drm_kms_helper        167936  2 nvidia_drm,i915
ipmi_msghandler        53248  2 ipmi_devintf,nvidia
drm                   401408  7 drm_kms_helper,nvidia_drm,i915

I also checked lsmod vesa and lsmod nouveau to see if there was a fallback to vesa or nouveau. But this results in no output.


Get this bounty!!!

#StackBounty: #ubuntu #xorg #nvidia #troubleshooting xrandr doesn't list display port

Bounty: 100

My laptop (Thinkpad W530) has a VGA and a mini DP port (OR a DP port via docking station). Ubuntu 18.04, xrandr in particular doesn’t seem to recognize the DP. For example if I run xrandr gives me

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
LVDS-1-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.00*+  59.97    59.96    59.93    50.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  
VGA-1-1 disconnected (normal left inverted right x axis y axis)

So not only the external monitor on DP isn’t recognized but even the port itself doesn’t seem to be recognized (it doesn’t show something like “DP… disconnected”).

If I check prime-select query I get nvidia. I am using nvidia driver 430.

I should add that the external monitor works with a live usb stick and that it worked in the past. However I didn’t use it for several month, so it might be that I screwed something up in the meantime. Thus I don’t think that there is not a bug but a misconfiguration somewhere.

What can I do to identify the source of the problem and how can I fix it (but I don’t want to reinstall the entire system)?

If I ask nvidia-settings to detect external screens it also finds nothing.

I also tried to change in BIOS settings from optimus to discrete graphics. But then I wasn’t even able to login to my graphical interface (I am using xmonad as WM without display manager, just using startx).

Here is my /var/log/Xorg.0.log.

Output of lspci -nnk | grep -iA2 vga:

lspci -nnk | grep -iA2 vga 
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21f5]
    Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GLM [Quadro K2000M] [10de:0ffb] (rev a1)
    Subsystem: Lenovo GK107GLM [Quadro K2000M] [17aa:21f5]
    Kernel driver in use: nvidia

output of inxi -Gx:

Graphics:  Card-1: Intel 3rd Gen Core processor Graphics Controller bus-ID: 00:02.0
           Card-2: NVIDIA GK107GLM [Quadro K2000M] bus-ID: 01:00.0
           Display Server: X.Org 1.19.6 drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Quadro K2000M/PCIe/SSE2 version: 4.6.0 NVIDIA 430.09 Direct Render: Yes

and sudo lshw -class video | grep driver= gives:

   configuration: driver=nvidia latency=0
   configuration: driver=i915 latency=0

lsmod | grep nvidia gives

lsmod | grep nvidia
nvidia_uvm            815104  0
nvidia_drm             45056  4
nvidia_modeset       1101824  1 nvidia_drm
nvidia              18448384  98 nvidia_uvm,nvidia_modeset
drm_kms_helper        167936  2 nvidia_drm,i915
ipmi_msghandler        53248  2 ipmi_devintf,nvidia
drm                   401408  7 drm_kms_helper,nvidia_drm,i915

I also checked lsmod vesa and lsmod nouveau to see if there was a fallback to vesa or nouveau. But this results in no output.


Get this bounty!!!

#StackBounty: #ubuntu #xorg #nvidia #troubleshooting xrandr doesn't list display port

Bounty: 100

My laptop (Thinkpad W530) has a VGA and a mini DP port (OR a DP port via docking station). Ubuntu 18.04, xrandr in particular doesn’t seem to recognize the DP. For example if I run xrandr gives me

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
LVDS-1-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.00*+  59.97    59.96    59.93    50.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  
VGA-1-1 disconnected (normal left inverted right x axis y axis)

So not only the external monitor on DP isn’t recognized but even the port itself doesn’t seem to be recognized (it doesn’t show something like “DP… disconnected”).

If I check prime-select query I get nvidia. I am using nvidia driver 430.

I should add that the external monitor works with a live usb stick and that it worked in the past. However I didn’t use it for several month, so it might be that I screwed something up in the meantime. Thus I don’t think that there is not a bug but a misconfiguration somewhere.

What can I do to identify the source of the problem and how can I fix it (but I don’t want to reinstall the entire system)?

If I ask nvidia-settings to detect external screens it also finds nothing.

I also tried to change in BIOS settings from optimus to discrete graphics. But then I wasn’t even able to login to my graphical interface (I am using xmonad as WM without display manager, just using startx).

Here is my /var/log/Xorg.0.log.

Output of lspci -nnk | grep -iA2 vga:

lspci -nnk | grep -iA2 vga 
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21f5]
    Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GLM [Quadro K2000M] [10de:0ffb] (rev a1)
    Subsystem: Lenovo GK107GLM [Quadro K2000M] [17aa:21f5]
    Kernel driver in use: nvidia

output of inxi -Gx:

Graphics:  Card-1: Intel 3rd Gen Core processor Graphics Controller bus-ID: 00:02.0
           Card-2: NVIDIA GK107GLM [Quadro K2000M] bus-ID: 01:00.0
           Display Server: X.Org 1.19.6 drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Quadro K2000M/PCIe/SSE2 version: 4.6.0 NVIDIA 430.09 Direct Render: Yes

and sudo lshw -class video | grep driver= gives:

   configuration: driver=nvidia latency=0
   configuration: driver=i915 latency=0

lsmod | grep nvidia gives

lsmod | grep nvidia
nvidia_uvm            815104  0
nvidia_drm             45056  4
nvidia_modeset       1101824  1 nvidia_drm
nvidia              18448384  98 nvidia_uvm,nvidia_modeset
drm_kms_helper        167936  2 nvidia_drm,i915
ipmi_msghandler        53248  2 ipmi_devintf,nvidia
drm                   401408  7 drm_kms_helper,nvidia_drm,i915

I also checked lsmod vesa and lsmod nouveau to see if there was a fallback to vesa or nouveau. But this results in no output.


Get this bounty!!!

#StackBounty: #ubuntu #xorg #nvidia #troubleshooting xrandr doesn't list display port

Bounty: 100

My laptop (Thinkpad W530) has a VGA and a mini DP port (OR a DP port via docking station). Ubuntu 18.04, xrandr in particular doesn’t seem to recognize the DP. For example if I run xrandr gives me

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
LVDS-1-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.00*+  59.97    59.96    59.93    50.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  
VGA-1-1 disconnected (normal left inverted right x axis y axis)

So not only the external monitor on DP isn’t recognized but even the port itself doesn’t seem to be recognized (it doesn’t show something like “DP… disconnected”).

If I check prime-select query I get nvidia. I am using nvidia driver 430.

I should add that the external monitor works with a live usb stick and that it worked in the past. However I didn’t use it for several month, so it might be that I screwed something up in the meantime. Thus I don’t think that there is not a bug but a misconfiguration somewhere.

What can I do to identify the source of the problem and how can I fix it (but I don’t want to reinstall the entire system)?

If I ask nvidia-settings to detect external screens it also finds nothing.

I also tried to change in BIOS settings from optimus to discrete graphics. But then I wasn’t even able to login to my graphical interface (I am using xmonad as WM without display manager, just using startx).

Here is my /var/log/Xorg.0.log.

Output of lspci -nnk | grep -iA2 vga:

lspci -nnk | grep -iA2 vga 
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21f5]
    Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GLM [Quadro K2000M] [10de:0ffb] (rev a1)
    Subsystem: Lenovo GK107GLM [Quadro K2000M] [17aa:21f5]
    Kernel driver in use: nvidia

output of inxi -Gx:

Graphics:  Card-1: Intel 3rd Gen Core processor Graphics Controller bus-ID: 00:02.0
           Card-2: NVIDIA GK107GLM [Quadro K2000M] bus-ID: 01:00.0
           Display Server: X.Org 1.19.6 drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Quadro K2000M/PCIe/SSE2 version: 4.6.0 NVIDIA 430.09 Direct Render: Yes

and sudo lshw -class video | grep driver= gives:

   configuration: driver=nvidia latency=0
   configuration: driver=i915 latency=0

lsmod | grep nvidia gives

lsmod | grep nvidia
nvidia_uvm            815104  0
nvidia_drm             45056  4
nvidia_modeset       1101824  1 nvidia_drm
nvidia              18448384  98 nvidia_uvm,nvidia_modeset
drm_kms_helper        167936  2 nvidia_drm,i915
ipmi_msghandler        53248  2 ipmi_devintf,nvidia
drm                   401408  7 drm_kms_helper,nvidia_drm,i915

I also checked lsmod vesa and lsmod nouveau to see if there was a fallback to vesa or nouveau. But this results in no output.


Get this bounty!!!

#StackBounty: #ubuntu #xorg #nvidia #troubleshooting xrandr doesn't list display port

Bounty: 100

My laptop (Thinkpad W530) has a VGA and a mini DP port (OR a DP port via docking station). Ubuntu 18.04, xrandr in particular doesn’t seem to recognize the DP. For example if I run xrandr gives me

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
LVDS-1-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.00*+  59.97    59.96    59.93    50.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  
VGA-1-1 disconnected (normal left inverted right x axis y axis)

So not only the external monitor on DP isn’t recognized but even the port itself doesn’t seem to be recognized (it doesn’t show something like “DP… disconnected”).

If I check prime-select query I get nvidia. I am using nvidia driver 430.

I should add that the external monitor works with a live usb stick and that it worked in the past. However I didn’t use it for several month, so it might be that I screwed something up in the meantime. Thus I don’t think that there is not a bug but a misconfiguration somewhere.

What can I do to identify the source of the problem and how can I fix it (but I don’t want to reinstall the entire system)?

If I ask nvidia-settings to detect external screens it also finds nothing.

I also tried to change in BIOS settings from optimus to discrete graphics. But then I wasn’t even able to login to my graphical interface (I am using xmonad as WM without display manager, just using startx).

Here is my /var/log/Xorg.0.log.

Output of lspci -nnk | grep -iA2 vga:

lspci -nnk | grep -iA2 vga 
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21f5]
    Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GLM [Quadro K2000M] [10de:0ffb] (rev a1)
    Subsystem: Lenovo GK107GLM [Quadro K2000M] [17aa:21f5]
    Kernel driver in use: nvidia

output of inxi -Gx:

Graphics:  Card-1: Intel 3rd Gen Core processor Graphics Controller bus-ID: 00:02.0
           Card-2: NVIDIA GK107GLM [Quadro K2000M] bus-ID: 01:00.0
           Display Server: X.Org 1.19.6 drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Quadro K2000M/PCIe/SSE2 version: 4.6.0 NVIDIA 430.09 Direct Render: Yes

and sudo lshw -class video | grep driver= gives:

   configuration: driver=nvidia latency=0
   configuration: driver=i915 latency=0

lsmod | grep nvidia gives

lsmod | grep nvidia
nvidia_uvm            815104  0
nvidia_drm             45056  4
nvidia_modeset       1101824  1 nvidia_drm
nvidia              18448384  98 nvidia_uvm,nvidia_modeset
drm_kms_helper        167936  2 nvidia_drm,i915
ipmi_msghandler        53248  2 ipmi_devintf,nvidia
drm                   401408  7 drm_kms_helper,nvidia_drm,i915

I also checked lsmod vesa and lsmod nouveau to see if there was a fallback to vesa or nouveau. But this results in no output.


Get this bounty!!!

#StackBounty: #ubuntu #xorg #nvidia #troubleshooting xrandr doesn't list display port

Bounty: 100

My laptop (Thinkpad W530) has a VGA and a mini DP port (OR a DP port via docking station). Ubuntu 18.04, xrandr in particular doesn’t seem to recognize the DP. For example if I run xrandr gives me

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
LVDS-1-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.00*+  59.97    59.96    59.93    50.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  
VGA-1-1 disconnected (normal left inverted right x axis y axis)

So not only the external monitor on DP isn’t recognized but even the port itself doesn’t seem to be recognized (it doesn’t show something like “DP… disconnected”).

If I check prime-select query I get nvidia. I am using nvidia driver 430.

I should add that the external monitor works with a live usb stick and that it worked in the past. However I didn’t use it for several month, so it might be that I screwed something up in the meantime. Thus I don’t think that there is not a bug but a misconfiguration somewhere.

What can I do to identify the source of the problem and how can I fix it (but I don’t want to reinstall the entire system)?

If I ask nvidia-settings to detect external screens it also finds nothing.

I also tried to change in BIOS settings from optimus to discrete graphics. But then I wasn’t even able to login to my graphical interface (I am using xmonad as WM without display manager, just using startx).

Here is my /var/log/Xorg.0.log.

Output of lspci -nnk | grep -iA2 vga:

lspci -nnk | grep -iA2 vga 
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21f5]
    Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GLM [Quadro K2000M] [10de:0ffb] (rev a1)
    Subsystem: Lenovo GK107GLM [Quadro K2000M] [17aa:21f5]
    Kernel driver in use: nvidia

output of inxi -Gx:

Graphics:  Card-1: Intel 3rd Gen Core processor Graphics Controller bus-ID: 00:02.0
           Card-2: NVIDIA GK107GLM [Quadro K2000M] bus-ID: 01:00.0
           Display Server: X.Org 1.19.6 drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Quadro K2000M/PCIe/SSE2 version: 4.6.0 NVIDIA 430.09 Direct Render: Yes

and sudo lshw -class video | grep driver= gives:

   configuration: driver=nvidia latency=0
   configuration: driver=i915 latency=0

lsmod | grep nvidia gives

lsmod | grep nvidia
nvidia_uvm            815104  0
nvidia_drm             45056  4
nvidia_modeset       1101824  1 nvidia_drm
nvidia              18448384  98 nvidia_uvm,nvidia_modeset
drm_kms_helper        167936  2 nvidia_drm,i915
ipmi_msghandler        53248  2 ipmi_devintf,nvidia
drm                   401408  7 drm_kms_helper,nvidia_drm,i915

I also checked lsmod vesa and lsmod nouveau to see if there was a fallback to vesa or nouveau. But this results in no output.


Get this bounty!!!