LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-12-2017, 08:00 PM   #1
n4rf
Member
 
Registered: Nov 2013
Location: Córdoba, Argentina
Distribution: Slackware64 14.2
Posts: 36

Rep: Reputation: Disabled
Question BumbleBee Not Starting at startup


Im running Slackware64 14.2 Multilib on an Asus N53SV with Nvidia Optimus Technology, therefore Project Bumblebee comes in rescue!

Ive been running long time, but last week I did a fresh Slack64 14.2 (multilib) install.

I succesfully installed bumblebee service, but it wont start (there is a Blue/White LED indicator according to which GPU the laptop is using) during startup.

I have to start it manually.

As soon as I execute as root user

Code:
/etc/rc.d/rc.bumblebeed start
Led goes from White (Nvidia GPU) to Blue (Intel GPU).

after that, Primus takes care to switch among GPUs when in need.


I've checked file permissions:

Code:
n4rf::ASUS{~ }>> stat -c %A /etc/rc.d/rc.bumblebeed 
-rwxr-xr-x
This is My /etc/rc.d/rc.local file


Code:
#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local startup commands in here.  Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.


if [ -x /etc/rc.d/rc.bumblebeed ]; then
  /etc/rc.d/rc.bumblebeed start
fi
Ive even tried to force it without if sentence..

Code:
[ -x /etc/rc.d/rc.bumblebeed ] && /etc/rc.d/rc.bumblebeed start

But it does not seem to start at startup.

Advice?

Im planing to create a file that runs on rc.local named start_bumblebeed with the mere porpouse of starting the service.

But before that, am I missing something???
 
Old 01-12-2017, 08:11 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Maybe the system is still loading a bit? Maybe a sleep 5 in the rc.local would help?
 
Old 01-12-2017, 08:33 PM   #3
n4rf
Member
 
Registered: Nov 2013
Location: Córdoba, Argentina
Distribution: Slackware64 14.2
Posts: 36

Original Poster
Rep: Reputation: Disabled
As soon as you said I was like "of course!!!! that has to be!" .. but tried with 5,10,15 and 30... still the same result...
 
Old 01-14-2017, 10:07 AM   #4
n4rf
Member
 
Registered: Nov 2013
Location: Córdoba, Argentina
Distribution: Slackware64 14.2
Posts: 36

Original Poster
Rep: Reputation: Disabled
Solved! I had to dig up but i found MY MISTAKE.

I had edited /etc/rc.d/rc.M tom make slackware boot faster, and I added a ";" on the /etc/rc.d/rc.local instruciton:

Code:
# Start the local setup procedure. 
if [ -x /etc/rc.d/rc.local ]; then 
  /etc/rc.d/rc.local; 
fi
I changed it to:

Code:
# Start the local setup procedure. 
if [ -x /etc/rc.d/rc.local ]; then 
  /etc/rc.d/rc.local &  #Run in background at the same time
fi
My bad! Fixed
 
Old 01-14-2017, 10:22 AM   #5
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Hi n4rf,
do you use bumblebee with the nvidia proprietary drivers or the nouveau one?
and how did you install it?
 
Old 01-14-2017, 10:37 AM   #6
n4rf
Member
 
Registered: Nov 2013
Location: Córdoba, Argentina
Distribution: Slackware64 14.2
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by a4z View Post
Hi n4rf,
do you use bumblebee with the nvidia proprietary drivers or the nouveau one?
and how did you install it?
a4z;
I use to install it manually following this guide:

http://docs.slackware.com/howtos:har...nvidia_optimus


but not long ago, there is a new, automated way of installing Bumblebee thanks to Slacker: Ryan McQuen.



wich I only execute

Code:
curl https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/slackware/crazybee.sh | STABLE=yes sh
this script detects multilib, creates the necessary group, adds users and applies the necessary /etc/rc.d/rc.local entries.


It adds Nouveau to blacklist, and uses propietratry Nvidia Drivers from SlackBuilds.Org


Works like a charm on my Slack64 14.2 Multilib.
 
1 members found this post helpful.
  


Reply

Tags
bumblebee, startup


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
starting a program on startup abdolah Linux - Software 3 11-04-2010 02:25 PM
Starting a service at startup. pinga123 Linux - Newbie 16 05-16-2010 10:14 PM
/etc/rc.d startup not starting? kailun Slackware 9 09-18-2006 05:29 AM
starting processes on startup Henster Linux - Newbie 2 06-28-2005 12:12 PM
starting script on startup darklandz Linux - Newbie 4 06-05-2005 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration