LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Bumblebee 3 on Slackware 1337 Error (https://www.linuxquestions.org/questions/slackware-14/bumblebee-3-on-slackware-1337-error-928909/)

ensa 02-12-2012 12:49 AM

Bumblebee 3 on Slackware 1337 Error
 
Quote:

Originally Posted by teox99 (Post 4591951)
Bumblebee 3.0 new packages for slackware 13.37 64 bit
http://www.teoxonline.com/appunti.php?id=25

Hi,
Thanks for putting these up.
I am running Slackware 1337 on an Aspire with i7-2630QM CPU @ 2.00GHz and Nvidia 540M Optimus.

I can install it fine but on running I get

Error: couldn't get an RGB, Double-buffered visual

A full verbose output is here:

Code:

bash-4.1# optirun -vv glxgears
[DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[WARN]Could not open configuration file: /etc/bumblebee/bumblebee.conf
[WARN]Using default configuration
[DEBUG]Process /sbin/modinfo started, PID 8413.
[DEBUG]Hiding stderr for execution of /sbin/modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Detected nvidia driver (module nvidia)
[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] VGL Compression: proxy
[DEBUG]optirun version 3.0 starting...
[INFO]Response: Yes. X is active.

[INFO]Running application through vglrun.
[DEBUG]Process vglrun started, PID 8419.
Error: couldn't get an RGB, Double-buffered visual
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Socket closed.
[DEBUG]Killing all remaining processes.


I have tried with both direct and indirect rendering set - same error.
Any help appreciated, Thanks in advance.

willysr 02-12-2012 03:05 AM

try adding this line
Code:

export LIBGL_ALWAYS_INDIRECT=1
in .bashrc

ensa 02-12-2012 03:17 AM

Quote:

Originally Posted by willysr (Post 4600310)
try adding this line
Code:

export LIBGL_ALWAYS_INDIRECT=1
in .bashrc


Hi,

Thanks for the suggestion.
I get the same error with this set to 1 or 0.

E.

willysr 02-12-2012 04:20 AM

here's a link to a forum where they have the similar problem like yours
https://github.com/Bumblebee-Project...ebee/issues/41

probably you can find the answer over there as i don't have optimus on my system

ensa 02-12-2012 04:43 AM

Quote:

Originally Posted by willysr (Post 4600349)
here's a link to a forum where they have the similar problem like yours
https://github.com/Bumblebee-Project...ebee/issues/41

probably you can find the answer over there as i don't have optimus on my system

Hi,
That is an interesting link.
The problem they have there is that they are using incorrectly installed/configured nouveau drivers. I am using nvidia.
However, I will continue to troubleshoot it. It may be a driver issue I am having.
I hope to attract the attention of someone within the Slackware community who has experience with using Optimus, hopefully with bumblebee, but I suspect that the actual bumblebee is installed ok, as I have been banging my head against this for a while.

Thanks again.
:)

teox99 02-12-2012 05:17 AM

hi
your prob seams to be related to
/etc/bumblebee/bumblebee.conf

have you these files in /etc/bumblebee/ ?

if you have not older version than bb3.0 you need to install
libjpeg-turbo too

ensa 02-12-2012 05:50 AM

Quote:

Originally Posted by teox99 (Post 4600378)
hi
your prob seams to be related to
/etc/bumblebee/bumblebee.conf

have you these files in /etc/bumblebee/ ?

if you have not older version than bb3.0 you need to install
libjpeg-turbo too

Hi,
I think I have all the packages installed.
The content of my bumblebee.conf is:

Code:

### Bumblebee daemon configuration file.
### Boolean options accept 'Y' and 'N'. Do not use true/false or 0/1.

### Modifications made here will need a daemon restart to take effect.

# Should bumblebee service be stopped after last optirun program is closed ?
STOP_SERVICE_ON_EXIT=N

# How many seconds should be waited before giving up on starting the X server ?
X_SERVER_TIMEOUT=10

# Display for the nVidia X Server, choose a higher display (e.g. :5) if you use
# Fast User Switching which starts incrementing from :0 (:0, :1, :2, ...).
VGL_DISPLAY=:8

# The video driver to be used. Supported drivers are 'nvidia' and 'nouveau'.
# Nouveau driver can be used if the available drivers are available and the
# experimental Mesa Gallium3D libraries are present.
DRIVER=nvidia

# The Xorg configuration to be used, leaving it empty will base the file on the
# driver name, which is usually /etc/bumblebee/xorg.conf.DRIVER
X_CONFFILE=

# The group that is allowed to use Bumblebee. Note that the user needs to
# re-login for group membership changes to apply.
BUMBLEBEE_GROUP=bumblebee

# WARNING ! Power management is a very unstable feature for now, use it at your
# own risk. You won't get any support if you use this function. Please set
# first /etc/bumblebee/cardon and /etc/bumblebee/cardoff by just writing your
# calls there (one per line) and nothing else or you will face errors :
# \_SB.PCI0.PEG0.GFX0_ON
# Or :
# \_SB.PCI0.RP00.VGA._DSM {0x01,0x02} 0x03 0x04 {0x1,0x0,0x0,0x3}
# \_SB.PCI0.RP00.VGA._PS0
# You should also set STOP_SERVICE_ON_EXIT to Y if you really want to save
# power/battery life.
# See https://github.com/Bumblebee-Project/Bumblebee/wiki/ACPI-for-Developers
# for more information.
ENABLE_POWER_MANAGEMENT=N

### The below only affects optirun, restarting the daemon is not necessary

# Image transport from bumblebee X server to screen.
# Possible values: proxy, jpeg, rgb, xv or yuv (default = proxy)
VGL_COMPRESS=proxy

# If ECO mode is active, the nvidia card will not be used if not plugged in
# (running on battery). This setting has only effect on newly started programs.
# This feature is still not enablend and depends on power-management features.
ECO_MODE=N

# Fall back on using the Intel graphics card if the nVidia one is not available.
# If disabled, optirun will quit after displaying an error message.
FALLBACK_START=N

Also the output of this seems ok.
Code:

lspci -vnn | grep '\''[030[02]\]'
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:0df4] (rev a1) (prog-if 00 [VGA controller])

Sorry, I know Slackware but I am not too familiar with X or GL.

Thanks.

teox99 02-12-2012 06:46 AM

is your a fresh installation of bb3.0 or an upgrade from an older one?

- you should remove xorg.conf in /etc/X11
- try to blacklist the nouveau driver
- have you added bumblebee group, and started the bumblebeed daemon?

you can read
https://github.com/Bumblebee-Project...roubleshooting

ensa 02-12-2012 06:54 AM

Quote:

Originally Posted by teox99 (Post 4600400)
is your a fresh installation of bb3.0 or an upgrade from an older one?

- you should remove xorg.conf in /etc/X11
- try to blacklist the nouveau driver
- have you added bumblebee group, and started the bumblebeed daemon?

you can read
https://github.com/Bumblebee-Project...roubleshooting

It is a fresh install.
I added the bumblebee group when I installed it and the daemon runs fine. I will try your other suggestions when I am at my laptop and troubleshoot some more and post the outcome here.

Thanks again.
:)

ensa 02-12-2012 07:19 AM

Thank you for your help, teox99. Your first suggestion was correct - it was a problem with the config file.

The problem was that when I uninstalled the previous bumblebee the config file was not removed.

The solution was I deleted the bumblebee.conf and re-installed the .tgz

That was all I needed to do.
Your packages worked perfectly.
Thank you.
e.
:)

teox99 02-12-2012 08:28 AM

ok!

there are other problems that are still not solved, such as VDPAU and windump, WEBGL acceleration,
i hope we find a solution later!


All times are GMT -5. The time now is 03:19 PM.