Laptop battery drains while suspend since 18.04 , even in deep sleep (STR)

Bug #1825841 reported by Raphael
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

1)
My laptop battery drains very fast while suspend, which prevent using suspend-to-ram as I almost always find the laptop shut down due to battery being empty.

I Observed this problem since my upgrade from 16.04 to 18.04 on my Laptop. It's Toshiba Portege. Suspend does work fine but battery drains while suspend; it was working pretty well in Ubuntu 16.04.

I suspect a kind of regression in the i915 driver for now, but did not find any evident of this.

After a suspend to ram, we can observe a kind of crash in the i915 driver suspend_late code :

[ 475.970946] ------------[ cut here ]------------
[ 475.970947] Display power well on
[ 475.971009] WARNING: CPU: 0 PID: 7579 at /build/linux-6ZmFRN/linux-4.15.0/drivers/gpu/drm/i915/intel_display.c:8696 assert_can_disable_lcpll+0x3b3/0x480 [i915]
[ 475.971010] Modules linked in: rfcomm ccm cmac bnep cdc_mbim uvcvideo cdc_wdm qcserial cdc_ncm usb_wwan usbserial usbnet mii btusb btrtl btbcm videobuf2_vmalloc btintel videobuf2_memops videobuf2_v4l2 videobuf2_core bluetooth videodev media ecdh_generic msr arc4 snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp iwlmvm kvm_intel kvm mac80211 irqbypass snd_seq intel_cstate intel_rapl_perf iwlwifi snd_seq_device snd_timer joydev cfg80211 input_leds serio_raw wmi_bmof snd rtsx_pci_ms memstick lpc_ich shpchp mei_me toshiba_acpi mei soundcore sparse_keymap toshiba_bluetooth industrialio tpm_infineon mac_hid sch_fq_codel parport_pc
[ 475.971045] ppdev lp parport ip_tables x_tables autofs4 algif_skcipher af_alg dm_crypt i915 crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc rtsx_pci_sdmmc i2c_algo_bit aesni_intel aes_x86_64 crypto_simd glue_helper cryptd psmouse drm_kms_helper syscopyarea ahci sysfillrect libahci sysimgblt e1000e fb_sys_fops drm rtsx_pci ptp pps_core video wmi
[ 475.971062] CPU: 0 PID: 7579 Comm: kworker/u16:7 Not tainted 4.15.0-47-generic #50-Ubuntu
[ 475.971063] Hardware name: TOSHIBA PORTEGE Z30-B/PORTEGE Z30-B, BIOS Version 3.20 04/09/2015
[ 475.971066] Workqueue: events_unbound async_run_entry_fn
[ 475.971087] RIP: 0010:assert_can_disable_lcpll+0x3b3/0x480 [i915]
[ 475.971088] RSP: 0018:ffffa96642bbfd00 EFLAGS: 00010286
[ 475.971089] RAX: 0000000000000000 RBX: ffff9bf98b0a8000 RCX: ffffffffbca62768
[ 475.971090] RDX: ffffffffbca62768 RSI: 0000000000000082 RDI: 0000000000000202
[ 475.971091] RBP: ffffa96642bbfd20 R08: 0000000000000000 R09: 0000000000000015
[ 475.971091] R10: 0000000000000600 R11: 0000000000000340 R12: ffff9bf98b0a8358
[ 475.971092] R13: ffff9bf98b0a8368 R14: ffffffffc0580baf R15: 0000000000000000
[ 475.971093] FS: 0000000000000000(0000) GS:ffff9bf9a1400000(0000) knlGS:0000000000000000
[ 475.971094] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 475.971095] CR2: 00007fb1afffeeb6 CR3: 000000011e20a005 CR4: 00000000003606f0
[ 475.971096] Call Trace:
[ 475.971117] hsw_enable_pc8+0x87/0x310 [i915]
[ 475.971129] i915_drm_suspend_late+0xdb/0x140 [i915]
[ 475.971141] i915_pm_suspend_late+0x20/0x30 [i915]
[ 475.971143] pm_generic_suspend_late+0x2e/0x40
[ 475.971145] pci_pm_suspend_late+0x31/0x40
[ 475.971147] dpm_run_callback+0x5a/0x150
[ 475.971149] ? pci_pm_poweroff_late+0x40/0x40
[ 475.971151] __device_suspend_late+0xc6/0x1d0
[ 475.971152] async_suspend_late+0x1f/0xa0
[ 475.971154] async_run_entry_fn+0x3c/0x150
[ 475.971156] process_one_work+0x1de/0x410
[ 475.971158] worker_thread+0x32/0x410
[ 475.971160] kthread+0x121/0x140
[ 475.971161] ? process_one_work+0x410/0x410
[ 475.971163] ? kthread_create_worker_on_cpu+0x70/0x70
[ 475.971166] ret_from_fork+0x35/0x40
[ 475.971167] Code: d5 ff 48 8b 83 18 07 00 00 e9 b0 fd ff ff 89 ce 4c 89 f7 e8 90 fc 1a fb 0f 0b e9 99 fc ff ff 48 c7 c7 c9 0b 58 c0 e8 7d fc 1a fb <0f> 0b e9 b5 fc ff ff 48 c7 c7 7a 0c 58 c0 e8 6a fc 1a fb 0f 0b
[ 475.971192] ---[ end trace 91209fe53f0c0cc2 ]---

By using a more recent kernel (4.18), I get a crash in the pc8 disable function. I am not sure whether this thread backtrace is responsible for the battery drain or not.

I also read Intel open source site to help debug this, without success for now :
* https://01.org/blogs/rzhang/2015/best-practice-debug-linux-suspend/hibernate-issues

The analyze_suspend.py script produced some bunch of data, if anyone needs them to understand what's happening while system is suspended, I can publish them.

Other sources of information I consulted :

* https://askubuntu.com/questions/1072066/sleep-mode-drains-battery-very-fast

* https://www.reddit.com/r/Dell/comments/8b6eci/xp_13_9370_battery_drain_while_suspended/

I confirm my system is going to "deep" sleep and not "s2idle" sleep mode, which would explain the battery drain...

Other information :

Description: Ubuntu 18.04.1 LTS
Release: 18.04

Version signature:
Ubuntu 4.15.0-47.50-generic 4.15.18

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-47-generic 4.15.0-47.50
ProcVersionSignature: Ubuntu 4.15.0-47.50-generic 4.15.18
Uname: Linux 4.15.0-47-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: developer 1892 F.... pulseaudio
 /dev/snd/controlC0: developer 1892 F.... pulseaudio
Date: Mon Apr 22 15:28:18 2019
HibernationDevice: RESUME=UUID=ccf63454-6e63-4ebe-978f-19247dbcf601
InstallationDate: Installed on 2018-03-17 (401 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
MachineType: TOSHIBA PORTEGE Z30-B
ProcEnviron:
 LANGUAGE=
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.15.0-47-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=1
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-47-generic N/A
 linux-backports-modules-4.15.0-47-generic N/A
 linux-firmware 1.173.3
SourcePackage: linux
UpgradeStatus: Upgraded to bionic on 2018-12-30 (112 days ago)
dmi.bios.date: 04/09/2015
dmi.bios.vendor: TOSHIBA
dmi.bios.version: Version 3.20
dmi.board.asset.tag: 0000000000
dmi.board.name: PORTEGE Z30-B
dmi.board.vendor: TOSHIBA
dmi.board.version: Version A0
dmi.chassis.asset.tag: 0000000000
dmi.chassis.type: 10
dmi.chassis.vendor: TOSHIBA
dmi.chassis.version: Version 1.0
dmi.modalias: dmi:bvnTOSHIBA:bvrVersion3.20:bd04/09/2015:svnTOSHIBA:pnPORTEGEZ30-B:pvrPT253E-025017FR:rvnTOSHIBA:rnPORTEGEZ30-B:rvrVersionA0:cvnTOSHIBA:ct10:cvrVersion1.0:
dmi.product.family: 0000000000
dmi.product.name: PORTEGE Z30-B
dmi.product.version: PT253E-025017FR
dmi.sys.vendor: TOSHIBA

Revision history for this message
Raphael (rcrc) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

What kernel version have this issue and what kernel version don't have?

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.