[dp] External Screen doesn't wake up from sleep

Bug #1189639 reported by omriasta
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Low
Unassigned

Bug Description

I have a Lenovo X1 Carbon with an external screen connected to a Mini DP to VGA adapter. External screen works fine until the display goes to sleep for inactivity (just the display goes to sleep, not the laptop).
When I return to the laptop, the built in screen wakes but the external screen does not. The screen is still detected, xrandr displays the resolution and I can move the cursor to the external display but the display remains off.
I have tried cycling with Fn+F7 and also tried Ctrl+Alt+F1 then Ctrl+Alt+F7. The only way to get the external display back on is by disconnecting the adapter from the laptops DP port and reconnecting.

dmesg produces:
drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting

Running
Description: Ubuntu 13.04
Release: 13.04
kernel 3.8.0-23-generic
xserver-xorg-video-intel:
  Installed: 2:2.21.6-0ubuntu4

As a workaround I have disabled the monitor from sleeping in System Settings->Brightness & Lock-> Turn Screen off when inactive for
---
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: omri 2408 F.... pulseaudio
                      omri 8582 F.... TeamViewer.exe
 /dev/snd/pcmC0D0p: omri 2408 F...m pulseaudio
DistroRelease: Ubuntu 13.10
HibernationDevice: RESUME=UUID=d46a5b01-0285-4289-8345-692997c83409
InstallationDate: Installed on 2013-10-19 (80 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MachineType: LENOVO 3443CTO
MarkForUpload: True
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.11.0-15-generic.efi.signed root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.11.0-15.23-generic 3.11.10
RelatedPackageVersions:
 linux-restricted-modules-3.11.0-15-generic N/A
 linux-backports-modules-3.11.0-15-generic N/A
 linux-firmware 1.116
Tags: saucy
Uname: Linux 3.11.0-15-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm bluetooth cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 04/29/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: G6ET96WW (2.56 )
dmi.board.asset.tag: Not Available
dmi.board.name: 3443CTO
dmi.board.vendor: LENOVO
dmi.board.version: Win8 Pro DPK TPG
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrG6ET96WW(2.56):bd04/29/2013:svnLENOVO:pn3443CTO:pvrThinkPadX1Carbon:rvnLENOVO:rn3443CTO:rvrWin8ProDPKTPG:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 3443CTO
dmi.product.version: ThinkPad X1 Carbon
dmi.sys.vendor: LENOVO

Revision history for this message
Chris Wilson (ickle) wrote :

It is suspicious that it would only appear to fail whilst the monitor is off - that suggests we are missing a required wait for one of the control lines to power up.

Can you please 'echo 6 > /sys/modules/drm/parameters/debug' then xset dpms force off, wake it up (hopefully reproducing the issue) and then attach the output of dmesg?

Revision history for this message
omriasta (omriasta) wrote :

file was in /sys/module/drm/parameters/debug (instead of modules).
Attached is dmesg

Chris Wilson (ickle)
Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Confirmed
summary: - External Screen doesn't wake up from sleep
+ [dp] External Screen doesn't wake up from sleep
bugbot (bugbot)
tags: added: resume
Revision history for this message
Robert Navarro (crshman) wrote :

I'm having a similar issue...I believe....my monitor goes blank after a certain time and doesn't turn back on....I looked up the error "drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting" and that brough me here....I've attached my dmesg output.....that output is *after* I turn the monitor back on from a dead state.

As far as I can tell no output is generated right before the blanking of the monitor.

Revision history for this message
omriasta (omriasta) wrote :

Still present after updating to 13.10

Revision history for this message
omriasta (omriasta) wrote :

Here is dmesg in 13.10:
------------[ cut here ]------------
[ 6803.837811] WARNING: CPU: 1 PID: 1251 at /build/buildd/linux-3.11.0/drivers/gpu/drm/i915/intel_dp.c:2211 intel_dp_link_down+0x1b2/0x1e0 [i915]()
[ 6803.837816] Modules linked in: snd_seq_dummy(F) hid_generic hidp usbhid hid pci_stub vboxpci(OF) vboxnetadp(OF) vboxnetflt(OF) vboxdrv(OF) joydev(F) cdc_mbim parport_pc(F) ppdev(F) cdc_ncm usbnet cdc_wdm cdc_acm mii(F) btusb uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core bnep videodev rfcomm bluetooth snd_hda_codec_hdmi snd_hda_codec_realtek x86_pkg_temp_thermal intel_powerclamp snd_hda_intel coretemp snd_hda_codec kvm_intel(F) kvm(F) snd_hwdep(F) microcode(F) snd_pcm(F) arc4(F) iwldvm psmouse(F) serio_raw(F) snd_page_alloc(F) mac80211 snd_seq_midi(F) snd_seq_midi_event(F) snd_rawmidi(F) snd_seq(F) thinkpad_acpi tpm_tis iwlwifi nvram(F) snd_seq_device(F) intel_smartconnect snd_timer(F) cfg80211 snd(F) mei_me soundcore(F) mei lpc_ich mac_hid nls_iso8859_1(F) lp(F) parport(F) ext2(F) dm_crypt(F) crct10dif_pclmul(F) crc32_pclmul(F) ghash_clmulni_intel(F) i915 aesni_intel(F) aes_x86_64(F) lrw(F) gf128mul(F) glue_helper(F) ablk_helper(F) cryptd(F) i2c_algo_bit ahci(F) libahci(F) drm_kms_helper sdhci_pci sdhci drm wmi video(F)
[ 6803.837929] CPU: 1 PID: 1251 Comm: Xorg Tainted: GF W O 3.11.0-12-generic #19-Ubuntu
[ 6803.837933] Hardware name: LENOVO 3443CTO/3443CTO, BIOS G6ET96WW (2.56 ) 04/29/2013
[ 6803.837937] 0000000000000009 ffff880210407a18 ffffffff816e547a 0000000000000000
[ 6803.837946] ffff880210407a50 ffffffff81061dbd ffff88020d5470c0 ffff88020d388000
[ 6803.837952] ffff880212554000 0000000086080304 ffff88020d7e2800 ffff880210407a60
[ 6803.837960] Call Trace:
[ 6803.837975] [<ffffffff816e547a>] dump_stack+0x45/0x56
[ 6803.837985] [<ffffffff81061dbd>] warn_slowpath_common+0x7d/0xa0
[ 6803.837993] [<ffffffff81061e9a>] warn_slowpath_null+0x1a/0x20
[ 6803.838027] [<ffffffffa0158fe2>] intel_dp_link_down+0x1b2/0x1e0 [i915]
[ 6803.838059] [<ffffffffa015aef8>] intel_disable_dp+0x68/0x70 [i915]
[ 6803.838090] [<ffffffffa01467fa>] ironlake_crtc_disable+0x18a/0x8c0 [i915]
[ 6803.838118] [<ffffffffa0145034>] intel_crtc_disable+0x34/0x1c0 [i915]
[ 6803.838146] [<ffffffffa014bace>] __intel_set_mode+0x2ae/0x880 [i915]
[ 6803.838176] [<ffffffffa014e126>] intel_set_mode+0x16/0x30 [i915]
[ 6803.838204] [<ffffffffa014e982>] intel_crtc_set_config+0x742/0x910 [i915]
[ 6803.838236] [<ffffffffa0030f8d>] drm_mode_set_config_internal+0x5d/0xe0 [drm]
[ 6803.838264] [<ffffffffa00339c7>] drm_mode_setcrtc+0xf7/0x650 [drm]
[ 6803.838288] [<ffffffffa0024212>] drm_ioctl+0x532/0x660 [drm]
[ 6803.838306] [<ffffffff811b8ba5>] do_vfs_ioctl+0x2e5/0x4d0
[ 6803.838316] [<ffffffff811a6b97>] ? vfs_read+0xf7/0x170
[ 6803.838324] [<ffffffff811b8e11>] SyS_ioctl+0x81/0xa0
[ 6803.838331] [<ffffffff811a769c>] ? SyS_read+0x7c/0xa0
[ 6803.838339] [<ffffffff816f521d>] system_call_fastpath+0x1a/0x1f
[ 6803.838344] ---[ end trace 4a226ae97be94ffc ]---

Revision history for this message
omriasta (omriasta) wrote :
Download full text (4.2 KiB)

Issue is definitely related to DPMS. Disabling DPMS altogether prevents the screen from turning off completely in turn preventing it from failing to turn back on. Screen still blanks when I lock the screen but backlight remains on and the screen doesn't go to "power saving" mode.
I have updated to the latest kernel from drm-intel-next (found here: http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-next/) and the issue still exists in 3.12.0-997.
It seems this issue has also been noted on the Pixel here: https://code.google.com/p/chromium/issues/detail?id=257457
On the new Kernel I installed the Error is slightly different. dmesg shows:
[ 1927.534343] [drm:intel_dp_start_link_train] *ERROR* too many full retries, give up
[ 1927.558323] [drm:intel_dp_start_link_train] *ERROR* too many full retries, give up
[ 1927.582264] [drm:intel_dp_start_link_train] *ERROR* too many full retries, give up
[ 1927.606214] [drm:intel_dp_start_link_train] *ERROR* too many full retries, give up
[ 1927.630118] [drm:intel_dp_start_link_train] *ERROR* too many full retries, give up
[ 1927.654053] [drm:intel_dp_start_link_train] *ERROR* too many full retries, give up
[ 1927.677958] [drm:intel_dp_start_link_train] *ERROR* too many full retries, give up
[ 1927.678207] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
and also:
[ 2288.677894] ------------[ cut here ]------------
[ 2288.677931] WARNING: CPU: 0 PID: 1279 at /home/apw/COD/linux/drivers/gpu/drm/i915/intel_dp.c:2683 intel_dp_link_down+0x1dc/0x210 [i915]()
[ 2288.677933] Modules linked in: hid_generic hidp hid nfnetlink_queue nfnetlink_log nfnetlink joydev parport_pc ppdev x86_pkg_temp_thermal intel_powerclamp rfcomm coretemp bnep kvm_intel kvm cdc_mbim arc4 nls_iso8859_1 cdc_ncm usbnet cdc_wdm uvcvideo cdc_acm mii iwldvm videobuf2_vmalloc snd_hda_codec_hdmi videobuf2_memops videobuf2_core mac80211 ext2 snd_hda_codec_realtek btusb bluetooth videodev snd_hda_intel snd_hda_codec snd_hwdep snd_pcm thinkpad_acpi iwlwifi nvram snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi cfg80211 psmouse snd_seq microcode snd_seq_device serio_raw snd_timer lpc_ich snd mei_me soundcore mei tpm_tis intel_smartconnect lp mac_hid parport dm_crypt crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel i915 aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd i2c_algo_bit ahci sdhci_pci drm_kms_helper libahci sdhci drm wmi video
[ 2288.677989] CPU: 0 PID: 1279 Comm: Xorg Tainted: G W 3.12.0-997-generic #201311050452
[ 2288.677991] Hardware name: LENOVO 3443CTO/3443CTO, BIOS G6ET96WW (2.56 ) 04/29/2013
[ 2288.677993] 0000000000000a7b ffff88020ffd3a58 ffffffff81739f5f 0000000000000007
[ 2288.677997] 0000000000000000 ffff88020ffd3a98 ffffffff810675fc 0608000400000000
[ 2288.678001] ffff8800362b30c8 ffff880035c7c000 ffff8800362b1000 ffff88021244f000
[ 2288.678004] Call Trace:
[ 2288.678010] [<ffffffff81739f5f>] dump_stack+0x46/0x58
[ 2288.678015] [<ffffffff810675fc>] warn_slowpath_common+0x8c/0xc0
[ 2288.678019] [<ffffffff8106764a>] warn_slowpath_null+0x1a/0x20
[ 2288.678034] [<ffffffffa0116c8c>] intel_dp_link_down+0x1dc/0x210 [i915]
[ 2288.678049] [<ffffffffa011a7b8>] inte...

Read more...

Revision history for this message
penalvch (penalvch) wrote :

omriasta, 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

Please note, given that the information from the prior release is already available, doing this on a release prior to the development one would not be helpful.

If reproducible, could you also 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.13-rc7

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.

affects: xserver-xorg-video-intel (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
omriasta (omriasta) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected saucy
description: updated
Revision history for this message
omriasta (omriasta) wrote : BootDmesg.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : CRDA.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : CurrentDmesg.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : IwConfig.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : Lspci.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : Lsusb.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : ProcEnviron.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : ProcInterrupts.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : ProcModules.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : PulseList.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : RfKill.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : UdevDb.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : UdevLog.txt

apport information

Revision history for this message
omriasta (omriasta) wrote : WifiSyslog.txt

apport information

Revision history for this message
omriasta (omriasta) wrote :

This issue is NOT resolved yet.

penalvch (penalvch)
tags: added: bios-outdated-2.61 needs-trusty-test needs-upstream-testing
Revision history for this message
omriasta (omriasta) wrote :

Bios Updated to 2.61 issue still exists. I was on a 3.12 upstream kernel and the issue persists.

Revision history for this message
omriasta (omriasta) wrote :

Just purchased a Startech.com mini dp to DVI adapter and the issue does not occur.
It seems that the issue is confined to the mini dp to VGA adapter. If anyone is looking to purchase one of these the Cirago "active" mini dp to VGA has issues on Ubuntu when the screen goes to DPMS.

penalvch (penalvch)
tags: added: bios-outdated-2.63
removed: bios-outdated-2.61
Revision history for this message
Mike Harris (t-mike-6) wrote :

This issue affects me as well. Lenovo T460 and a Lenovo basic docking station. The docking station is connected to an Acer 24" monitor via VGA. Once the desktop locks and the unity login appears the external display enters power save mode. Unlocking via the password does not power up the external display (all windows are moved to laptop display). I have to eject the laptop from the dock, wait a couple of seconds, then put the laptop back in the dock for the external display to power back up. I'd prefer not to physically undock/dock the laptop several times a day.

Revision history for this message
penalvch (penalvch) wrote :

Mike Harris, it will help immensely if you filed a new report with the Ubuntu repository kernel (not mainline/upstream) via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

For more on why this is helpful, please see https://wiki.ubuntu.com/ReportingBugs.

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.