LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-03-2017, 05:09 AM   #1
mrteetoe
LQ Newbie
 
Registered: Jul 2017
Location: Leiden, Netherlands
Distribution: Debian, LFS 8.0
Posts: 5

Rep: Reputation: Disabled
Installing Nvidia drivers for GeForce GTX 960M Optimus GPU on Debian 9.0


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.

Last edited by mrteetoe; 08-03-2017 at 05:12 AM.
 
Old 08-03-2017, 10:56 PM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: Devuan+lxde
Posts: 656

Rep: Reputation: 190Reputation: 190
Did you try following the debian specific instructions here?
 
1 members found this post helpful.
Old 08-04-2017, 08:12 AM   #3
mrteetoe
LQ Newbie
 
Registered: Jul 2017
Location: Leiden, Netherlands
Distribution: Debian, LFS 8.0
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks, that worked great. I can't believe I did not come across that page after all the googling I did. Marking thread solved...
 
Old 08-04-2017, 02:15 PM   #4
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: Devuan+lxde
Posts: 656

Rep: Reputation: 190Reputation: 190
Awesome! Enjoy! And welcome to LinuxQuestions!
 
Old 12-19-2017, 07:29 PM   #5
byork9
LQ Newbie
 
Registered: Dec 2017
Posts: 1

Rep: Reputation: Disabled
mr teetoe if you dont mind how did you get the nvidia card working with ubuntu?
 
  


Reply

Tags
debian 9, nvidia driver, nvidia geforce, nvidia optimus, xorg.conf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nVidia Framebuffer Support needed (NVIDIA GeForce GTX 760)? Olaus Slackware 6 02-09-2017 01:59 AM
Nvidia GeForce GTX 525M doesn't work on Linux Mint 17.2 with drivers techdude Linux - Hardware 2 09-16-2015 01:34 PM
[SOLVED] Turning off Nvidia GPU on Asus N53SV laptop. Nvidia Optimus. Installed Bumblebee Lop3 Linux - Laptop and Netbook 7 10-22-2013 08:11 AM
nvidia optimus - keeping gpu disabled vortmax Linux - Laptop and Netbook 4 10-06-2012 05:47 PM
Drivers for XPS M1710 laptop - Nvidia Geforce GTX 7900 GO Lorenkia Linux - Newbie 3 03-31-2007 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration