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
qunt
Posts: 20
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

#21 Post by qunt »

By the end of the linux command do you mean at the very bottom of that file? Sorry, I'm a newbie..

I put it there at the bottom on a new line after all the other stuff, booted via F10 and still getting the same error.

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

Re: Debian 9.2 & Nvidia drivers

#22 Post by maximus1978 »

edit a menuentry by pressing e

the commands on each line have parameters passed to them

https://imagebin.ca/v/3iCz8LznvcB9

add pcie_port_pm=off

Then press F10 to boot

Note: edited values here are not saved

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

Re: Debian 9.2 & Nvidia drivers

#23 Post by qunt »

Alright, did that. Still same error :(

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

Re: Debian 9.2 & Nvidia drivers

#24 Post by maximus1978 »

Try uninstalling the driver first.

./NVIDIA-Linux-x86_64-384.98.run --uninstall

Let me know if you get it uninstalled and can boot back into your system.

I am still looking into this.hmmmmmmmmmmmm

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

Re: Debian 9.2 & Nvidia drivers

#25 Post by qunt »

Yup. I uninstalled Nvidia and commented the blacklist-nouveau file lines and I'm getting in to graphical mode now.

When I was looking into this before myself, I came to the conclusion I have hybrid graphics chipset. Since the command lspci -nn | egrep -i "3d|display|vga" returns 2 lines of output. But I did try the bumblebee guide aswell with no luck as you probably saw in my earlier posts..

Really appreciate the help by the way :)

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

Re: Debian 9.2 & Nvidia drivers

#26 Post by maximus1978 »

No problem.

I know we can get this to work.

Let me look into it abit more.

There is a great video online but nvidia-detect does not display anything for your video card. Is this like a brand new Nvidia Video card?

Method 1 (Package Version) Note - nvidia-detect does not bring any result thou for your card.

This video is worth watching and following the steps exactly.

https://www.youtube.com/watch?v=_5RJzZxQ62U

Method 2

This is the manual install which I know we can get working. I am still looking into it.
Lets not give up on this.

Please do watch the youtube video and try and go step by step to see if you can get it working that way.

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

Re: Debian 9.2 & Nvidia drivers

#27 Post by qunt »

Hmm.. I'm going to feel like a moron for not mentioning this before if this has something to do with this problem, but I'm seeing the following errors when I run dmesg command. Could this be related?

Code: Select all

ACPI Error: [_UPC] Namespace lookup failure, AE_ALREADY_EXISTS (20160831/dswload-378)
ACPI Exception: AE_ALREADY_EXISTS, During name lookup/catalog (20160831/psobject-227)
ACPI Exception AE_ALREADY_EXISTS, (SSDT:xh_rvpll) while loading table (20160831/tbxfload-228)
ACPI Error: 1 table load failures, 9 successful (20160831/tbxfload-246)

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

Re: Debian 9.2 & Nvidia drivers

#28 Post by qunt »

maximus1978 wrote: There is a great video online but nvidia-detect does not display anything for your video card. Is this like a brand new Nvidia Video card?
GTX 1050, I guess it's pretty new stuff. I got this laptop just like a month ago.

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

Re: Debian 9.2 & Nvidia drivers

#29 Post by maximus1978 »

qunt wrote:Hmm.. I'm going to feel like a moron for not mentioning this before if this has something to do with this problem, but I'm seeing the following errors when I run dmesg command. Could this be related?

Code: Select all

ACPI Error: [_UPC] Namespace lookup failure, AE_ALREADY_EXISTS (20160831/dswload-378)
ACPI Exception: AE_ALREADY_EXISTS, During name lookup/catalog (20160831/psobject-227)
ACPI Exception AE_ALREADY_EXISTS, (SSDT:xh_rvpll) while loading table (20160831/tbxfload-228)
ACPI Error: 1 table load failures, 9 successful (20160831/tbxfload-246)
Not related to the video problem.

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

Re: Debian 9.2 & Nvidia drivers

#30 Post by qunt »

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

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