Debian 9.2 & Nvidia drivers

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

Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-08 22:59

Hey all. I'm having a tough time getting Nvidia drivers to work on my Debian 9.2 laptop. I've actually tried installing them in a number of different ways and am running out of ideas so I'd greatly appreciate any help.. The GPU is GTX 1050.

First I tried going at it with the guide at https://wiki.debian.org/NvidiaGraphicsDrivers#stretch for Debian 9 "Stretch". This results in "failed to load Kernel modules" message at boot and hangs.

Next I realized (or atleast hoped) that I was using the wrong guide, since it says on that same wiki page that if the command lspci -nn | egrep -i "3d|display|vga" gives 2 lines of output, you have an optimus graphics chipset. This does give me 2 lines of output:
Code: Select all
root@Laptop:/home/user# 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)

Thus I tried the bumblebee guide. Following this guide results in the computer freezing at the login screen after entering the password. The mouse won't move and the desktop won't get loaded. Progress though, I guess?

I also tried installing from the Nvidia .run file, but this also hangs at boot without giving any information why. Maybe this could be read from logs or something but I'm kinda new to Linux environments and am not sure where/how to interpret the logs. If anyone is willing to help though, I'm more than willing to go through the installation process again and provide any log info you may need :D

Thanks.
qunt
 
Posts: 19
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby duncang » 2017-11-08 23:28

duncang
 
Posts: 1
Joined: 2017-08-18 20:45

Re: Debian 9.2 & Nvidia drivers

Postby dilberts_left_nut » 2017-11-09 04:52

The nvidia .run method breaks things and is not recommended at all.

The bumblebee install won't work if you already have the nvidia proprietary driver installed in the standard configuration.

You should start from a clean state and just follow the bumblebee instructions.

Depending on how new your system is, a fresh install may be your quickest option.

Otherwise, there is the nvidia-installer-cleanup package that should remove and repair the .run mess.
Then remove any remaining nvidia packages from your original package install and revert any nouveau module blacklisting, remove any generated xorg.conf etc then try the bumblebee install again.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4691
Joined: 2009-10-05 07:54
Location: enzed

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-09 16:12

Thanks for the answers. I did as suggested and reinstalled the OS and then followed the Bumblebee wiki to the word. Still doesn't work.

First I had the issue:
Code: Select all
[ERROR]Cannot access secondary GPU - error: Could not load GPU driver

So I did as the wiki instructed:
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

And I'm getting another error:
Code: Select all
root@Laptop:/home/user# optirun glxgears
[  115.310542] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[  115.310586] [ERROR]Could not connect to bumblebee daemon - is it running?

grep bumblebeed /var/log/syslog
Code: Select all
Nov  9 18:58:40 Laptop systemd[1]: bumblebeed.service: Service hold-off time over, scheduling restart.
Nov  9 18:58:40 Laptop bumblebeed[1478]: [  377.428856] [ERROR]Module 'bbswitch' not found.
Nov  9 18:58:40 Laptop bumblebeed[1478]: [  377.429532] [WARN]No switching method available. The dedicated card will always be on.
Nov  9 18:58:40 Laptop bumblebeed[1478]: [  377.430152] [ERROR]Module 'nvidia-current' is not found.
Nov  9 18:58:40 Laptop systemd[1]: bumblebeed.service: Main process exited, code=exited, status=1/FAILURE
Nov  9 18:58:40 Laptop systemd[1]: bumblebeed.service: Unit entered failed state.
Nov  9 18:58:40 Laptop systemd[1]: bumblebeed.service: Failed with result 'exit-code'.


Any ideas?
qunt
 
Posts: 19
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-09 23:02

I actually got both GPU's running by installing linux-headers-4.9.0-3-amd, but after reboot, the computer hangs at the login screen again after inputting password.
qunt
 
Posts: 19
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby maximus1978 » 2017-11-18 02:20

Did you get this working?
maximus1978
 
Posts: 60
Joined: 2015-03-19 12:49

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-20 09:51

maximus1978 wrote:Did you get this working?

Not yet. Been quite busy with other stuff. I noticed this thread though:
viewtopic.php?f=7&t=135209

In which it appears a backport kernel could do the trick, in case you're looking for a possible solution.
qunt
 
Posts: 19
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby maximus1978 » 2017-11-22 03:58

Please install nvidia-detect

apt-get install nvidia-detect

Please run this and post the output.

Please run lsmod

lsmod

Please post the output
maximus1978
 
Posts: 60
Joined: 2015-03-19 12:49

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-22 15:52

I don't know if this is helpful now, since I purged all the nvidia and bumblebee stuff to get my pc to boot in graphical mode, but here they are:

Code: Select all
root@Laptop:/home/user# nvidia-detect
No NVIDIA GPU detected.


Code: Select all
root@Laptop:/home/user# lsmod
Module                  Size  Used by
fuse                   98304  3
rfcomm                 77824  2
ctr                    16384  4
ccm                    20480  2
bnep                   20480  2
nls_ascii              16384  1
nls_cp437              20480  1
vfat                   20480  1
fat                    69632  1 vfat
hid_generic            16384  0
joydev                 20480  0
uvcvideo               90112  0
btusb                  45056  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2
btrtl                  16384  1 btusb
videodev              176128  3 uvcvideo,videobuf2_core,videobuf2_v4l2
media                  40960  2 uvcvideo,videodev
usbhid                 53248  0
arc4                   16384  2
iwlmvm                245760  0
rtsx_pci_ms            20480  0
snd_hda_codec_hdmi     49152  1
memstick               20480  1 rtsx_pci_ms
mac80211              671744  1 iwlmvm
rtsx_pci_sdmmc         24576  0
mmc_core              147456  1 rtsx_pci_sdmmc
iTCO_wdt               16384  0
snd_hda_codec_realtek    90112  1
iTCO_vendor_support    16384  1 iTCO_wdt
nouveau              1544192  0
intel_rapl             20480  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
snd_hda_codec_generic    69632  1 snd_hda_codec_realtek
mxm_wmi                16384  1 nouveau
intel_lpss_acpi        16384  0
r8169                  81920  0
rtsx_pci               57344  2 rtsx_pci_sdmmc,rtsx_pci_ms
mii                    16384  1 r8169
ttm                    98304  1 nouveau
coretemp               16384  0
intel_lpss             16384  1 intel_lpss_acpi
i915                 1232896  13
hci_uart               98304  0
btbcm                  16384  2 hci_uart,btusb
btqca                  16384  1 hci_uart
btintel                16384  2 hci_uart,btusb
bluetooth             552960  33 btrtl,hci_uart,btintel,btqca,bnep,btbcm,rfcomm,btusb
iwlwifi               147456  1 iwlmvm
mfd_core               16384  2 rtsx_pci,intel_lpss
drm_kms_helper        155648  2 nouveau,i915
kvm_intel             192512  0
kvm                   589824  1 kvm_intel
irqbypass              16384  1 kvm
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
pcspkr                 16384  0
psmouse               135168  0
efi_pstore             16384  0
i2c_hid                20480  0
efivars                20480  1 efi_pstore
video                  40960  2 nouveau,i915
sg                     32768  0
xhci_pci               16384  0
cfg80211              589824  3 iwlmvm,iwlwifi,mac80211
xhci_hcd              188416  1 xhci_pci
snd_hda_intel          36864  6
snd_hda_codec         135168  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
hid                   122880  3 i2c_hid,hid_generic,usbhid
mei_me                 36864  0
snd_hda_core           81920  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
usbcore               249856  5 uvcvideo,usbhid,xhci_pci,btusb,xhci_hcd
battery                20480  0
drm                   360448  10 nouveau,i915,ttm,drm_kms_helper
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               110592  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd_timer              32768  1 snd_pcm
shpchp                 36864  0
snd                    86016  20 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm
mei                   102400  1 mei_me
i2c_i801               24576  0
wmi                    16384  2 mxm_wmi,nouveau
rfkill                 24576  7 bluetooth,cfg80211
soundcore              16384  1 snd
acpi_pad               24576  0
ac                     16384  0
usb_common             16384  1 usbcore
tpm_crb                16384  0
i2c_smbus              16384  1 i2c_i801
i2c_algo_bit           16384  2 nouveau,i915
button                 16384  2 nouveau,i915
efivarfs               16384  1
ip_tables              24576  0
x_tables               36864  1 ip_tables
autofs4                40960  2
ext4                  585728  2
crc16                  16384  2 bluetooth,ext4
jbd2                  106496  1 ext4
crc32c_generic         16384  0
fscrypto               28672  1 ext4
ecb                    16384  0
mbcache                16384  3 ext4
dm_mod                118784  6
sd_mod                 45056  4
crc32c_intel           24576  2
aesni_intel           167936  4
aes_x86_64             20480  1 aesni_intel
glue_helper            16384  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
ablk_helper            16384  1 aesni_intel
cryptd                 24576  3 ablk_helper,ghash_clmulni_intel,aesni_intel
evdev                  24576  16
serio_raw              16384  0
ahci                   36864  3
libahci                32768  1 ahci
libata                249856  2 ahci,libahci
scsi_mod              225280  3 sd_mod,libata,sg
thermal                20480  0
qunt
 
Posts: 19
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby maximus1978 » 2017-11-22 16:23

Please post

Code: Select all
lspci | grep VGA
maximus1978
 
Posts: 60
Joined: 2015-03-19 12:49

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-22 17:40

Code: Select all
user@Laptop:~$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
user@Laptop:~$ lspci
00:00.0 Host bridge: Intel Corporation Device 5910 (rev 05)
00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 05)
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-H Thermal subsystem (rev 31)
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA Controller [AHCI mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #1 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #5 (rev f1)
00:1c.6 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #7 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
00:1f.3 Audio device: Intel Corporation Device a171 (rev 31)
00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
01:00.0 3D controller: NVIDIA Corporation Device 1c8d (rev a1)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
03:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
04:00.0 Network controller: Intel Corporation Device 24fd (rev 78)
qunt
 
Posts: 19
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby maximus1978 » 2017-11-22 18:02

01:00.0 3D controller: NVIDIA Corporation Device 1c8d (rev a1)

GeForce GTX 1050 1C8D

LINUX X64 (AMD64/EM64T) DISPLAY DRIVER

Version: 384.98
Release Date: 2017.11.2
Operating System: Linux 64-bit
Language: English (US)

You need to download this driver.

http://www.nvidia.com/download/driverRe ... 6577/en-us

Run this command to clear up conflicting nvidia packages.

Code: Select all
apt-get remove --purge nvidia-*


Go to a terminal.

CTRL ALT F1

Login as root

Stop the xserver. I am assuming your running lightdm.

Code: Select all
/etc/init.d/lightdm stop


If you are running something else then run the correct command to stop the xserver.

Go to the directory where you downloaded the file from Nvidia.
chmod the file to give it permissions so you can execute the file.

execute the install package from nvidia

Code: Select all
./NVIDIA-Linux-x86_64-384.98.run


Now you will probably be missing some packages.

Lets go one step at a time.

Please post the messages that the package installer gives you.
maximus1978
 
Posts: 60
Joined: 2015-03-19 12:49

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-22 19:06

WARNING: Unable to find a suitable destination to install 32-bit compatibility libraries. Your system may not be set up for 32-bit compatibility. 32-bit compatibility files will not be installed; if you wish to install them, re-run the installation and set a valid directory with the --compat32-libdir option.


Installation of the kernel module for the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version 384.98) is now complete.


Seemed to go pretty well thus far.
qunt
 
Posts: 19
Joined: 2017-11-08 22:33

Re: Debian 9.2 & Nvidia drivers

Postby maximus1978 » 2017-11-22 19:13

Is your system 32bit?
maximus1978
 
Posts: 60
Joined: 2015-03-19 12:49

Re: Debian 9.2 & Nvidia drivers

Postby qunt » 2017-11-22 19:14

maximus1978 wrote:Is your system 32bit?

Nope.
qunt
 
Posts: 19
Joined: 2017-11-08 22:33

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable