← Back to team overview

hybrid-graphics-linux team mailing list archive

Switching for 2010 MBP 6,2

 

Hi everyone,

the last few days I've been playing around with the graphics switching on a MBP 6,2 but now I'm kinda stuck.

What works: 
booting via EFI, 
loading both nouveau and i915 with modeset=1 (this required the patch from this bug: https://bugs.freedesktop.org/show_bug.cgi?id=29171)
using nouveau (framebuffer and Xorg)
loading vga_switcheroo (required extracting the DSDT and changing nouveau_dsm_muid in nouveau_acpi.c accordingly)

Switching only works partially, DIS and IGD seem to be interchanged and i915 doesn't see any connected displays. It's possible to switch nouveau off and start xorg on the intel card but the screen just freezes and keeps displaying the last nouveau frame. For more information see the attached log files.

Switching back works and nouveau can be used again. 
Also notable is that there's an ACPI method "\_SB.PCI0.P0P2.GFX0.PWRD" which also freezes the screen when called while nouveau is loaded. It takes one argument (probably if it should power down or power up again) and switching to intel, powering down, powering up again and switching back to nouveau works. 
When powered down the rev version in lspci changes to ff. (01:00.0 VGA compatible controller: nVidia Corporation GT216 [GeForce GT 330M] (rev ff)) instead of (01:00.0 VGA compatible controller: nVidia Corporation GT216 [GeForce GT 330M] (rev a2))
Power usage stayed the same with the card "powered down".

There's also a "GMUX" Device in the DSDT which from my understanding of the graphics switching in osx is also somehow connected to the whole procedure, but calling the acpi methods resulted in nothing visible.

Overall I guess the main problem at the moment is getting the intel card connected to a display and I have no idea how to proceed on this issue. 

Also the intel card is missing it's vbios:
Aug 24 14:13:43 macbuchpro kernel: [  105.889270] i915 0000:00:02.0: setting latency timer to 64
Aug 24 14:13:44 macbuchpro kernel: [  106.023015] i915 0000:00:02.0: irq 49 for MSI/MSI-X
Aug 24 14:13:44 macbuchpro kernel: [  106.023032] [drm] set up 31M of stolen space
Aug 24 14:13:44 macbuchpro kernel: [  106.023307] i915 0000:00:02.0: Invalid ROM contents
Aug 24 14:13:44 macbuchpro kernel: [  106.023546] [drm:intel_init_bios] *ERROR* VBT signature missing
Aug 24 14:13:44 macbuchpro kernel: [  106.023783] [drm] failed to find VBIOS tables

Attachment: Xorg.0.log
Description: Binary data

 

Attachment: kern.log
Description: Binary data

 

Attachment: DSDT.dsl
Description: Binary data


Follow ups