You are not logged in.

#1 2018-07-09 21:29:23

ztheoz
Member
Registered: 2018-07-02
Posts: 3

Laptop's battery drains when shutdown

Hi,
I've installed Archlinux on my laptop a few days ago. I've noticed a problem when my laptop is shutdown : I loose battery (between 2% - 5% during a full night).
When my computer is shutdown, I can hear a little noise coming from my computer, so I think that a component is not fully shutdown.

I've got an Acer Swift 1 (SF114-31-P9N8), with the latest kernel (4.17.4-1-ARCH), and I've also installed manjaro, but I've got the same issue.
I've read that it could be because of WoL, but the option doesn't appear in my BIOS, so I think it's not linked.

However, I've found a workaround : when I hit "shutdown' in KDE, the system launch a script that runs the command "halt". Then I just have to press the power button until the computer turns off. I know it's not a good solution, so I'd like to fix this problem using the right way.

I hope someone will be able to help me,
Thanks!

Offline

#2 2018-07-10 11:04:39

fijit
Member
Registered: 2012-07-06
Posts: 19

Re: Laptop's battery drains when shutdown

Two things I would check that might be drawing power
- WoL. Even if there is no bios option, check whether it is enabled for your adaptor https://wiki.archlinux.org/index.php/Wa … figuration
- wake on usb. Look for EHC or XHC in /proc/acpi/wakeup

Offline

#3 2018-07-17 17:54:07

ztheoz
Member
Registered: 2018-07-02
Posts: 3

Re: Laptop's battery drains when shutdown

fijit wrote:

Two things I would check that might be drawing power
- WoL. Even if there is no bios option, check whether it is enabled for your adaptor https://wiki.archlinux.org/index.php/Wa … figuration
- wake on usb. Look for EHC or XHC in /proc/acpi/wakeup

Thanks for the anwser.
I've ran the command cat /proc/acpi/wakeup*, and it gave me :
XHC1      S3    *enabled   pci:0000:00:14.0
BRCM      S0    *disabled
BRC1      S0    *disabled
HDEF      S4    *disabled  pci:0000:00:1b.0
RP01      S4    *disabled  pci:0000:00:1c.0
PXSX      S4    *disabled
RP02      S4    *disabled
PXSX      S4    *disabled
RP03      S0    *disabled  pci:0000:00:1c.2
PXSX      S4    *disabled  pci:0000:02:00.0
RP04      S4    *disabled
PXSX      S4    *disabled
LID0      S4    *enabled   platform:PNP0C0D:00

So I've seen that "XHC1" is enabled, so this might be at the origin of the issue.
But I don't know how to disable, anyone have an idea?
Thanks

Offline

#4 2018-07-18 09:21:29

fijit
Member
Registered: 2012-07-06
Posts: 19

Re: Laptop's battery drains when shutdown

echo "XHC1" > /proc/acpi/wakeup

will toggle it.
Might also be worth checking whether there is a BIOS option for this. There is on my dell laptop.

Offline

Board footer

Powered by FluxBB