still problem with GPU driver

hello:

I found that there are still problems with my new macBook driver under SUSE.

I installed SLED 11 SP2 for my macBook Pro 10.8.2, and I recompiled the kernel to 3.6.2 which finnally lead to my touchpad, mouse, internal and external keyboard works well. However, I still have problems with the GPU driver. The new macBook Pro. have two GPU:

intel HD4000 and Nvidia GT 650M.

The kernel default driver is only good enough for normal display. If I try to run some software involved in openGL, it will claimed:

[CODE]The system doesn’t support openGL

or

Xlib: extension “GLX” mission on disply “:0.0”
freeglut (/home/my/software/run): openGL GLX extension not supported by display ‘:0.0’[/CODE]

The nvidia driver is installed automatically by SUSE when I update the system, and here is the xorg.conf in /etc/X11

[CODE]# /…/

SaX generated X11 config file

Created on: 2012-10-22T19:42:30+0200.

Version: 8.1

Contact: Marcus Schaefer sax@suse.de, 2005

Contact: SaX-User list https://lists.berlios.de/mailman/listinfo/sax-users

Automatically generated by [ISaX] (8.1)

PLEASE DO NOT EDIT THIS FILE!

Section “Files”
FontPath “/usr/share/fonts/misc:unscaled”
FontPath “/usr/share/fonts/local”
FontPath “/usr/share/fonts/75dpi:unscaled”
FontPath “/usr/share/fonts/100dpi:unscaled”
FontPath “/usr/share/fonts/Type1”
FontPath “/usr/share/fonts/URW”
FontPath “/usr/share/fonts/Speedo”
FontPath “/usr/share/fonts/PEX”
FontPath “/usr/share/fonts/cyrillic”
FontPath “/usr/share/fonts/latin2/misc:unscaled”
FontPath “/usr/share/fonts/latin2/75dpi:unscaled”
FontPath “/usr/share/fonts/latin2/100dpi:unscaled”
FontPath “/usr/share/fonts/latin2/Type1”
FontPath “/usr/share/fonts/latin7/75dpi:unscaled”
FontPath “/usr/share/fonts/baekmuk:unscaled”
FontPath “/usr/share/fonts/japanese:unscaled”
FontPath “/usr/share/fonts/kwintv”
FontPath “/usr/share/fonts/truetype”
FontPath “/usr/share/fonts/uni:unscaled”
FontPath “/usr/share/fonts/CID”
FontPath “/usr/share/fonts/ucs/misc:unscaled”
FontPath “/usr/share/fonts/ucs/75dpi:unscaled”
FontPath “/usr/share/fonts/ucs/100dpi:unscaled”
FontPath “/usr/share/fonts/hellas/misc:unscaled”
FontPath “/usr/share/fonts/hellas/75dpi:unscaled”
FontPath “/usr/share/fonts/hellas/100dpi:unscaled”
FontPath “/usr/share/fonts/hellas/Type1”
FontPath “/usr/share/fonts/misc/sgi:unscaled”
FontPath “/usr/share/fonts/xtest”
FontPath “/opt/kde3/share/fonts”
InputDevices “/dev/gpmdata”
InputDevices “/dev/input/mice”
EndSection

Section “ServerFlags”

Uncomment the following option to reenable kbd/mouse driver input sections.

Otherwise evdev driver is used.

#Option “AutoAddDevices” “off”
Option “AllowMouseOpenFail” “on”
Option “ZapWarning” “on”
EndSection

Section “Module”
Load “dri”
Load “dbe”
Load “freetype”
Load “extmod”
Load “glx”
EndSection

Section “InputDevice”
Driver “kbd”
Identifier “Keyboard[0]”
Option “Protocol” “Standard”
Option “XkbLayout” “us”
Option “XkbModel” “macintosh”
Option “XkbRules” “xfree86”
EndSection

Section “InputDevice”
Driver “mouse”
Identifier “Mouse[1]”
Option “AutoSoft” “on”
Option “Device” “/dev/input/mice”
Option “Emulate3Buttons” “on”
Option “Name” “”
Option “Protocol” “Auto”
Option “Vendor” “Sysp”
EndSection

Section “InputDevice”
Driver “mouse”
Identifier “Mouse[3]”
Option “Buttons” “5”
Option “Device” “/dev/input/mice”
Option “Name” “ImPS/2 Generic Wheel Mouse”
Option “Protocol” “explorerps/2”
Option “Vendor” “Sysp”
Option “ZAxisMapping” “4 5”
EndSection

Section “Monitor”
DisplaySize 331 207
HorizSync 30-70
Identifier “Monitor[0]”
ModelName “APPLE LCD MONITOR”
Option “DPMS”
Option “PreferredMode” “1440x900”
VendorName “APP”
VertRefresh 43-60
UseModes “Modes[0]”
EndSection

Section “Modes”
Identifier “Modes[0]”
Modeline “1440x900” 106.47 1440 1520 1672 1904 900 901 904 932
Modeline “1440x900” 87.25 1440 1488 1520 1600 900 903 909 926 +HSync -Vsync
EndSection

Section “Screen”
DefaultDepth 16
SubSection “Display”
Depth 15
Modes “1440x900”
EndSubSection
SubSection “Display”
Depth 16
Modes “1440x900”
EndSubSection
SubSection “Display”
Depth 24
Modes “1440x900”
EndSubSection
SubSection “Display”
Depth 8
Modes “1440x900”
EndSubSection
Device “Device[0]”
Identifier “Screen[0]”
Monitor “Monitor[0]”
EndSection

Section “Device”
BoardName “Vesa-BIOS Graphics”
Driver “vesa”
Identifier “Device[0]”
VendorName “VESA”
EndSection

Section “ServerLayout”
Identifier “Layout[all]”
InputDevice “Keyboard[0]” “CoreKeyboard”
InputDevice “Mouse[1]” “CorePointer”
Option “Clone” “off”
Option “Xinerama” “off”
Screen “Screen[0]”
EndSection

Section “DRI”
Group “video”
Mode 0660
EndSection

Section “Extensions”
EndSection
[/CODE]

Hi
Bumblebee is what you need;
http://bumblebee-project.org/

http://software.opensuse.org/package/bumblebee


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 1 day 13:46, 3 users, load average: 0.37, 0.27, 0.24
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

thank you for kind messages.
I installed bumblebee by YAST. and I try to run

optirun firefox

it said:

[ 630.38] X is stopped. [ 630.38] Power management is disabled, not unloading driver [ 630.38] Power management is disabled, card already enabled. [ 630.39] Bumblebee log ended on Tue, 23 Oct 2012 19:32:45 +0200 [ 20.62] Bumblebee log started at Tue, 23 Oct 2012 19:33:30 +0200 [ 20.62] Creating fifo /var/run/bumblebee.fifo for communication... [ 20.65] Making FIFO writable for members of group bumblebee [ 20.69] Power management is disabled, not disabling card on start. [ 20.70] Waiting for orders [ 64.11] Optirun start request received. [ 64.12] Checking for X server availability before starting X... [ 64.12] X server is not started [ 64.13] Power management is disabled, only loading driver [ 64.59] insmod /lib/modules/3.6.3-0.7-default/kernel/drivers/video/nvidia.ko NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFi leMode=0660 [ 64.59] Starting X using nvidia... [ 64.60] Waiting for X server to become available... [ 74.63] The Bumblebee X server failed to start. Please check /var/log/Xorg.8.log [ 74.64] Waiting for orders [ 502.53] Optirun start request received. [ 502.53] Checking for X server availability before starting X... [ 502.54] X server is not started [ 502.54] Power management is disabled, only loading driver [ 502.65] [ 502.66] Starting X using nvidia... --More--(77%)

here is /var/log/xorg8.log

X.Org X Server 1.6.5
Release Date: 2009-10-11
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux dream 3.6.3-0.7-default #1 SMP Mon Oct 22 21:45:12 CEST 2012 x86_64
Build Date: 29 June 2012  07:53:13PM
 
	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 Oct 23 19:50:37 2012
(++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
(==) ServerLayout "Layout0"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "<default 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/TTF/" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/OTF" does not exist.
	Entry deleted from font path.
(==) FontPath set to:
	/usr/share/fonts/misc:unscaled,
	/usr/share/fonts/truetype/,
	/usr/share/fonts/Type1/,
	/usr/share/fonts/100dpi:unscaled,
	/usr/share/fonts/75dpi:unscaled
(**) ModulePath set to "/usr/lib64/xorg/modules/updates,/usr/lib64/xorg/modules/drivers,/usr/lib64/xorg/modules,/usr/lib64,/usr/lib"
(==) |-->Input Device "<default pointer>"
(==) |-->Input Device "<default keyboard>"
(==) 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: 0xd40
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.4
	X.Org Video Driver: 5.0
	X.Org XInput driver : 4.0
	X.Org Server Extension : 2.0
(II) Loader running on linux
(--) using VT number 7

(--) PCI:*(0:1:0:0) 10de:0fd5:106b:00fc nVidia Corporation rev 161, Mem @ 0xc0000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O
 @ 0x00002000/128, BIOS @ 0x????????/524288
(II) Open ACPI successful (/var/run/acpid.socket)
(II) System resource ranges:
	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[4] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[5] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
(II) LoadModule: "extmod"
(II) Loading /usr/lib64/xorg/modules//extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(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/lib64/xorg/modules//extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.0.0
	Module class: X.Org Server Extension
	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/lib64/xorg/modules//extensions/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  304.60  Sun Oct 14 20:44:54 PDT 2012
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/lib64/xorg/modules//extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
	compiled for 1.6.5, 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/lib64/xorg/modules//extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
	compiled for 1.6.5, 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/lib64/xorg/modules//extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.1.0
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "nvidia"
(II) Loading /usr/lib64/xorg/modules/drivers//nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
	compiled for 4.0.2, module version = 1.0.0
	Module class: X.Org Video Driver
(II) LoadModule: "mouse"
(II) Loading /usr/lib64/xorg/modules//input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.4.0
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 4.0
(II) LoadModule: "kbd"
(II) Loading /usr/lib64/xorg/modules//input/kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.3.2
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 4.0
(II) NVIDIA dlloader X Driver  304.60  Sun Oct 14 20:24:42 PDT 2012
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01@00:00:0
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib64/xorg/modules//libfb.so
(II) Module fb: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.0.0
	ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"
(II) Loading /usr/lib64/xorg/modules//libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.0.0
	ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(II) resource ranges after probing:
	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[4] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[5] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
(II) NVIDIA(0): Creating default Display subsection in Screen section
	"Screen0" for depth/fbbpp 24/32
(==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NoLogo" "true"
(**) NVIDIA(0): Option "UseEDID" "false"
--More--(86(II) Loading /usr/lib64/xorg/modules/drivers//nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
	compiled for 4.0.2, module version = 1.0.0
	Module class: X.Org Video Driver
(II) LoadModule: "mouse"
(II) Loading /usr/lib64/xorg/modules//input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.4.0
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 4.0
(II) LoadModule: "kbd"
(II) Loading /usr/lib64/xorg/modules//input/kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.3.2
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 4.0
(II) NVIDIA dlloader X Driver  304.60  Sun Oct 14 20:24:42 PDT 2012
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01@00:00:0
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib64/xorg/modules//libfb.so
(II) Module fb: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.0.0
	ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"
(II) Loading /usr/lib64/xorg/modules//libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.0.0
	ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(II) resource ranges after probing:
	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[4] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[5] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
(II) NVIDIA(0): Creating default Display subsection in Screen section
	"Screen0" for depth/fbbpp 24/32
(==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NoLogo" "true"
(**) NVIDIA(0): Option "UseEDID" "false"
(**) NVIDIA(0): Option "ConnectedMonitor" "DFP"
(**) Oct 23 19:50:37 NVIDIA(0): Enabling 2D acceleration
(**) Oct 23 19:50:37 NVIDIA(0): ConnectedMonitor string: "DFP"
(**) Oct 23 19:50:37 NVIDIA(0): Ignoring EDIDs
(EE) Oct 23 19:50:37 NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please
(EE) Oct 23 19:50:37 NVIDIA(0):     check your system's kernel log for additional error
(EE) Oct 23 19:50:37 NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
(EE) Oct 23 19:50:37 NVIDIA(0):     README for additional information.
(EE) Oct 23 19:50:37 NVIDIA(0): Failed to initialize the NVIDIA graphics device!
(EE) Oct 23 19:50:37 NVIDIA(0): Failing initialization of X screen 0
(II) UnloadModule: "nvidia"
(II) UnloadModule: "wfb"
(II) UnloadModule: "fb"
(EE) Screen(s) found, but none have a usable configuration.

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.
%)

here is /etc/bumblebee/bumblebee.conf

### 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=/etc/bumblebee/xorg.conf.nvidia

# 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

here is xorg.conf.nvidia

Section "ServerLayout"
    Identifier "Layout0"
    Screen "Screen0"
    Option "AutoAddDevices" "false"
EndSection

Section "Files"
    ModulePath "/usr/lib64/xorg/modules/updates,/usr/lib64/xorg/modules/drivers,/usr/lib64/xorg/modules,/usr/lib64,/usr/lib"
EndSection

Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "PCI:01:00:0"
    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "ConnectedMonitor" "DFP"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
EndSection

On Tue, 23 Oct 2012 18:04:03 +0000, albumns wrote:

Hi
I have no experience with either MAC hardware and a dual gpu, might I
suggest visiting the bumblebee forum and see if they can provide some
clues?

Is there a BIOS setting that can define only one GPU to use?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 1 day 17:11, 3 users, load average: 0.01, 0.09, 0.11
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Such things are liable to happen when you attempt to run SLED on hardware it does not support by way of compiling your own custom kernel.