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

 

 

 

Help installing NVIDIA drivers

Need help with peripherals or devices?
Message
Author
georgz
Posts: 15
Joined: 2009-05-10 18:13

Help installing NVIDIA drivers

#1 Post by georgz »

Hello, I am using a laptop with 2 GPUs. One is Intel 630 and an nvidia 1060. I 've tried the following commands:
1) apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-driver
2) apt-get install bumblebee-nvidia primus
to install the driver but after the reboot, I log in and everything is frozen. I don't see my desktop just the default grey screen without the logins fields. Then I hard reset and at the login screen I press Ctrl+Alt+F2 to open the terminal and purge the packages.

How should I proceed?

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Help installing NVIDIA drivers

#2 Post by arochester »

Laptop MAKE and MODEL?

georgz
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

#3 Post by georgz »

Gigabyte Aero 15


georgz
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

#5 Post by georgz »

Ok, I added this

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

in /etc/modprobe.d/blacklist-nouveau.conf

before installing the packages I mentioned in my original post but nothing changes. Still freezes.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Help installing NVIDIA drivers

#6 Post by debiman »

i think nowadays there's another option to bumblebee for hybrid graphics setup.
maybe it was optimus prime or sth?
anyhow, whichever software you install, it most likely requires a configuration process which is documented, either locally on your machine or on the software's website.
follow that, and report back with detailed output if the problem persists.

georgz
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

#7 Post by georgz »

I only installed the packages mentioned in the original post. I even rebuild the kernel to exclude the nouveau modules but it didn't work.

If I install and reboot I lose desktop and need to purge the packages.

Anyway, I'll find guides and report. Thanks!

georgz
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

#8 Post by georgz »


User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Help installing NVIDIA drivers

#9 Post by sunrat »

Neither of those Github issues seems related to yours.
If you follow the Debian wiki https://wiki.debian.org/Bumblebee , it does not say to install nvidia-driver package. bumblebee-nvidia will do that for you and set it up properly.

From https://packages.debian.org/stretch/bumblebee-nvidia :
Package: bumblebee-nvidia (3.2.1-14) [contrib]
NVIDIA Optimus support using the proprietary NVIDIA driver
This metapackage ensures that the proprietary NVIDIA driver is installed in a way such that 3D acceleration does not break. It does so by configuring the OpenGL library path to use the Mesa graphics library.
Start again and do it how the wiki says.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

georgz
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

#10 Post by georgz »

It's exactly the issue I am having. At least the first link describes exactly what I'm dealing with.

Anyway, after installing bumbleebe-nvidia and primus the system freezes after login.

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

Re: Help installing NVIDIA drivers

#11 Post by stevepusser »

The wiki seems to have left build-essential out of the packages to be installed, unless one of those others now bring it in automatically. Without that package, the driver build will fail--it should have paused for a noticeable length of time during the install while the driver compiled, and if it failed, showed an error message that many people sadly seem to miss. :cry:

So, what does

Code: Select all

apt-cache policy build-essential
show?
MX Linux packager and developer

georgz
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

#12 Post by georgz »

I doubt it failed, I purged bumblebee-nvidia and lost X.

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

Re: Help installing NVIDIA drivers

#13 Post by stevepusser »

Could you please just check to see if build-essential is installed?
MX Linux packager and developer

loki
Posts: 13
Joined: 2017-08-02 22:01

Re: Help installing NVIDIA drivers

#14 Post by loki »

The OPs symptoms appear to be the same as I encountered. For me, the system hangs during initialization of the desktop session when the discrete GPU is disabled. As far as I can tell, X is sat waiting for a response from the discrete GPU that never comes.

A workaround is to enable the discrete GPU prior to login. At the graphical login prompt, drop to a terminal...

Code: Select all

Ctrl+Alt+F2
...login as root and enable the discrete GPU with...

Code: Select all

echo ON > /proc/acpi/bbswitch
...then back to the graphical login prompt...

Code: Select all

Alt+F1
...login and all should be good. At this point the discrete GPU is still enabled, you can disable it again by opening a terminal and as root...

Code: Select all

echo OFF > /proc/acpi/bbswitch
You can check the status of the discrete GPU at any time with...

Code: Select all

cat /proc/acpi/bbswitch
There is also a fix (for my system at least) which is to pass...

Code: Select all

acpi_rev_override
...kernel option/parameter at boot.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Help installing NVIDIA drivers

#15 Post by debiman »

georgz wrote:I even rebuild the kernel to exclude the nouveau modules but it didn't work.
ouch.
that is most definitely overkill - and likely to have caused more harm than good.
blacklisting nouveau should be sufficient and is totally not the same as rebuilding the kernel.
switch back to the vanilla kernel.
this time, follow the documentation fully & from the start.
also "didn't work" is NEVER an acceptable statement on a linux help forum.

georgz
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

#16 Post by georgz »

stevepusser wrote:Could you please just check to see if build-essential is installed?
It's not installed.
debiman wrote:also "didn't work" is NEVER an acceptable statement on a linux help forum.
Yes, I know. I'll start over.

kdo
Posts: 20
Joined: 2017-04-04 14:57

Re: Help installing NVIDIA drivers

#17 Post by kdo »

I exactly have the same problem and after doing everything(its more Than a Month now) i understood that its a kernel problem every distro with 4.9 version kernel has the same problem(tried Manjaro-deepin)

and if u search net a lot of people have the same problem

If u are on gnome use wayland and you'll be able to log in but it'll be slow

And 4.8 or 4.10 kernel doesn't have any problems (mint 18.2 kernel 4.8 and on Ubuntu gnome 17.04 tried 4.10-4.12 and none had any problems)

Nice choice Debian team very nice

And my notebook is msi GE62 6QE(6700-960)

My thread here:
http://forums.debian.net/viewtopic.php?f=7&t=133609


Please keep this post updated

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

Re: Help installing NVIDIA drivers

#18 Post by stevepusser »

georgz wrote:
stevepusser wrote:Could you please just check to see if build-essential is installed?
It's not installed.
debiman wrote:also "didn't work" is NEVER an acceptable statement on a linux help forum.
Yes, I know. I'll start over.
Not installed. Therefore your driver builds failed. Not rocket science here, folks.
MX Linux packager and developer

georgz
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

#19 Post by georgz »

When I compiled my own kernel I used a 4.9 version, maybe that's why the problem wasn't solved. I getting tempted to try a newer kernel and see what happens.

georgz
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

#20 Post by georgz »

stevepusser wrote:
georgz wrote:
stevepusser wrote:Could you please just check to see if build-essential is installed?
It's not installed.
debiman wrote:also "didn't work" is NEVER an acceptable statement on a linux help forum.
Yes, I know. I'll start over.
Not installed. Therefore your driver builds failed. Not rocket science here, folks.
If it fails and nothing is installed why after reboot I cannot login?

Post Reply