Author Topic: Boot fails + discrete graphic card not recognized by bumblebee  (Read 1554 times)

0 Members and 1 Guest are viewing this topic.

Offline vicd

  • Neuling
  • *
  • Posts: 3
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: GNOME
  • GPU Card: HD Graphics 5500 (Broadwell GT2) and ATI Radeon R7 M265
  • GPU driver: video-hybrid-intel-ati-bumblebee
  • Kernel: linux44-x64
  • Skill: Novice
Hi,

I installed Manjaro gnome on my laptop with hybrid graphic cards (HD Graphics 5500 (Broadwell GT2) and ATI Radeon R7 M265). i experienced 2 problems that may be linked, that's why I created one topic for both.

1. My system regularly fails to start (probably x system fails) with such a screen :
http://i.imgur.com/7RMdlZe.jpg

2. I can't get my discrete card to work. My driver is video-hybrid-intel-ati-bumblebee, but bumblebee fails to detect my graphic card :
Code: [Select]
-- Subject: L'unité (unit) bumblebeed.service a terminé son démarrage
-- L'unité (unit) bumblebeed.service a terminé son démarrage, avec le résultat done.
mai 08 15:32:37 manjaro bumblebeed[2671]: [ 2126.768583] [ERROR]No discrete video card found, quitting
mai 08 15:32:36 manjaro systemd[1]: bumblebeed.service: Main process exited, code=exited, status=1/FAILURE
mai 08 15:32:36 manjaro systemd[1]: bumblebeed.service: Unit entered failed state.
mai 08 15:32:36 manjaro systemd[1]: bumblebeed.service: Failed with result 'exit-code'.

I tried kernel 4.4 and 4.5 and Manjaro 15.12 and 16.06 but nothing solves my problems.

Here is the complete journalctl of my current boot : http://pastebin.com/Xrmq3BSn

Code: [Select]
# lspci
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3)
00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3)
00:1c.4 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #5 (rev e3)
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
07:00.0 Network controller: Intel Corporation Wireless 3160 (rev 83)
08:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Opal XT [Radeon R7 M265]

Code: [Select]
# sudo cat /sys/kernel/debug/vgaswitcheroo/switch
[sudo] Mot de passe de vicd : 
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :Pwr:0000:08:00.0

Code: [Select]
# xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x46 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 3 associated providers: 0 name:Intel

Code: [Select]
# mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-ati-bumblebee            2016.01.28                true            PCI


Warning: No installed USB configs!


My 90-mhwd.conf in xorg.conf.d folder :
Code: [Select]
##
## Generated by mhwd - Manjaro Hardware Detection
##
 
 
Section "Device"
Identifier  "Device0"
Driver      "intel"
BusID       "PCI:0:2:0"
Option      "AccelMethod" "sna"
Option      "DRI"    "true"
Option "DRI" "3"
Option "Tearfree" "true"
EndSection
 
 
Section "DRI"
        Group  "video"
        Mode   0666
EndSection
 
 
Section "Extensions"
Option "Composite" "Enable"
Option "RENDER"    "Enable"
EndSection
 
 
Section "InputClass"
Identifier          "Keyboard Defaults"
MatchIsKeyboard     "yes"
Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

My bumblebee.conf :

Code: [Select]
# 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=radeon
# 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/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
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia/xorg/,/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

Xorg.conf.ati in the bumblebee folder :

Code: [Select]
##
## Generated by mhwd - Manjaro Hardware Detection
##
 
 
Section "ServerLayout"
    Identifier     "Layout0"
    Screen         "Screen0"
    Option         "AutoAddDevices" "false"
EndSection

Section "Device"
Identifier  "Device1"
Driver      "radeon"
BusID       "PCI:8:0:0"
EndSection
 
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
EndSection


Can anyone help me to solve my problems ?

Thanks.

Offline leledumbo

  • Sr. Mitglied
  • ****
  • Posts: 371
    • Pascal Warrior's Journey
  • Branch: stable
  • Desktop: KDE
  • GPU Card: Intel HD 4400 + nVidia GeForce GT 740M (HP notebook), Intel HD 5500 + nVidia GeForce GT 940M (ASUS notebook), nVidia GeForce GT 220 (desktop)
  • GPU driver: non-free
  • Kernel: linux-latest-x64 and linux-latest LTS-x64
  • Skill: Intermediate
Re: Boot fails + discrete graphic card not recognized by bumblebee
« Reply #1 on: 08. May 2016, 19:56:23 »
Code: [Select]
Section "ServerLayout"
    Identifier     "Layout0"
    Screen         "Screen0"
    Option         "AutoAddDevices" "false"
EndSection

Section "Device"
Identifier  "Device1" # THIS
Driver      "radeon"
BusID       "PCI:8:0:0"
EndSection
 
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0" # SHOULD MATCH THIS
EndSection
Device0 is already defined for Intel card in 90-mhwd.conf.
There are nvidia and nouveau sections in your bumblebee.conf. That can be confusing but should do no harm as long as you set Driver=radeon in bumblebeed section.
Manjaro Net edition 64-bit + Self installed KDE
Kernel latest supported + latest LTS
HP Pavilion 14-n038tx
Asus A455LB-WX034D
Self built desktop

Offline vicd

  • Neuling
  • *
  • Posts: 3
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: GNOME
  • GPU Card: HD Graphics 5500 (Broadwell GT2) and ATI Radeon R7 M265
  • GPU driver: video-hybrid-intel-ati-bumblebee
  • Kernel: linux44-x64
  • Skill: Novice
Re: Boot fails + discrete graphic card not recognized by bumblebee
« Reply #2 on: 08. May 2016, 22:01:37 »
Thanks for the reply leledumbo.

About Device0, are you shure it is not normal ? Is it not a way to link the screen with the device like we can see here with "intel" : https://wiki.archlinux.org/index.php/PRIME#Discrete_Card_as_Primary_GPU ?

Sorry if I'm wrong.

Offline leledumbo

  • Sr. Mitglied
  • ****
  • Posts: 371
    • Pascal Warrior's Journey
  • Branch: stable
  • Desktop: KDE
  • GPU Card: Intel HD 4400 + nVidia GeForce GT 740M (HP notebook), Intel HD 5500 + nVidia GeForce GT 940M (ASUS notebook), nVidia GeForce GT 220 (desktop)
  • GPU driver: non-free
  • Kernel: linux-latest-x64 and linux-latest LTS-x64
  • Skill: Intermediate
Re: Boot fails + discrete graphic card not recognized by bumblebee
« Reply #3 on: 09. May 2016, 06:56:47 »
Thanks for the reply leledumbo.

About Device0, are you shure it is not normal ? Is it not a way to link the screen with the device like we can see here with "intel" : https://wiki.archlinux.org/index.php/PRIME#Discrete_Card_as_Primary_GPU ?

Sorry if I'm wrong.
Read carefully that article. The Screen section uses nouveau Identifier, which is defined for the discrete GPU. In your case, you have:
Code: [Select]
# 90-mhwd.conf

Section "Device"
Identifier  "Device0"
Driver      "intel"
BusID       "PCI:0:2:0"
Option      "AccelMethod" "sna"
Option      "DRI"    "true"
Option "DRI" "3"
Option "Tearfree" "true"
EndSection

# xorg.conf.ati

Section "Device"
Identifier  "Device1"
Driver      "radeon"
BusID       "PCI:8:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "<what you should write here depends on which Device you want to use>"
EndSection
Even then, something else must be used in order to use the discrete GPU. Original bumblebee which works solely for intel/nvidia combination has optirun, with additional primus backend that speeds up the rendering. I don't know the intel/amd equivalent.
Manjaro Net edition 64-bit + Self installed KDE
Kernel latest supported + latest LTS
HP Pavilion 14-n038tx
Asus A455LB-WX034D
Self built desktop

Offline vicd

  • Neuling
  • *
  • Posts: 3
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: GNOME
  • GPU Card: HD Graphics 5500 (Broadwell GT2) and ATI Radeon R7 M265
  • GPU driver: video-hybrid-intel-ati-bumblebee
  • Kernel: linux44-x64
  • Skill: Novice
Re: Boot fails + discrete graphic card not recognized by bumblebee
« Reply #4 on: 09. May 2016, 22:59:37 »
If I understand well,
writing
Code: [Select]
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
EndSection
means it will automatically use intel, whereas
Code: [Select]
Section "Screen"
    Identifier     "Screen0"
    Device         "Device1"
EndSection
means it will automatically use radeon.

But in one case or another, the switch should be available, no ?

Edit : When I write "Device1" so as to use radeon, my system do not want to boot at all.

Quote
Even then, something else must be used in order to use the discrete GPU. Original bumblebee which works solely for intel/nvidia combination has optirun, with additional primus backend that speeds up the rendering. I don't know the intel/amd equivalent.

mhwd installs bumblebee + primus + bbswitch :
Code: [Select]
# sudo mhwd -i pci video-hybrid-intel-ati-bumblebee
> Installing video-hybrid-intel-ati-bumblebee...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: false
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-ati-bumblebee/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
:: Synchronisation des bases de données de paquets...
téléchargement de core.db...
téléchargement de core.db...
téléchargement de core.db...
téléchargement de core.db...
 core est à jour
téléchargement de extra.db...
téléchargement de extra.db...
téléchargement de extra.db...
téléchargement de extra.db...
 extra est à jour
téléchargement de community.db...
téléchargement de community.db...
téléchargement de community.db...
téléchargement de community.db...
 community est à jour
téléchargement de multilib.db...
téléchargement de multilib.db...
téléchargement de multilib.db...
téléchargement de multilib.db...
 multilib est à jour
résolution des dépendances...
recherche des conflits entre paquets...
avertissement : cycle de dépendances détecté :
avertissement : primus sera installé avant sa dépendance bumblebee

Paquets (6) bumblebee-3.2.1-13  linux44-bbswitch-0.8-10  linux45-bbswitch-0.8-5  primus-20151110-5  xf86-video-ati-1:7.7.0-0.1  xf86-video-intel-1:2.99.917+641+ge4ef6e9-0.1

Taille totale installée :  3,26 MiB

:: Procéder à l’installation ? [O/n]
vérification de l’intégrité des paquets...
analyse de l’intégrité des paquets...
chargement des fichiers des paquets...
recherche des conflits entre fichiers...
:: Traitement des changements du paquet...
installation de primus...
installation de bumblebee...
Adding user 'vicd' to user-group 'bumblebee'
Dépendances optionnelles pour bumblebee
    xf86-video-nouveau: nouveau driver
    nouveau-dri: 3D acceleration features fo nouveau [installé]
    bbswitch: switch on/off discrete card
    nvidia: NVIDIA kernel driver
    virtualgl: alternative back-end for optirun
    lib32-primus: faster 32bit back-end for optirun
    lib32-virtualgl: run 32bit applications with optirun
installation de xf86-video-ati...
installation de xf86-video-intel...
>>> This driver uses SNA as the default acceleration method. You can try
    falling back to UXA if you run into trouble. To do so, save a file with
    the following content as /etc/X11/xorg.conf.d/20-intel.conf :
      Section "Device"
        Identifier  "Intel Graphics"
        Driver      "intel"
        Option      "AccelMethod"  "uxa"
        #Option      "AccelMethod"  "sna"
      EndSection
Dépendances optionnelles pour xf86-video-intel
    libxrandr: for intel-virtual-output [installé]
    libxinerama: for intel-virtual-output [installé]
    libxcursor: for intel-virtual-output [installé]
    libxtst: for intel-virtual-output [installé]
    libxss: for intel-virtual-output [installé]
installation de linux44-bbswitch...
installation de linux45-bbswitch...
modprobe: ERROR: could not insert 'bbswitch': No such device
Sourcing /etc/mhwd-x86_64.conf
Default lib32 support: false
libGl: '/usr/lib/mesa/libGL.so.1.2.0'
libGLESv1: '/usr/lib/mesa/libGLESv1_CM.so.1.1.0'
libGLESv2: '/usr/lib/mesa/libGLESv2.so.2.0.0'
libEGL: '/usr/lib/mesa/libEGL.so.1.0.0'
libglx: '/usr/lib/xorg/modules/extensions/libglx.xorg'
xorg configuration file: '/etc/X11/mhwd.d/intel.conf'
Created symlink from /etc/systemd/system/graphical.target.wants/bumblebeed.service to /usr/lib/systemd/system/bumblebeed.service.
> Successfully installed video-hybrid-intel-ati-bumblebee