[Dell Latitude E7440] suspend sometimes freezes when lock screen activates

Bug #1301601 reported by Øyvind Stegard
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Closed lid, expecting laptop to suspend, but found it later hot, frozen and *not* suspended. (Airflow was not the best, since it was in a bag.)

WORKAROUND: Hangs do not occur if the lock screen is disabled at suspend.

WORKAROUND 2: Make pm-utils switch to console before suspend (and back after resume).

ProblemType: KernelOops
DistroRelease: Ubuntu 14.04
Package: linux-image-3.13.0-21-generic 3.13.0-21.43
ProcVersionSignature: Ubuntu 3.13.0-21.43-generic 3.13.8
Uname: Linux 3.13.0-21-generic x86_64
Annotation: This occured during a previous suspend and prevented it from resuming properly.
ApportVersion: 2.14-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: lightdm 1288 F.... pulseaudio
                      oyvind 1866 F.... pulseaudio
 /dev/snd/controlC1: lightdm 1288 F.... pulseaudio
                      oyvind 1866 F.... pulseaudio
Date: Wed Apr 2 22:46:06 2014
ExecutablePath: /usr/share/apport/apportcheckresume
Failure: suspend/resume
HibernationDevice: RESUME=UUID=d913ab68-ff2c-481e-9e50-2cddfc2bfc33
InstallationDate: Installed on 2014-04-01 (1 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326)
InterpreterPath: /usr/bin/python3.4
MachineType: Dell Inc. Latitude E7440
ProcCmdline: /usr/bin/python3 /usr/share/apport/apportcheckresume
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-21-generic.efi.signed root=UUID=7255658f-91f7-4dba-b6c4-185cd810e17b ro quiet splash vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-3.13.0-21-generic N/A
 linux-backports-modules-3.13.0-21-generic N/A
 linux-firmware 1.127
SourcePackage: linux
Title: [Dell Inc. Latitude E7440] suspend/resume failure
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

dmi.bios.date: 02/18/2014
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A08
dmi.board.name: 07F3F4
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA08:bd02/18/2014:svnDellInc.:pnLatitudeE7440:pvr01:rvnDellInc.:rn07F3F4:rvrA00:cvnDellInc.:ct9:cvr:
dmi.product.name: Latitude E7440
dmi.product.version: 01
dmi.sys.vendor: Dell Inc.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote : Re: [Dell Inc. Latitude E7440] suspend/resume failure

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.14 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.14-trusty/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Unless I hit the problem again, this bug will likely just fade into oblivion, as I have no way to reliably reproduce the problem. And that makes it hard to determine whether a mainline kernel helps or not.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Just had another freeze at suspend. Display was still on, but frozen right in the middle of the fade between desktop and lockscreen appearing before machine should have suspended (same thing as first occurence). So this bug is really about a failure to suspend, since it actually never manages to reach that state.

I find nothing interesting in any logs under /var/log.

The last thing that appears in pm-suspend.log before freeze:
Fri Apr 4 23:42:00 CEST 2014: performing suspend

summary: - [Dell Inc. Latitude E7440] suspend/resume failure
+ [Dell Inc. Latitude E7440] suspend failure
Revision history for this message
Øyvind Stegard (oyvindstegard) wrote : Re: [Dell Inc. Latitude E7440] suspend failure
Download full text (3.6 KiB)

Not sure it is related to actual freezing incidents, but I saw this in kernel log at suspend:

Apr 2 09:46:26 lhs kernel: [ 305.963399] ------------[ cut here ]------------
 Apr 2 09:46:26 lhs kernel: [ 305.963436] WARNING: CPU: 2 PID: 2892 at /build/buildd/linux-3.13.0/drivers/gpu/drm/i915/intel_uncore.c:125 gen6_gt_check_fifodbg.isra.9+0x38/0x50 [i915]()
 Apr 2 09:46:26 lhs kernel: [ 305.963437] MMIO read or write has been dropped ffffffff
 Apr 2 09:46:26 lhs kernel: [ 305.963488] Modules linked in: ctr ccm snd_hda_codec_hdmi snd_hda_codec_realtek joydev dell_wmi sparse_keymap pn544_mei mei_phy pn544 hci nfc ppdev intel_rapl x86_pkg_temp_thermal intel_powerclamp cor
etemp dell_laptop dcdbas kvm_intel arc4 kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd psmouse serio_raw btusb wmi bnep rfcomm bluetooth iwlmvm mac80211 snd_h
da_intel snd_hda_codec snd_hwdep uvcvideo snd_pcm iwlwifi videobuf2_vmalloc videobuf2_memops videobuf2_core snd_page_alloc i915 snd_seq_midi snd_seq_midi_event snd_rawmidi parport_pc videodev video cfg80211 snd_seq snd_seq_device dr
m_kms_helper snd_timer drm lpc_ich snd mac_hid mei_me i2c_algo_bit mei soundcore lp nls_iso8859_1 parport e1000e ahci libahci ptp pps_core
 Apr 2 09:46:26 lhs kernel: [ 305.963491] CPU: 2 PID: 2892 Comm: kworker/u8:12 Not tainted 3.13.0-21-generic #43-Ubuntu
 Apr 2 09:46:26 lhs kernel: [ 305.963492] Hardware name: Dell Inc. Latitude E7440/07F3F4, BIOS A08 02/18/2014
 Apr 2 09:46:26 lhs kernel: [ 305.963515] Workqueue: i915 gen6_force_wake_work [i915]
 Apr 2 09:46:26 lhs kernel: [ 305.963520] 0000000000000009 ffff8803c2935d38 ffffffff81714914 ffff8803c2935d80
 Apr 2 09:46:26 lhs kernel: [ 305.963523] ffff8803c2935d70 ffffffff810676bd ffff880406c48020 ffff880406c48028
 Apr 2 09:46:26 lhs kernel: [ 305.963526] 0000000000000246 0000000000000000 0000000000000100 ffff8803c2935dd0
 Apr 2 09:46:26 lhs kernel: [ 305.963527] Call Trace:
 Apr 2 09:46:26 lhs kernel: [ 305.963534] [<ffffffff81714914>] dump_stack+0x45/0x56
 Apr 2 09:46:26 lhs kernel: [ 305.963538] [<ffffffff810676bd>] warn_slowpath_common+0x7d/0xa0
 Apr 2 09:46:26 lhs kernel: [ 305.963540] [<ffffffff8106772c>] warn_slowpath_fmt+0x4c/0x50
 Apr 2 09:46:26 lhs kernel: [ 305.963547] [<ffffffff8109a65a>] ? try_to_wake_up+0x1fa/0x2c0
 Apr 2 09:46:26 lhs kernel: [ 305.963568] [<ffffffffa02b6de8>] gen6_gt_check_fifodbg.isra.9+0x38/0x50 [i915]
 Apr 2 09:46:26 lhs kernel: [ 305.963585] [<ffffffffa02b6e8b>] __gen6_gt_force_wake_mt_put+0x2b/0x30 [i915]
 Apr 2 09:46:26 lhs kernel: [ 305.963602] [<ffffffffa02b6bb7>] gen6_force_wake_work+0x37/0x50 [i915]
 Apr 2 09:46:26 lhs kernel: [ 305.963606] [<ffffffff81083892>] process_one_work+0x182/0x450
 Apr 2 09:46:26 lhs kernel: [ 305.963610] [<ffffffff81084631>] worker_thread+0x121/0x410
 Apr 2 09:46:26 lhs kernel: [ 305.963614] [<ffffffff81084510>] ? rescuer_thread+0x3e0/0x3e0
 Apr 2 09:46:26 lhs kernel: [ 305.963617] [<ffffffff8108b302>] kthread+0xd2/0xf0
 Apr 2 09:46:26 lhs kernel: [ 305.963620] [<ffffffff8108b230>] ? kthread_create_on_node+0x1d0/0x1d0
 Apr 2 09:46:26 lhs ker...

Read more...

Revision history for this message
Diaa Sami (diaa.sami) wrote :

Are you talking about hibernation or sleep/s3 ? I have the same laptop (E7440 with Kubuntu beta 2 right now), sleep/s3 work reliably but not hibernation, I needed a small - but not easy to find out - tweak to make hibernation work well.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote : Re: [Bug 1301601] Re: [Dell Inc. Latitude E7440] suspend failure

Diaa Sami <email address hidden> writes:

> Are you talking about hibernation or sleep/s3 ? I have the same laptop
> (E7440 with Kubuntu beta 2 right now), sleep/s3 work reliably but not
> hibernation, I needed a small - but not easy to find out - tweak to make
> hibernation work well.

Actually, both are unreliable for me, but in different ways.

Sleep/s3: sometimes the machine fails to suspend (freezes before it can
power down). If suspend succeeds, then resume always works. That's this
bug report.

[Hibernate/s4: sometimes thaw/resume after boot results in black screen and
hang. Not this bug.]

Revision history for this message
penalvch (penalvch) wrote : Re: [Dell Latitude E7440] suspend failure

Øyvind Stegard, 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-3.15-rc1

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: latest-bios-a08
tags: added: needs-upstream-testing
summary: - [Dell Inc. Latitude E7440] suspend failure
+ [Dell Latitude E7440] suspend failure
Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Hangs do not occur if the lock screen is disabled at suspend. Perhaps this problem is somehow related to a bad interaction when lock screen is activating while suspend is kicking in.

(Not having a lock screen at suspend is rather bad for security, so I'd like to avoid it as a workaround.)

penalvch (penalvch)
description: updated
summary: - [Dell Latitude E7440] suspend failure
+ [Dell Latitude E7440] suspend freezes when lock screen activates
summary: - [Dell Latitude E7440] suspend freezes when lock screen activates
+ [Dell Latitude E7440] suspend sometimes freezes when lock screen
+ activates
Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

I feel certain now that this is somehow connected to lock screen, so I updated the bug title accordingly. Now on kernel 3.13.0-30-generic with the problem still present. Currently testing a workaround where suspend is stalled a few seconds by an /etc/pm/sleep.d script to allow lockscreen fade animation to complete before machine is actually suspended.

penalvch (penalvch)
tags: added: regression-potential
Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Stalling suspend for a few seconds did not help. Now testing console switch workaround (switch to VT-1 at suspend, then switch back to VT-7 at resume.). So far this is looking better, and it might be preventing the hanging lock screen. Need to observe longer for any conclusions.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Console switch workaround is reliable and prevents possible hangs on suspend when screen locking is enabled.

It's implemented with a simple script in /etc/pm/sleep.d/99switch_to_vt1:

#!/bin/sh
# Possible workaround for bug:
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1301601
#
# Switch to a VT before suspending and back after resume

case "$1" in
    resume|thaw)
        /bin/chvt 7
    ;;
    suspend|hibernate)
        /bin/chvt 1
    ;;
esac

description: updated
tags: added: latest-bios-a10
removed: latest-bios-a08
penalvch (penalvch)
tags: added: bios-outdated-a10
removed: latest-bios-a10
Revision history for this message
Samu Nuutamo (carbon) wrote :

A10 bios does not fix the freezing.

Revision history for this message
penalvch (penalvch) wrote :

Samu Nuutamo, thank you for your comment. So your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into the default Ubuntu kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

Revision history for this message
Lê Kiến Trúc (le-kien-truc) wrote :

I have the same problem. I will try the work around from Øyvind Stegard (oyvinst). The problem is also on Windows so I think this is just a work around.
Another problem is some time the keypress is repeat until I press another key. Both on Ubuntu and Windows

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote : Re: [Bug 1301601] Re: [Dell Latitude E7440] suspend sometimes freezes when lock screen activates

Lê Kiến Trúc <email address hidden> writes:

> I have the same problem. I will try the work around from Øyvind
> Stegard (oyvinst). The problem is also on Windows so I think this is
> just a work around. Another problem is some time the keypress is
> repeat until I press another key. Both on Ubuntu and Windows

For this matter, I have had success with WORKAROUND-2, and thus I am
able to keep my lock screen on suspend. Not bullettproof, but I rarely
get suspend hangs now.

Do notice that since the time of this bug report, there have been
several kernel updates, so that might also matter. To determine if that
is the case, I'd have to run without any workarounds for a while and
look out for new hang incidents. Have you experienced the suspend hang
with the latest 14.04-kernel in -updates (kernel 3.13.0-36.63) ?

Slightly off topic, but:
Yeah, the current BIOS on this Dell model is obviously buggy. I did send
a complaint to Dell support. The support case was closed after some
dialogue (I ended up downgrading to BIOS A08), but I hope they forwarded
the technical matters to the right people and that a future BIOS version
will have more fixes for both keyboard, touchpad and suspend/resume.

Øyvind
--
< Øyvind Stegard
 < http://stegard.net/

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
Øyvind Stegard (oyvindstegard) wrote :

This is still happens with latest kernel 3.13.0-45-generic in Ubuntu 14.04, when no workaround is in place.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

I still get lockscreen freezes with suspend and kernel 3.16.0-36-generic (14.04 hardware enablement kernel).

penalvch (penalvch)
tags: added: utopic
Revision history for this message
Martin Grewe (mgrewe) wrote :

I can confirm this bug on kernel 3.19.3-3 in arch linux using systemd and laptop-mode-tools. Workaround 2 helps in most cases but I still got freezes sometimes. So this certainly is not ubuntu-specific.

Revision history for this message
Martin Grewe (mgrewe) wrote :

After some research I found errors related to i915 module (see some output attached).

I tried some kernel module parameters without success, but the solution that seems to work for me is disabling of SNA acceleration-backend following:
https://wiki.archlinux.org/index.php/Intel_graphics#SNA_issues

Would be great, if someone could confirm.

Revision history for this message
penalvch (penalvch) wrote :

Martin Grewe, it will help immensely if you filed a new report via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

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.