vgaswitcheroo on the Macbook Pro 8,2 high-res

Bug #1178747 reported by Sebastian Rühl
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linux
Confirmed
Medium
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I have the same issue as in Bug #1171940. The difference is that my machine is slightly different (High-Res display) and the pci id is somewhat different. So I edited the patch supplied there and try to fix the issue. However the screen still stays black.
---
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: srhl62 2027 F.... pulseaudio
 /dev/snd/controlC0: srhl62 2027 F.... pulseaudio
DistroRelease: Ubuntu 13.04
InstallationDate: Installed on 2013-04-21 (19 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130420)
MachineType: Apple Inc. MacBookPro8,2
MarkForUpload: True
NonfreeKernelModules: wl
Package: linux (not installed)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcFB:
 0 radeondrmfb
 1 inteldrmfb
ProcKernelCmdLine: root=UUID=dc157da7-a9a1-4ce6-963f-c3b28c9cf340 ro add_efi_memmap modprobe.blacklist=i915 radeon.modeset=1 quiet splash $vt_handoff initrd=\initrd.img-3.8.0-20-mbp82fix
ProcVersionSignature: Ubuntu 3.8.0-20.31-mbp82fix 3.8.11
RelatedPackageVersions:
 linux-restricted-modules-3.8.0-20-mbp82fix N/A
 linux-backports-modules-3.8.0-20-mbp82fix N/A
 linux-firmware 1.106
Tags: raring
Uname: Linux 3.8.0-20-mbp82fix x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 01/24/12
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP81.88Z.0047.B27.1201241646
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-94245A3940C91C80
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro8,2
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-94245A3940C91C80
dmi.modalias: dmi:bvnAppleInc.:bvrMBP81.88Z.0047.B27.1201241646:bd01/24/12:svnAppleInc.:pnMacBookPro8,2:pvr1.0:rvnAppleInc.:rnMac-94245A3940C91C80:rvrMacBookPro8,2:cvnAppleInc.:ct10:cvrMac-94245A3940C91C80:
dmi.product.name: MacBookPro8,2
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected raring
description: updated
Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : BootDmesg.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : CRDA.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : HookError_cloud_archive.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : IwConfig.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : Lspci.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : Lsusb.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : ProcModules.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : PulseList.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : RfKill.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : UdevDb.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : UdevLog.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote : WifiSyslog.txt

apport information

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

This is the patch what is based on http://cgit.freedesktop.org/~mlankhorst/linux/commit/?id=ae7b687c2a57ec50a9d3dde7b0a80a262fdc8c8 and add a additional quirk for the Macbook pro 8.2 (Early 2011) HighRes

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

This is the dmesg (look for the end) after I modeprobe i915 (I was booting trough efi-stub and refind radeon.modset=1 and blacklisted i915)

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

this is the output of grep PCI /var/log/Xorg.0.log when booting with grub-efi

Grub commandline:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.modeset=1 i915.lvds_use_ssc=0 i915.lvds_channel_mode=2"

/boot/grub/custom.cfg:
## Switch gmux to IGD
outb 0x728 1
outb 0x710 2
outb 0x740 2
## Power down ATI
outb 0x750 0

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

this is the output of grep PCI /var/log/Xorg.0.log when booting with efi-stub

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

The modeline for the quirk did I get from this

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

Modeline from radeon

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

btw. the patch is based on the git tag "Ubuntu-3.8.0-20.31"

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.9 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9-saucy/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
tags: added: kernel-da-key
Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

The saucy kernel [0] doesn't bootup at all...

 I remember that I tried this kernel here: [1] but currently not sure what happend..
I give this one a second try and report back

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9-saucy/
[1] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9-raring/

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

Ok the 3.9.0 [1] doesn't work also:

However I found something out:
When I modprobe i915 I get a picture in picture so it seems both graphics a rendered at the same time and the i915 IGD has a too small modeset. With this I can confirm that the patch with my changes at #17 does at least set the correct modeset as then the rendered output is perfectly the same and you don't get that wired picutre in picture.

However whats stranges is that my PCI id is different. Could it be that there is a backlight quirk (or something like that) for the 0x0116 PCI ID that doesn't get activated for me as the PCI for me is 0x0126?

Also in the original Bug #1171940 the patch seems to fix the blackscreen and for me it doesn't but I can confirm that the quirk gets activated proberly. Maybe there is a related quirk that doesn't jump in action.

[1] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9-raring/

tags: added: kernel-bug-exists-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: patch
Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

I forgot to mention: If I boot the kernel with refind without any parameters I have to type in my luks password blindly and the the system boots up and I can hear the login bell (but don't have any display).

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

Here an interessting discussion on the ubuntu-forums in case it helps http://ubuntuforums.org/showthread.php?t=2141024

Changed in linux:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in linux (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Julian Wiedmann (jwiedmann) wrote :

Sebastian Rühl,

could you please test the latest kernel in raring-updates (3.8.0-29.42) and see if this bug is fixed? Thanks.

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

Julian Wiedmann,

no it isn't fixed with this kernel...

Can you reference a commit that should have fixed it?

Revision history for this message
Julian Wiedmann (jwiedmann) wrote :

Hi Sebastian,

http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-raring.git;a=commit;h=f6a1af4e27a20de1b4b753b23ba437394384f380 seems like an improvement for your machine. But alas, apparently it's not enough.

Revision history for this message
Sebastian Rühl (sebastian-ruehl) wrote :

its really hard to debug...

I just looked at the diff from the patch you referenced:
Here I can see that "PCI_VENDOR_ID_APPLE" is used which is according to "pci_ids.h" "0x106b".
This is also the second hex value what is used in the patch at #17.
The "rdev->pdev->device == 0x6741" in the patch you referenced also matches at my card if I take a look via "lspci -vvv -n":
01:00.0 0300: 1002:6741 (prog-if 00 [VGA controller])

Therefore I think this code snipped should be activated. So Im guessing its not really about a backlight issue (As far as I know no backlight means that you can light up the screen with a lamp and should see some dark display which isn't the case for me).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.