You are not logged in.

#1 2015-03-27 11:53:00

AndreasEr
Member
Registered: 2013-12-03
Posts: 17

Bumblebee daemon reported: error - ASUS UX303LN,bumblebee,geforce 840m

Hello. I am trying to get bumblebee up and running but there seems to be an issue. This is what i've done:

sudo pacman -S bumblebee mesa  xf86-video-intel nvidia lib32-nvidia-utils lib32-mesa-libgl
gpasswd -a $USER bumblebee
sudo systemctl enable bumblebeed
reboot

But when i try to test it out i get the output:

primusrun glxspheres64
primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) systemd-logind: failed to get session: PID 635 does not belong to any known session

So i whent onto the wiki and found this: (and also installed bbswitch)

systemd-logind: failed to get session: PID XXX does not belong to any known session

If the console output is (PID varies):

[ERROR]Cannot access secondary GPU - error: [XORG] (EE) systemd-logind: failed to get session: PID 753 does not belong to any known session
[ERROR]Aborting because fallback start is disabled.

In /etc/mkinitcpio.conf change the MODULES var to:

MODULES="i915 bbswitch"

Or:

MODULES="i915 nouveau bbswitch"

And run:

# mkinitcpio -p linux

mkinitcpio ran fine with no errors. After i rebooted i got promoted with the same error. Can anyone give me a hint on if im missing someting?

lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:04.0 Signal processing controller: Intel Corporation Device 0a03 (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
00:1f.6 Signal processing controller: Intel Corporation 8 Series Thermal (rev 04)
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)
03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev a2)
pacman -Q | grep linux
archlinux-keyring 20150212-1
lib32-util-linux 2.26-1
libutil-linux 2.26.1-3
linux 3.19.2-1
linux-api-headers 3.18.5-1
linux-firmware 20150206.17657c3-1
linux-git 4.0rc4.r199.gb314aca-1
linux-git-docs 4.0rc4.r199.gb314aca-1
linux-git-headers 4.0rc4.r199.gb314aca-1
linux-headers 3.19.2-1
util-linux 2.26.1-3

Offline

#2 2015-03-27 13:04:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Bumblebee daemon reported: error - ASUS UX303LN,bumblebee,geforce 840m

You have both linux 3.19 an linux 4 - does this happen when you boot both kernels & kernel images?

Offline

#3 2015-03-27 13:20:08

AndreasEr
Member
Registered: 2013-12-03
Posts: 17

Re: Bumblebee daemon reported: error - ASUS UX303LN,bumblebee,geforce 840m

karol wrote:

You have both linux 3.19 an linux 4 - does this happen when you boot both kernels & kernel images?

The reason why i have v4 is to get mouse scoll on my laptop to work. As i understand it's okay to have multiple kernels? I select my kernel in the GRUB menu. Can this add any issues? Am i missing someting?

I can also add that i just tried this solution without any progress.

Offline

#4 2015-03-27 13:24:35

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: Bumblebee daemon reported: error - ASUS UX303LN,bumblebee,geforce 840m

So which kernel are you trying to run bumblebee on?
If you  try to run it on v4 you probably need to compile the nvidia modules against this version.
What does

systemctl status bumblebeed

give you right after reboot?


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#5 2015-03-27 13:26:13

AndreasEr
Member
Registered: 2013-12-03
Posts: 17

Re: Bumblebee daemon reported: error - ASUS UX303LN,bumblebee,geforce 840m

dice wrote:

So which kernel are you trying to run bumblebee on?
If you  try to run it on v4 you probably need to compile the nvidia modules against this version.
What does

systemctl status bumblebeed

give you right after reboot?

I always use v4 and have been used when i installed the drivers. Anything i need to do?

systemctl status bumblebeed
● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: active (running) since fre 2015-03-27 14:14:07 CET; 11min ago
 Main PID: 449 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           └─449 /usr/bin/bumblebeed

mar 27 14:14:42 laptop bumblebeed[449]: [   64.920660] [WARN][XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
mar 27 14:14:42 laptop bumblebeed[449]: [   64.920669] [ERROR][XORG] (EE) [drm] KMS not enabled
mar 27 14:14:42 laptop bumblebeed[449]: [   64.920673] [ERROR][XORG] (EE) No devices detected.
mar 27 14:14:42 laptop bumblebeed[449]: [   64.920676] [ERROR][XORG] (EE)
mar 27 14:14:42 laptop bumblebeed[449]: [   64.920679] [ERROR][XORG] (EE) no screens found(EE)
mar 27 14:14:42 laptop bumblebeed[449]: [   64.920682] [ERROR][XORG] (EE)
mar 27 14:14:42 laptop bumblebeed[449]: [   64.920686] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
mar 27 14:14:42 laptop bumblebeed[449]: [   64.920690] [ERROR][XORG] (EE)
mar 27 14:14:42 laptop bumblebeed[449]: [   64.920693] [ERROR][XORG] (EE) Server terminated with error (1). Closing log file.
mar 27 14:14:42 laptop bumblebeed[449]: [   64.920696] [ERROR]X did not start properly

Sorry, that one was not right after reboot. This one is tho (inside i3wm):

systemctl status bumblebeed
● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: active (running) since fre 2015-03-27 15:57:08 CET; 1min 15s ago
 Main PID: 453 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           └─453 /usr/bin/bumblebeed

mar 27 15:57:08 laptop systemd[1]: Started Bumblebee C Daemon.
mar 27 15:57:08 laptop systemd[1]: Starting Bumblebee C Daemon...
mar 27 15:57:08 laptop bumblebeed[453]: modprobe: FATAL: Module bbswitch not found.
mar 27 15:57:08 laptop bumblebeed[453]: [   33.470972] [ERROR]Module bbswitch could not be loaded (timeout?)
mar 27 15:57:08 laptop bumblebeed[453]: [   33.470986] [WARN]No switching method available. The dedicated card will always be on.
mar 27 15:57:08 laptop bumblebeed[453]: [   33.471866] [INFO]/usr/bin/bumblebeed 3.2.1 started

I ran

sudo modprobe bbswitch

And the bbswitch error disapeard but now im back on the first log with xorg errors.
/var/log/Xorg.8.log

[    78.331]
X.Org X Server 1.17.1
Release Date: 2015-02-10
[    78.331] X Protocol Version 11, Revision 0
[    78.331] Build Operating System: Linux 3.18.6-1-ARCH x86_64
[    78.331] Current Operating System: Linux laptop 4.0.0-rc4-gb314aca #1 SMP PREEMPT Fri Mar 20 13:23:44 CET 2015 x86_64
[    78.331] Kernel command line: BOOT_IMAGE=/vmlinuz-linux-git root=/dev/mapper/store-root rw cryptdevice=/dev/sda:enc:header rcutree.rcu_idle_gp_delay=1
[    78.331] Build Date: 14 March 2015  06:45:50PM
[    78.331]
[    78.331] Current version of pixman: 0.32.6
[    78.331]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    78.331] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    78.331] (==) Log file: "/var/log/Xorg.8.log", Time: Fri Mar 27 16:11:13 2015
[    78.332] (++) Using config file: "/etc/bumblebee/xorg.conf.nouveau"
[    78.332] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[    78.332] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    78.334] (==) ServerLayout "Layout0"
[    78.334] (==) No screen section available. Using defaults.
[    78.334] (**) |-->Screen "Default Screen Section" (0)
[    78.334] (**) |   |-->Monitor "<default monitor>"
[    78.334] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[    78.334] (**) |   |-->Device "DiscreteNvidia" 
[    78.334] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    78.334] (**) Option "AutoAddDevices" "false"
[    78.334] (**) Option "AutoAddGPU" "false"1
[    78.334] (**) Not automatically adding devices
[    78.334] (==) Automatically enabling devices
[    78.334] (**) Not automatically adding GPU devices
[    78.334] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/OTF/".
[    78.334]    Entry deleted from font path.
[    78.334]    (Run 'mkfontdir' on "/usr/share/fonts/OTF/").
[    78.334] (==) FontPath set to:
        /usr/share/fonts/misc/,
        /usr/share/fonts/TTF/,
        /usr/share/fonts/Type1/,
        /usr/share/fonts/100dpi/,
        /usr/share/fonts/75dpi/
[    78.334] (==) ModulePath set to "/usr/lib/xorg/modules"
[    78.334] (==) |-->Input Device "<default pointer>"
[    78.334] (==) |-->Input Device "<default keyboard>"
[    78.334] (==) The core pointer device wasn't specified explicitly in the layout.
        Using the default mouse configuration.
[    78.334] (==) The core keyboard device wasn't specified explicitly in the layout.
        Using the default keyboard configuration.
[    78.334] (II) Loader magic: 0x815d80
[    78.334] (II) Module ABI versions:
[    78.334]    X.Org ANSI C Emulation: 0.4
[    78.334]    X.Org Video Driver: 19.0
[    78.334]    X.Org XInput driver : 21.0
[    78.334]    X.Org Server Extension : 9.0
[    78.335] (EE) systemd-logind: failed to get session: PID 927 does not belong to any known session
[    78.335] (II) xfree86: Adding drm device (/dev/dri/card0)
[    78.335] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    78.336] (--) PCI:*(0:3:0:0) 10de:1341:1043:167d rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    78.336] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    78.336] (II) LoadModule: "glx"
[    78.336] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    78.337] (II) Module glx: vendor="X.Org Foundation"
[    78.337]    compiled for 1.17.1, module version = 1.0.0
[    78.337]    ABI class: X.Org Server Extension, version 9.0
[    78.337] (==) AIGLX enabled
[    78.337] (II) LoadModule: "nouveau"
[    78.337] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[    78.340] (II) Module nouveau: vendor="X.Org Foundation"
[    78.340]    compiled for 1.17.0, module version = 1.0.11
[    78.340]    Module class: X.Org Video Driver
[    78.340]    ABI class: X.Org Video Driver, version 19.0
[    78.340] (II) LoadModule: "mouse"
[    78.341] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[    78.341] (II) Module mouse: vendor="X.Org Foundation"
[    78.341]    compiled for 1.16.0, module version = 1.9.1
[    78.341]    Module class: X.Org XInput Driver
[    78.341]    ABI class: X.Org XInput driver, version 21.0
[    78.341] (II) LoadModule: "kbd"
[    78.341] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
[    78.342] (II) Module kbd: vendor="X.Org Foundation"
[    78.342]    compiled for 1.16.0, module version = 1.8.0
[    78.342]    Module class: X.Org XInput Driver
[    78.342]    ABI class: X.Org XInput driver, version 21.0
[    78.342] (II) NOUVEAU driver
[    78.342] (II) NOUVEAU driver for NVIDIA chipset families :
[    78.342]    RIVA TNT        (NV04)
[    78.342]    RIVA TNT2       (NV05)
[    78.342]    GeForce 256     (NV10)
[    78.342]    GeForce 2       (NV11, NV15)
[    78.342]    GeForce 4MX     (NV17, NV18)
[    78.342]    GeForce 3       (NV20)
[    78.342]    GeForce 4Ti     (NV25, NV28)
[    78.342]    GeForce FX      (NV3x)
[    78.342]    GeForce 6       (NV4x)
[    78.342]    GeForce 7       (G7x)
[    78.342]    GeForce 8       (G8x)
[    78.342]    GeForce GTX 200 (NVA0)
[    78.342]    GeForce GTX 400 (NVC0)
[    78.342] (--) using VT number 1

[    78.342] (EE) [drm] KMS not enabled
[    78.342] (EE) No devices detected.
[    78.342] (EE)
Fatal server error:
[    78.342] (EE) no screens found(EE)
[    78.342] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[    78.342] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[    78.342] (EE)

Last edited by AndreasEr (2015-03-27 15:15:29)

Offline

#6 2015-03-28 05:30:18

AndreasEr
Member
Registered: 2013-12-03
Posts: 17

Re: Bumblebee daemon reported: error - ASUS UX303LN,bumblebee,geforce 840m

I decided to try and change to bumblebee-git. Did not work out but gave me another error:

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

[   99.691968] [ERROR]Aborting because fallback start is disabled.

Wiki told me this, But with no success:

This could be worked around by appending following lines in /etc/bumblebee/xorg.conf.nvidia (see here):

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

Everything worked fine on my previous optimus laptop from asus. Is it someting im missing with those "new" GPUs? It's a Geforce 840m.

Last edited by AndreasEr (2015-03-28 05:32:16)

Offline

#7 2015-03-28 08:49:10

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: Bumblebee daemon reported: error - ASUS UX303LN,bumblebee,geforce 840m

dice wrote:

So which kernel are you trying to run bumblebee on?
If you  try to run it on v4 you probably need to compile the nvidia modules against this version.

And also the module for bbswitch.

EDIT: from your Xorg.8.log it seems that you are using bumblebee with nouveau drivers. Therefore changes in the nvidia related configs won't apply

Last edited by dice (2015-03-28 08:52:55)


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#8 2015-03-28 17:04:25

AndreasEr
Member
Registered: 2013-12-03
Posts: 17

Re: Bumblebee daemon reported: error - ASUS UX303LN,bumblebee,geforce 840m

dice wrote:
dice wrote:

So which kernel are you trying to run bumblebee on?
If you  try to run it on v4 you probably need to compile the nvidia modules against this version.

And also the module for bbswitch.

EDIT: from your Xorg.8.log it seems that you are using bumblebee with nouveau drivers. Therefore changes in the nvidia related configs won't apply

Hi again dice, I made a fresh install of arch and i have bumblebee up and running now. No issues. Currently im running the 3.19.2-1 kernel but i do have to install v4 to get my mousepad working on my laptop. Could you possible give me a short step by step guide of how i can make it work with the new kernel? How do i compile things against a newer kernel?

Offline

#9 2015-06-27 16:51:09

rajat
Member
Registered: 2013-10-10
Posts: 10

Re: Bumblebee daemon reported: error - ASUS UX303LN,bumblebee,geforce 840m

I get this error
primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) systemd-logind: failed to get session: PID 6333 does not belong to any known session

However after I attempt a second time it works fine. I have been testing bumblebee across many Distributions, Ubuntu, OpenSuse 13.2/Tumbleweed, Fedora22, Elementary OS. etc.. It is a common issue. So I think it is not specific to a Kernel, it more looks like a bug of some sort, Maybe with bumblebee or not.  I have tested this on my Lenovo Laptop Z70-50 . My hardware Specs are as below.

lshw -C Display     
WARNING: you should run this program as super-user.
  *-display               
       description: VGA compatible controller
       product: Haswell-ULT Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 0b
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:45 memory:c3000000-c33fffff memory:d0000000-dfffffff ioport:5000(size=64)
  *-display
       description: 3D controller
       product: GF117M [GeForce 610M/710M/820M / GT 620M/625M/630M/720M]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list
       configuration: driver=nvidia latency=0
       resources: irq:51 memory:c2000000-c2ffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:3000(size=128)

I think I should now file a bug report for this  issue.

Do you also see similar behaviour ? Please let me know so that I could log a bug for this as it would then be established that it works fine after a second or 3rd attempt.?


Linux is easy.. People are Difficult

Offline

#10 2015-08-15 08:44:49

starthis
Member
Registered: 2004-12-25
Posts: 46

Re: Bumblebee daemon reported: error - ASUS UX303LN,bumblebee,geforce 840m

I had the same error message trying to use primusrun / optirun :

primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) systemd-logind: failed to get session: PID xxxx does not belong to any known session

It used to work fine a couple of kernel versions ago, when I initially setup bumblebeed I applied most hints from the bumblebee wiki page.

I discovered for me bumblebee started working again if I reloaded the bbswitch module (rmmod bbswitch & modprobe bbswitch)
One of the hints from the wiki page was to add bbswitch module to /etc/mkinitcpio.conf for early loading, but once I REMOVED the module from etc/mkinitcpio.conf again, everything works again as expected.

I suppose loading the bbswitch module early, causes it to be loaded in a wrong (no) session context somehow.

I don't know if this will help solve your issue, but I thought I'd leave it here for reference.

Offline

Board footer

Powered by FluxBB