[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2023-12-07 Thread Martien Lagerweij
Outcome of testing with your kernel 6.5.0-2007-oem: 1) with your kernel batttery drain is 8% in 4 days; 2) with Ubuntu 22.04 6.2.0-37 kernel also 8% in 4 days; 3) with power reset workaround (see #49 above) it is 2% in 4 days. So my conclusion is that 6.5.0-2007-oem has same battery drain still.

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2023-11-25 Thread Martien Lagerweij
Thank you for this kernel, just booted with it an will report to you the outcome later. -- 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/1912935 Title: battery drain while notebook off /

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2023-11-15 Thread Kai-Heng Feng
Please see if the following kernel can solve the issue: https://people.canonical.com/~khfeng/lp1991663-take2/ The kernel puts ACPI devices to low power mode. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-12-22 Thread solax
Hi everyone, this morning, as usual since few months, battery was at 30% after normal switchoff yestarday. I have restarted my notebook, went into bios setup, then exit and restarted. Battery was at 100%. I did this test because I had the same behaviour few days ago, but I have realized only

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-12-12 Thread Alex Murray
** Information type changed from Public Security to Public -- 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/1912935 Title: battery drain while notebook off / shutdown Status in linux

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-12-12 Thread Martin Schreiber
** Information type changed from Public to Public Security -- 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/1912935 Title: battery drain while notebook off / shutdown Status in linux

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-07-11 Thread Martien Lagerweij
p.s. in the meantime i can still use the workaround as mentioned in #49: the power reset. that one still works perfectly, so i can rule out the bad battery in my case. hopefully the module that causes the drain can still be found. -- You received this bug notification because you are a member of

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-07-07 Thread Martien Lagerweij
No progress in ruling out modules, but have a very interesting finding to report: My laptop (see #45) is dualboot with Windows 11 and Ubuntu 22.04 LTS. Somewhere I read that powering down from Windows could result in 0% drain and with the previous Windows 10 that I had installed as other OS that

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-06-08 Thread Martien Lagerweij
Thank you for your answers. My latest version of the script already uses modprobe -rf (earlier version had rmmod). Am constrained at the moment in terms of time due to personal circumstances, but hope to send you within 1 week a list of modules that can be ruled out. -- You received this bug

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-06-07 Thread Kai-Heng Feng
I think `modprobe -r` may work better. Can you please list what modules are unloaded so we can rule them out? -- 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/1912935 Title: battery drain

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-06-03 Thread Martien Lagerweij
@kaihengfeng, the first test with unloading a limited amount of modules (due to rmmod -f limitations) did not result in 0% battery drain. So the next step would be a modified kernel that allows unloading all modules (see #56). Do you maybe have another suggestion of how to find out which module

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-06-01 Thread Ayush Kumar
I have hp pavillion au624tx and facing the face issue, which is very annoying. It consumes 3% of my battery each hour !! I think, it is something related to power-profiles-daemon, is it possible to switch cpu frequency to balance mode while it is shutting down ? -- You received this bug

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-05-31 Thread Martien Lagerweij
Did not manage to do a first test with all modules unloaded (many are in use), so made a simple script that runs rmmod on all loaded modules, logs the result and then shuts down the laptop. Running unmodified 5.15.0-33-generic Ubuntu kernel at the moment. To be able to use "rmmod -f" I would

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-05-30 Thread Kai-Heng Feng
I'd like to find out which power resource needs to be turn off. Can you please find out which module needs to be unload before shutdown can avoid the battery drain? -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-05-28 Thread Martien Lagerweij
I can confirm that the patch did not help prevent battery drain while the laptop was off. @Kai-Heng, do you think that the patch could work when placing it in the core.c file as mentioned in #22 and not cause the previous issue with NVIDIA Tegra of that original patch? -- You received this bug

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-05-27 Thread Michael Rickmann
Hello Kai-Heng, hello Martien, thank you for your efforts. I am here on Manjaro affected by this bug. My hardware is the same as in the description of this bug. I compared (a) standard Manjaro 5.17.9 kernel, (b) same with Kei-Heng’s 0001-PCI-Detach-PM-domain-on-shutdown.patch (#50), and (c)

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-05-26 Thread Martien Lagerweij
There was a compile error that I could easily fix: /home/martien/kernel/linux-5.15.0/drivers/pci/pci-driver.c:516:17: error: implicit declaration of function 'dev_pm_domain_detach' [-Werror=implicit-function-declaration] 516 | dev_pm_domain_detach(dev, true); |

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-05-26 Thread Martien Lagerweij
Thank you! Building the latest kernel (5.15.0-33 on Ubuntu 22.04) with your patch included. Will report back as soon as I have tested it (will be within a couple of days). -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-05-25 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch -- 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/1912935 Title: battery drain while notebook off / shutdown Status in linux package in Ubuntu: Confirmed Bug

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-05-25 Thread Kai-Heng Feng
Please give this patch a try. ** Patch added: "0001-PCI-Detach-PM-domain-on-shutdown.patch" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1912935/+attachment/5592976/+files/0001-PCI-Detach-PM-domain-on-shutdown.patch -- You received this bug notification because you are a member of

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-05-25 Thread Martien Lagerweij
Somehow it did make a difference a couple of times, but unfortunately not always: the last time I thought I had it configured the right way finally by adding the 'acpi_osi=!' part, and it did work after the first reboot and shutdown. But then after I read your last comment #48 I noticed again the

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-05-07 Thread asgard2
@mlagerweij I tried this by editing the grub boot settings, unfortunately it doesn't make a difference on my hardware, the battery is drained. So far, the only option is to choose no shutdown to prevent rapid discharge, which is annoying. -- You received this bug notification because you are a

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-04-27 Thread Martien Lagerweij
Since there is no patch yet, I am using this work-around for my HP laptop (hw/sw details: see #45): - put this in /etc/default/grub (in my setup it is only changing the default value of that var) GRUB_CMDLINE_LINUX_DEFAULT="acpi_osi=! \"acpi_osi=Windows 2015\" " - then run this command to

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2022-04-23 Thread asgard2
still the same problem at ubuntu 22.04 with kernel 5.15.0-25 ... -- 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/1912935 Title: battery drain while notebook off / shutdown Status in

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-11-30 Thread Martien Lagerweij
I can confirm that this affects my HP Elitebook 1030 G1 laptop with Intel Core m7-6Y75 processor. OS: Ubuntu 20.04.3 LTS Kernel: 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 -- You received this bug notification because you are a member of Kernel Packages, which is

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-11-17 Thread Hemanth V. Alluri
Narrowed it down a bit. 4.19.208-1 does not exhibit any battery drain issues when sleeping sometime before powering off. - 0% in 7 hours (97% -> 97%) - 0% in 5 hours (100% -> 100%) 5.4.150-1 does. - 54% in 10 hours (91% -> 37%) - >34% in 12 hours (34% -> Dead) Could someone else with

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-11-14 Thread Hemanth V. Alluri
I ran one more test (twice) since my last comment. Following the resolution of a StackExchange answer I found [1], I can confirm that when I run Manjaro on Linux 4.14.248-1, even with sleep/suspend, I don't face any heavy overnight battery drain. == Test 4: 1. Boot (and wait a few

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-11-13 Thread Hemanth V. Alluri
I've collected some more data and it seems to suggest that maybe suspend/sleep has something to do with this? = Test 1: 1. Boot (and wait a few seconds after signing in). 2. Suspend/Sleep (using the "sleep" button from Manjaro/KDE's GUI). 3. Wait 20 seconds. 4. Wake from sleep.

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-11-12 Thread Hemanth V. Alluri
Oh, I should mention that I faced the same issue when running Ubuntu 18.04 (DE: XFCE) last year. Sadly, I don't recall which version of the kernel I was running - the damage to my battery ended up getting so bad that by the end of the year, my battery lost it's capacity to hold charge and I had to

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-11-12 Thread Hemanth V. Alluri
Hello. I would just like to mention that I, too, face this same exact issue. I'm running Manjaro and can confirm that I observe this issue on both Linux 5.10.70-1 and Linux 5.13.9-2. After a full week of testing I can confirm that I face this power drain only when gracefully shutting down from

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-10-03 Thread asgard2
@kaihengfeng Please let me know as soon as you have a new kernel to test. -- 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/1912935 Title: battery drain while notebook off / shutdown

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-09-27 Thread Aarne Rantala
My laptop is HP Pavilion 15-CS3816NO, based on Intel i5 (_not_ AMD Ryzen). The problem is intermittent - when I powerup it after two days poweroff sometimes battery has drained 2%, sometimes 26%, so I have to powerup the laptop at least twice a week just in order to prevent battery damage. I have

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-09-13 Thread Nolt
@kaihengfeng Sorry for delay reply. Yes mine laptop is based on AMD Ryzen 5 3500U with integrated Vega 8. (HP Laptop 15s-eq0035nw) -- 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/1912935

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-08-22 Thread asgard2
@kaihengfeng Thank you for your help. Shutdown with this kernel (linux-image-5.14.0-rc6+_5.14.0-rc6+-1_amd64) at ubuntu 20.04: 12h - 7% battery decrease 23h - 13% battery decrease Unfortunately there is no improvement in energy consumption. -- You received this bug notification because you

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-08-20 Thread Kai-Heng Feng
Can you please give this kernel a try: https://people.canonical.com/~khfeng/lp1912935-d3cold/ -- 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/1912935 Title: battery drain while notebook

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-08-14 Thread asgard2
@kaihengfeng You mean, maybe only amd devices are affected? If I search the web, the "HP 15s-eq0057nw" always has an amd core (Ryzen 5 3500U). -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-08-10 Thread Kai-Heng Feng
Nolt, is your laptop also AMD based? -- 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/1912935 Title: battery drain while notebook off / shutdown Status in linux package in Ubuntu:

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-08-10 Thread Nolt
@asgard2 Didn't tried that but I will today. Rebooting to another OS only to shut it down is horror, I needed Windows only to upgrade BIOS (had a hope maybe this resolve mine issue). And yea I live with this bug since October 2020, back then I upgraded to alpha Ubuntu 21.04 because I thought

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-08-10 Thread asgard2
@Nolt Booting to Windows is not required, your can press the power button from grub menu. @kaihengfeng I'm concerned, no update in months and it seems to affect a lot of devices. Most of the users may not notice the increased energy consumption with daily use in home office. -- You received

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-08-10 Thread Nolt
Same here I have HP 15s-eq0057nw, tried almost everything and battery drain exist while I shutdown laptop from Ubuntu. If I reboot to Windows and shutdown from Windows there is no battery drain. So for now I unfortunately have to dualboot to Windows and shutdown from Windows. -- You received

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-03-21 Thread Michael Rickmann
@asgard2 and @Kai-Heng Feng Thank you for working this out. I have the same type of notebook as asgard2 has and the same problem, using Manjaro though. The notebook is seemingly powered off and looses 10% battery charge over night. I tried 5.4, 5.10 and 5.11 kernels. Hopefully an ACPI-specific

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-03-14 Thread asgard2
@kaihengfeng Thanks for your support, is there any update in this issue? -- 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/1912935 Title: battery drain while notebook off / shutdown

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-02-03 Thread Kai-Heng Feng
The author is going to work on an alternative approach. -- 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/1912935 Title: battery drain while notebook off / shutdown Status in linux

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-02-03 Thread asgard2
@kaihengfeng Awesome, battery is still on the same percentage. I need this fix. -- 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/1912935 Title: battery drain while notebook off / shutdown

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-02-02 Thread asgard2
@kaihengfeng Your kernel is installed. At a first 10 hour test, it stopped on the same percentage. With the previous kernel impossible. I will check again tomorrow! But I have no wifi or other network connection, the module is not building (same on the mainline kernel). Would be an

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-02-01 Thread Kai-Heng Feng
Kernel with the patch included: https://people.canonical.com/~khfeng/lp1912935/ -- 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/1912935 Title: battery drain while notebook off / shutdown

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-02-01 Thread asgard2
@kaihengfeng I tested the mainline kernel 5.11, version rc5 has the same battery drain. How can I test the patch, or is it integrated in rc5? -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-02-01 Thread Kai-Heng Feng
Potential solution: https://lore.kernel.org/linux-acpi/20201201213019.1558738-1-furq...@google.com/T/#m8a1f86c7024264201eac37223594c5d15112ae73 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-02-01 Thread Kai-Heng Feng
Please test latest mainline kernel: https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.11-rc5/amd64/ -- 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/1912935 Title: battery drain while

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-01-30 Thread asgard2
** Description changed: Hello, my battery drains around 15 to 20 percent a day when shutdown on linux ubuntu. It is an HP notebook HP 15s-eq0355ng , Ryzen 5 3500U , Vega8 . Tested: - with ubuntu 20.04 - Kernel 5.4, 5.8 (hwe) and the current mainline kernel 5.11 (rc4) - no

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-01-24 Thread asgard2
** Description changed: Hello, my battery drains around 15 to 20 percent a day when shutdown on linux ubuntu. It is an HP notebook HP 15s-eq0355ng , Ryzen 5 3500U , Vega8 . Tested: - with ubuntu 20.04 - Kernel 5.4, 5.8 (hwe) and the current mainline kernel 5.11 - no usb

[Kernel-packages] [Bug 1912935] Re: battery drain while notebook off / shutdown

2021-01-24 Thread asgard2
apport information ** Tags added: apport-collected focal ** Description changed: Hello, my battery drains around 15 to 20 percent a day when shutdown on linux ubuntu. It is an HP notebook HP 15s-eq0355ng , Ryzen 5 3500U , Vega8 . Tested: - with ubuntu 20.04 - Kernel 5.4,