LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-04-2012, 06:17 PM   #1
DecioSP
LQ Newbie
 
Registered: Dec 2009
Posts: 20

Rep: Reputation: 0
Unable to make bumblebee work in slackware 13.37


I am trying to make bumblebee to work in slackware 13.37.
In order to do this I followed the instructions found here
with a minor adjust because to be able to install VirtualGL I had to install first libjpeg-turbo. I get the libjpeg-turbo from slackbuilds but had to make an alteration in libjpeg-turbo.Slackbuild to version 1.2.0 to install this version because libjpeg-turbo 1.0.0 also returned errors while compiling VirtualGL.

After that I followed the instructions, compiled and installed all and when I tried to check if it was working it returned the error:

Code:
[ERROR] Cannot access secondary GPU - error: [XORG] (EE) No devices detected
[ERROR] Aborting because fallback start is disable.
Then I tried the adjusts listed below.

1st.
During the install of nvidia-bumblebee I made an alteration in Slackbuild file in order to install nvidia 295.49 version.

2rd.
With or without the use of the option KERNEL=2.6.37.6 it stated some error in the begging of the compiling but manage to create the package (The error occurred in both 295.40 and 295.49 version)

The error start with:
Code:
NVIDIA: calling KBUILD...
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (
echo;
echo "  ERROR: Kernel configuration is invalid.";
echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo;
/bin/false)
...
And it has a lot of messages like:
Code:
In file included from include/linux/kernel.h:17:0,
                 from include/linux/sched.h:54,
                 from include/linux/utsname.h:35,
                 from /tmp/SBo/NVIDIA-Linux-x86_64-295.40/kernel/nv-linux.h:38,
                 from /tmp/SBo/NVIDIA-Linux-x86_64-295.40/kernel/nv.c:13:
include/linux/bitops.h: In function 'hweight_long':
include/linux/bitops.h:49:41: warning: signed and unsigned type in conditional expression
It also give errors messages with nvidia 295.49.
 
Old 05-04-2012, 06:22 PM   #2
DecioSP
LQ Newbie
 
Registered: Dec 2009
Posts: 20

Original Poster
Rep: Reputation: 0
My system info

lspci
Code:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation 2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB Controller: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.3 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 4 (rev b4)
00:1c.4 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 5 (rev b4)
00:1d.0 USB Controller: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series Chipset Family 6 port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series Chipset Family SMBus Controller (rev 04)
01:00.0 3D controller: nVidia Corporation Device 0dec (rev a1)
02:00.0 Network controller: Intel Corporation Centrino Advanced-N + WiMAX 6250 (rev 5f)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
04:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
Selected info from dmesg (relevant part in my opinion):
Code:
[   10.643273] drm: registered panic notifier
[   10.643581] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[   10.650783] acpi device:47: registered as cooling_device10
[   10.651255] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/device:45/LNXVIDEO:00/input/input11
[   10.651385] ACPI: Video Device [PEGP] (multi-head: yes  rom: yes  post: no)
[   10.653612] acpi device:51: registered as cooling_device11
[   10.654134] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:01/input/input12
[   10.654285] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[   10.654581] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[   10.659183] [drm] nouveau 0000:01:00.0: Detected an NVc0 generation card (0x0c1600a1)
[   10.669887] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PRAMIN
[   10.679663] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
[   10.679695] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PROM
[   10.679736] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
[   10.679766] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PCIROM
[   10.689687] nouveau 0000:01:00.0: Invalid ROM contents
[   10.689806] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
[   10.689836] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from ACPI
[   10.689870] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
[   10.689901] [drm] nouveau 0000:01:00.0: No valid BIOS image found
[   10.696659] nouveau 0000:01:00.0: PCI INT A disabled
...
[   10.905203] nvidia: module license 'NVIDIA' taints kernel.
[   10.906318] Disabling lock debugging due to kernel taint
[   10.966993] nvidia 0000:01:00.0: power state changed by ACPI to D0
[   10.968143] nvidia 0000:01:00.0: power state changed by ACPI to D0
[   10.969254] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   10.970362] nvidia 0000:01:00.0: setting latency timer to 64
[   10.970513] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  295.40  Thu Apr  5 21:37:00 PDT 2012
...
[  162.939376] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[  162.939398] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[  162.939674] bbswitch: detected an Optimus _DSM function
[  162.939690] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[  162.965707] nvidia 0000:01:00.0: PCI INT A disabled
[  162.967943] bbswitch: disabling discrete graphics
[  162.968632] bbswitch: Result of Optimus _DSM call: 11000059
[  162.979671] pci 0000:01:00.0: Refused to change power state, currently in D0
[  162.994685] pci 0000:01:00.0: power state changed by ACPI to D3
[  175.311068] bbswitch: enabling discrete graphics
[  175.843701] pci 0000:01:00.0: power state changed by ACPI to D0
[  175.843708] pci 0000:01:00.0: power state changed by ACPI to D0
[  175.843726] pci 0000:01:00.0: restoring config space at offset 0xc (was 0x0, writing 0xf5000000)
[  175.843731] pci 0000:01:00.0: restoring config space at offset 0x9 (was 0x144d0b01, writing 0xd001)
[  175.843734] pci 0000:01:00.0: restoring config space at offset 0x7 (was 0x4c00000c, writing 0xe000000c)
[  175.843744] pci 0000:01:00.0: restoring config space at offset 0x5 (was 0xc, writing 0xd000000c)
[  175.843749] pci 0000:01:00.0: restoring config space at offset 0x4 (was 0x1000000, writing 0xf4000000)
[  175.843753] pci 0000:01:00.0: restoring config space at offset 0x3 (was 0x0, writing 0x10)
[  175.843773] pci 0000:01:00.0: power state changed by ACPI to D0
[  175.843779] pci 0000:01:00.0: power state changed by ACPI to D0
[  175.843795] pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[  175.843801] pci 0000:01:00.0: setting latency timer to 64
Attached Files
File Type: txt dmesg.txt (30.6 KB, 1 views)
 
Old 05-04-2012, 09:29 PM   #3
animeresistance
Member
 
Registered: Feb 2004
Distribution: Slackware
Posts: 192

Rep: Reputation: 20
I'm not sure, but it seems that the problem you have is that you haven't blacklisted noveau. And maybe the kernel you compiled is buggy.
 
Old 05-04-2012, 11:17 PM   #4
DecioSP
LQ Newbie
 
Registered: Dec 2009
Posts: 20

Original Poster
Rep: Reputation: 0
You were right about the blacklist. For some reason that I don't know, my previous remove of the noveau package and the install of the noveau blacklist didn't removed all the files/directories it was supposed to do.
I had to make all the procedure again (remove blacklist, reinstall noveau, remove noveau and reinstall blacklist)
Now I am able to load the proprietary driver and switch between then using optirun.
Just out of curiosity, since I still think it is slower than the normal, what are a good fps in glxspheres.
Right now spheres is returning:
Using: Mesa DRI Intel Sandybridge Mobile with 62464 polygons in scene and full screen 1366x768
At about 14fps (14 mpixels/sec)

Using: GeForce GT 525M/PCIe/SSE2 with 62464 polygons in scene and also in 1366x768
At about 53fps (53 mpixels/sec)

Also, although I need to perform some tests it appears to me that it is making a hard use on the battery.
 
Old 05-05-2012, 08:53 PM   #5
animeresistance
Member
 
Registered: Feb 2004
Distribution: Slackware
Posts: 192

Rep: Reputation: 20
Is good to know that blacklisting helped you.

Using nvidia card, it uses a lot of battery.

About if it is slower or not, i don't know, because can't load glxspheres (but i can load glxgears), and i'm not sure if glx is not a good parameter to measure the 3D performance of a graphics card.

If your issue is solved, i suggest that you mark this thread as solved.

Have a good day.
 
  


Reply


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
[SOLVED] Bumblebee 3 on Slackware 1337 Error ensa Slackware 10 02-12-2012 08:28 AM
Unable to make Opera work fuelinux Zenwalk 8 05-17-2008 12:27 PM
How to make HAL *work* on Slackware 12-rc ?? Yalla-One Slackware 29 06-25-2007 04:43 PM
how to make kylix 3 work on slackware 9.1 EArthquake Linux - Software 0 07-28-2004 01:19 PM


All times are GMT -5. The time now is 02:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration