LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-01-2012, 12:16 AM   #1
TheThinker82
LQ Newbie
 
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
Pls Help (Crashing system) - Debian 6.04 + Geforce GT 540M (bumblebee & nvidia driver


Hi to everyone. Pls I need your help
I have a Samsung RC730-S02 with a Geforce GT 540M (Optimus). My kernel is 3.2.0-0.bpo.2-amd64
I followed this tutorial http://wiki.debian.org/Bumblebee but the geforce is not working.
When I run applications like Supertux everything is crashing. So my sistem is useless atm
If I run
root@debian:/home/thethinker# optirun /opt/VirtualGL/bin/glxspheres64
[ERROR]Cannot access secondary GPU - error: XORG Failed to load module "mouse" (module does not exist, 0)

[ERROR]Aborting because fallback start is disabled.
root@debian:/home/thethinker#

I'm not a linux expert so could you please let me know what informations do you need and how to fix the problem?

Sincerely yours

The Thinker

This is my /var/log/Xorg.8.log

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.0.0-1-amd64 x86_64 Debian
Current Operating System: Linux debian 3.2.0-0.bpo.2-amd64 #1 SMP Mon Apr 23 08:38:01 UTC 2012 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-0.bpo.2-amd64 root=UUID=93f462ad-f412-40d6-b408-5a3dc3b286c7 ro quiet
Build Date: 29 October 2011 06:58:14PM
xorg-server 2:1.7.7-14 (Julien Cristau jcristau@debian.org)
Current version of pixman: 0.16.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.8.log", Time: Tue May 1 06:04:06 2012
(++) Using config file: "/usr/local/etc/bumblebee/xorg.conf.nouveau"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(==) ServerLayout "Layout0"
() |-->Screen "Screen0" (0)
() | |-->Monitor ""
() | |-->Device "Device0"
(==) No monitor specified for screen "Screen0".
Using a default monitor configuration.
() Option "AutoAddDevices" "false"
() Not automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
Entry deleted from font path.
(==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
built-ins
(++) ModulePath set to "/usr/lib/nvidia,/usr/lib/xorg/modules"
(==) |-->Input Device ""
(==) |-->Input Device ""
(==) The core pointer device wasn't specified explicitly in the layout.
Using the default mouse configuration.
(==) The core keyboard device wasn't specified explicitly in the layout.
Using the default keyboard configuration.
(II) Loader magic: 0x7c8a40
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 6.0
X.Org XInput driver : 7.0
X.Org Server Extension : 2.0
(--) using VT number 7

(--) PCI:*(0:1:0:0) 10de:0df4:144d:c0c1 nVidia Corporation rev 161, Mem @ 0xf5000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000d000/128, BIOS @ 0x????????/524288
(II) Open ACPI successful (/var/run/acpid.socket)
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension SELinux
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"
(II) Loading /usr/lib/nvidia/nvidia/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.0
Module class: X.Org Server Extension
(II) NVIDIA GLX Module 275.36 Sun Oct 16 22:11:16 PDT 2011
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 1.13.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 1.0.0
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 1.1.0
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "nouveau"
(II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
(II) Module nouveau: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 0.0.15
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "mouse"
(WW) Warning, couldn't open module mouse
(II) UnloadModule: "mouse"
(EE) Failed to load module "mouse" (module does not exist, 0)
(II) LoadModule: "kbd"
(WW) Warning, couldn't open module kbd
(II) UnloadModule: "kbd"
(EE) Failed to load module "kbd" (module does not exist, 0)
(II) NOUVEAU driver Date: Tue Mar 16 13:08:37 2010 +1000
(II) NOUVEAU driver for NVIDIA chipset families :
RIVA TNT (NV04)
RIVA TNT2 (NV05)
GeForce 256 (NV10)
GeForce 2 (NV11, NV15)
GeForce 4MX (NV17, NV18)
GeForce 3 (NV20)
GeForce 4Ti (NV25, NV28)
GeForce FX (NV3x)
GeForce 6 (NV4x)
GeForce 7 (G7x)
GeForce 8 (G8x)
(II) Primary Device is: PCI 01@00:00:0
(EE) No devices detected.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.8.log" for additional information.
 
Old 05-01-2012, 10:32 AM   #2
TheThinker82
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I'm doing again the whole process, so I can show you every step I take:

----I use debian 6.0.4. I checked in /etc/Debian_version
----I use gnome 2..30.2
----KERNEL:
root@debian:/home/thethinker# uname -r
3.2.0-0.bpo.2-amd64

---- In Software Sources/Third-Party Software I have
http://http.us.debian.org/debian/ squeeze contrib main
http://http.us.debian.org/debian/ squeeze main contrib non-free
ttp://backports.debian.org/debian-backports squeeze-backports-main
http://backports.debian.org/debian-backports squeeze-backports main non-free contrib

Step 1: I downloaded: https://github.com/downloads/Bumbleb...bee-3.0.tar.gz

root@debian:/home/thethinker# apt-get install build-essential pkg-config help2man libx11-dev libbsd-dev libglib2.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
libglib2.0-dev is already the newest version.
help2man is already the newest version.
libbsd-dev is already the newest version.
libx11-dev is already the newest version.
pkg-config is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@debian:/home/thethinker#

Then I extract bumblebee and...

root@debian:/home/thethinker/Desktop/bumblebee-3.0# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for help2man... /usr/bin/help2man
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for x11... yes
checking for glib... yes
checking for libbsd... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
root@debian:/home/thethinker/Desktop/bumblebee-3.0#

Then...
root@debian:/home/thethinker/Desktop/bumblebee-3.0# ./configure CONF_LDPATH_NVIDIA=/usr/lib/nvidia:/usr/lib32/nvidia \
> CONF_MODPATH_NVIDIA=/usr/lib/nvidia,/usr/lib/xorg/modules
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for help2man... /usr/bin/help2man
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for x11... yes
checking for glib... yes
checking for libbsd... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
root@debian:/home/thethinker/Desktop/bumblebee-3.0#

Then....

root@debian:/home/thethinker/Desktop/bumblebee-3.0# ./configure --prefix=/usr --sysconfdir=/etc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for help2man... /usr/bin/help2man
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for x11... yes
checking for glib... yes
checking for libbsd... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
root@debian:/home/thethinker/Desktop/bumblebee-3.0#

root@debian:/home/thethinker/Desktop/bumblebee-3.0# make
make: Nothing to be done for `all'.

root@debian:/home/thethinker/Desktop/bumblebee-3.0# make install
make[1]: Entering directory `/home/thethinker/Desktop/bumblebee-3.0'
test -z "/usr/bin" || /bin/mkdir -p "/usr/bin"
/usr/bin/install -c bin/optirun '/usr/bin'
test -z "/usr/bin" || /bin/mkdir -p "/usr/bin"
/usr/bin/install -c scripts/bumblebee-bugreport '/usr/bin'
test -z "/usr/sbin" || /bin/mkdir -p "/usr/sbin"
/usr/bin/install -c bin/bumblebeed '/usr/sbin'
test -z "/etc/bumblebee" || /bin/mkdir -p "/etc/bumblebee"
/usr/bin/install -c -m 644 conf/bumblebee.conf conf/xorg.conf.nouveau conf/xorg.conf.nvidia '/etc/bumblebee'
test -z "/etc/bash_completion.d" || /bin/mkdir -p "/etc/bash_completion.d"
/usr/bin/install -c -m 644 scripts/bash_completion/bumblebee '/etc/bash_completion.d'
test -z "/usr/share/doc/bumblebee" || /bin/mkdir -p "/usr/share/doc/bumblebee"
/usr/bin/install -c -m 644 doc/RELEASE_NOTES_3_0 README.markdown '/usr/share/doc/bumblebee'
test -z "/usr/share/man/man1" || /bin/mkdir -p "/usr/share/man/man1"
/usr/bin/install -c -m 644 bumblebeed.1 optirun.1 '/usr/share/man/man1'
make[1]: Leaving directory `/home/thethinker/Desktop/bumblebee-3.0'
root@debian:/home/thethinker/Desktop/bumblebee-3.0#

root@debian:/home/thethinker/Desktop/bumblebee-3.0# sudo install -m755 scripts/sysvinit/bumblebeed /etc/init.d/

root@debian:/home/thethinker/Desktop/bumblebee-3.0# sudo update-rc.d bumblebeed defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'tvncserver' missing LSB tags and overrides
root@debian:/home/thethinker/Desktop/bumblebee-3.0#

root@debian:/home/thethinker/Desktop/bumblebee-3.0# sudo invoke-rc.d bumblebeed start

root@debian:/home/thethinker/Desktop/bumblebee-3.0# sudo groupadd bumblebee
groupadd: group 'bumblebee' already exists

root@debian:/home/thethinker/Desktop/bumblebee-3.0# sudo usermod -a -G bumblebee thethinker

Step 2:

With Gdebi i installed turbovnc_1.0.2_amd64.deb and everything was fine

Step 3:

I downloaded: bbswitch-0.4.2.tar.gz

Then I extracted it and:
root@debian:/home/thethinker/Desktop/bbswitch-0.4.2# make
make -C /lib/modules/3.2.0-0.bpo.2-amd64/build M="$(pwd)" modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-0.bpo.2-amd64'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-0.bpo.2-amd64'
root@debian:/home/thethinker/Desktop/bbswitch-0.4.2#

root@debian:/home/thethinker/Desktop/bbswitch-0.4.2# make load
/sbin/rmmod bbswitch
/sbin/insmod bbswitch.ko
root@debian:/home/thethinker/Desktop/bbswitch-0.4.2#

root@debian:/home/thethinker/Desktop/bbswitch-0.4.2# dkms remove bbswitch/OLDVERSION --all
Error! There are no instances of module: bbswitch
OLDVERSION located in the DKMS tree.
root@debian:/home/thethinker/Desktop/bbswitch-0.4.2#

root@debian:/home/thethinker/Desktop/bbswitch-0.4.2# make -f Makefile.dkms
mkdir -p '/usr/src/bbswitch-0.4.2'
cp Makefile bbswitch.c '/usr/src/bbswitch-0.4.2'
sed 's/#MODULE_VERSION#/0.4.2/' dkms/dkms.conf > '/usr/src/bbswitch-0.4.2/dkms.conf'
dkms build 'bbswitch/0.4.2'
Module bbswitch/0.4.2 already built for kernel 3.2.0-0.bpo.2-amd64/4
dkms install 'bbswitch/0.4.2'
Module bbswitch/0.4.2 already installed on kernel 3.2.0-0.bpo.2-amd64/x86_64
root@debian:/home/thethinker/Desktop/bbswitch-0.4.2#

root@debian:/home/thethinker/Desktop/bbswitch-0.4.2# cat /proc/acpi/bbswitch
0000:01:00.0 ON

Step 3:
root@debian:/# sudo apt-get install -t squeeze-backports nvidia-glx linux-headers-$(uname -r) nvidia-kernel-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-3.2.0-0.bpo.2-amd64 is already the newest version.
nvidia-glx is already the newest version.
nvidia-kernel-dkms is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.
root@debian:/#

root@debian:/# sudo update-alternatives --set glx /usr/lib/mesa-diverted
root@debian:/#

Then I did this step again.....

root@debian:/# cd '/home/thethinker/Desktop/bumblebee-3.0'
root@debian:/home/thethinker/Desktop/bumblebee-3.0# ./configure CONF_LDPATH_NVIDIA=/usr/lib/nvidia:/usr/lib32/nvidia \
> CONF_MODPATH_NVIDIA=/usr/lib/nvidia,/usr/lib/xorg/modules
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for help2man... /usr/bin/help2man
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for x11... yes
checking for glib... yes
checking for libbsd... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
root@debian:/home/thethinker/Desktop/bumblebee-3.0#

---------- Post added 05-01-12 at 10:33 AM ----------

My kernel logs: (they were to big to paste them on pastebin sorry)

http://www.sendspace.com/filegroup/u...AxepjvlczTkcTg



PLS HELP! ;/
 
Old 05-01-2012, 10:33 AM   #3
TheThinker82
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia

## Client options. Will take effect on the next optirun executed.
[optirun]
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
# bbswitch - new in BB 3, recommended if available
# switcheroo - vga_switcheroo method
# none - disable PM completely
# https://github.com/Bumblebee-Project...-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=
Module=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia,/usr/lib/xorg/modules
XorgConfFile=/usr/local/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/usr/local/etc/bumblebee/xorg.conf.nouveau
 
  


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] ASUS-K53SV-SX582 and NVIDIA GeForce GT 540M hardware support qwertz333 Linux - Hardware 11 03-11-2012 11:33 AM
nvidia driver for geforce 540m divyashree Linux - Laptop and Netbook 2 11-07-2011 10:36 AM
problem with installed nvidia driver geforce 6600 (debian) speed5 Linux - Hardware 0 10-22-2011 11:40 AM
NVIDIA GeForce GT 540M graphics & NVIDIA Optimus Technology rabizadeh_ehsan Linux - Hardware 5 10-21-2011 07:39 AM
NVIDIA GeForce 5200 display problem & Debian FHC Linux - Hardware 2 08-17-2007 09:15 PM


All times are GMT -5. The time now is 08:10 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