Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-28-2018, 03:30 AM
|
#1
|
Member
Registered: Sep 2010
Posts: 90
Rep:
|
Battery draining after shutdown
Hello,
i have a HP laptop (17-AK010NM A10-9620P) and run Kubuntu 18.04 (also tried on 16.04).
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 i get no similar problems. This is really strange to me.
Does anybody experience similar problems?
P.S. I had hard time to enable wireless card and had to compile driver by myself (RTL8723DE. Is here perhaps any problem?
LSPCI:
Code:
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)
Code:
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
Thank you for help.
Regards,
Sharky
Last edited by Shark82; 04-28-2018 at 03:31 AM.
|
|
|
04-28-2018, 12:19 PM
|
#2
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,263
|
The battery on my old Thinkpad slowly runs down too. I'd always assumed it was just the inevitable result of using an old battery. A quick check on-line shows a lot of people with a similar problem, some with Windows and even some with newish hardware. The thing to try is to remove the battery over night and see if it still runs down. If it doesn't, then the problem is obviously the computer.
Go to the BIOS Power Settings and make sure that USB charging is always disabled, except when the computer is running, otherwise the usb ports are being kept live.
Another problem that can arise is when you select "shutdown" in the menu, but immediately close the lid: that forces it into sleep mode before the OS has had time to shutdown. Make sure that all the little lights are off before closing.
|
|
|
04-28-2018, 01:32 PM
|
#3
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
If windows doesn't then I'd think that you are really going into hibernate and not shutdown. Might use systemd shutdown command. I forget new naming. Acpi issue?
Getting hung in power off task.?
" The systemd init system provides additional commands that perform the same functions; for example systemctl reboot or systemctl poweroff." https://www.debian.org/releases/stab...h08s01.html.en
Last edited by jefro; 04-28-2018 at 01:34 PM.
|
|
|
04-30-2018, 01:52 AM
|
#4
|
Member
Registered: Sep 2010
Posts: 90
Original Poster
Rep:
|
Hello both for a reply.
@DavidMcCann
I don't have any such settings in BIOS to disable USB charge. The other thing is that i almost never close the lid so this can't be the issue. And the funny thing is Windows do not give me such problems.
@Jefro
In KDE session in terminal i wrote "systemctl poweroff" and the computer shut down but in the morning the problem still persists. I doubt it goes to hibernate mode because i do not have a SWAP partition.
Do you have perhaps any other suggestions?
Thank you.
|
|
|
04-30-2018, 03:43 AM
|
#5
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
$ sudo shutdown -H -P +0
-H = halt
-P = power off
+0 = now
The syntax of shutdown changed with systemd. Some things still us OLD methods $(shutdown -h now), which doesn't always do the things on NEW hardware.
There could also be extras like usb ports ON, wake on lan, and such which DO have UEFI options. Although buried in some cases, you have to disable / enable and such various options to "expose" those options. I had to delete windows keys just to have the secure boot disable save between boots on my hp 15 machines. ba053nr / bw053od
As a work around you might press and hold the power button 5+ seconds after shutting down to hardware shutdown. Although not the best practice when it comes to spinning rust drives.
|
|
|
04-30-2018, 02:00 PM
|
#6
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
Reboot to only bios and then use power button to power off to see if it fails.
If tests show only some linux then I'd think it's acpi issue somehow. A very slight issue with how power off may be affecting daughter boards for power or battery.
Guess you could do normal shutdown. Take battery out and ac power off for a few minutes then replace battery to see if it is hung in a power state.
Get a live usb or dvd of some other distro and retest.
|
|
|
05-01-2018, 01:16 AM
|
#7
|
Member
Registered: Sep 2010
Posts: 90
Original Poster
Rep:
|
Hi,
@Shadow7
i tried "sudo shutdown -H -P +0" and "systemctl poweroff" to no avail.
@Jefro
I rebooted to windows and shut it down from there of and there was no battery draining. Something is really going on with Kubuntu. I also disable WOL, no changes here as well.
I will try with some other distro.
|
|
|
05-12-2018, 05:05 PM
|
#8
|
Member
Registered: Sep 2010
Posts: 90
Original Poster
Rep:
|
Hey everybody ...
So i tried Arch Linux and i got no different results. This is what i get from some other tweaks:
- instead of booting from UEFI i decided to try boot from BIOS. This gives me some different results. Before, battery started to drain immeadiately after shutdown but now it starts to draing after about 8 hours or so - really strange
- Windows: if i shutdown from Windows (from specific account) there is no battery draining. But if i shutdown system from Windows' login (display) manager battery drains
- BIOS is updated, no improvements whatsoever
Is it possible the culprit could be something about hwclock? I read somewhere that disabling hwclock helped somebody. For a testing purposes i set hwclock to my system clock.
If you got any ideas, please, i am really desperate here.
|
|
|
05-13-2018, 01:03 AM
|
#9
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
if you don't have an actual kill switch, or don't take the battery out, it will drain even when the laptop is completely switched off. not much (maybe depending on its age?), but definitely will.
this is not operating system or driver dependent.
|
|
|
05-13-2018, 06:54 PM
|
#10
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
Maybe Windows hibernates, which uses no power, but Linux suspends, which uses power to refresh the memory contents. There is a setting for the power button to make it suspend, hibernate or do nothing. It's in the power settings. Check what it's set to. I think it defaults to suspend.
|
|
|
05-14-2018, 01:39 AM
|
#11
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Linux can hibernate or suspend.
Hibernate should be the same as completely powered off, with regard to power consumption.
suspend will be more.
OP said "shutdown", though.
|
|
|
05-15-2018, 05:20 PM
|
#12
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
Yes, it can. But you have to tell it which one if you have a preference. I'm pretty sure software shutdown neither suspends nor hibernates. Pressing the power button can be set to suspend, hibernate or do nothing.
|
|
|
05-15-2018, 08:15 PM
|
#13
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
I agree that the way the OP is shutting down may be an issue.
Exactly how do you shut linux down?
|
|
|
05-16-2018, 08:13 AM
|
#14
|
Member
Registered: Sep 2010
Posts: 90
Original Poster
Rep:
|
I shut down computer from KDE menu - shutdown. I also tried to shutdown down from terminal "Systemctl poweroff" to no avail.
I assure you i do not suspend or hibernate computer.
But now i noticed that battery is draining also if i shutdown computer by pressing power button for 5 seconds, reagardless if i do it in Linux or Windows or BIOS so i guess the problem is in hardware. I will take it to the service to see what is going on.
I will come back when i will have more info.
Thanks for now.
|
|
|
05-24-2018, 12:53 AM
|
#15
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
^ do you see the backlight still on after shutting down?
maybe this is an ACPI problem, it happens sometimes: Linux halts the system, but then doesn't know how to actually power off the machine. it is solvable.
if your machine didn't come with linux pre-installed, customer service won't like it.
|
|
|
All times are GMT -5. The time now is 06:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|