Laptop battery drains while suspend since 18.04 , even in deep sleep (STR)
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/
[ 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_
[ 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_
[ 475.971088] RSP: 0018:ffffa96642
[ 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: 000000000000000
[ 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_
[ 475.971129] i915_drm_
[ 475.971141] i915_pm_
[ 475.971143] pm_generic_
[ 475.971145] pci_pm_
[ 475.971147] dpm_run_
[ 475.971149] ? pci_pm_
[ 475.971151] __device_
[ 475.971152] async_suspend_
[ 475.971154] async_run_
[ 475.971156] process_
[ 475.971158] worker_
[ 475.971160] kthread+0x121/0x140
[ 475.971161] ? process_
[ 475.971163] ? kthread_
[ 475.971166] ret_from_
[ 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:/
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:/
* https:/
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-
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.15.0-47-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
Date: Mon Apr 22 15:28:18 2019
HibernationDevice: RESUME=
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-
PATH=(custom, no user)
LANG=fr_FR.UTF-8
SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
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.
dmi.board.name: PORTEGE Z30-B
dmi.board.vendor: TOSHIBA
dmi.board.version: Version A0
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: TOSHIBA
dmi.chassis.
dmi.modalias: dmi:bvnTOSHIBA:
dmi.product.family: 0000000000
dmi.product.name: PORTEGE Z30-B
dmi.product.
dmi.sys.vendor: TOSHIBA
This change was made by a bot.