Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 9.2 & Nvidia drivers

Need help with peripherals or devices?
Message
Author
maximus1978
Posts: 93
Joined: 2015-03-19 12:49

Re: Debian 9.2 & Nvidia drivers

#31 Post by maximus1978 »

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?

qunt
Posts: 20
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

#32 Post by qunt »

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.

maximus1978
Posts: 93
Joined: 2015-03-19 12:49

Re: Debian 9.2 & Nvidia drivers

#33 Post by maximus1978 »

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

qunt
Posts: 20
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

#34 Post by qunt »

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

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Debian 9.2 & Nvidia drivers

#35 Post by stevepusser »

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.
MX Linux packager and developer

qunt
Posts: 20
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

#36 Post by qunt »

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

#37 Post by qunt »

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:

Post Reply