[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-10-10 Thread Kai-Heng Feng
I was wrong, D0 is the correct state for the device, which doesn't have PM capability. Can you please install powertop and see the Package C-State count after S3? In addition to that, would it be possible to see how Windows behaves? -- You received this bug notification because you are a member

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-10-05 Thread Richard Ebeling
I just had the opportunity to measure a longer sleep with the rc1+ kernel. The battery drain is still as high as before. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1886920 Title:

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-09-01 Thread Richard Ebeling
Alright, here is the dmesg output for the rc1+ kernel. It still says power state D0 instead of D3 (Hope I didn't mess up anything this time): [ 65.241409] i801_smbus :00:1f.4: PCI PM: Suspend power state: D0 I did a quick test (about 30 minutes) on battery consumption yesterday, which also

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-09-01 Thread Richard Ebeling
Never mind, booted the wrong kernel (5.4.0). Will measure again. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1886920 Title: Battery drain during sleep. System suspended before kernel

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-09-01 Thread Richard Ebeling
1.28% battery drain per hour. dmesg still says: [ 5622.828022] i801_smbus :00:1f.4: PCI PM: Suspend power state: D0 ** Attachment added: "5.9.0_rc1+_1_dmesg.txt" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1886920/+attachment/5406429/+files/5.9.0_rc1+_1_dmesg.txt -- You

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-08-23 Thread Kai-Heng Feng
Please test this kernel: https://people.canonical.com/~khfeng/lp1886920/ -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1886920 Title: Battery drain during sleep. System suspended

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-08-23 Thread Richard Ebeling
output file of $ sudo acpidump -o acpidump.txt attached. ** Attachment added: "acpidump.txt" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1886920/+attachment/5403829/+files/acpidump.txt -- You received this bug notification because you are a member of Kernel Packages, which is

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-08-19 Thread Kai-Heng Feng
Note to myself to I don't need to re-read the source again: basically acpi_pm_device_sleep_state() finds the i801 controller's power state for S3 is D0. It should be D3 instead. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-08-19 Thread Kai-Heng Feng
[ 104.894933] i801_smbus :00:1f.4: PCI PM: Suspend power state: D0 Can you please attach acpidump? -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1886920 Title: Battery drain

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-08-19 Thread Richard Ebeling
Since some time passed, I took the freedom to use the up-to-date mainline kernel as of today (5.9-rc1) instead of 5.8-rc7 xhci_hcd printing "//Ding dong!" had me smiling. ** Attachment added: "dmesg.log"

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-07-28 Thread Kai-Heng Feng
Nothing suspicious, really. And the system seems to be too old to support pmc_core, so we can't check the SoC state easily. Please install latest mainline kernel: https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8-rc7/ Then boot with kernel parameter "dyndbg='file drivers/pci/* +p; file

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-07-28 Thread Richard Ebeling
I commented out the three lines in /etc/rc.local and did the following: $ echo "blacklist btusb" | sudo tee /etc/modprobe.d/blacklist-btusb.conf $ sudo update-initramfs -u $ sudo reboot now output of dmesg does not contain "Bluetooth" (case sensitive) anymore and `lsmod | grep bt` gives no

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-07-28 Thread Kai-Heng Feng
[ 33.395006] Bluetooth: hci0: command 0x0c03 tx timeout [ 34.316133] usb 1-7: USB disconnect, device number 2 [ 34.316302] Bluetooth: hci0: HCI reset during shutdown failed Can you please try blacklisting "btusb" instead of the custom script? -- You received this bug notification because

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-07-28 Thread Richard Ebeling
It is not possible to disable the Intel ME from the BIOS set up. I attached the result of running $ dmesg > dmesg.log after booting I rarely use bluetooth, so I keep it disabled. To automatically disable it after boot, I use rfkill in the rc.local file: ``` $ cat /etc/rc.local #!/bin/bash

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-07-28 Thread Kai-Heng Feng
Can you attach dmesg right after boot? Apparently the USB Bluetooth isn't working right. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1886920 Title: Battery drain during sleep.

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-07-27 Thread Kai-Heng Feng
Is it possible to disable Management Engine from BIOS? AFAIK Linux ME driver is fallible during system suspend. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1886920 Title: Battery

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-07-18 Thread Richard Ebeling
** Description changed: The same as https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1825636. kaihengfeng closed that one "Because there's no response from the original bug reporter." and asked to file a report for all devices affected, so here I am, duplicating the report.

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-07-18 Thread Richard Ebeling
$ cat /sys/power/mem_sleep s2idle [deep] --- For testing /sys/power/pm_async set to 0, I did: $ cat /sys/class/power_supply/BAT1/energy_now 838 $ cat /sys/class/power_supply/BAT0/energy_now 2046 $ date Sa 18. Jul 13:21:18 CEST 2020 $ echo 0 | sudo tee /sys/power/pm_async 0 $ #

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-07-17 Thread Kai-Heng Feng
Please also run the following before sleep and see if it helps: # echo 0 > /sys/power/pm_async -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1886920 Title: Battery drain during sleep.

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-07-17 Thread Kai-Heng Feng
Does /sys/power/mem_sleep default to s2idle? -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1886920 Title: Battery drain during sleep. System suspended before kernel suspends all

[Kernel-packages] [Bug 1886920] Re: Battery drain during sleep. System suspended before kernel suspends all tasks. Lenovo ThinkPad T460

2020-07-17 Thread Richard Ebeling
apport information ** Tags added: apport-collected focal ** Description changed: The same as https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1825636. kaihengfeng closed that one "Because there's no response from the original bug reporter." and asked to file a report for all