Linux Driver 396.51 default configuration issue

Xorg session won’t start on Nvidia graphics card after driver installation from nvidia website.

  1. installed debian
  2. installed nvidia graphics driver 396.51 for linux by running *.run file
  3. Ran the nvidia-xconfig

Symptom:
After entering creds in GDM, it would stay in login prompt. Selecting wayland gnome works fine but wayland gnome defaults to Intel iGPU

Whats expected:
Gnome xorg session to work fine in nvidia graphics automatically

Whats confirmed:

  1. no devices found error in xorg log - (this is wrong) a driver should automatically detect the hardware its meant for.
    solution: manually entering the BusID solves the problem

  2. No screens assigned to any display devices - asks for AllowEmptyInitialConfiguration
    if this is done, i can see the process running in the graphics card using nvidia-smi but getting blank screen instead
    this leads me to think, there is some MUX configuration that i have to enable for nvidia chip to properly take over my display. there was some info regarding optimus and bumblee, nvidia-xrun. i don’t have time to test all those.

Here is my laptop configuration:

omputer


Summary

-Computer-
Processor : Intel(R) Core™ i7-8750H CPU @ 2.20GHz
Memory : 8008MB (3274MB used)
Machine Type : Notebook
Operating System : Debian GNU/Linux testing (buster)
User Name : parithy (parithy)
Date/Time : Friday 17 August 2018 11:26:05 AM IST
-Display-
Resolution : 1920x1080 pixels
OpenGL Renderer : Mesa DRI Intel(R) UHD Graphics 630 (Coffeelake 3x8 GT2)
X11 Vendor : The X.Org Foundation
-Audio Devices-
Audio Adapter : HDA-Intel - HDA Intel PCH
-Input Devices-
AT Translated Set 2 keyboard
Lid Switch
Sleep Button
Power Button
Power Button
Video Bus
Video Bus
SynPS/2 Synaptics TouchPad
PC Speaker
Acer WMI hotkeys
HD WebCam: HD WebCam
HDA Digital PCBeep
HDA Intel PCH Front Headphone
USB OPTICAL MOUSE
-Printers-
No printers found

Operating System

-Version-
Kernel : Linux 4.17.0-1-amd64 (x86_64)
Version : #1 SMP Debian 4.17.8-1 (2018-07-20)
C Library : GNU C Library / (Debian GLIBC 2.27-5) 2.27
Distribution : Debian GNU/Linux testing (buster)
-Current Session-
Computer Name : debian-acer
User Name : parithy (parithy)
Language : en_IN (en_IN:en)
Home Directory : /home/parithy
-Misc-
Uptime : 10 hours 35 minutes
Load Average : 0.33, 0.58, 0.43
Available entropy in /dev/random : 3810 bits (healthy)

Kernel Modules

-Loaded Modules-
hid_generic : HID generic driver
usbhid : USB HID core driver

parithy@debian-acer ~> lspci -k | grep -A 2 -i “VGA”
00:02.0 VGA compatible controller: Intel Corporation Device 3e9b
Subsystem: Acer Incorporated [ALI] Device 1264
Kernel driver in use: i915

01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
Subsystem: Acer Incorporated [ALI] GP107M [GeForce GTX 1050 Ti Mobile]
Kernel driver in use: nvidia

parithy@debian-acer ~> sudo lsmod | grep nvid
nvidia_drm 45056 0
nvidia_modeset 1093632 1 nvidia_drm
nvidia 14057472 13 nvidia_modeset
ipmi_msghandler 61440 2 ipmi_devintf,nvidia
drm_kms_helper 192512 2 nvidia_drm,i915
drm 462848 29 drm_kms_helper,nvidia_drm,i915

parithy@debian-acer ~> nvidia-smi -l 1
Fri Aug 17 11:35:47 2018
±----------------------------------------------------------------------------+
| NVIDIA-SMI 396.51 Driver Version: 396.51 |
|-------------------------------±---------------------±---------------------+
| 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 44C P0 N/A / N/A | 0MiB / 4040MiB | 0% Default |
±------------------------------±---------------------±---------------------+

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

Let me know if anything else is required from my end

[url]https://devtalk.nvidia.com/default/topic/1022670/linux/official-driver-384-59-with-geforce-1050m-doesn-t-work-on-opensuse-tumbleweed-kde/post/5203910/#5203910[/url]