[Dell XPS 13 (L321X)] External monitor does not wake up after sleep

Bug #1322644 reported by sanette
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

The problem started after I upgraded from kubuntu 13.10 to 14.04.
the monitor is connected to my laptop via a VGA mini display port.
At boot, it works correctly, but if the screen goes blank after some inactivity, then it stays black forever.

WORKAROUND: If I unplug the VGA adapter, and plug it back, it works again.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: xorg 1:7.7+1ubuntu8
ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
.tmp.unity.support.test.0:

ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CompizPlugins: [core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,unitymtgrabhandles,workarounds,scale,expo,ezoom,unityshell]
CompositorRunning: kwin
CurrentDesktop: KDE
Date: Fri May 23 16:02:09 2014
DistUpgraded: 2014-05-09 13:04:30,209 DEBUG enabling apt cron job
DistributionChannelDescriptor:
 # This is a distribution channel descriptor
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-sputnik-20120802-0
DistroCodename: trusty
DistroVariant: kubuntu
DkmsStatus:
 fwts-efi-runtime-dkms, 14.03.01, 3.11.0-20-generic, x86_64: installed
 fwts-efi-runtime-dkms, 14.03.01, 3.13.0-24-generic, x86_64: installed
 vboxhost, 4.3.6, 3.11.0-20-generic, x86_64: installed
 vboxhost, 4.3.6, 3.13.0-24-generic, x86_64: installed
GraphicsCard:
 Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Dell Device [1028:052e]
InstallationDate: Installed on 2012-11-13 (555 days ago)
InstallationMedia: Ubuntu 12.04 "Precise" - Failed to find casper uuid.conf in 'binary/casper/initrd.img' LIVE/INSTALL Binary 20120802-21:13
LightdmGreeterLog:
 QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Aucun fichier ou dossier de ce type
 QFileSystemWatcher: failed to add paths: /var/lib/lightdm/.config/ibus/bus
 Bus::open: Can not get ibus-daemon's address.
 IBusInputContext::createInputContext: no connection to ibus-daemon
LightdmGreeterLogOld:
 QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Aucun fichier ou dossier de ce type
 QFileSystemWatcher: failed to add paths: /var/lib/lightdm/.config/ibus/bus
 Bus::open: Can not get ibus-daemon's address.
 IBusInputContext::createInputContext: no connection to ibus-daemon
MachineType: Dell Inc. Dell System XPS L321X
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-24-generic root=UUID=f18a56b7-1429-4ce3-b6e3-65edacff16a3 ro quiet splash crashkernel=384M-:128M vt.handoff=7
SourcePackage: xorg
UpgradeStatus: Upgraded to trusty on 2014-05-09 (14 days ago)
dmi.bios.date: 07/02/2012
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A06
dmi.board.name: 085X6F
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: 0.1
dmi.modalias: dmi:bvnDellInc.:bvrA06:bd07/02/2012:svnDellInc.:pnDellSystemXPSL321X:pvr:rvnDellInc.:rn085X6F:rvrA00:cvnDellInc.:ct8:cvr0.1:
dmi.product.name: Dell System XPS L321X
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:0.9.11+14.04.20140423-0ubuntu1
version.ia32-libs: ia32-libs 20090808ubuntu36
version.libdrm2: libdrm2 2.4.52-1
version.libgl1-mesa-dri: libgl1-mesa-dri 10.1.0-4ubuntu5
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 10.1.0-4ubuntu5
version.xserver-xorg-core: xserver-xorg-core 2:1.15.1-0ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.8.2-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.3.0-1ubuntu3.1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.910-0ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.10-1ubuntu2
xserver.bootTime: Fri May 23 06:57:33 2014
xserver.configfile: None
xserver.errors: Failed to load module "displaylink" (module does not exist, 0)
xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:
 product id 4920
 vendor CMN
xserver.version: 2:1.15.1-0ubuntu2

Revision history for this message
sanette (sanette-linux) wrote :
penalvch (penalvch)
description: updated
tags: added: bios-outdated-a08
penalvch (penalvch)
tags: added: regression-release
Changed in xorg (Ubuntu):
importance: Undecided → Low
penalvch (penalvch)
summary: - external monitor does not wake up after sleep
+ [Dell XPS 13 (L321X)] External monitor does not wake up after sleep
Changed in xorg (Ubuntu):
status: New → Incomplete
Revision history for this message
sanette (sanette-linux) wrote :
Download full text (14.8 KiB)

I have upgraded the BIOS:
sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date

A08
01/22/2013

But the problem is still there (not always, maybe 50% of times):

dmesg ==>
[....]
23344.416045] [drm:intel_dp_aux_native_write] *ERROR* too many retries, giving up
[23344.416059] [drm:intel_dp_start_link_train] *ERROR* failed to enable link training
[23344.423151] [drm:intel_dp_aux_native_write] *ERROR* too many retries, giving up
[23344.423162] [drm:intel_dp_complete_link_train] *ERROR* failed to start channel equalization
[23344.453556] [drm:cpt_verify_modeset] *ERROR* mode set failed: pipe B stuck
[23344.517547] ------------[ cut here ]------------
[23344.517619] WARNING: CPU: 2 PID: 1358 at /build/buildd/linux-3.13.0/drivers/gpu/drm/i915/intel_display.c:9226 intel_modeset_check_state+0x62d/0x780 [i915]()
[23344.517624] encoder's hw state doesn't match sw tracking (expected 1, found 0)
[23344.517627] Modules linked in: snd_hrtimer nvram pci_stub vboxpci(OF) vboxnetadp(OF) vboxnetflt(OF) vboxdrv(OF) dm_crypt hid_generic snd_usb_audio snd_usbmidi_lib usbhid hid uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev btusb asix usbnet mii intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp dell_wmi sparse_keymap kvm_intel kvm dell_laptop dcdbas crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel snd_hda_codec_hdmi aes_x86_64 lrw gf128mul snd_hda_codec_realtek glue_helper ablk_helper cryptd arc4 joydev serio_raw rfcomm bnep snd_hda_intel bluetooth iwldvm snd_hda_codec mac80211 snd_hwdep snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event iwlwifi snd_rawmidi snd_seq mei_me parport_pc snd_seq_device mei snd_timer ppdev cfg80211 snd intel_smartconnect soundcore lpc_ich lp mac_hid parport binfmt_misc psmouse i915 i2c_algo_bit drm_kms_helper ahci libahci drm wmi video
[23344.517744] CPU: 2 PID: 1358 Comm: Xorg Tainted: GF W O 3.13.0-27-generic #50-Ubuntu
[23344.517748] Hardware name: Dell Inc. Dell System XPS L321X/085X6F, BIOS A08 01/22/2013
[23344.517752] 0000000000000009 ffff88008edadb68 ffffffff817199c4 ffff88008edadbb0
[23344.517760] ffff88008edadba0 ffffffff810676bd ffff88008edadc20 0000000000000001
[23344.517766] ffff8800362bd000 ffff8800362bd2f8 ffff8800363b3800 ffff88008edadc00
[23344.517773] Call Trace:
[23344.517788] [<ffffffff817199c4>] dump_stack+0x45/0x56
[23344.517797] [<ffffffff810676bd>] warn_slowpath_common+0x7d/0xa0
[23344.517803] [<ffffffff8106772c>] warn_slowpath_fmt+0x4c/0x50
[23344.517842] [<ffffffffa00d316d>] intel_modeset_check_state+0x62d/0x780 [i915]
[23344.517875] [<ffffffffa00d3355>] intel_set_mode+0x25/0x30 [i915]
[23344.517906] [<ffffffffa00d3bfb>] intel_crtc_set_config+0x7ab/0x9a0 [i915]
[23344.517941] [<ffffffffa0025e9d>] drm_mode_set_config_internal+0x5d/0xe0 [drm]
[23344.517974] [<ffffffffa0028d87>] drm_mode_setcrtc+0xf7/0x5e0 [drm]
[23344.517998] [<ffffffffa0019c22>] drm_ioctl+0x502/0x630 [drm]
[23344.518014] [<ffffffff811cf810>] do_vfs_ioctl+0x2e0/0x4c0
[23344.518022] [<ffffffff8109dd84>] ? vtime_account_user+0x54/0x60
[23344.518030] [<ffffffff811cfa71>] SyS_ioctl+0x81/0xa0
[23344.518039] [<ffffffff8172a5bf>] tracesys+0xe1/0xe6
[23344.51...

penalvch (penalvch)
tags: added: latest-bios-a08
removed: bios-outdated-a08
Revision history for this message
penalvch (penalvch) wrote :

sanette, could you please test the latest upstream kernel available (3.15-rc7) 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-3.15-rc6

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: xorg (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Low → Medium
Revision history for this message
sanette (sanette-linux) wrote :
Download full text (6.9 KiB)

Christopher,

I have upgraded to 3.15-rc8, but the problem is still there.

uname -a
Linux pr036037 3.15.0-031500rc8-generic #201406012235 SMP Mon Jun 2 02:36:11 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

dmesg output =

[...]
  488.947955] cfg80211: (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[ 4940.374152] psmouse serio1: Trackpad at isa0060/serio1/input0 lost sync at byte 1
[ 4940.386220] psmouse serio1: Trackpad at isa0060/serio1/input0 - driver resynced.
[11987.705683] [drm:intel_dp_start_link_train] *ERROR* failed to enable link training
[11987.712346] [drm:intel_dp_complete_link_train] *ERROR* failed to start channel equalization
[11987.743541] [drm:cpt_verify_modeset] *ERROR* mode set failed: pipe B stuck
[11987.807522] ------------[ cut here ]------------
[11987.807560] WARNING: CPU: 2 PID: 1364 at /home/apw/COD/linux/drivers/gpu/drm/i915/intel_display.c:9761 check_encoder_state+0x1fa/0x270 [i915]()
[11987.807562] encoder's hw state doesn't match sw tracking (expected 1, found 0)
[11987.807563] Modules linked in: ctr ccm snd_usb_audio snd_usbmidi_lib snd_hrtimer nvram pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) dm_crypt uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev btusb snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic dell_wmi sparse_keymap snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel dell_laptop dcdbas snd_pcm kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd microcode snd_seq_midi snd_seq_midi_event snd_rawmidi arc4 snd_seq iwldvm joydev snd_seq_device serio_raw mac80211 snd_timer iwlwifi snd mei_me lpc_ich cfg80211 mei soundcore intel_smartconnect rfcomm bnep bluetooth 6lowpan_iphc parport_pc ppdev mac_hid lp parport binfmt_misc hid_generic usbhid hid i915 i2c_algo_bit drm_kms_helper psmouse drm ahci libahci wmi video
[11987.807607] CPU: 2 PID: 1364 Comm: Xorg Tainted: G OE 3.15.0-031500rc8-generic #201406012235
[11987.807609] Hardware name: Dell Inc. Dell System XPS L321X/085X6F, BIOS A08 01/22/2013
[11987.807610] 0000000000002621 ffff880119057b38 ffffffff81762641 0000000000000007
[11987.807613] ffff880119057b88 ffff880119057b78 ffffffff81069e2c 0008030419057b88
[11987.807616] ffff880119022000 ffff88003662c320 0000000000000000 ffff88003662c000
[11987.807618] Call Trace:
[11987.807624] [<ffffffff81762641>] dump_stack+0x46/0x58
[11987.807628] [<ffffffff81069e2c>] warn_slowpath_common+0x8c/0xc0
[11987.807631] [<ffffffff81069f16>] warn_slowpath_fmt+0x46/0x50
[11987.807650] [<ffffffffa00f846a>] check_encoder_state+0x1fa/0x270 [i915]
[11987.807667] [<ffffffffa010d30d>] intel_modeset_check_state+0x5d/0xa0 [i915]
[11987.807684] [<ffffffffa010d375>] intel_set_mode+0x25/0x30 [i915]
[11987.807699] [<ffffffffa010dd56>] intel_crtc_set_config+0x196/0x2f0 [i915]
[11987.807703] [<ffffffff811b3d64>] ? kmem_cache_alloc_trace+0x1b4/0x1f0
[11987.807718] [<ffffffffa003e100>] drm_mode_set_config_internal+0x60/0xf0 [drm]
[11987.807731] [<ffffffffa0041d90>] drm_mode_setcrtc+0x280/0x4e0 [drm]
[...

Read more...

tags: added: kernel-bug-exists-upstream kernel-bug-exists-upstream-3.15-rc8
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

sanette, the next step is to fully commit bisect the kernel in order to identify the offending commit. Could you please do this following https://wiki.ubuntu.com/Kernel/KernelBisection ?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
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
Revision history for this message
sanette (sanette-linux) wrote : Re: [Bug 1322644] Re: [Dell XPS 13 (L321X)] External monitor does not wake up after sleep

I still have the same problem with kernel 3.13.0-35

I'm sorry, I didn't have the time to bisect; this is my work laptop and it's not so easy to install many kernels.

The tests I did:

3.12.0-031200: GOOD
3.13.0-24: BAD after 5 sleep/wake up
3.15.0-031500rc8: BAD after 1 sleep/wake up
3.13.0-35: BAD after 2 sleep/wake up

I'll try to bisect more properly when I have the time.

Revision history for this message
Aldo (thewalrus) wrote :

I recently got a Dell U2414hb monitor, and it is affected by this bug.

I would really appreciate if someone has found a fix and is able to explain in simple steps how to do it.

The steps above sound a bit advanced for me, but I am willing to try things out if it will help.

I tried:
sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date

And I got:
A07

Revision history for this message
sanette (sanette-linux) wrote :

I'm progressing slowly in my dissection:

3.13.0-17.37: BAD
3.13.0-7.26: GOOD (but issue with USB sound card)

Revision history for this message
sanette (sanette-linux) wrote :
sanette (sanette-linux)
Changed in linux (Ubuntu):
status: Expired → Incomplete
Revision history for this message
sanette (sanette-linux) wrote :

so my conclusion is that

* it works with 3.13.0-16.36
* it is broken in 3.13.0-17.37

what should I do next ?

Revision history for this message
sanette (sanette-linux) wrote :

I think I found what triggers the error (of course, this is just the manifestation of the error, maybe not the root cause):
from 3.13.0-17.37 a limited number of "retries" has been introduced, which fails after 7 retries; this seems to be not enough:

--- linux-3.13.0/drivers/gpu/drm/i915/intel_dp.c
+++ linux-3.13.0/drivers/gpu/drm/i915/intel_dp.c
@@ -537,6 +537,7 @@
  uint8_t msg[20];
  int msg_bytes;
  uint8_t ack;
+ int retry;

  if (WARN_ON(send_bytes > 16))
   return -E2BIG;
@@ -548,18 +549,20 @@
  msg[3] = send_bytes - 1;
  memcpy(&msg[4], send, send_bytes);
  msg_bytes = send_bytes + 4;
- for (;;) {
+ for (retry = 0; retry < 7; retry++) {
   ret = intel_dp_aux_ch(intel_dp, msg, msg_bytes, &ack, 1);
   if (ret < 0)
    return ret;
   if ((ack & AUX_NATIVE_REPLY_MASK) == AUX_NATIVE_REPLY_ACK)
- break;
+ return send_bytes;
   else if ((ack & AUX_NATIVE_REPLY_MASK) == AUX_NATIVE_REPLY_DEFER)
- udelay(100);
+ usleep_range(400, 500);
   else
    return -EIO;
  }
- return send_bytes;
+
+ DRM_ERROR("too many retries, giving up\n");
+ return -EIO;
 }

Revision history for this message
penalvch (penalvch) wrote :

sanette, you would need to continue bisecting until the commit has been identified as advised in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1322644/comments/6 . Neither 3.13.0-16.36 or 3.13.0-17.37 are commits.

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
Revision history for this message
sanette (sanette-linux) wrote :

this is just a reminder that the problem is still present with the latest ubuntu kernel 3.16.0-29-generic.

bisecting is not completely obvious to me, so I didn't have the time to look into it yet.
I just tested the precompiled kernels available in https://launchpad.net/ubuntu/trusty/+source/linux
and noticed that the problem started to happen strictly after 3.13.0-16.36

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