Bumblebee-Project / bbswitch

Disable discrete graphics (currently nvidia only)
GNU General Public License v2.0
487 stars 78 forks source link

bbswitch does not work on Nvidia GT750M #92

Closed goldhoorn closed 8 years ago

goldhoorn commented 10 years ago

I'm Running a Ubuntu 12.04 On a Dell Inspirion 15 7537

The result from modprobe/dmesg:

[ 559.534624] bbswitch: version 0.8 [ 559.534632] bbswitch: Found integrated VGA device 0000:00:02.0: SB.PCI0.GFX0 [ 559.534639] bbswitch: Found discrete VGA device 0000:04:00.0: SB.PCI0.RP05.PXSX [ 559.534651] bbswitch: failed to evaluate SB.PCI0.RP05.PXSX._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND [ 559.534657] bbswitch: failed to evaluate SB.PCI0.RP05.PXSX._DSM {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND [ 559.534706] bbswitch: No suitable _DSM call found.

lspci -v:

04:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M](rev a1) Subsystem: Dell Device 05fa Flags: bus master, fast devsel, latency 0, IRQ 16 Memory at e2000000 (32-bit, non-prefetchable) [size=16M] Memory at d0000000 (64-bit, prefetchable) [size=256M] Memory at e0000000 (64-bit, prefetchable) [size=32M] I/O ports at 3000 [size=128] Expansion ROM at [disabled] Capabilities: [60] Power Management version 3 Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+ Capabilities: [78] Express Endpoint, MSI 00 Capabilities: [b4] Vendor Specific Information: Len=14 <?> Capabilities: [100] Virtual Channel Capabilities: [128] Power Budgeting <?> Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?> Capabilities: [900] #19 Kernel driver in use: nvidia Kernel modules: nvidia_304, nouveau, nvidiafb

... 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller]) Subsystem: Dell Device 05fa Flags: bus master, fast devsel, latency 0, IRQ 61 Memory at e3000000 (64-bit, non-prefetchable) [size=4M] Memory at c0000000 (64-bit, prefetchable) [size=256M] I/O ports at 4000 [size=64] Expansion ROM at [disabled] Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [d0] Power Management version 2 Capabilities: [a4] PCI Advanced Features Kernel driver in use: i915 Kernel modules: i915

I'm a Computer scientist, so ping me if you need additional help...

amonakov commented 10 years ago

It usually indicates that the kernel did not match ACPI device handle correctly. Try a newer kernel (3.12+ preferably).

goldhoorn commented 10 years ago

This was a fast reply. I updated to 3.13.5-031305-generic and this solved the first issue

Unforunatly i had do install the nvidia driver manually by downloading from nvidia.com. I successfully loaded the kernel module and adapted /etc/bumblebee/bumblebee.conf by inserting driver=nvidia and kerneldriver=nvidia. After a reboot i now get:

$ optirun --debug --verbose glxinfo [ 528.944408] [INFO]Configured driver: nvidia [ 528.944525] [DEBUG]optirun version 3.2.1 starting... [ 528.944534] [DEBUG]Active configuration: [ 528.944538] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf [ 528.944541] [DEBUG] X display: :8 [ 528.944545] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-current:/usr/lib32/nvidia-current [ 528.944548] [DEBUG] Socket path: /var/run/bumblebee.socket [ 528.944552] [DEBUG] Accel/display bridge: auto [ 528.944555] [DEBUG] VGL Compression: proxy [ 528.944558] [DEBUG] VGLrun extra options: [ 528.944562] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus [ 528.944590] [DEBUG]Using auto-detected bridge virtualgl [ 529.336057] [INFO]Response: No - error: Could not load GPU driver

[ 529.336069] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[ 529.336072] [DEBUG]Socket closed. [ 529.336087] [ERROR]Aborting because fallback start is disabled. [ 529.336092] [DEBUG]Killing all remaining processes.

Am i right if i assume that my card is not corretly recognized from the nvidia driver itself?. How can i debug this more in detail?

(again thanks for your fast reply)

ArchangeGabriel commented 10 years ago

Are you aware of the patches needed to run nvidia on 3.12+, 3.13+?

ArchangeGabriel commented 8 years ago

Closing, old and probable dupe of https://github.com/Bumblebee-Project/bbswitch/issues/80.