Po instalacji Nvidia z repo system nie uruchamia się

Wszystko związane z jądrem systemowym, sterownikami, sprzętem itp.
Awatar użytkownika
dedito
Moderator
Posty: 3581
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Po instalacji Nvidia z repo system nie uruchamia się

Post autor: dedito »

Log wskazuje na błąd z konfiguracją /etc/bumblebee/*.conf
Możesz też spróbować ze sterownikiem otwartym (nouveau).
Zobacz też czy nie ostał ci się stary xorg.conf z poprzednich metod instalacji.

Kolega ma taką samą kartę i sobie poradził -> viewtopic.php?t=32745
jesse53
Posty: 18
Rejestracja: 12 czerwca 2016, 21:41

Re: Po instalacji Nvidia z repo system nie uruchamia się

Post autor: jesse53 »

Nie został żaden stary xorg.conf po poprzedniej instalacji nvidia. Faktycznie jest błąd w xorg.conf.nvidia w sekcji "Screen".

Kod: Zaznacz cały

Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection
Wygenerowałem też bumblebee-bugreport, który to potwierdza w tym fragmencie:

Kod: Zaznacz cały

 Parse error on line 12 of section Device in file /etc/bumblebee/xorg.conf.nvidia
	"Section" is not a valid keyword in this section.
[  2075.571] (EE) Problem parsing the config file
[  2075.571] (EE) Error parsing the config file
[  2075.571] (EE) 
Fatal server error:
[  2075.571] (EE) no screens found(EE) 
[  2075.571] (EE)
Twój kolega miał dokładnie ten sam problem jak mój lecz sobie poradził, szkoda że nie podał więcej szczegółów. Zainstalowałem te same pakiety i stery nie działają.

Kod: Zaznacz cały

$ optirun --f primusrun
[ 3903.414686] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Problem parsing the config file

[ 3903.414742] [WARN]The Bumblebee server was not available.
Może znajdzie się ktoś z wiedzą lub doświadczeniem w kwestii instalowania Nvidia chętny do pomocy ;) ? Sam nie dam rady.
Awatar użytkownika
dedito
Moderator
Posty: 3581
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Po instalacji Nvidia z repo system nie uruchamia się

Post autor: dedito »

Tu jest kwestia problemu z tą konkretną kartą.
Z opisu wynika, że ten małopomocny kolega instalował z repozytoriów eksperymentalnych.
Dlatego spróbuj jeszcze normalnie z tym otwartym sterownikiem.
Ewentualnie pisz do niego na PW aby się włączył w dyskusję.

Pokaż cały ten plik z błędem /etc/bumblebee/xorg.conf.nvidia.
jesse53
Posty: 18
Rejestracja: 12 czerwca 2016, 21:41

Re: Po instalacji Nvidia z repo system nie uruchamia się

Post autor: jesse53 »

@ dedito
dziękuję za zainteresowanie. Ten plik z błędem to bumblebee-report, ze względu na jego rozmiar zrobiłem wklejkę przez pastebin
tutaj
Nie będę ściemniał, że się znam, bo nie, ten log mówi mi tylko o błędzie. Jakie wnioski i kroki naprawcze podjąć- nie wiem?
Pokażę jeszcze ten /etc/bumblebee/xorg.conf.nvidia

Kod: Zaznacz cały

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
#   BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection
Problem ze sterownikiem bumblebee jest mniej dokuczliwy- on tylko nie działa i już lecz nie blokuje startu X-ów po uruchomieniu komputera. Poprzednia wersja sterownika nvidia wymagała wywalenia pliku xorg.conf.
Awatar użytkownika
dedito
Moderator
Posty: 3581
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Po instalacji Nvidia z repo system nie uruchamia się

Post autor: dedito »

jesse53 pisze: Problem ze sterownikiem bumblebee jest mniej dokuczliwy- on tylko nie działa i już lecz nie blokuje startu X-ów po uruchomieniu komputera. Poprzednia wersja sterownika nvidia wymagała wywalenia pliku xorg.conf.
A, czyli X-y ci już starują.
No to dosyć istotny szczegół wątku :)
Po prostu X-y starują na sterowniku karty wbudowanej w procesor.
A jeśli chodzi o załączony plik to brakuje zamknięcia sekcji Device.
Dla jasności:

Kod: Zaznacz cały

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
#   BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection

Te EndSection na końcu raczej do wywalenia, to tak jakby dalej się "pluł".
jesse53
Posty: 18
Rejestracja: 12 czerwca 2016, 21:41

Re: Po instalacji Nvidia z repo system nie uruchamia się

Post autor: jesse53 »

Tak oczywiście X-y z pakietem bumblebee startują, zresztą już to napisałem. Jego xorg.conf.nvidia nie koliduje w przeciwieństwie do xorg.conf przy zainstalowanych pakietach nvidii (poprzednich).

Z tym plikiem konfiguracyjnym , powyżej, masz rację coś z nim nie jest prawidłowo. Nawet logi na to wskazują a konkretnie chodzi o sekcję Screen. W tej wersji sterownika konieczna jest ręczna modyfikacja konfiguracji. Można znaleźć w necie ale przeważnie dla systemu Ubuntu. Próbowałem np. z tej strony ale nic nie osiągnąłem, dalej ten sam błąd.

Kod: Zaznacz cały

$ cat /etc/bumblebee/xorg.conf.nvidia | grep ConnectedMonitor
marek@debian:~$ optirun glxspheres
[  656.050758] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Problem parsing the config file
Coś go blokuje:

Kod: Zaznacz cały

# optirun -vv --debug bash
[ 2266.700192] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 2266.700392] [INFO]Configured driver: nvidia
[ 2266.700586] [DEBUG]optirun version 3.2.1 starting...
[ 2266.700613] [DEBUG]Active configuration:
[ 2266.700619] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 2266.700625] [DEBUG] X display: :8
[ 2266.700631] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
[ 2266.700638] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 2266.700645] [DEBUG] Accel/display bridge: auto
[ 2266.700651] [DEBUG] VGL Compression: proxy
[ 2266.700658] [DEBUG] VGLrun extra options: 
[ 2266.700664] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[ 2266.700707] [DEBUG]Using auto-detected bridge primus
[ 2266.804167] [INFO]Response: No - error: [XORG] (EE) Problem parsing the config file

[ 2266.804181] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Problem parsing the config file

[ 2266.804184] [DEBUG]Socket closed.
[ 2266.804195] [ERROR]Aborting because fallback start is disabled.
[ 2266.804198] [DEBUG]Killing all remaining processes. 
Bumblebee.conf

Kod: Zaznacz cały

# cat /etc/bumblebee/bumblebee.conf
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-current
Module=nvidia
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
/etc/bumblebee/xorg.conf.nvidia

Kod: Zaznacz cały

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
    BusID "PCI:04:00:0"
    Option "ProbeAllGpus" "false"
    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection
Port

Kod: Zaznacz cały

  lspci | grep NVIDIA
04:00.0 3D controller: NVIDIA Corporation Device 139a (rev a2)
Drivers:

Kod: Zaznacz cały

# dpkg -l | grep nvidia
ii  bumblebee-nvidia                      3.2.1-10~bpo8+1                      amd64        NVIDIA Optimus support using the proprietary NVIDIA driver
ii  glx-alternative-nvidia                0.7.2~bpo8+1                         amd64        allows the selection of NVIDIA as GLX provider
ii  libegl1-nvidia:amd64                  352.79-1~bpo8+1                      amd64        NVIDIA binary EGL libraries
ii  libgl1-nvidia-glx:amd64               352.79-1~bpo8+1                      amd64        NVIDIA binary OpenGL libraries
rc  libgl1-nvidia-glx:i386                352.79-1~bpo8+1                      i386         NVIDIA binary OpenGL libraries
ii  libgles1-nvidia:amd64                 352.79-1~bpo8+1                      amd64        NVIDIA binary OpenGL|ES 1.x libraries
ii  libgles2-nvidia:amd64                 352.79-1~bpo8+1                      amd64        NVIDIA binary OpenGL|ES 2.x libraries
ii  libnvidia-eglcore:amd64               352.79-1~bpo8+1                      amd64        NVIDIA binary EGL core libraries
ii  libnvidia-ml1:amd64                   352.79-1~bpo8+1                      amd64        NVIDIA Management Library (NVML) runtime library
ii  nvidia-alternative                    352.79-1~bpo8+1                      amd64        allows the selection of NVIDIA as GLX provider
ii  nvidia-driver                         352.79-1~bpo8+1                      amd64        NVIDIA metapackage
ii  nvidia-driver-bin                     352.79-1~bpo8+1                      amd64        NVIDIA driver support binaries
ii  nvidia-installer-cleanup              20141201+1                           amd64        cleanup after driver installation with the nvidia-installer
ii  nvidia-kernel-common                  20151021+1~bpo8+1                    amd64        NVIDIA binary kernel module support files
ii  nvidia-kernel-dkms                    352.79-1~bpo8+1                      amd64        NVIDIA binary kernel module DKMS source
ii  nvidia-kernel-support                 352.79-1~bpo8+1                      amd64        NVIDIA binary kernel module support files
ii  nvidia-modprobe                       340.46-1                             amd64        utility to load NVIDIA kernel modules and create device nodes
ii  nvidia-persistenced                   358.09-1~bpo8+1                      amd64        daemon to maintain persistent software state in the NVIDIA driver
ii  nvidia-settings                       340.46-2                             amd64        tool for configuring the NVIDIA graphics driver
ii  nvidia-support                        20141201+1                           amd64        NVIDIA binary graphics driver support files
ii  nvidia-vdpau-driver:amd64             352.79-1~bpo8+1                      amd64        Video Decode and Presentation API for Unix - NVIDIA driver
ii  nvidia-xconfig                        340.46-1                             amd64        X configuration tool for non-free NVIDIA drivers
ii  xserver-xorg-video-nvidia             352.79-1~bpo8+1                      amd64        NVIDIA binary Xorg driver
dmesg:

Kod: Zaznacz cały

 dmesg | grep nv
[    0.036313] Queued invalidation will be enabled to support x2apic and Intr-remapping.
[    0.564150] rtc_cmos 00:04: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
[  655.605761] nvidia: module license 'NVIDIA' taints kernel.
[  655.612348] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:04:00.0 on minor 1
[ 1827.277565] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:04:00.0 on minor 1
[ 1912.804486] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:04:00.0 on minor 1
i

Kod: Zaznacz cały

# dmesg | grep bb
[    2.816934] bbswitch: version 0.8
[    2.816940] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[    2.816946] bbswitch: Found discrete VGA device 0000:04:00.0: \_SB_.PCI0.RP05.PEGP
[    2.817057] bbswitch: detected an Optimus _DSM function
[    2.817111] bbswitch: Succesfully loaded. Discrete card 0000:04:00.0 is on
[    2.819062] bbswitch: disabling discrete graphics
[  655.308087] bbswitch: enabling discrete graphics
[ 1799.859581] bbswitch: disabling discrete graphics
[ 1807.043657] bbswitch: enabling discrete graphics
[ 1807.323669] bbswitch: disabling discrete graphics
[ 1826.994576] bbswitch: enabling discrete graphics
[ 1908.357031] bbswitch: disabling discrete graphics
[ 1912.521857] bbswitch: enabling discrete graphics
Status usługi:

Kod: Zaznacz cały

$ systemctl status -l bumblebeed
● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/lib/systemd/system/bumblebeed.service; enabled)
   Active: active (running) since sob 2016-06-18 13:32:52 CEST; 8min ago
 Main PID: 511 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           └─511 /usr/sbin/bumblebeed
Niestety brakuje mi doświadczenia by wyciągnąć konkretne wnioski z tych logów a być może jest w nich odpowiedź?
Awatar użytkownika
dedito
Moderator
Posty: 3581
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Po instalacji Nvidia z repo system nie uruchamia się

Post autor: dedito »

Wygeneruj znowu ten bumblebee-bugreport, żeby zobaczyć co tam dalej nie gra.
Obejrzałem też oryginalny plik konfiguracyjny i nie ma tam sekcji screen.
Coś masz namieszane.
Poniżej oryginał:
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
Option "AutoAddGPU" "false"
EndSection

Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"

# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
# BusID "PCI:01:00:0"

# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"

Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection
jesse53
Posty: 18
Rejestracja: 12 czerwca 2016, 21:41

Re: Po instalacji Nvidia z repo system nie uruchamia się

Post autor: jesse53 »

Muszę Tobie serdecznie podziękować za upór, który dzieliłeś wraz ze mną przy drążeniu tematu. Opłaciło się ponieważ ostatnia wskazówka była trafna. Sekcja "Screen" w pliku /etc/bumblebee/xorg.conf.nvidia jest niepotrzebna. Po modyfikacji wreszcie działa!
A tak on wygląda obecnie:

Kod: Zaznacz cały

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"
    BusID "PCI:04:00:0"
    Option "ProbeAllGpus" "false"
    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection
Dla pewności dodałem jeszcze swój numer portu PCI wygenerowany poleceniem

Kod: Zaznacz cały

lspci | egrep 'VGA|3D'
Teraz optirun firefox uruchamia przeglądarkę. Sprawdziłem jeszcze to dla pewności:

Kod: Zaznacz cały

~$ systemctl status -l bumblebeed
● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/lib/systemd/system/bumblebeed.service; enabled)
   Active: active (running) since nie 2016-06-19 19:04:07 CEST; 5min ago
 Main PID: 1574 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           └─1574 /usr/sbin/bumblebeed
Jeszcze raz dzięki za pomoc!
Awatar użytkownika
dedito
Moderator
Posty: 3581
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Po instalacji Nvidia z repo system nie uruchamia się

Post autor: dedito »

No to gratuluję i oznacz temat jako rozwiązany.
jesse53
Posty: 18
Rejestracja: 12 czerwca 2016, 21:41

Re: Po instalacji Nvidia z repo system nie uruchamia się

Post autor: jesse53 »

Ok na koniec jeszcze pytanie. Czy ten sterownik bumblebee da się uruchomić na stałe, czy działa tylko wybiórczo z daną aplikacją np. optirun firefox?
Jak oznaczyć temat jako rozwiązany?
ODPOWIEDZ