You are not logged in.

#1 2018-01-26 04:51:01

Cknight70
Member
Registered: 2018-01-24
Posts: 76

[SOLVED] Bumblebee Troubleshooting

Hi, I am trying to get X to run with bumblebee.
Following the guide on the wiki for Bumblebee, I get an error when I run optirun:

$ optirun glxpheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
ERROR in line 614:
Could not open display

and

$ optirun glxgears -info
Couldn't open display (null)

I have already installed mesa and the nvidia packages
Here is what lspci returns

# lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 950M] (rev a2)

Relevant files I configured:
/etc/X11/xorg.conf.d/20-nvidia.conf
/etc/bumblebee/xorg.conf.nvidia
I have not have a xorg.conf or config file for my Intel card in /xorg.conf.d

Here is a link to my lenovo 700-15isk
This is my first time running arch or configuring X manually, so you'll have to forgive me for being clueless of where to look next. Any ideas would be appreciated.

Last edited by Cknight70 (2018-01-28 02:50:19)

Offline

#2 2018-01-26 05:13:57

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: [SOLVED] Bumblebee Troubleshooting

Is the bumblebeed service running?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2018-01-26 05:26:35

Cknight70
Member
Registered: 2018-01-24
Posts: 76

Re: [SOLVED] Bumblebee Troubleshooting

I have run

# systemctl enable bumblebeed.service

and restarted many times since then, so yes I believe so. smile

Last edited by Cknight70 (2018-01-26 05:36:11)

Offline

#4 2018-01-26 08:18:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,919

Re: [SOLVED] Bumblebee Troubleshooting

Remove that 20-nvidia.conf and revert your edit to the bumblebee files. They should - and usually do - just work as they are provided.

For prosperity's sake if that doesn't already fix it post your /var/log/Xorg.8.log

Last edited by V1del (2018-01-26 08:23:35)

Offline

#5 2018-01-26 14:00:26

seth
Member
Registered: 2012-09-03
Posts: 60,813

Re: [SOLVED] Bumblebee Troubleshooting

Also instead of "believing" in the status of a service your should just rather query it ...

Offline

#6 2018-01-26 14:02:41

Cknight70
Member
Registered: 2018-01-24
Posts: 76

Re: [SOLVED] Bumblebee Troubleshooting

Okay I have deleted my /etc/X11/xorg.conf.d/20-nvidia.conf
removing the bus ID line in /etc/bumblebee/xorg.conf.nvidia got me this error

[ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.
[ERROR]Aborting because fallback start is disabled.

So this log is with my bumblebee config file staying the same as the last paste I made (IE I have specified the bus id)
link
And this one with the bumblebee config file unmodified (I commented out the bus id line) link

Offline

#7 2018-01-26 14:08:07

seth
Member
Registered: 2012-09-03
Posts: 60,813

Re: [SOLVED] Bumblebee Troubleshooting

Passing the PCI ID is required here (known issue) but the respective xorg log (ie. w/ specified ID) looks fine - what's the error merssage for that?

Offline

#8 2018-01-26 14:08:50

Cknight70
Member
Registered: 2018-01-24
Posts: 76

Re: [SOLVED] Bumblebee Troubleshooting

seth wrote:

Also instead of "believing" in the status of a service your should just rather query it ...

Rookie mistake on my part

# systemctl status bumblebeed
* bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2018-01-26 14:05:25 UTC; 35s ago
 Main PID: 355 (bumblebeed)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bumblebeed.service
           `-355 /usr/bin/bumblebeed

Jan 26 14:05:25 morgan systemd[1]: Started Bumblebee C Daemon.
Jan 26 14:05:25 morgan bumblebeed[355]: modprobe: FATAL: Module bbswitch not found in directory /lib/modules/4.14.13-1-ARCH
Jan 26 14:05:25 morgan bumblebeed[355]: [    4.047616] [ERROR]Module bbswitch could not be loaded (timeout?)
Jan 26 14:05:25 morgan bumblebeed[355]: [    4.047625] [WARN]No switching method available. The dedicated card will always be on.
Jan 26 14:05:25 morgan bumblebeed[355]: [    4.048457] [INFO]/usr/bin/bumblebeed 3.2.1 started

Offline

#9 2018-01-26 14:11:47

seth
Member
Registered: 2012-09-03
Posts: 60,813

Re: [SOLVED] Bumblebee Troubleshooting

uname -a
pacman -Qs linux
pacman -Qs bbswitch
pacman -Qs nvidia

Offline

#10 2018-01-26 14:12:42

Cknight70
Member
Registered: 2018-01-24
Posts: 76

Re: [SOLVED] Bumblebee Troubleshooting

seth wrote:

Passing the PCI ID is required here (known issue) but the respective xorg log (ie. w/ specified ID) looks fine - what's the error merssage for that?

optirun glxpheres64
returns a "ERROR on line 200something" could not find glxpheres64 now.

Bolth Optirun commands returned the same ones as my first post. I was in a hurry when I originally wrote this post.

Sorry I have to go to work now but I will post back when I get back home thank you for your help so far smile

Last edited by Cknight70 (2018-01-27 02:09:16)

Offline

#11 2018-01-27 02:08:31

Cknight70
Member
Registered: 2018-01-24
Posts: 76

Re: [SOLVED] Bumblebee Troubleshooting

Ok I have the information you requested, I also edited my last post because I was in a hurry this morning.

uname

Linux morgan 4.14.13-1-ARCH #1 SMP PREEMPT Wed Jan 10 11:14:50 UTC 2018 x86_64 GNU/Linux

linux

local/archlinux-keyring 20180108-1
    Arch Linux PGP keyring
local/bumblebee 3.2.1-16
    NVIDIA Optimus support for Linux through VirtualGL
local/filesystem 2017.10-2 (base)
    Base Arch Linux files
local/iptables 1.6.1-2
    Linux kernel packet control tool
local/keyutils 1.5.10-1
    Linux Key Management Utilities
local/kmod 24-1
    Linux kernel module management tools and library
local/lib32-libxshmfence 1.2-1
    a library that exposes a event API on top of Linux futexes (32-bit)
local/libaio 0.3.110-1
    The Linux-native asynchronous I/O facility (aio) library
local/libutil-linux 2.31.1-1
    util-linux runtime libraries
local/libxshmfence 1.2-1
    a library that exposes a event API on top of Linux futexes
local/linux 4.14.13-1 (base)
    The Linux kernel and modules
local/linux-api-headers 4.14.8-1
    Kernel headers sanitized for use in userspace
local/linux-firmware 20171206.fdee922-1
    Firmware files for Linux
local/man-pages 4.14-1 (base)
    Linux man pages
local/mdadm 4.0-1 (base)
    A tool for managing/monitoring Linux md device arrays, also known as Software RAID
local/nvidia 387.34-19
    NVIDIA drivers for linux
local/pacman-mirrorlist 20171203-1
    Arch Linux mirror list for use by pacman
local/util-linux 2.31.1-1 (base base-devel)
    Miscellaneous system utilities for Linux

bbswitch

local/bbswitch 0.8-100
    Kernel module allowing to switch dedicated graphics card on Optimus laptops

nvidia

local/bumblebee 3.2.1-16
    NVIDIA Optimus support for Linux through VirtualGL
local/lib32-nvidia-utils 387.34-1
    NVIDIA drivers utilities (32-bit)
local/nvidia 387.34-19
    NVIDIA drivers for linux
local/nvidia-utils 387.34-5
    NVIDIA drivers utilities

Offline

#12 2018-01-27 07:20:27

Cknight70
Member
Registered: 2018-01-24
Posts: 76

Re: [SOLVED] Bumblebee Troubleshooting

In an effort to prevent this from becoming a goose chase, I went ahead and I went ahead a reinstalled X, since there seemed something fishy with it and would display a similar "no screens found" error when I ran "Xorg" before.

 pacman -S xorg-server xorg-xinit xorg-twm xorg-xclock xterm

I found I had I had the two lines in /etc/X11/xinit/xinitrc from the NVIDIA Optimus "Using nvidia" part of the guide, which I commented.
Next I ran startx which blacks the screen with no cursor (but screen leds still on) and then goes back to terminal.
here is my Xorg.0.log from it link
Then I tried re-installing bumblebee, and running  "optirun glxgears -info" still the same error as my first post.

Last edited by Cknight70 (2018-01-27 07:24:58)

Offline

#13 2018-01-27 08:57:24

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED] Bumblebee Troubleshooting

I found I had I had the two lines in /etc/X11/xinit/xinitrc from the NVIDIA Optimus "Using nvidia" part of the guide, which I commented.

Actually you need them uncommented (without #).

here is my Xorg.0.log from it link

..xorg is now trying (unsuccessfully) to load intel instead of nvidia. not true, is modesetting (see below post, it's been a busy morning).

Given that you followed what anyone suggested above, fix the .xinitrc and post it along with your xorg.conf and

lspci | egrep 'VGA|3D'

.

Last edited by lo1 (2018-01-27 11:14:05)

Offline

#14 2018-01-27 09:26:26

seth
Member
Registered: 2012-09-03
Posts: 60,813

Re: [SOLVED] Bumblebee Troubleshooting

The nvidia ddx is not supposed to be loaded in a bumblebee setup and since he doesn't have xf86-video-intel installed, the modesetting driver is used.

All is fine with that Xorg run, except that it only lasts 0.1 seconds what means the session is broken: do you have an ~/.xinitrc ?

Please stop doing random things, you are turning this into a goose chase.
The bbswitch module should be in /usr/lib/modules/extramodules-4.14-ARCH/ - maybe the "FATAL" error message is a red herring.

lsmod | grep bbswitch

Given your startx issues: you're not trying to optirun stuff from a linux console (ie. w/o any X11 server running), are you?

Offline

#15 2018-01-28 02:48:42

Cknight70
Member
Registered: 2018-01-24
Posts: 76

Re: [SOLVED] Bumblebee Troubleshooting

seth wrote:

Please stop doing random things, you are turning this into a goose chase.

First, I want to apologize, I have been somewhat reckless with this issue because I've been doing things in a hurry, which I'm finding out is a good way to cause new problems. I really appreciate the time you've taken to help me solve this so I will make sure to not make any changes or posts in a hurry from now on.

That being said, I had installed bbswitch between yesterday's post and the day before. bumblebeed doesn't give any errors now

# systemctl status bumblebeed
* bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-01-28 02:26:19 UTC; 46s ago
 Main PID: 368 (bumblebeed)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bumblebeed.service
           `-368 /usr/bin/bumblebeed

Jan 28 02:26:19 morgan systemd[1]: Started Bumblebee C Daemon.
Jan 28 02:26:19 morgan bumblebeed[368]: [    4.469721] [INFO]/usr/bin/bumblebeed 3.2.1 started
seth wrote:

do you have an ~/.xinitrc ?

seth wrote:

you're not trying to optirun stuff from a linux console (ie. w/o any X11 server running), are you?

These two comments is honestly what solved my problem. The root of my problem was that I didn't know what a tilde (~) meant in the Unix file system. Previously I had inferred that ~/insertname was a symlink made in the root directory by an application, and that it led to wherever directory or file insertname was, in this case ~/.xinitrc calling /etc/X11/xinit/xinitrc. So, when I followed the optimus guide and it told me to put those two lines into my ~/.xinitrc, they also happened to be the only two lines in the file... How I managed to get away with thinking that for so long I don't know, but I now understand ~/ refers to my home directory.
I was also naïve to what xinit actually did which is why I did not bat an eye at there only being two lines in my xinitrc, actually, I don't think I even had xinit installed until yesterday.... I had not read the wiki page on it until today, my reasoning being that I thought I should install drivers (bumblebee being part of that process) before dealing with features related to X. So yes I had been trying to run optirun since the beginning of this thread without X.

tl;dr
I was trying to run optirun without X running, and the only thing my ~/.xinitrc file contained was two commented lines, and before that, two uncommented lines!

Thanks for the help guys, here is a picture of twm running and it looks like bumble bee is working correctly too. I have marked this thread as solved, cheers!
https://dl.dropbox.com/s/uuw0hw1sss7rs6 … blebee.jpg

Mod note: Converted image to url -- V1del

Last edited by V1del (2018-01-28 08:55:34)

Offline

#16 2018-01-28 08:54:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,919

Re: [SOLVED] Bumblebee Troubleshooting

Please don't post huge images like that, use thumbnails or links instead in the future.

https://wiki.archlinux.org/index.php/Co … s_and_code

Glad to hear you solved this.

Offline

Board footer

Powered by FluxBB