установка Bumblebee на ноутбук с гибридной графикой nvidia

Автор rcsnik, 23 октября 2021, 20:47:07

« назад - далее »

0 Пользователи и 4 гостей просматривают эту тему.

rcsnik

В 9м дебиане установка прошла по инструкции в этой статье https://wiki.debian.org/ru/Bumblebee
В 10м установка прошла, но optirun не запускается, драйвер nvidia тоже не устанавливается, но для bumblebee его не нужно устанавливать( вернее нужно если использовать проприетарный драйвер ) но если он не поддерживается то его не стал устанавливать
optirun glxgears -info выдаёт:
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)
[ERROR]Aborting because fallback start is disabled.

optirun -vv glxgears выдаёт:
Открыть содержимое (спойлер)

[DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[DEBUG]optirun version 3.2.1 starting...
[DEBUG]Active configuration:
[DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[DEBUG] X display: :8
[DEBUG] LD_LIBRARY_PATH:
[DEBUG] Socket path: /var/run/bumblebee.socket
[DEBUG] Accel/display bridge: auto
[DEBUG] VGL Compression: proxy
[DEBUG] VGLrun extra options:
[DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[DEBUG]Using auto-detected bridge primus
[INFO]Response: No - error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)

[ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)

[DEBUG]Socket closed.
[ERROR]Aborting because fallback start is disabled.
[DEBUG]Killing all remaining processes.

[свернуть]

dzhoser

Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков

rcsnik

#2
Не помогло
До этого также задавал команды:
sudo adduser $USER bumblebee
sudo usermod -aG bumblebee $USER

dzhoser

#3
Цитата: rcsnik от 24 октября 2021, 08:03:32sudo adduser $USER bumblebee
Это зачем?
У вас какая то проблема в правах.
Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков

rcsnik

Делал как в инструкции сказано

Открыть содержимое (спойлер)

После установочные действия

Чтобы использовать optirun, вы должны добавить вашего пользователя в группу bumblebee.

sudo adduser $USER bumblebee

Где $USER соответствует вашему имени в системе. Не забудьте выйти из и снова зайти в систему чтобы изменения вступили в силу.
[свернуть]

rcsnik


dzhoser

#6
https://wiki.debian.org/Bumblebee
Вот тут описано решение вашей проблемы
В файле
Цитировать/etc/bumblebee/bumblebee.conf
Заменить строку "KernelDriver=nvidia" на "KernelDriver=nvidia-current"
systemctl restart bumblebeed
Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков

rcsnik


dzhoser

Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков

rcsnik

/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=
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d
# Xorg binary to run
XorgBinary=/usr/lib/xorg/Xorg

## 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
PMMethod=auto
# 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/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
# If set to true, will always unload the kernel module(s) even with
# PMMethod=none - useful for newer Optimus models on which the kernel power
# management works out of the box to power the card on/off without bbswitch.
AlwaysUnloadKernelDriver=false

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

[свернуть]
optirun -vv glxgears выдаёт :
Открыть содержимое (спойлер)

[43233.049982] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[43233.050403] [DEBUG]optirun version 3.2.1 starting...
[43233.050415] [DEBUG]Active configuration:
[43233.050420] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[43233.050426] [DEBUG] X display: :8
[43233.050431] [DEBUG] LD_LIBRARY_PATH:
[43233.050437] [DEBUG] Socket path: /var/run/bumblebee.socket
[43233.050452] [DEBUG] Accel/display bridge: auto
[43233.050462] [DEBUG] VGL Compression: proxy
[43233.050474] [DEBUG] VGLrun extra options:
[43233.050481] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[43233.100180] [DEBUG]Using auto-detected bridge primus
[43234.109540] [INFO]Response: No - error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)

[43234.109568] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)

[43234.109577] [DEBUG]Socket closed.
[43234.109598] [ERROR]Aborting because fallback start is disabled.
[43234.109608] [DEBUG]Killing all remaining processes.

[свернуть]

dzhoser

#10
sudo apt installxserver-xorg-input-mouse -y
Для исправления
ЦитироватьFailed to load module "mouse" (module does not exist, 0)
Покажите lspci | egrep 'VGA | 3D' и
cat /etc/bumblebee/xorg.conf.nvidia
Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков

rcsnik

optirun -vv glxgears после исправления:

Открыть содержимое (спойлер)

optirun -vv glxgears
[47164.729326] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[47164.729914] [DEBUG]optirun version 3.2.1 starting...
[47164.729931] [DEBUG]Active configuration:
[47164.729939] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[47164.729946] [DEBUG] X display: :8
[47164.729952] [DEBUG] LD_LIBRARY_PATH:
[47164.729958] [DEBUG] Socket path: /var/run/bumblebee.socket
[47164.729968] [DEBUG] Accel/display bridge: auto
[47164.729976] [DEBUG] VGL Compression: proxy
[47164.729992] [DEBUG] VGLrun extra options:
[47164.730008] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[47164.730092] [DEBUG]Using auto-detected bridge primus
[47164.876214] [INFO]Response: No - error: [XORG] (EE) NOUVEAU(0): [drm] failed to set drm interface version.

[47164.876251] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NOUVEAU(0): [drm] failed to set drm interface version.

[47164.876264] [DEBUG]Socket closed.
[47164.876293] [ERROR]Aborting because fallback start is disabled.
[47164.876305] [DEBUG]Killing all remaining processes.

[свернуть]

lspci | egrep 'VGA | 3D' :
Открыть содержимое (спойлер)

00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 635M] (rev a1)

[свернуть]

cat /etc/bumblebee/xorg.conf.nvidia :

Открыть содержимое (спойлер)

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

[свернуть]

dzhoser

В файле /etc/bumblebee/xorg.conf.nvidia
После строки VendorName  "NVIDIA Corporation" добавьте
BusID "PCI:01:00:0"
Перезагрузитесь покажите новые логи
Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков

rcsnik

optirun -vv glxgears
Открыть содержимое (спойлер)


[  139.895310] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  139.895740] [DEBUG]optirun version 3.2.1 starting...
[  139.895757] [DEBUG]Active configuration:
[  139.895766] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  139.895776] [DEBUG] X display: :8
[  139.895784] [DEBUG] LD_LIBRARY_PATH:
[  139.895793] [DEBUG] Socket path: /var/run/bumblebee.socket
[  139.895800] [DEBUG] Accel/display bridge: auto
[  139.895808] [DEBUG] VGL Compression: proxy
[  139.895817] [DEBUG] VGLrun extra options:
[  139.895823] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[  139.945994] [DEBUG]Using auto-detected bridge primus
[  143.175080] [INFO]Response: Yes. X is active.

[  143.175113] [INFO]Running application using primus.
[  143.175311] [DEBUG]Process glxgears started, PID 1227.
[  143.175447] [ERROR]Error running "glxgears": No such file or directory
[  143.175784] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  143.175810] [DEBUG]Socket closed.
[  143.175836] [DEBUG]Killing all remaining processes.

[свернуть]

Вы на правильном пути
теперь не видит папку ?

rcsnik

apt install  glxgears
Чтение списков пакетов... Готово
Построение дерева зависимостей       
Чтение информации о состоянии... Готово
E: Невозможно найти пакет glxgears