LINUX.ORG.RU

bumblebee не работает на RFRemix 23

 , , ,


1

2

Пол ночи прокрасноглазил, пытаясь заставить работать optirun. Имеется свежеинсталенная Russian Fedora 23, драйвер xorg-x11-drv-nouveau-1:1.0.12-3.fc23.x86_64 и bumblebee-nouveau-1.1.0-4.fc23.noarch. Ставил шмеля по этой инструкции При попытке запустить что-либо на дискретной графике вылезает следующее:

[mertvij@localhost ~]$ optirun -vv glxgear
[ 7937.309316] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 7937.309441] [INFO]Configured driver: nouveau
[ 7937.309622] [DEBUG]optirun version 3.2.1 starting...
[ 7937.309630] [DEBUG]Active configuration:
[ 7937.309632] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 7937.309634] [DEBUG] X display: :8
[ 7937.309635] [DEBUG] LD_LIBRARY_PATH: 
[ 7937.309637] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 7937.309639] [DEBUG] Accel/display bridge: auto
[ 7937.309640] [DEBUG] VGL Compression: proxy
[ 7937.309642] [DEBUG] VGLrun extra options: 
[ 7937.309644] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib64/primus
[ 7937.309661] [DEBUG]Using auto-detected bridge virtualgl
[ 7937.516562] [INFO]Response: No - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

[ 7937.516573] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

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

железо:

[mertvij@localhost ~]$ lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 850M] (rev a2)

bumblebee.conf:

[mertvij@localhost ~]$ 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=nouveau
# 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/primus:/usr/lib64/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=
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=
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

xorg.conf.nouveau:

[mertvij@localhost ~]$ cat /etc/bumblebee/xorg.conf.nouveau 
Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nouveau"

#   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 is needed on Ubuntu 13.04.
#   BusID "PCI:01:00.0"

EndSection

ЧЯДНТ?

Ответ на: комментарий от IceWindDale

Хотелось бы как-то подлечить нуво. Блоб пробовал до этого и с ним у меня вообще иксы не грузятся. Пробовал несколько вариантов установки, но ниасилил (

mertvij
() автор топика

ок, я понял, что у пользователей сусе все работает, но может все же ктонть найдется, кто подскажет как решить проблему на моем дистрибутиве?

mertvij
() автор топика
Ответ на: комментарий от mertvij

Хотелось бы как-то подлечить нуво

Не выйдет. Если у тебя максвелл, а у тебя именно он - забудь про нуво.

/dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

1000 миллисекунд в гугле: https://wiki.archlinux.org/index.php/bumblebee#.2Fdev.2Fdri.2Fcard0:_failed_t...

Midael ★★★★★
()
Ответ на: комментарий от Midael

1000 миллисекунд в гугле

Спасибо за ссылку, но я это уже видел. Мне не помогло :(

Не выйдет. Если у тебя максвелл, а у тебя именно он - забудь про нуво.

Почему? Просто из опыта, или есть пруфы? Я перешел на нуво только после того, как у меня не завелся блоб. С ним иксы совсем не поднялись. До этого с пол года юзал Дебиан восьмой и там все заработало с первого раза на проприетарных дровах.

mertvij
() автор топика
Ответ на: комментарий от mertvij

Почему? Просто из опыта, или есть пруфы?

https://nouveau.freedesktop.org/wiki/FeatureMatrix/

Посмотри на количество WIP'ов у NV110. Реализация поддержки этих чипов драйвером встряла, скорее всего намертво из за политики nvidia (что-то связанное с цифровыми подписями ЕМНИП + они в принципе не дают спецификаций, драйвер разрабатывается в основном за счет реверс инжиниринга).

По факту, например, с моей 750ti на нуво иксы просто не работают. Управление питанием на фоне всего этого это вообще супер продвинутая фича, которой вряд ли дождешься.

Midael ★★★★★
()
Ответ на: комментарий от Midael

Печально :( Судя по тому, что в этой матрице моей nv117 вообще нет, а в других все сплошь «TO DO», то ты прав, и без блоба я далеко не уеду. Может тогда кто-нибудь даст ссылку на доку толковую по установке проприетарных дров, ибо эта инструкция мне не помогла. Описано все понятнее некуда, но иксы не понялись.

mertvij
() автор топика
Ответ на: комментарий от mertvij

я бы уже советовал сначала обновится до 24, а уже потом поставить по той инструкции блоб, если иксы не поднимутся, сюда логи.

erzentnn
()
Ответ на: комментарий от erzentnn

Боюсь обновление принесет гораздо больше проблем, чем решит. Федора итак не самая стабильная система, чтобы ставить ее до релиза. Повторюсь: мне надо решить проблему на моем дистрибутиве

mertvij
() автор топика

Решил проблему как-то так:

sudo dnf remove bumblebee-nvidia bbswitch-dkms VirtualGL.x86_64 VirtualGL.i686 primus.x86_64 primus.i686
sudo dnf remove bumblebee* bbswitch*
sudo dnf remove bumblebee-nouveau bbswitch-dkms
sudo dnf install libbsd-devel libbsd glibc-devel libX11-devel help2man autoconf git tar glib2 glib2-devel kernel-devel kernel-headers automake gcc gtk2-devel
sudo dnf install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/fedora23/noarch/bumblebee-release-1.2-1.noarch.rpm
sudo dnf install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee-nonfree/fedora23/noarch/bumblebee-nonfree-release-1.2-1.noarch.rpm
sudo dnf install VirtualGL
sudo dnf install bumblebee-nvidia bbswitch-dkms
sudo dnf install primus kernel-devel
reboot
Некоторые команды дублируют друг друга, но так вернее :-) Перед этим я cделал так, а еще отключил SELinux. Не могу точно сказать, что из этого всего привело к успеху, но теперь все работает отлично:
[mertvij@localhost ~]$ glxgears 
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
292 frames in 5.0 seconds = 58.302 FPS
300 frames in 5.0 seconds = 59.960 FPS
300 frames in 5.0 seconds = 59.960 FPS
300 frames in 5.0 seconds = 59.961 FPS
300 frames in 5.0 seconds = 59.958 FPS

[mertvij@localhost ~]$ optirun glxgears 
11227 frames in 5.0 seconds = 2245.258 FPS
11596 frames in 5.0 seconds = 2319.029 FPS
11336 frames in 5.0 seconds = 2267.041 FPS
11484 frames in 5.0 seconds = 2296.739 FPS
11449 frames in 5.0 seconds = 2289.618 FPS
11256 frames in 5.0 seconds = 2251.160 FPS

Всем спасибо!

mertvij
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.