Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Constant switching of battery status

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
teefax
n00b
n00b
Posts: 11
Joined: Wed Jan 14, 2015 1:33 pm
Location: Germany

Constant switching of battery status

  • Quote

Post by teefax » Mon Mar 06, 2017 10:05 pm

Hello,

I'm having an issue with the battery status on my ThinkPad L430. If I'm disconnecting the power supply cord and then wait a few minutes until the battery level dropped to <90% and then reconnect the power supply, the status of the battery switches to "charging". So far, everything is fine. But as soon as the battery reaches 100% the status of the battery is constantly (every ~ 2 seconds) switching between "charged" and "charging".

This leads to constant switching of the energy savings profile in XFCE and a series of extraordinarily annoying notifications.

Code: Select all

~ > cat /proc/acpi/battery/BAT0/state
present:                 yes
capacity state:          ok
charging state:          charging
present rate:            7065 mW
remaining capacity:      36640 mWh
present voltage:         12266 mV
~ > cat /proc/acpi/battery/BAT0/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mW
remaining capacity:      36650 mWh
present voltage:         12513 mV

Code: Select all

~ > acpi_listen 
battery PNP0C0A:00 00000080 00000001
battery PNP0C0A:00 00000080 00000001
battery PNP0C0A:00 00000080 00000001
battery PNP0C0A:00 00000080 00000001

Code: Select all

~ > upower -m 
Monitoring activity from the power daemon. Press Ctrl+C to cancel.
[22:58:03.518]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:04.118]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:05.517]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:05.517]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:05.517]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:05.517]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:05.517]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:05.517]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:19.854]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:19.854]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:19.854]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:19.854]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:19.854]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:19.854]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:19.854]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:21.519]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:21.519]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[22:58:23.518]  device changed:     /org/freedesktop/UPower/devices/battery_BAT0
Any idea on what could cause this? I've tried with the 4.10, 4.9 and 4.4 kernel series and got the same results.
Top
saturnalia0
Apprentice
Apprentice
Posts: 174
Joined: Thu Oct 13, 2016 3:09 am

  • Quote

Post by saturnalia0 » Mon Mar 06, 2017 10:30 pm

Perhaps that's what is actually going on? It's probably easier to tune your notifications/energy profiles configs accordingly.

As a side note, with my Thinkpad it goes up to 100% with "charging", switches to "full", and eventually it stays at 90 something % with status "Unknown". The only thing that actually bothers me is that /sys/class/power_supply/BAT0 eventually has files named "charge_*" but other times it's "energy_*". I didn't try to reproduce it but it seems to change between suspends/shutdowns.
Top
teefax
n00b
n00b
Posts: 11
Joined: Wed Jan 14, 2015 1:33 pm
Location: Germany

  • Quote

Post by teefax » Mon Mar 06, 2017 10:39 pm

Yeah, it just seems weird because this started a few weeks ago; until then the battery stopped charging at 100% and only started again at ~90%.
I now was able to change the charging thresholds using app-laptop/tpacpi-bat, that seems to solve that problem for me.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic