Instalacja nowszej wersji sterowników Nvidia - nie przebiega pomyślnie


(Layffe) #1

Witam,

Otóż chciałem zainstalować nowszą wersję sterownika Nvidia do karty 820M (wersja produecenta: 384, obecna w systemie: 340). Tak więc postępując według poradnika znalezionego w internecie, przeprowadziłem nastepujące procedury:

W terminalu:

dpkg -l | grep -i nvidia
ii  bbswitch-dkms                         0.8-3ubuntu1                                 amd64        Interface for toggling the power on NVIDIA Optimus video cards
ii  libcuda1-340                          340.102-0ubuntu0.16.04.2                     amd64        NVIDIA CUDA runtime library
ii  nvidia-340                       340.102-0ubuntu0.16.04.2                 amd64        NVIDIA binary driver - version 340.xx ....

Następnie

sudo apt-get remove --purge nvidia-*

Tutaj terminal kazał przeinstalować sterownik przed usunięciem, tak zrobiłem i poszło gładko.

Następnie:

sudo apt-get install nvidia-384

Sterownik zainstalował się, po czym restart i teraz wszystko wygląda tak:

kg -l | grep -i nvidia
ii  bbswitch-dkms                         0.8-3ubuntu1                                 amd64        Interface for toggling the power on NVIDIA Optimus video cards
ii  libcuda1-340                          340.102-0ubuntu0.16.04.2                     amd64        NVIDIA CUDA runtime library
ii  nvidia-384                            384.90-0ubuntu0~gpu16.04.1                   amd64        NVIDIA binary driver - version 384.90

Tylko, że nadal w Sterownikach widnieje wersja 340. Ktoś ma pomysł jak to naprawić?


(marcin82) #2

Pokaż wynik komendy - z konta użytkownika:
glxinfo | grep string


(Layffe) #3

@marcin82
Error: couldn’t find RGB GLX visual or fbconfig


(Layffe) #4

Rozumiem, że w związku z powyższym trzeba zainstalować jakieś pakiety?

@marcin82
Poszło :slight_smile:

server glx vendor string: SGI
server glx version string: 1.4
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.0.7
OpenGL core profile shading language version string: 4.50
OpenGL version string: 3.0 Mesa 17.0.7
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.0.7
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

(marcin82) #5

To teraz pokaż wynik:
dkms status
uname -r
dpkg -l | grep linux-


(Layffe) #6

@marcin82

Kolejno:

bswitch, 0.8, 4.8.0-53-generic, x86_64: installed
bcmwl, 6.30.223.271+bdcom, 4.8.0-53-generic, x86_64: installed
ndiswrapper, 1.60, 4.8.0-53-generic, x86_64: installed
virtualbox-guest, 5.0.40, 4.8.0-53-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)


4.8.0-53-generic


ii  linux-base                            4.0ubuntu1                                   all          Linux image base package
ii  linux-firmware                        1.157.12                                     all          Firmware for Linux kernel drivers
ii  linux-headers-4.8.0-53                4.8.0-53.56~16.04.1                          all          Header files related to Linux kernel version 4.8.0
ii  linux-headers-4.8.0-53-generic        4.8.0-53.56~16.04.1                          amd64        Linux kernel headers for version 4.8.0 on 64 bit x86 SMP
ii  linux-image-4.8.0-53-generic          4.8.0-53.56~16.04.1                          amd64        Linux kernel image for version 4.8.0 on 64 bit x86 SMP
ii  linux-image-extra-4.8.0-53-generic    4.8.0-53.56~16.04.1                          amd64        Linux kernel extra modules for version 4.8.0 on 64 bit x86 SMP
ii  linux-kernel-generic                  4.8.0-53.1                                   all          The Linux kernel.
ii  linux-libc-dev:amd64                  4.4.0-96.119                                 amd64        Linux Kernel Headers for development
ii  linux-sound-base                      1.0.25+dfsg-0ubuntu5                         all          base package for ALSA and OSS sound systems
ii  syslinux-common                       3:6.03+dfsg-11ubuntu1                        all          collection of bootloaders (common)
ii  syslinux-legacy                       2:3.63+dfsg-2ubuntu8                         amd64        Bootloader for Linux/i386 using MS-DOS floppies
ii  syslinux-utils                        3:6.03+dfsg-11ubuntu1                        amd64        collection of bootloaders (utilities)

(marcin82) #7

Ręcznie nie instalowałeś, instalacja z pakietów nie przebiegła pomyślnie …

Daj link do tego poradnika i napisz jaki masz system:
lsb_release -a
Podaj info o sprzęcie:
lspci -k | grep -A2 VGA


(Layffe) #8

@marcin82

No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 18.2 Sonya
Release:	18.2
Codename:	sonya

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Subsystem: Lenovo 4th Gen Core Processor Integrated Graphics Controller
Kernel driver in use: i915

(marcin82) #9

No ale … panie … tutaj wychodzi, że masz tylko zintegrowaną kartę Intela. Masz tam program inxi?

inxi -xG

Podaj dokładny model laptopa.


(Layffe) #10

@marcin82
Lenovo G710
Oczywiście. Integra Intela + Nvidia 820M. Tyle, że wczoraj po instalacji nowej wersji sterownikow Nvidii (381 gdyż 384 nie chciało przejść), laptop w ogole sie nie uruchamia (boot animacja Mint’a, a następnie czarny ekran). Dlatego siedzę na otwartoźródłowych które ustawiłem w rescue mode a integra jest wyłączona całkowicie:

Co do inxi:

Graphics:  Card-1: Intel 4th Gen Core Processor Integrated Graphics Controller
           bus-ID: 00:02.0
           Card-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M]
           bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa) FAILED: nouveau
           Resolution: 1600x900@60.01hz
       GLX Renderer: Mesa DRI Intel Haswell Mobile
       GLX Version: 3.0 Mesa 17.0.7 Direct Rendering: Yes

(marcin82) #11

Co pokażą polecenia?
apt-get check
dpkg-reconfigure nvidia-384


(Layffe) #12

@marcin82

apt-get check
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności       
Odczyt informacji o stanie... Gotowe

dpkg-reconfigure nvidia-384
Removing all DKMS Modules
Done.
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia-384
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Loading new nvidia-384-384.90 DKMS files...
Building only for 4.8.0-53-generic
Building for architecture x86_64
Building initial module for 4.8.0-53-generic
Done.

nvidia_384:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.8.0-53-generic/kernel/drivers/char/drm/

nvidia_384_modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.8.0-53-generic/kernel/drivers/char/drm/

nvidia_384_drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.8.0-53-generic/kernel/drivers/char/drm/

nvidia_384_uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.8.0-53-generic/kernel/drivers/char/drm/

depmod....

DKMS: install completed.
Przetwarzanie wyzwalaczy pakietu initramfs-tools (0.122ubuntu8.8)...
update-initramfs: Generating /boot/initrd.img-4.8.0-53-generic
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_01.bin for module i915
Warning: No support for locale: pl_PL.utf8

(marcin82) #13

A teraz co pokaże dkms status?


(Layffe) #14

@marcin82
bbswitch, 0.8, 4.8.0-53-generic, x86_64: installed
bcmwl, 6.30.223.271+bdcom, 4.8.0-53-generic, x86_64: installed
ndiswrapper, 1.60, 4.8.0-53-generic, x86_64: installed
nvidia-384, 384.90, 4.8.0-53-generic, x86_64: installed
virtualbox-guest, 5.0.40, 4.8.0-53-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)

Zaraz reboot i powiem czy coś się zmieniło.


(Layffe) #15

Po przełączeniu się na sterownik Nvidia (nadal opisany jako ver 340)… pojawił się mały problem:


(marcin82) #16

Jest coś w logach ciekawego?
dmesg | grep -iE 'error|warning|failed'

Wstaw cały log:
/var/log/Xorg.0.log


(Layffe) #17

Pierwsza komenda:

dmesg | grep -iE 'error|warning|failed'
[    0.119613] Error parsing PCC subspaces from PCCT
[    1.123060] ACPI Warning: \_SB.PCI0.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[    1.123111] ACPI Warning: \_SB.PCI0.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[    1.123260] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[    1.123291] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[    1.143246] ACPI Error: [\_SB_.PCI0.GFX0.DD02._BCL] Namespace lookup failure, AE_NOT_FOUND (20160422/psargs-359)
[    1.143251] ACPI Error: Method parse/execution failed [\_SB.PCI0.PEG0.PEGP.DD02._BCL] (Node ffff8ee5568fd848), AE_NOT_FOUND (20160422/psparse-542)
[    7.811793] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[    7.811924] ACPI: \_SB_.PCI0.PEG0.PEGP: failed to evaluate _DSM
[    7.811928] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[   12.956869] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   14.336272] wl: module verification failed: signature and/or required key missing - tainting kernel
[   16.960632] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2
[   24.384634] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro,data=ordered,commit=600
[   25.054836] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[   25.055001] ACPI: \_SB_.PCI0.PEG0.PEGP: failed to evaluate _DSM
[   25.055007] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[   34.014434] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[   34.014807] ACPI: \_SB_.PCI0.PEG0.PEGP: failed to evaluate _DSM
[   34.014817] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[   46.813757] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[   46.813985] ACPI: \_SB_.PCI0.PEG0.PEGP: failed to evaluate _DSM
[   46.813992] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[   75.996282] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[   75.996418] ACPI: \_SB_.PCI0.PEG0.PEGP: failed to evaluate _DSM
[   75.996421] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[   92.891491] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[   92.891646] ACPI: \_SB_.PCI0.PEG0.PEGP: failed to evaluate _DSM
[   92.891650] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)

Druga:

   /var/log/Xorg.0.log
   bash: /var/log/Xorg.0.log: Permission denied`

Wygląda na to, że nie mam uprawnień pomimo wykonywania komendy pod su.

/Edit: Dostałem się do pliku ‘‘ręcznie’’.
http://wklejto.pl/299139


(marcin82) #18

Klepnij jedno polecenie i pokaż wynik drugiego:
sudo updatedb
locate nvidia | grep ko


(Layffe) #19

@marcin82
A oto i wynik:

locate nvidia | grep ko
/lib/modules/4.8.0-53-generic/kernel/drivers/net/ethernet/nvidia/forcedeth.ko
/lib/modules/4.8.0-53-generic/kernel/drivers/video/fbdev/nvidia/nvidiafb.ko

(marcin82) #20

Pokaż co masz w tym katalogu:
ls -lah /lib/modules/4.8.0-53-generic/kernel/drivers/char/drm/

Pokaż wynik polecenia:
locate blacklist