Debian 9.2 & Nvidia drivers

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

Re: Debian 9.2 & Nvidia drivers

Postby maximus1978 » 2017-11-22 20:57

qunt wrote:I went though all the steps in the video you posted. Results in the same white screen error.


This error exactly?

nvidia: loading out-of-tree module taints kernel.
nvidia: module license 'NVIDIA' taints kernel
Disabling lock debugging due to kernel taint

Curious?

What did nvidia-detect give you?
maximus1978
 
Posts: 68
Joined: 2015-03-19 12:49

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-22 21:02

maximus1978 wrote:This error exactly?
What did nvidia-detect give you?

The same error I mentioned before. When I restart the computer and just as it should go into the graphical login view I get this error in a white background:
Oh no! Something has gone wrong.
A problem occured and the system can't recover.
Please log out and try again.


maximus1978 wrote:What did nvidia-detect give you?

Running nvidia-detect as instructed in the video had the same result as before:
Code: Select all
root@Laptop:/home/user# nvidia-detect
No NVIDIA GPU detected.
qunt
 
Posts: 20
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby maximus1978 » 2017-11-22 21:08

Please type and post result.

Code: Select all
dmesg | grep bbs


Please type and post result.

Code: Select all
lsmod | grep bbs


Please type and post result.

Code: Select all
uname -r
maximus1978
 
Posts: 68
Joined: 2015-03-19 12:49

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-22 21:14

maximus1978 wrote:Please type and post result.

Code: Select all
lsmod | grep bbs

I actually just messed something up it seems. I went to purge all the stuff installed on the video so I could get back in graphical mode and now I get into the login screen but when I enter the password (correctly :D), it doesn't let me in. Just refreshes the login view.. I guess it's time to do a reinstall again and start fresh...

lsmod | grep bbs returns nothing. Probably because I purged everything nvidia related. My bad.

uname -r returns 4.9.0-3-amd64
qunt
 
Posts: 20
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby stevepusser » 2017-11-22 21:19

GTX 1050 support was added in version 375.20. Stretch has 375.82, no issue there.

With Bumblebee and Optimus done correctly, the Intel GPU will always provide the display. All Bumblebee optirun does is hand off the 3D rendering to the Nvidia GPU to do in the background, and then give it to the Intel GPU for display. If you followed the wiki for Bumblebee, the worst that happens is that the handoff does not work, you don't lose the GUI, since the Intel is always supplying that.

If you lose the GUI, that shows that you did not follow the wiki step by step. Usually that's because you created an xorg.conf configuration file like you would for a standard Nvidia GPU. DO NOT do this for Bumblebee! You should not need an xorg.conf file at all.

The other big mistake is not watching the terminal output for a build error and just assuming it worked. Seen that here many times.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8938
Joined: 2009-10-06 05:53

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-23 16:29

Alright. Below if everything I did after reinstalling the OS. Still doesn't work. Tips are more than welcome.

Code: Select all
Add non-free and contrib to sources
apt-get update
apt-get upgrade
apt-get install firmware-linux-nonfree
apt-get install firmware-iwlwifi
modprobe -r iwlwifi ; modprobe iwlwifi
Reboot pc

apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//')
Reboot pc

apt-get install mesa-utils
apt-get install bumblebee-nvidia primus
During update-initramfs some warnings about possible missing firmware for NIC

adduser user bumblebee
adduser root bumblebee

log out and log back in

As root:
optirun glxgears -info
[ERROR]Cannot access secondary GPU - error: Could not load GPU driver
[ERROR]Aborting because fallback start is disabled

As user:
optirun glxgears -info
[ERROR]You've no permission to communicate with the Bumblebee daemon. Try adding yourself to the 'bumblebee' group
[ERROR]Could not connect to the bumblebee daemon - is it running?

systemctl status bumblebeed -> active (running)

When I run 'id' and 'groups' command as user or root, I don't see myself in the bumblebee group on either?
But if i run 'groups root', 'groups user', 'id root' or 'id user', this does show them in the bumblebee group.

Next I did this, as instructed in the debian bumblebee wiki:
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
service bumblebeed restart

systemctl status bumblebeed
code=exited, status=1/FAILURE
bumblebeed.service: Unit entered failed state.
bumblebeed.service: Failed with result 'exit code'.

Reboot pc

Now I see the myself in the bumblebee groups on both user and root.
optirun glxgears
[ERROR]The bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ERROR]Could not connect to bumblebee daemon - is it running?

I again change bumblebee.conf line "KernelDriver=nvidia-current" to "KernelDriver=nvidia"
service bumblebeed restart
optirun glxgears
[ERROR]Cannot access secondary GPU - error: Could not load GPU driver
[ERROR]Aborting because fallback start is disabled

systemctl status bumblebeed
active (running)
bumblebeed[1586]: [  151.741405] [ERROR]Module 'bbswitch' not found.
bumblebeed[1586]: [  151.741435] [WARN]No switching method available. The dedicated card will always be on.
bumblebeed[1586]: [  151.742528] [INFO]/usr/bin/bumblebeed 3.2.1 started

The dedicated card will always be on?? How do I confirm this?
glxgears -info
GL_RENDERER = Mesa DRI Intel(R) Kabylake GT2
GL_VENDOR = Intel Open Source Techology Center
qunt
 
Posts: 20
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-28 16:51

Yesterday the kernel got updated to 4.9.0-4-amd64 and again the screen freezes at the login screen after inputting password.. Luckily I can still get in with the 4.9.0-3 kernel, but I'm starting to feel like maybe it's time to go back to Windows :lol:
qunt
 
Posts: 20
Joined: 2017-11-08 22:33

Previous

Return to Hardware

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable