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

 

 

 

Unable to install Nvidia driver

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
baskz
Posts: 4
Joined: 2017-10-06 20:58

Unable to install Nvidia driver

#1 Post by baskz »

Hi all,

I just got my new laptop yesterday (MSI GL62M) and performed a clean install of debian Stretch on it.
Sadly I cannot manage to install Bumblebee. The installation go through, but after reboot my screen freeze before starting X and displaying the log in screen.
The boot stop at:

Code: Select all

Starting Hostname service
Here are some infos:

Code: Select all

:$~# lspci -nn | egrep -i "3d|display|vga"
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:591b] (rev 04)
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1c8d] (rev a1)

Code: Select all

:~# lspci -nn | egrep -i "3d|display|vga"
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:591b] (rev 04)
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1c8d] (rev a1)
For now, I have rollbacked the installation and reinstalled the nouveau driver.

Any help would be greatly appreciated :)
Last edited by baskz on 2017-10-08 14:41, edited 1 time in total.

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

Re: Unable to install Nvidia driver

#2 Post by debiman »

is the info from the frozen screen (switched to a working tty)?
if so, it would be good to add '-k' to lspci to see the drivers available & in use:

Code: Select all

lspci -knn | grep -iEA5 'vga|3d|display'
i think you need to do a little more than just "install bumblebee".

have you searched debian wiki?

baskz
Posts: 4
Joined: 2017-10-06 20:58

Re: Unable to install Nvidia driver

#3 Post by baskz »

Thanks for your reply.

I cannot switch to a tty console, it completely freeze and do not respond at all, I have to boot in rescue mode.
Anyway here is the output of your command:

Code: Select all

00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:591b] (rev 04)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:11c8]
	Kernel driver in use: i915
	Kernel modules: i915
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller [8086:a12f] (rev 31)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Sunrise Point-H USB 3.0 xHCI Controller [1462:11c8]
--
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1c8d] (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:11c8]
	Kernel modules: nvidia
02:00.0 Network controller [0280]: Intel Corporation Device [8086:24fb] (rev 10)
	Subsystem: Intel Corporation Device [8086:2110]
	Kernel driver in use: iwlwifi
I do have checked the debian Wiki https://wiki.debian.org/NvidiaGraphicsDrivers, which specified that if the following command returns more than 1 line, I should install Bumblebee:
$ lspci -nn | egrep -i "3d|display|vga"
I have tried to install Bumblebee following the procedure at https://wiki.debian.org/Bumblebee#Installation
sudo apt-get install bumblebee-nvidia primus

sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install bumblebee-nvidia primus primus-libs:i386

sudo adduser $USER bumblebee

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

Re: Unable to install Nvidia driver

#4 Post by stevepusser »

Installation of bumblebee-ndivia and the Nvidia proprietary drivers probably failed for you, and the failure will be in the build results in the terminal. But only you have access to those.

The most common rookie problem is not making sure you have a driver (aka module) build environment set up first. Install module-assistant and run as sysadmin:

Code: Select all

m-a prepare
to take care of this. Then again follow the wiki instructions to install bumblebee-nvidia.

However, if they failed, your system still should be able to get to a GUI with the default Intel driver. This means you added some configuration file, probably for the Nvidia driver, that should not be present for an Optimus system like yours. An Optimus system uses the Intel GPU by default and does not need any configuration. Adding bumble-nividia and the proprietary driver adds a "hidden" configuration file for Nvidia that just should work automatically.

Anyway, you need to remove whatever config file you added. It will be in /etc/X11 or /etc/X11/xorg.conf.d
MX Linux packager and developer

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Unable to install Nvidia driver

#5 Post by Segfault »

Actually, it can be done without Bumblebee, there are instructions in nVidia directory in /usr/share/doc/ (after driver is installed).

baskz
Posts: 4
Joined: 2017-10-06 20:58

Re: Unable to install Nvidia driver

#6 Post by baskz »

Thanks for your reply.

I've installed module-assistant and run as sysadmin:
m-a prepare
And then reinstall the bumblebee as described in the wiki. But the same thing happened as before, my boot got stuck and I couldn't access any tty, had to go into rescue mode to purge nvidia* bumblebee.

When I reinstalled bumblebee I got the following warning, could it be related to my issue ?:

Code: Select all

....
Processing triggers for bumblebee (3.2.1-14) ...
W: APT had planned for dpkg to do more than it reported back (339 vs 360).
   Affected packages: glx-alternative-nvidia:amd64 nvidia-alternative:amd64 nvidia-installer-cleanup:amd64 nvidia-legacy-check:amd64
If I understand well, I should have a config file located either in /etc/X11 or /etc/X11/xorg.conf.d that is preventing Optimus to run properly.
Here is the different folder/file I have under /etc/X11/:

Code: Select all

:$/etc/X11# ls
app-defaults		 xinit	      Xreset.d	  Xsession.options
default-display-manager  xkb	      Xresources  xsm
fonts			 xorg.conf.d  Xsession	  XvMCConfig
rgb.txt			 Xreset       Xsession.d  Xwrapper.config
and in /etc/X11/xorg.conf.d/ I only have a file "40-libinput.conf" use to allow 'tap' with my mousepad that I've add after trying to install bumblebee, here is its content:

Code: Select all

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "Tapping" "on"
EndSection
Segfault wrote:Actually, it can be done without Bumblebee, there are instructions in nVidia directory in /usr/share/doc/ (after driver is installed).
I'm sorry but I don't understand what can I do without bumblebee with that documentation, can you be more specific ? (sorry)

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

Re: Unable to install Nvidia driver

#7 Post by loki »

Which display manager and desktop environment has been installed?

Myself and a few other have experienced an apparent system freeze/lock/hang after installing bumblee. However, in all cases that I have heard of the system would boot to a graphical login prompt, the freeze would occur after entering your login credentials and prior to starting the desktop session. These cases were with GMD display manager and GNOME 3 desktop environment, I suspect if using some other display manger it may freeze for the same reason before reaching the login prompt.

For me and a few others, the issue was resolved by adding...

Code: Select all

acpi_rev_override
...to the kernel boot parameters.
stevepusser wrote:The most common rookie problem is not making sure you have a driver (aka module) build environment set up first. Install module-assistant and run as sysadmin:

Code: Select all

m-a prepare
to take care of this. Then again follow the wiki instructions to install bumblebee-nvidia.
And a common problem that experienced users make is to assume that methods and requirements of previous versions or architectures never change and are still necessary.

There are no specific prerequisites for installing Bumblebee with Nvidia on Debian Stretch amd64. The package manager pulls in everything needed during the install.

Just this morning I have performed a fresh/clean install of Debian Stretch on a machine and upon reboot, this first thing I did was to install Bumblebee with the Nvidia drivers. It was as straight forward as installing the bumblebee-nividia package alone, then adding the user(s) to the bumblebee group...

Code: Select all

~# apt-get install bumblebee-nvidia
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bbswitch-dkms binutils bumblebee dkms fakeroot gcc gcc-6
  glx-alternative-mesa glx-alternative-nvidia glx-diversions libasan3
  libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libegl-nvidia0
  libegl1-glvnd-nvidia libfakeroot libgcc-6-dev libgl1-glvnd-nvidia-glx
  libgl1-nvidia-glvnd-glx libgldispatch0-nvidia libgles-nvidia1
  libgles-nvidia2 libgles1-glvnd-nvidia libgles2-glvnd-nvidia libglx-nvidia0
  libglx0-glvnd-nvidia libitm1 liblsan0 libmpx2 libnvidia-cfg1
  libnvidia-eglcore libnvidia-glcore libnvidia-ml1 libopengl0-glvnd-nvidia
  libtsan0 libubsan0 libvulkan1 libxnvctrl0 linux-compiler-gcc-6-x86
  linux-headers-4.9.0-4-amd64 linux-headers-4.9.0-4-common linux-headers-amd64
  linux-kbuild-4.9 linux-libc-dev make manpages-dev nvidia-alternative
  nvidia-driver nvidia-driver-bin nvidia-driver-libs nvidia-egl-common
  nvidia-egl-icd nvidia-installer-cleanup nvidia-kernel-common
  nvidia-kernel-dkms nvidia-kernel-support nvidia-legacy-check nvidia-modprobe
  nvidia-persistenced nvidia-settings nvidia-support nvidia-vdpau-driver
  nvidia-vulkan-common nvidia-vulkan-icd patch primus primus-libs socat sudo
  update-glx xserver-xorg-video-nvidia
Suggested packages:
  binutils-doc python3-apport menu gcc-multilib autoconf automake libtool flex
  bison gdb gcc-doc gcc-6-multilib gcc-6-doc gcc-6-locales libgcc1-dbg
  libgomp1-dbg libitm1-dbg libatomic1-dbg libasan3-dbg liblsan0-dbg
  libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg
  glibc-doc make-doc vulkan-utils ed diffutils-doc
Recommended packages:
  nvidia-driver-libs-i386 primus-libs-ia32
The following NEW packages will be installed:
  bbswitch-dkms binutils bumblebee bumblebee-nvidia dkms fakeroot gcc gcc-6
  glx-alternative-mesa glx-alternative-nvidia glx-diversions libasan3
  libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libegl-nvidia0
  libegl1-glvnd-nvidia libfakeroot libgcc-6-dev libgl1-glvnd-nvidia-glx
  libgl1-nvidia-glvnd-glx libgldispatch0-nvidia libgles-nvidia1
  libgles-nvidia2 libgles1-glvnd-nvidia libgles2-glvnd-nvidia libglx-nvidia0
  libglx0-glvnd-nvidia libitm1 liblsan0 libmpx2 libnvidia-cfg1
  libnvidia-eglcore libnvidia-glcore libnvidia-ml1 libopengl0-glvnd-nvidia
  libtsan0 libubsan0 libvulkan1 libxnvctrl0 linux-compiler-gcc-6-x86
  linux-headers-4.9.0-4-amd64 linux-headers-4.9.0-4-common linux-headers-amd64
  linux-kbuild-4.9 linux-libc-dev make manpages-dev nvidia-alternative
  nvidia-driver nvidia-driver-bin nvidia-driver-libs nvidia-egl-common
  nvidia-egl-icd nvidia-installer-cleanup nvidia-kernel-common
  nvidia-kernel-dkms nvidia-kernel-support nvidia-legacy-check nvidia-modprobe
  nvidia-persistenced nvidia-settings nvidia-support nvidia-vdpau-driver
  nvidia-vulkan-common nvidia-vulkan-icd patch primus primus-libs socat sudo
  update-glx xserver-xorg-video-nvidia
0 upgraded, 74 newly installed, 0 to remove and 0 not upgraded.
Need to get 61.5 MB of archives.
After this operation, 270 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
As can be seen, the package manager installs any additional packages required, there is no need to have module-assistant, build-essential or any such similar packages installed prior.

baskz
Posts: 4
Joined: 2017-10-06 20:58

Re: Unable to install Nvidia driver

#8 Post by baskz »

Hello loki,

Thanks for your answer ! I'm using Lightdm as display manager.
After several nights spent on it...I have finally managed to prevent my system to freeze.
The holy grail... adding this option to my kernel boot parameters:

Code: Select all

acpi_osi=! acpi_osi='Windows 2009'
Reference=>https://github.com/Bumblebee-Project/Bu ... issues/764

I suppose that your suggestion (acpi_rev_override) is doing the same (I haven't try it...I cannot stand another boot freeze :cry: )

Sadly I'm not sure that I'm enjoying the power saving part of Bumblebee if I refer to the following link:
https://github.com/Bumblebee-Project/Bu ... leshooting

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

Re: Unable to install Nvidia driver

#9 Post by stevepusser »

loki wrote:Which display manager and desktop environment has been installed?

Myself and a few other have experienced an apparent system freeze/lock/hang after installing bumblee. However, in all cases that I have heard of the system would boot to a graphical login prompt, the freeze would occur after entering your login credentials and prior to starting the desktop session. These cases were with GMD display manager and GNOME 3 desktop environment, I suspect if using some other display manger it may freeze for the same reason before reaching the login prompt.

For me and a few others, the issue was resolved by adding...

Code: Select all

acpi_rev_override
...to the kernel boot parameters.
stevepusser wrote:The most common rookie problem is not making sure you have a driver (aka module) build environment set up first. Install module-assistant and run as sysadmin:

Code: Select all

m-a prepare
to take care of this. Then again follow the wiki instructions to install bumblebee-nvidia.
And a common problem that experienced users make is to assume that methods and requirements of previous versions or architectures never change and are still necessary.

There are no specific prerequisites for installing Bumblebee with Nvidia on Debian Stretch amd64. The package manager pulls in everything needed during the install.

Just this morning I have performed a fresh/clean install of Debian Stretch on a machine and upon reboot, this first thing I did was to install Bumblebee with the Nvidia drivers. It was as straight forward as installing the bumblebee-nividia package alone, then adding the user(s) to the bumblebee group...

Code: Select all

~# apt-get install bumblebee-nvidia
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bbswitch-dkms binutils bumblebee dkms fakeroot gcc gcc-6
  glx-alternative-mesa glx-alternative-nvidia glx-diversions libasan3
  libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libegl-nvidia0
  libegl1-glvnd-nvidia libfakeroot libgcc-6-dev libgl1-glvnd-nvidia-glx
  libgl1-nvidia-glvnd-glx libgldispatch0-nvidia libgles-nvidia1
  libgles-nvidia2 libgles1-glvnd-nvidia libgles2-glvnd-nvidia libglx-nvidia0
  libglx0-glvnd-nvidia libitm1 liblsan0 libmpx2 libnvidia-cfg1
  libnvidia-eglcore libnvidia-glcore libnvidia-ml1 libopengl0-glvnd-nvidia
  libtsan0 libubsan0 libvulkan1 libxnvctrl0 linux-compiler-gcc-6-x86
  linux-headers-4.9.0-4-amd64 linux-headers-4.9.0-4-common linux-headers-amd64
  linux-kbuild-4.9 linux-libc-dev make manpages-dev nvidia-alternative
  nvidia-driver nvidia-driver-bin nvidia-driver-libs nvidia-egl-common
  nvidia-egl-icd nvidia-installer-cleanup nvidia-kernel-common
  nvidia-kernel-dkms nvidia-kernel-support nvidia-legacy-check nvidia-modprobe
  nvidia-persistenced nvidia-settings nvidia-support nvidia-vdpau-driver
  nvidia-vulkan-common nvidia-vulkan-icd patch primus primus-libs socat sudo
  update-glx xserver-xorg-video-nvidia
Suggested packages:
  binutils-doc python3-apport menu gcc-multilib autoconf automake libtool flex
  bison gdb gcc-doc gcc-6-multilib gcc-6-doc gcc-6-locales libgcc1-dbg
  libgomp1-dbg libitm1-dbg libatomic1-dbg libasan3-dbg liblsan0-dbg
  libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg
  glibc-doc make-doc vulkan-utils ed diffutils-doc
Recommended packages:
  nvidia-driver-libs-i386 primus-libs-ia32
The following NEW packages will be installed:
  bbswitch-dkms binutils bumblebee bumblebee-nvidia dkms fakeroot gcc gcc-6
  glx-alternative-mesa glx-alternative-nvidia glx-diversions libasan3
  libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libegl-nvidia0
  libegl1-glvnd-nvidia libfakeroot libgcc-6-dev libgl1-glvnd-nvidia-glx
  libgl1-nvidia-glvnd-glx libgldispatch0-nvidia libgles-nvidia1
  libgles-nvidia2 libgles1-glvnd-nvidia libgles2-glvnd-nvidia libglx-nvidia0
  libglx0-glvnd-nvidia libitm1 liblsan0 libmpx2 libnvidia-cfg1
  libnvidia-eglcore libnvidia-glcore libnvidia-ml1 libopengl0-glvnd-nvidia
  libtsan0 libubsan0 libvulkan1 libxnvctrl0 linux-compiler-gcc-6-x86
  linux-headers-4.9.0-4-amd64 linux-headers-4.9.0-4-common linux-headers-amd64
  linux-kbuild-4.9 linux-libc-dev make manpages-dev nvidia-alternative
  nvidia-driver nvidia-driver-bin nvidia-driver-libs nvidia-egl-common
  nvidia-egl-icd nvidia-installer-cleanup nvidia-kernel-common
  nvidia-kernel-dkms nvidia-kernel-support nvidia-legacy-check nvidia-modprobe
  nvidia-persistenced nvidia-settings nvidia-support nvidia-vdpau-driver
  nvidia-vulkan-common nvidia-vulkan-icd patch primus primus-libs socat sudo
  update-glx xserver-xorg-video-nvidia
0 upgraded, 74 newly installed, 0 to remove and 0 not upgraded.
Need to get 61.5 MB of archives.
After this operation, 270 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
As can be seen, the package manager installs any additional packages required, there is no need to have module-assistant, build-essential or any such similar packages installed prior.
Thanks for letting me know that! In my defense, you are the very first poster here to actually post the full outputs of those commands like the forum guidelines ask, instead of something like "I followed the wiki and it didn't work." :( I'll also have to check if those get pulled in as recommended packages, which not all Debian derivatives install by default.

Code: Select all

acpi_osi=! acpi_osi='Windows 2009'
What version of Windows is this referring too?
MX Linux packager and developer

Post Reply