X server Blank-Nvidia driver issue

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
Post Reply
mcmohan
Level 1
Level 1
Posts: 1
Joined: Wed Jul 31, 2019 12:07 pm

X server Blank-Nvidia driver issue

Post by mcmohan » Wed Jul 31, 2019 12:14 pm

Hi friends,

I'm new to Linux mint. Using laptop HP pavilion. Installed drivers not working for Gefore 940 MX on Mint 19. X server application is showing blank. Details below:
Please help..

inxi -SMCGx

System:
Host: suhas-HP-Pavilion Kernel: 4.15.0-20-generic x86_64 bits: 64
compiler: gcc v: 7.3.0 Desktop: Cinnamon 4.0.8
Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic
Machine:
Type: Laptop System: HP product: HP Pavilion Notebook
v: Type1ProductConfigId serial: <root required>
Mobo: HP model: 820A v: 82.25 serial: <root required> UEFI: Insyde v: F.07
date: 05/27/2016
CPU:
Topology: Dual Core model: Intel Core i5-6200U bits: 64 type: MT MCP
arch: Skylake rev: 3 L2 cache: 3072 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19200
Speed: 500 MHz min/max: 400/2800 MHz Core speeds (MHz): 1: 500 2: 500
3: 500 4: 500
Graphics:
Device-1: Intel HD Graphics 520 vendor: Hewlett-Packard Skylake GT2
driver: i915 v: kernel bus ID: 00:02.0
Device-2: NVIDIA GM108M [GeForce 940MX] vendor: Hewlett-Packard
driver: N/A bus ID: 01:00.0
Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa
resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
v: 4.5 Mesa 19.0.2 direct render: Yes


lspci -nnk |egrep -A3 -i "3D|VGA"
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 520 [8086:1916] (rev 07)
Subsystem: Hewlett-Packard Company Skylake GT2 [HD Graphics 520] [103c:820a]
Kernel driver in use: i915
Kernel modules: i915
--
01:00.0 3D controller [0302]: NVIDIA Corporation GM108M [GeForce 940MX] [10de:134d] (rev a2)
Subsystem: Hewlett-Packard Company GM108M [GeForce 940MX] [103c:820a]
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01)
$ dpkg -l |grep -i nvidia
ii libaccinj64-9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA ACCINJ Library (64-bit)
ii libcublas9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA cuBLAS Library
ii libcudart9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA CUDA Runtime Library
ii libcufft9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA cuFFT Library
ii libcufftw9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA cuFFTW Library
ii libcuinj64-9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA CUINJ Library (64-bit)
ii libcurand9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA cuRAND Library
ii libcusolver9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA cuSOLVER Library
ii libcusparse9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA cuSPARSE Library
ii libnppc9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Performance Primitives core runtime library
ii libnppial9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Performance Primitives lib for Image Arithmetic and Logic
ii libnppicc9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Performance Primitives lib for Image Color Conversion
ii libnppicom9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Performance Primitives lib for Image Compression
ii libnppidei9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Performance Primitives lib for Image Data Exchange and Initialization
ii libnppif9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Performance Primitives lib for Image Filters
ii libnppig9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Performance Primitives lib for Image Geometry transforms
ii libnppim9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Performance Primitives lib for Image Morphological operations
ii libnppist9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Performance Primitives lib for Image Statistics
ii libnppisu9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Performance Primitives lib for Image Support
ii libnppitc9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Performance Primitives lib for Image Threshold and Compare
ii libnpps9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Performance Primitives for signal processing runtime library
ii libnvgraph9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Graph Analytics library (nvGRAPH)
ii libnvidia-cfg1-430:amd64 430.26-0ubuntu0~gpu18.04.1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-430 430.26-0ubuntu0~gpu18.04.1 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-390:amd64 390.116-0ubuntu0.18.04.1 amd64 NVIDIA libcompute package
rc libnvidia-compute-390:i386 390.116-0ubuntu0.18.04.1 i386 NVIDIA libcompute package
rc libnvidia-compute-410:amd64 410.104-0ubuntu0~18.04.1 amd64 NVIDIA libcompute package
rc libnvidia-compute-430:amd64 430.26-0ubuntu0~gpu18.04.1 amd64 NVIDIA libcompute package
ii libnvidia-fbc1-430:amd64 430.26-0ubuntu0~gpu18.04.1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvrtc9.1:amd64 9.1.85-3ubuntu1 amd64 CUDA Runtime Compilation (NVIDIA NVRTC Library)
ii libnvtoolsext1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA Tools Extension Library
ii libnvvm3:amd64 9.1.85-3ubuntu1 amd64 NVIDIA NVVM Library
ii nouveau-firmware 20091212-0ubuntu1 all Firmware for nVidia graphics cards
rc nvidia-compute-utils-430 430.26-0ubuntu0~gpu18.04.1 amd64 NVIDIA compute utilities
ii nvidia-cuda-dev 9.1.85-3ubuntu1 amd64 NVIDIA CUDA development files
ii nvidia-cuda-toolkit 9.1.85-3ubuntu1 amd64 NVIDIA CUDA development toolkit
ii nvidia-dkms-430 430.26-0ubuntu0~gpu18.04.1 amd64 NVIDIA DKMS package
ii nvidia-kernel-common-430 430.26-0ubuntu0~gpu18.04.1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-430 430.26-0ubuntu0~gpu18.04.1 amd64 NVIDIA kernel source package
ii nvidia-modprobe 384.111-2 amd64 utility to load NVIDIA kernel modules and create device nodes
ii nvidia-opencl-dev:amd64 9.1.85-3ubuntu1 amd64 NVIDIA OpenCL development files
ii nvidia-prime 0.8.8.2 all Tools to enable NVIDIA's Prime
ii nvidia-prime-applet 1.0.7 all An applet for NVIDIA Prime
ii nvidia-profiler 9.1.85-3ubuntu1 amd64 NVIDIA Profiler for CUDA and OpenCL
ii nvidia-settings 418.56-0ubuntu0~gpu18.04.1 amd64 Tool for configuring the NVIDIA graphics driver
ii python-pycuda 2017.1.1-2 amd64 Python module to access Nvidia‘s CUDA parallel computation API
ii xserver-xorg-video-nvidia-430 430.26-0ubuntu0~gpu18.04.1 amd64 NVIDIA binary Xorg driver

ls /etc/modprobe.d
alsa-base.conf blacklist-nvidia-nouveau.conf
blacklist-ath_pci.conf blacklist-oss.conf
blacklist.conf blacklist-rare-network.conf
blacklist-firewire.conf dkms.conf
blacklist-framebuffer.conf iwlwifi.conf
blacklist-modem.conf nvidia-installer-disable-nouveau.con


ls /etc/X11
app-defaults rgb.txt Xreset Xsession xsm
default-display-manager xinit Xreset.d Xsession.d XvMCConfig
fonts xkb Xresources Xsession.options Xwrapper.config

User avatar
roblm
Level 10
Level 10
Posts: 3372
Joined: Sun Feb 24, 2013 2:41 pm

Re: X server Blank-Nvidia driver issue

Post by roblm » Wed Jul 31, 2019 2:44 pm

You downloaded a driver from Nvidia’s website. That won’t work on a laptop with Optimus technology, like you have. It can be done but it’s a lot more difficult, requiring additional steps, as explained in this post, under the section:
How to install the Nvidia driver on an Optimus laptop (integrated Intel + Nvidia card)

viewtopic.php?f=59&t=154932&start=20#p847465


Use this command in the Terminal to remove that driver: sudo nvidia-installer --uninstall

If you get a black screen, then press and hold the Alt key and then press, one at a time, the letters R, E, I, S, U, B.

Then use these commands to remove a configuration file created during the installation, update the initial ramdisk and reboot:

sudo rm /etc/modprobe.d/nvidia-installer-disable-nouveau.conf
sudo update-initramfs -u; reboot


Then use this command to remove the drivers you installed through Driver Manager and reboot: apt purge *nvidia*

Open the Driver Manager and install the recommended Nvidia driver.

Post Reply

Return to “Graphics Cards & Monitors”