ubuntu 11.10b2 resumes on wrong iMac display port

Bug #863969 reported by Peter T Hayward
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

My iMac 21.5 (11,2) has ubuntu 11.10b2 installed, dual boot with Osx Lion. Ubuntu uses the open source ATI drivers At boot the video is good: on main display, correct resolution, reasonable performance. Resuming from sleep the system switches to the external video port (nothing connected) and leaves the main screen unlit. If I plug second monitor onto the external port I can continue after resume. On external screen the X resolution is as if for the main screen (1920x1080); incorrect for external screen (should be 1280x1024). I have no way to relight the main display, except restart.
This issue of wrong display port used to affect ubuntu booting on iMac (see #542660 & #597070) but that problem seems to have been tamed in Oneiric. However not being able to resume without a second screen is a problem, especially since the higher power consumption in Oneiric (+15w compared with OSX) means you would like to sleep when possible. From earlier discussions this seems likely to be something fairly complex in KMS code.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: linux-image-3.0.0-12-generic 3.0.0-12.19
ProcVersionSignature: Ubuntu 3.0.0-12.19-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: peter 1558 F.... pulseaudio
 /dev/snd/controlC0: peter 1558 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xd0500000 irq 42'
   Mixer name : 'Cirrus Logic CS4206'
   Components : 'HDA:10134206,106b1200,00100301'
   Controls : 22
   Simple ctrls : 13
Card1.Amixer.info:
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xd0430000 irq 44'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,00aa0100,00100100'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Sat Oct 1 11:41:07 2011
HibernationDevice: RESUME=UUID=f6e1b41a-449e-459f-8c41-f8858958eec3
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64+mac (20110816)
MachineType: Apple Inc. iMac11,2
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-12-generic root=UUID=c5afd811-14a5-41cb-a001-99040b12285c ro quiet splash vt.handoff=7
PulseSinks:
 Error: command ['pacmd', 'list-sinks'] failed with exit code 1: Home directory /home/peter not ours.
 No PulseAudio daemon running, or not running as session daemon.
PulseSources:
 Error: command ['pacmd', 'list-sources'] failed with exit code 1: Home directory /home/peter not ours.
 No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-12-generic N/A
 linux-backports-modules-3.0.0-12-generic N/A
 linux-firmware 1.60
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/03/10
dmi.bios.vendor: Apple Inc.
dmi.bios.version: IM112.88Z.0057.B00.1005031455
dmi.board.name: Mac-F2238AC8
dmi.board.vendor: Apple Inc.
dmi.chassis.type: 13
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F2238AC8
dmi.modalias: dmi:bvnAppleInc.:bvrIM112.88Z.0057.B00.1005031455:bd05/03/10:svnAppleInc.:pniMac11,2:pvr1.0:rvnAppleInc.:rnMac-F2238AC8:rvr:cvnAppleInc.:ct13:cvrMac-F2238AC8:
dmi.product.name: iMac11,2
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Peter T Hayward (energonic) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Brad Figg (brad-figg) wrote : Test with newer development kernel (3.0.0-12.20)

Thank you for taking the time to file a bug report on this issue.

However, given the number of bugs that the Kernel Team receives during any development cycle it is impossible for us to review them all. Therefore, we occasionally resort to using automated bots to request further testing. This is such a request.

We have noted that there is a newer version of the development kernel than the one you last tested when this issue was found. Please test again with the newer kernel and indicate in the bug if this issue still exists or not.

If the bug still exists, change the bug status from Incomplete to Confirmed. If the bug no longer exists, change the bug status from Incomplete to Fix Released.

Thank you for your help, we really do appreciate it.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: kernel-request-3.0.0-12.20
Revision history for this message
Peter T Hayward (energonic) wrote :

Now using kernel
Linux peter-ocelot 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
The display chosen on resume from sleep is still the external display.
Using the 'Displays...' applet from the top right hand menu I can see that the Apple main display is set to 'off' after resume.
Setting it to 'on' is accepted but the output stays on the external display.
Then setting the external display to 'off' loses both displays and a power-off reboot is necessary.

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

Would it be possible for you to test the latest upstream kernel? It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the release candidate kernel versus the daily build. Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag(Only that one tag, please leave the others). This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed by the mainline kernel, please add the following tag 'kernel-fixed-upstream-KERNEL-VERSION'. For example, if kernel version 3.1-rc9 fixed and issue, the tag would be: 'kernel-fixed-upstream-v3.1-rc9'.

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

Thanks in advance.

tags: added: needs-upstream-testing
tags: removed: needs-upstream-testing
tags: added: kernel-bug-exists-upstream
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

This issue appears to be an upstream bug, since you tested the latest upstream kernel. Would it be possible for you to open an upstream bug report at bugzilla.kernel.org? That will allow the upstream Developers to examine the issue, and may provide a quicker resolution to the bug.

If you are comfortable with opening a bug upstream, It would be great if you can report back the upstream bug number in this bug report. That will allow us to link this bug to the upstream report.

Revision history for this message
Peter T Hayward (energonic) wrote :

Tested with kernel 3.1.0-999-201110200416 for amd64. Behaves almost exactly the same as current oneiric kernel, 3.0.0.12#20.
I have two displays, main (Apple iMac monitor, res 1920x1080) and ext (an LG1710B, res 1280x1024).

Further information on tests performed:
Test1: Boot on latest kernel with only main display connected.
Set to suspend.
Wait one minute and press power button to resume. System starts (can hear disk). Black screen.
Connect ext and power it on. ext stays black. (this seems different - test of earlier kernel showed login here, but this may have been due to Display setting when suspending. I will repeat the test of kernel 3.0.0.12#20 and post here if anything found)
Power off reboot needed.

Test2: Boot with both displays plugged in and live.
The login screen appears on ext only.
After login the main screen lights with ubuntu desktop and ext goes black.
'Displays...' shows main set to ON and ext OFF.
Set ext to ON and Apply. The output switches to ext and main goes black (main is still set to ON).
ext is given the resolution of main, i.e. 1920x1080 so change display setting confirm window is inaccessible, off screen.
Window times out and both screens go black. Power-off reboot required.

Changed in linux (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Peter T Hayward (energonic) wrote :

Have attempted to open upstream bug report at bugzilla.kernel.org but that link is not live.
www.kernel.org says they are rebuilding their site after recent compromise.
I will just wait for this to get through the system.
In the meantime, no suspend.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Yes, it appears that bugzilla.kernel.org is still unavailable. I added the tag: kernel-needs-upstream-bug-report which will allow us to see what bugs still need to be reported upstream when bugzilla.kernel.org is back.

tags: added: kernel-needs-upstream-bug-report
Revision history for this message
Julian Wiedmann (jwiedmann) wrote :

The latest kernel update (3.0.0-14.23) brings several radeon/kms fixes. Could you see if that helps?

Revision history for this message
Peter T Hayward (energonic) wrote :

Have tried kernel 3.0.0-14.23 but no better.
Now unable to use external monitor at all now.
If I turn it on using 'Displays...' it lights for a few seconds (main goes off - but I didn't request that) then goes off.
I can bring up vt1 on external to stop X, then I get new login on external monitor.
During login the display switches to the main monitor and external goes off.
As before this seems to indicate that X knows what display to use but KMS has the wrong idea.

Revision history for this message
Peter T Hayward (energonic) wrote :

Am now using ocelot 12.04 (32-bit, for compatibility with printer driver) on my iMac.
The recent update to linux-image 3.2.0.10.10 has changed suspend behaviour.
I can now suspend and resume correctly.
The earliest versions of image 3.2.0 did not resume.
For the moment this bug is fixed for me.

Revision history for this message
Peter T Hayward (energonic) wrote :

Correction - I'm using precise 12.04, not ocelot.

Revision history for this message
Peter T Hayward (energonic) wrote :

Now using quantal with kernel 3.5.
Suspend does not work properly - screen goes black but the system only cools a little. I think the hard drive and cpu are still powered.
Also, resume fails to work at all. Pressing a key to resume gets a burst of sound from the disks but no screen. I suspect this is a regression to the same problem with earlier kernels; kms is inhibiting video to the main screen.

Revision history for this message
Peter T Hayward (energonic) wrote :

Further to my last comment:
I can boot with 3.5 kernel (now 3.5.0-3-generic) as long as I boot with 'nomodeset' in kernel params.
I am running with the radeon driver included with the kernel. Using the fglrx driver just gave a black screen, as did the proprietary ATI driver.
If I do this I can also suspend and resume back on the same screen, but suspend seems to be only partial; I can hear the disk still running and the case doesn't cool, but the screen goes black.
This seems to indicate a kms regression related to the bug that was once fixed in 3.2.0.10.10 (See #11 above).

Revision history for this message
penalvch (penalvch) wrote :

Peter T Hayward, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available (not the daily folder) following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.12

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

tags: added: bot-stop-nagging needs-upstream-testing
removed: kernel-needs-upstream-bug-report kernel-request-3.0.0-12.20
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Triaged → Incomplete
Revision history for this message
Peter T Hayward (energonic) wrote :

I cannot use ubuntu any more. Cannot burn to DVD (media not recognized). Despite following instructions to create USB install media from ubuntu iso file my iMac will not boot from it - message is 'no boot media found'.
I have successfully installed fedora 19 on my iMac, with two monitors connected; fedora boot image is recognized properly. With fedora 19 (kernel 3.11.6, radeon driver) the graphics find internal and external monitors but the names appear to be reversed. The internal monitor is named eDP and the external monitor is named DisplayPort-0. I can control the screens using xrandr.
The original problem is still there, if I suspend to RAM, and resume, the video only shows on the external monitor. This implies the radeon driver is reverting to DisplayPort-0, which, on my iMac, is the external monitor port.
So I would like to say this is confirmed, but I cannot confirm in ubuntu.

Revision history for this message
Peter T Hayward (energonic) wrote :

One other point relating to the fedora installation on iMac with two monitors. At boot time the login screen is always on the external monitor. During login the kde desktop starts up and the display switches to the internal monitor. I had previously used xrandr to force the display to be only on the internal monitor (external off). The display stays on the internal monitor until resume (from suspend), when the display and desktop then switches back to the external monitor permanently. Without two monitors it is impossible to use suspend and resume.

Revision history for this message
penalvch (penalvch) wrote :

Peter T Hayward, if you have a problem in Fedora, it would be best to file a report on their bug tracker -> http://fedoraproject.org/wiki/How_to_file_a_bug_report

Regarding Ubuntu, it would be helpful if you booted into the live environment of the latest release that currently boots (ex. Saucy, Raring, or Quantal if either of the prior two didn't work) and checked for this via http://releases.ubuntu.com/ .

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.