Debian 9.2 & Nvidia drivers

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-08 22:59

Hey all. I'm having a tough time getting Nvidia drivers to work on my Debian 9.2 laptop. I've actually tried installing them in a number of different ways and am running out of ideas so I'd greatly appreciate any help.. The GPU is GTX 1050.

First I tried going at it with the guide at https://wiki.debian.org/NvidiaGraphicsDrivers#stretch for Debian 9 "Stretch". This results in "failed to load Kernel modules" message at boot and hangs.

Next I realized (or atleast hoped) that I was using the wrong guide, since it says on that same wiki page that if the command lspci -nn | egrep -i "3d|display|vga" gives 2 lines of output, you have an optimus graphics chipset. This does give me 2 lines of output:
Code: Select all
root@Laptop:/home/user# lspci -nn | egrep -i "3d|display|vga"
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:591b] (rev 04)
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1c8d] (rev a1)

Thus I tried the bumblebee guide. Following this guide results in the computer freezing at the login screen after entering the password. The mouse won't move and the desktop won't get loaded. Progress though, I guess?

I also tried installing from the Nvidia .run file, but this also hangs at boot without giving any information why. Maybe this could be read from logs or something but I'm kinda new to Linux environments and am not sure where/how to interpret the logs. If anyone is willing to help though, I'm more than willing to go through the installation process again and provide any log info you may need :D

Thanks.
qunt
 
Posts: 3
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby duncang » 2017-11-08 23:28

duncang
 
Posts: 1
Joined: 2017-08-18 20:45

Re: Debian 9.2 & Nvidia drivers

Postby dilberts_left_nut » 2017-11-09 04:52

The nvidia .run method breaks things and is not recommended at all.

The bumblebee install won't work if you already have the nvidia proprietary driver installed in the standard configuration.

You should start from a clean state and just follow the bumblebee instructions.

Depending on how new your system is, a fresh install may be your quickest option.

Otherwise, there is the nvidia-installer-cleanup package that should remove and repair the .run mess.
Then remove any remaining nvidia packages from your original package install and revert any nouveau module blacklisting, remove any generated xorg.conf etc then try the bumblebee install again.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4687
Joined: 2009-10-05 07:54
Location: enzed

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-09 16:12

Thanks for the answers. I did as suggested and reinstalled the OS and then followed the Bumblebee wiki to the word. Still doesn't work.

First I had the issue:
Code: Select all
[ERROR]Cannot access secondary GPU - error: Could not load GPU driver

So I did as the wiki instructed:
You must edit /etc/bumblebee/bumblebee.conf using your preferred editor as root, and change "KernelDriver=nvidia" to "KernelDriver=nvidia-current", then restart the bumblebee daemon

And I'm getting another error:
Code: Select all
root@Laptop:/home/user# optirun glxgears
[  115.310542] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[  115.310586] [ERROR]Could not connect to bumblebee daemon - is it running?

grep bumblebeed /var/log/syslog
Code: Select all
Nov  9 18:58:40 Laptop systemd[1]: bumblebeed.service: Service hold-off time over, scheduling restart.
Nov  9 18:58:40 Laptop bumblebeed[1478]: [  377.428856] [ERROR]Module 'bbswitch' not found.
Nov  9 18:58:40 Laptop bumblebeed[1478]: [  377.429532] [WARN]No switching method available. The dedicated card will always be on.
Nov  9 18:58:40 Laptop bumblebeed[1478]: [  377.430152] [ERROR]Module 'nvidia-current' is not found.
Nov  9 18:58:40 Laptop systemd[1]: bumblebeed.service: Main process exited, code=exited, status=1/FAILURE
Nov  9 18:58:40 Laptop systemd[1]: bumblebeed.service: Unit entered failed state.
Nov  9 18:58:40 Laptop systemd[1]: bumblebeed.service: Failed with result 'exit-code'.


Any ideas?
qunt
 
Posts: 3
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-09 23:02

I actually got both GPU's running by installing linux-headers-4.9.0-3-amd, but after reboot, the computer hangs at the login screen again after inputting password.
qunt
 
Posts: 3
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby maximus1978 » 2017-11-18 02:20

Did you get this working?
maximus1978
 
Posts: 31
Joined: 2015-03-19 12:49


Return to Hardware

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable