You are not logged in.

#1 2018-05-02 05:27:30

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Battery draining when power off-ed

Hello,

i have a HP laptop (17-AK010NM A10-9620P).

The problem is that when i shutdown it it drains a battery of about 10% overnight (no USB is connected to it). I have tried different solutions, like disable Waken on Lan to no avail.

If i shutdown it from Windows and leavie it over night i get no similar problems.

In BIOS i do not have any options to disable USB charge.

Does anybody experience similar problems?

P.S. I had a hard time to enable wireless card and had to compile driver by myself (RTL8723DE. Is here perhaps any problem)?

LSPCI:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1576
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1577
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Carrizo (rev ca)
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157b
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 157c
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 157c
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157b
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 157c
00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1578
00:09.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157d
00:09.2 Audio device: Advanced Micro Devices, Inc. [AMD] Device 157a
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 20)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 49)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 49)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 4a)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.7 SD Host controller: Advanced Micro Devices, Inc. [AMD] FCH SD Flash Controller (rev 01)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1570
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1571
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1572
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1573
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1574
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1575
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723
03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445] (rev ff)


LSHW:

  description: Computer
    width: 64 bits
    capabilities: smp vsyscall32
  *-core
       description: Motherboard
       physical id: 0
     *-memory
          description: System memory                                                                          
          physical id: 0                                                                                      
          size: 15GiB                                                                                         
     *-cpu                                                                                                    
          product: AMD A10-9620P RADEON R5, 10 COMPUTE CORES 4C+6G                                            
          vendor: Advanced Micro Devices [AMD]                                                                
          physical id: 1                                                                                      
          bus info: cpu@0                                                                                     
          size: 2281MHz                                                                                       
          capacity: 2500MHz                                                                                   
          width: 64 bits                                                                                      
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp x86-64 constant_tsc rep_good acc_power nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb bpext ptsc mwaitx cpb hw_pstate vmmcall fsgsbase bmi1 avx2 smep bmi2 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov cpufreq
     *-pci:0
          description: Host bridge
          product: Advanced Micro Devices, Inc. [AMD]
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 00
          width: 32 bits
          clock: 33MHz
        *-generic:0 UNCLAIMED
             description: IOMMU
             product: Advanced Micro Devices, Inc. [AMD]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 0.2
             bus info: pci@0000:00:00.2
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: latency=0
        *-display
             description: VGA compatible controller
             product: Carrizo
             vendor: Advanced Micro Devices, Inc. [AMD/ATI]
             physical id: 1
             bus info: pci@0000:00:01.0
             version: ca
             width: 64 bits
             clock: 33MHz
             capabilities: vga_controller bus_master cap_list rom
             configuration: driver=amdgpu latency=0
             resources: irq:38 memory:e0000000-efffffff memory:d0800000-d0ffffff ioport:5000(size=256) memory:d1500000-d153ffff memory:c0000-dffff
        *-multimedia:0
             description: Audio device
             product: Kabini HDMI/DP Audio
             vendor: Advanced Micro Devices, Inc. [AMD/ATI]
             physical id: 1.1
             bus info: pci@0000:00:01.1
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:44 memory:d1560000-d1563fff
        *-pci:0
             description: PCI bridge
             product: Advanced Micro Devices, Inc. [AMD]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 2.2
             bus info: pci@0000:00:02.2
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:26 ioport:4000(size=4096) memory:d1400000-d14fffff
           *-network
                description: Ethernet interface
                product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:01:00.0
                logical name: eno1
                version: 15
                serial: ac:e2:d3:0f:be:e9
                size: 10Mbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
                resources: irq:36 ioport:4000(size=256) memory:d1404000-d1404fff memory:d1400000-d1403fff
        *-pci:1
             description: PCI bridge
             product: Advanced Micro Devices, Inc. [AMD]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 2.3
             bus info: pci@0000:00:02.3
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:27 ioport:3000(size=4096) memory:d1300000-d13fffff
           *-network
                description: Wireless interface
                product: Realtek Semiconductor Co., Ltd.
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:02:00.0
                logical name: wlo1
                version: 00
                serial: b0:52:16:ab:24:63
                width: 64 bits
                clock: 33MHz
                capabilities: bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=rtl8723de driverversion=4.15.0-20-generic firmware=N/A ip=192.168.0.28 latency=0 link=yes multicast=yes wireless=IEEE 802.11
                resources: irq:42 ioport:3000(size=256) memory:d1300000-d130ffff
        *-pci:2
             description: PCI bridge
             product: Advanced Micro Devices, Inc. [AMD]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 3.1
             bus info: pci@0000:00:03.1
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:29 ioport:2000(size=4096) memory:d1200000-d12fffff ioport:c0000000(size=270532608)
           *-generic
                description: Unassigned class
                product: Illegal Vendor ID
                vendor: Illegal Vendor ID
                physical id: 0
                bus info: pci@0000:03:00.0
                version: ff
                width: 32 bits
                clock: 66MHz
                capabilities: bus_master vga_palette cap_list rom
                configuration: driver=amdgpu latency=255 maxlatency=255 mingnt=255
                resources: irq:40 memory:c0000000-cfffffff memory:d0000000-d01fffff ioport:2000(size=256) memory:d1200000-d123ffff memory:d1240000-d125ffff
        *-generic:1 UNCLAIMED
             description: Encryption controller
             product: Advanced Micro Devices, Inc. [AMD]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 8
             bus info: pci@0000:00:08.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: latency=0
             resources: memory:d1540000-d155ffff memory:d1100000-d11fffff memory:d1570000-d1570fff memory:d156a000-d156bfff
        *-multimedia:1
             description: Audio device
             product: Advanced Micro Devices, Inc. [AMD]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 9.2
             bus info: pci@0000:00:09.2
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:45 memory:d1564000-d1567fff
        *-usb:0
             description: USB controller
             product: FCH USB XHCI Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 10
             bus info: pci@0000:00:10.0
             version: 20
             width: 64 bits
             clock: 33MHz
             capabilities: xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:18 memory:d1568000-d1569fff
        *-storage
             description: SATA controller
             product: FCH SATA Controller [AHCI mode]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 11
             bus info: pci@0000:00:11.0
             version: 49
             width: 32 bits
             clock: 66MHz
             capabilities: storage ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=64
             resources: irq:19 ioport:5118(size=8) ioport:5124(size=4) ioport:5110(size=8) ioport:5120(size=4) ioport:5100(size=16) memory:d156c000-d156c3ff
        *-usb:1
             description: USB controller
             product: FCH USB EHCI Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 12
             bus info: pci@0000:00:12.0
             version: 49
             width: 32 bits
             clock: 66MHz
             capabilities: ehci bus_master cap_list
             configuration: driver=ehci-pci latency=32
             resources: irq:18 memory:d156e000-d156e0ff
        *-serial
             description: SMBus
             product: FCH SMBus Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 4a
             width: 32 bits
             clock: 66MHz
             configuration: driver=piix4_smbus latency=0
             resources: irq:0
        *-isa
             description: ISA bridge
             product: FCH LPC Bridge
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 14.3
             bus info: pci@0000:00:14.3
             version: 11
             width: 32 bits
             clock: 66MHz
             capabilities: isa bus_master
             configuration: latency=0
        *-generic:2
             description: SD Host controller
             product: FCH SD Flash Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 14.7
             bus info: pci@0000:00:14.7
             version: 01
             width: 64 bits
             clock: 66MHz
             capabilities: bus_master cap_list
             configuration: driver=sdhci-pci latency=39
             resources: irq:16 memory:d156d000-d156d0ff
     *-pci:1
          description: Host bridge
          product: Advanced Micro Devices, Inc. [AMD]
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 101
          bus info: pci@0000:00:02.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:2
          description: Host bridge
          product: Advanced Micro Devices, Inc. [AMD]
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 102
          bus info: pci@0000:00:03.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:3
          description: Host bridge
          product: Advanced Micro Devices, Inc. [AMD]
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 103
          bus info: pci@0000:00:09.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:4
          description: Host bridge
          product: Advanced Micro Devices, Inc. [AMD]
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 104
          bus info: pci@0000:00:18.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:5
          description: Host bridge
          product: Advanced Micro Devices, Inc. [AMD]
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 105
          bus info: pci@0000:00:18.1
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:6
          description: Host bridge
          product: Advanced Micro Devices, Inc. [AMD]
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 106
          bus info: pci@0000:00:18.2
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:7
          description: Host bridge
          product: Advanced Micro Devices, Inc. [AMD]
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 107
          bus info: pci@0000:00:18.3
          version: 00
          width: 32 bits
          clock: 33MHz
          configuration: driver=k10temp
          resources: irq:0
     *-pci:8
          description: Host bridge
          product: Advanced Micro Devices, Inc. [AMD]
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 108
          bus info: pci@0000:00:18.4
          version: 00
          width: 32 bits
          clock: 33MHz
          configuration: driver=fam15h_power
          resources: irq:0
     *-pci:9
          description: Host bridge
          product: Advanced Micro Devices, Inc. [AMD]
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 109
          bus info: pci@0000:00:18.5
          version: 00
          width: 32 bits
          clock: 33MHz
     *-scsi
          physical id: 2
          bus info: usb@3:4
          logical name: scsi1
          capabilities: emulated scsi-host
          configuration: driver=usb-storage
        *-cdrom
             description: DVD-RAM writer
             product: DVDRW GUE1N
             vendor: hp
             physical id: 0.0.0
             bus info: scsi@1:0.0.0
             logical name: /dev/cdrom
             logical name: /dev/cdrw
             logical name: /dev/dvd
             logical name: /dev/dvdrw
             logical name: /dev/sr0
             version: UE00
             capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
             configuration: status=nodisc

I search over internet for 2 weeks now but i couldn't find any solution.

Thanks for any help.

Last edited by Shark (2018-05-11 19:46:13)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#2 2018-05-02 15:41:18

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: Battery draining when power off-ed

Sorry, don't know about HP laptops, but if you look at my post here you will see that a couple of Toshiba netbooks defied every attempt to stop their batteries draining.

Offline

#3 2018-05-02 17:12:55

TheSgtBilko
Member
Registered: 2013-08-13
Posts: 87

Re: Battery draining when power off-ed

wake-on-lan or similar enabled in BIOS?

Offline

#4 2018-05-02 17:45:55

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Battery draining when power off-ed

@Hi ninian
Sorry to hear that. Hope the issue will be solved soon for your Toshiba as well as my HP. I gues it has to be some underlying thing in kernel that keeps motherboard or something alive after shutdown because i do not have similar issues if i shutdown it with Windows.

@Hi TheSgtBilko

No WOL enabled in BIOS (there is no such functionality), i disabled WOL in Arch.


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#5 2018-05-02 18:58:24

seth
Member
Registered: 2012-09-03
Posts: 50,983

Re: Battery draining when power off-ed

Define "shutdown" - it's perfectly normal to loose battery in S0 - S3, to a certain extent in S4 (for the CMOS), but not in S5 or S6 (aside the chemical self-discharge of the battery)
Also notice that Windows 10 "fastboot" actually means that you "shut down" the system to S4, what can confuse the ACPI if you boot another OS while windows is hibernating.

Offline

#6 2018-05-03 17:43:18

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Battery draining when power off-ed

@seth hi
I shutdown computer under KDE (no hibernation), i also tried
"systemctl poweroff"
and also with shutdown command.

I disabled fastboot in WIndows and hope i will get some better result in the morning. Also, last night i went to Windows, restart it and boot it into Arch and then shutdown it. In the morning battery was as usually drained for about 8%.

I installed linux-amd-staging-drm-next-git kernel, perhaps this one will yield better results.

I guess Linux is missing some hardware when it shutdowns which in consequence drains the battery, i do not know.

Last edited by Shark (2018-05-03 17:53:00)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#7 2018-05-04 05:55:25

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Battery draining when power off-ed

So, changing to AMD kernel and disabling fastboot in Windows didn't make any changes.

I guess i will have to use Windows for unforseeable future because i do not want draining my battery and i do not want to restart Linux, go to Windows and shutdown it from there in order for laptop to be properly shutdown.

Really a pitty i have to do this, i have never experienced such a problems with Linux.

Thank you for your help.


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#8 2018-05-04 06:37:39

seth
Member
Registered: 2012-09-03
Posts: 50,983

Re: Battery draining when power off-ed

You could try to cheat the BIOS into believing its running some windows:

acpi_osi=! acpi_osi="Windows 2009"

Ftr:

I guess Linux is missing some hardware when it shutdowns which in consequence drains the battery, i do not know.

No. Linux terminates alls processes, stalls the kernel and then tells the BIOS to enter a certain state (S5 or S6 for power-off). It's then the BIOS' (or rather UEFIs) job to do the rest, the OS is gone at this point.
However, ACPI issues are all too common :-(

Offline

#9 2018-05-04 10:23:05

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: Battery draining when power off-ed

I've not tested, but it seems:

shutdown -H now

...will HALT every software running on it without actually powering off the system, then you can use the hardware power button; maybe it is valid as a temporary workaround.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#10 2018-05-04 16:00:32

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Battery draining when power off-ed

seth wrote:

You could try to cheat the BIOS into believing its running some windows:

acpi_osi=! acpi_osi="Windows 2009"

Interesting hack, but battery drains despite changes made.


kokoko3k wrote:

I've not tested, but it seems:

shutdown -H now

...will HALT every software running on it without actually powering off the system, then you can use the hardware power button; maybe it is valid as a temporary workaround.


Perhaps this could work. Do you think if i do this long-term that it could harm any device (SSD, graphic, RAM ...) in laptop?

I will also try live environment of the new FEDORA - just in case.

I was thinking Windows and UEFI can share some responsibility for the situation. In UEFI entry list i can still see old entries of openSUSE and Kubuntu for which efibootmanager is not able to delete it.  I will try to update them from Windows and see if that would work.

A desperate man solutions smile


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#11 2018-05-04 18:45:27

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: Battery draining when power off-ed

Shark wrote:

Perhaps this could work. Do you think if i do this long-term that it could harm any device (SSD, graphic, RAM ...) in laptop?

Now that i think of it, maybe (maybe), that could harm rotative disks, but not SSD, GPU or RAM.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#12 2018-05-04 19:37:42

seth
Member
Registered: 2012-09-03
Posts: 50,983

Re: Battery draining when power off-ed

If the hardware is totally broken ....
The power button is not supposed to abruptly cut power (what can indeed cause a rotating rw header to scratch over your drive) but to power off the system. It's bad to do that for a running system (because you leave it in an undefined state) but the kernel is halted and there's no systematic risc to the HW in any case.

Offline

#13 2018-05-05 15:25:46

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Battery draining when power off-ed

1.
@kokoko3k, seth

Thank you for explanations, i guess i will have to use HALT workaround. So i created this script for KDE to log out and then trigger HALT command:

#!/usr/bin/zsh

#Log out from KDE
qdbus org.kde.ksmserver /KSMServer logout 0 3 3 && sleep 3s

#Halt the system
sudo systemctl halt

But his one is obvious not working since it logs out and ends terminal session befor HALT command is executed. I will have to dig in a little bit more smile

So if i understand properly, this command will properly unmount all partitons (including NTFS) and take care of all systems, right?

2.

I tried Fedora Live system and shutdown laptop from there of but as expectedly didn't work.


3. Seth suggested this ACPI problem could be connected to UEFI. I tried first to clean up old UEFI entries with below command:

sudo efibootmgr -b 2 -B

This command almost do its job - it removes entries but they reappear after reboot. I laso tried inside Windows with Easyeufi to no avail. I have not UEFI shell although i can access Windows CMD - i have yet to find a proper command.

Last edited by Shark (2018-05-05 15:42:34)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#14 2018-05-05 16:00:50

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: Battery draining when power off-ed

Well, If logging out first is necessary (is it? Often i just open konsole to write poweroff), you may need to make a systemd user service containing the commands needed and call it instead.

Btw, does the power draining stops that way?


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#15 2018-05-05 16:36:40

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Battery draining when power off-ed

kokoko3k wrote:

Well, If logging out first is necessary (is it? Often i just open konsole to write poweroff), you may need to make a systemd user service containing the commands needed and call it instead.

Btw, does the power draining stops that way?

Ok, i will dig into systemd services and tried to make a script.

Otherwise, i tried yesterday wth HALT command and after seveal hours battery was 100%. I have yet to made some test but i guess this will do the job.

Now i have to figure out how to remove UEFI entries - i have a feeling it has to be done something with this.

Thank you for now.


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#16 2018-05-05 18:57:40

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Battery draining when power off-ed

Actually i tested more thorougly HALT command and it is not working, Maaaan ):

I believe it has to be something with UEFI because i found out how to enter into UEFI shell via  uefi-shell-git and i can remove entries but they reappeaer after reboot.

If physical shutdown doesn't help then this is really strange. Linux has to do something with communication to BIOS that something is not powered of, i suppose.

Last edited by Shark (2018-05-06 07:06:22)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#17 2018-05-06 13:47:46

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: Battery draining when power off-ed

Is the battery in good shape?
Are you 200% sure it only happens 'in linux'?


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#18 2018-05-08 19:27:11

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Battery draining when power off-ed

Hey guys ...

So, i did a bit of thinking and testing (some really stupid out of despair solutions) different configurations and if there wasn't you two guys i would never thought of it.

You mentioned that UEFI could be a culprit so i installed GRUB for GPT/Legacy boot configuration and it worked out smile no more battery draining if the system is booted via Legacy boot.

So, the problem is not solved per se but we do have a working workaround.

The other thing i noticed is that if i go to Windows' Login (display) manager and choose shutdown the battery would drain as well but now if i got the account and shutdown Windows from there of. Really strange.

It has to be a problem with UEFI but on HP website i can't find any updates for BIOS, none.

Thank you for your help, without you two i would stay on Windows for while.

Last edited by Shark (2018-05-08 19:27:49)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#19 2018-05-11 19:49:42

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Battery draining when power off-ed

Hi,

the problem has not gone away it just changed somehow. In the evening when i shutdown Arch till morning (8 hours) i do not notice any battery draining (in this period of time drains occurs only if booted from UEFI). But when i come home 8 hours later it drains battery for about 10%.

So i guess computer does something after 8 hours that drains battery - do you think it could be something with hwclock? Is it possible do disable it?

Thank you.


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

Board footer

Powered by FluxBB