Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-04-2013, 01:48 PM   #1
LQ Newbie
Registered: Nov 2013
Posts: 18

Rep: Reputation: Disabled
Question Bumblebee [Optimus] BBswitch wont load anymore

Hi, Im here because I have this particular situation. I tried to google but couldnt find an answer.

I have an ASUS N53SV laptop with a Geforce 540M with Nvidia Optimus technology.

I had installed bumblebee and It worked perfectly fine, until 2 days ago, In wich I have no clue, BBSwitch wont load, I see the Nvidia video card ON, sucking on my battery and heating up my computer.

Im runing Slackware 14.1 x86_64 with multilib enabled.

What really bothers me is that it was working perfectly fine, and put of the nowehere it stoped loading.

First time, I installed it following this guide (a month ago, right after Slackware14.1 released and clean install)

I even installed it enabling COMPAT32 (32bits compatibility on a 64bits system)

then, when I noticed It wasnt working I decided to reinstall it, no changes.

Then, reinstalled it without COMPAT32. Nothing

Then, I checked this:

Where I tried to:

# cat /proc/acpi/bbswitch
and echoes this:
cat: /proc/acpi/bbswitch: No such file or directory
I wondered what happened..

So, I decided to download and reinstall Bbswitch..

Donloaded from here:

and following the instruction:

make install
make load
n4rf@ASUS:~\>> cd Downloads/
n4rf@ASUS:~/Downloads\>> cd bbswitch-master
n4rf@ASUS:~/Downloads/bbswitch-master\>> su
root@ASUS:/home/n4rf/Downloads/bbswitch-master# make
make -C /lib/modules/3.10.17/build M="$(pwd)" modules
make[1]: Entering directory `/usr/src/linux-3.10.17'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-3.10.17'
root@ASUS:/home/n4rf/Downloads/bbswitch-master# make install
mkdir -p /lib/modules/3.10.17/misc/bbswitch
install -m 0755 -o root -g root bbswitch.ko /lib/modules/3.10.17/misc/bbswitch
depmod -a
root@ASUS:/home/n4rf/Downloads/bbswitch-master# make load
rmmod bbswitch
rmmod: ERROR: Module bbswitch is not currently loaded
make: [load] Error 1 (ignored)
insmod bbswitch.ko

if I go:

# cat /proc/acpi/bbswitch  
0000:01:00.0 ON
Now it seems BBswitch is loaded..

I get this issue

Turn the card off, respectively on:

# tee /proc/acpi/bbswitch <<<OFF
# tee /proc/acpi/bbswitch <<<ON

If the card stays on when trying to disable it, you've probably forgotten to unload the driver,
$ dmesg |tail -1
bbswitch: device 0000:01:00.0 is in use by driver 'nouveau', refusing OFF

Do not attempt to load a driver while the card is off or the card won't be usable until the PCI configuration space has been recovered (for example, after writing the contents manually or rebooting).

If I go:

dmesg | grep -C 10 bbswitch
[   32.054778] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   35.414690] wlan0: authenticate with 1c:bd:b9:75:97:7c
[   35.436856] wlan0: send auth to 1c:bd:b9:75:97:7c (try 1/3)
[   35.439130] wlan0: authenticated
[   35.439154] ath9k 0000:03:00.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[   35.439157] ath9k 0000:03:00.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[   35.439904] wlan0: associate with 1c:bd:b9:75:97:7c (try 1/3)
[   35.442653] wlan0: RX AssocResp from 1c:bd:b9:75:97:7c (capab=0x411 status=0 aid=2)
[   35.442963] wlan0: associated
[   35.442976] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  844.568296] bbswitch: version 0.7
[  844.568306] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[  844.568313] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.GFX0
[  844.569080] bbswitch: detected an Optimus _DSM function
[  844.569094] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on

root@ASUS:/home/n4rf/Downloads/bbswitch-master# uname -a
Linux ASUS 3.10.17 #2 SMP Wed Oct 23 16:34:38 CDT 2013 x86_64 Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz GenuineIntel GNU/Linux

BUt, here is the BIG BUT!


Im back to this!

# cat /proc/acpi/bbswitch

cat: /proc/acpi/bbswitch: No such file or directory
Any ideas????
Old 12-06-2013, 10:03 AM   #2
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,933
Blog Entries: 15

Rep: Reputation: 1663Reputation: 1663Reputation: 1663Reputation: 1663Reputation: 1663Reputation: 1663Reputation: 1663Reputation: 1663Reputation: 1663Reputation: 1663Reputation: 1663
Member Response


Try using 'su -';
excerpt from 'man su';
-, -l, --login
Provide an environment similar to what the user would expect had the user logged in directly.

When - is used, it must be specified as the last su option. The other forms (-l and --login) do not have this restriction.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] nVidia Optimus / Bumblebee not working; Unknown header type 7f flokofcgulls Slackware 14 07-24-2013 07:33 PM
[SOLVED] Nvidia Optimus and Bumblebee Project, Finally Working? codeman1234 Linux - Desktop 7 06-12-2013 07:01 AM
3.2.28 Generic Kernel in Slackware (with nvidia optimus, bumblebee) TommyC7 Linux - Kernel 2 09-07-2012 02:10 PM
LXer: Bumblebee 3.0 Released (Nvidia Optimus GPU Switching For Linux) LXer Syndicated Linux News 0 01-20-2012 08:30 PM
Slackbuilds for Bumblebee - Nvidia Optimus jimmy_page_89 Slackware 5 12-31-2011 07:31 AM

All times are GMT -5. The time now is 03:44 AM.

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