Help installing NVIDIA drivers

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

Help installing NVIDIA drivers

Postby georgz » 2017-08-05 07:38

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?
georgz
 
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

Postby arochester » 2017-08-05 08:17

Laptop MAKE and MODEL?
"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1089
Joined: 2010-12-07 19:55

Re: Help installing NVIDIA drivers

Postby georgz » 2017-08-05 09:28

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

Re: Help installing NVIDIA drivers

Postby arochester » 2017-08-05 09:36

"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1089
Joined: 2010-12-07 19:55

Re: Help installing NVIDIA drivers

Postby georgz » 2017-08-05 10:13

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.
georgz
 
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

Postby debiman » 2017-08-08 06:42

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.
User avatar
debiman
 
Posts: 1539
Joined: 2013-03-12 07:18

Re: Help installing NVIDIA drivers

Postby georgz » 2017-08-09 06:09

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

Postby georgz » 2017-08-09 08:39

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

Re: Help installing NVIDIA drivers

Postby sunrat » 2017-08-09 11:27

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!
User avatar
sunrat
 
Posts: 2037
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Help installing NVIDIA drivers

Postby georgz » 2017-08-09 15:23

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.
georgz
 
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

Postby stevepusser » 2017-08-09 16:10

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?
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: 8904
Joined: 2009-10-06 05:53

Re: Help installing NVIDIA drivers

Postby georgz » 2017-08-09 19:51

I doubt it failed, I purged bumblebee-nvidia and lost X.
georgz
 
Posts: 15
Joined: 2009-05-10 18:13

Re: Help installing NVIDIA drivers

Postby stevepusser » 2017-08-09 20:41

Could you please just check to see if build-essential is installed?
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: 8904
Joined: 2009-10-06 05:53

Re: Help installing NVIDIA drivers

Postby loki » 2017-08-09 22:31

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.
loki
 
Posts: 13
Joined: 2017-08-02 22:01

Re: Help installing NVIDIA drivers

Postby debiman » 2017-08-10 18:11

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.
User avatar
debiman
 
Posts: 1539
Joined: 2013-03-12 07:18

Next

Return to Hardware

Who is online

Users browsing this forum: maximus1978, qunt and 7 guests

fashionable