Hello all,
Recently, I installed Debian 9.0 on my system. Previously, I had Ubuntu 16.04, and everything was fine, but now I am having troubles with my Nvidia GPU card. Searching on the internet, I found the following hint which describes how to install drivers for the GeForce GTX 960M (My exact GPU) on an Optimus system (Where the Nvidia gpu "renders all graphics but pushes them through a buffer to the Intel integrated gpu for actual display").
https://unix.stackexchange.com/quest...debian-testing
Following this hint, I installed the nvidia-driver package, which according to the nvidia manual, supports my current GPU. I then blacklisted the nouveau module by adding "blacklist nouveau" to my "/etc/modprobe.d/blacklist.conf" file. Following this, I created an xorg configuration file as follows..
Code:
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:2:0.0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
This was created according to the hint above. I was a little unsure about what to put for my busid, so that may be a problem. Below is some output from lspci...
Code:
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06) (prog-if 00 [VGA controller])
Subsystem: Dell HD Graphics 530
Flags: bus master, fast devsel, latency 0, IRQ 320
Memory at dd000000 (64-bit, non-prefetchable) [size=16M]
Memory at b0000000 (64-bit, prefetchable) [size=256M]
I/O ports at f000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
Capabilities: [300] Page Request Interface (PRI)
Kernel driver in use: i915
Kernel modules: i915
02:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
Subsystem: Dell GM107M [GeForce GTX 960M]
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at de000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at df000000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [250] Latency Tolerance Reporting
Capabilities: [258] L1 PM Substates
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Capabilities: [900] #19
Kernel driver in use: nvidia
Kernel modules: nvidia
As you can see, I have 2 GPUs, which confirms I have a "optimus" layout. Additionally, following the hint, I added the lines below to my "/etc/X11/xinit/xinitrc" file (The author of the hint said he wasn't sure if it would work, so maybe also incorrect).
Code:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
After going through this, I rebooted my system and was greeted by a totally black screen with only the cursor position icon blinking in the top left corner. I then went into recovery mode and deleted my xorg.conf file, rebooted, and then I got into my GUI desktop. However, the GPU drivers still are not working. When I run nvidia-settings, it says it does not detect a nvidia GPU, and that I need to modify my xorg.conf file. Additionally, when my laptop sleeps/hibernates, it won't "wake-up", which causes me to force shutdown my computer. I also tried generating a xorg.conf file nvidia-xconfig, but with no luck (It also caused the black screen).
Considering all of this, what would be the next steps to debugging the problem? Because I can get back into my system when I do not have a xorg.conf file, the solution probably lies in configuring it correctly, but I have no idea how.