this post was submitted on 21 Oct 2023
26 points (96.4% liked)

Linux

48090 readers
711 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I can’t find an active thinkpad centric community on here I am just going to post here. My Thinkpad T480s, 16 GB RAM, 238 GB SSD is randomly shutting off while at like 50%. When I try to open it back up it always is dead and I have to connect charger to boot it up again. Why is this happening? Is it battery issue? It complains about not being able to read temp2_input while shutting down and sometimes say PM usage count underflow. Not sure what that is supposed to mean.

all 21 comments
sorted by: hot top controversial new old

Sounds like a bad battery

[–] Nawor3565@lemmy.blahaj.zone 9 points 1 year ago (1 children)

When you say you need to connect the charger to get it to boot up again, do you mean boot to Linux or even to just show the BIOS? If the former, it might be that the battery level isn't being read correctly by the OS, but if it's the latter, the battery or its related circuitry is likely failing and you'll need a replacement battery.

[–] 257m@sh.itjust.works 1 points 1 year ago (2 children)

I dosen't show BIOS no signs of life until charger is plugged in.

[–] Nawor3565@lemmy.blahaj.zone 4 points 1 year ago

In that case, I don't think the problem is with Arch. The battery is likely shot, as going from partly charged -> dead that quickly is a very common symptom of one that's reached the end of its life.

[–] FQQD@feddit.de 8 points 1 year ago (1 children)

Honestly, why isn't there a thinkpad community here

[–] moreeni@lemm.ee 4 points 1 year ago

There is, but this is probably not a Thinkpad specific issue

[–] tal@lemmy.today 5 points 1 year ago (1 children)

To find communities, use this:

https://lemmyverse.net/communities?query=thinkpad

Searching a Fediverse instance will only find communities that that instance knows about. This indexes all of them.

!thinkpad@lemmy.ml

[–] 257m@sh.itjust.works 2 points 1 year ago

Thanks Ill use that in the future.

[–] erer@lemm.ee 3 points 1 year ago

Are you using battery thresholds and keeping your laptop connected? There is a bug in ThinkPads, at least with my t480, in which the batteries get discharged over time but doesn't get reported which causes the sudden power off. If you are using TLP I suggest you to either force a full charge or a recalibration to charge your battery properly. Also don't discard the possibility of having a broken battery.

[–] tal@lemmy.today 2 points 1 year ago (1 children)

That sort of sounds like whatever is displaying battery remaining is somehow getting things wrong, assuming that the battery is actually discharged. I can't think of much that would prevent you from at least being able to power up to the BIOS if you honestly had battery charge.

You can see what the kernel is telling userspace in:

/sys/class/power_supply/BAT0/energy_full

And

/sys/class/power_supply/BAT0/energy_now

Other things that might cause it...there is some software that will auto-hibernate or similar when your battery reaches a certain threshhold. If you consistently have the thing go down at 50%, that could do it. But I don't know why that would prevent you from booting the thing without charging it. You tried holding the power button for seven seconds or so to make sure that the thing is really powered off and not in some suspend mode or something and ignoring taps on the power button?

[–] tal@lemmy.today 2 points 1 year ago* (last edited 1 year ago)

Oh, wait. 50% and Thinkpad. I used to have a Thinkpad with two batteries.

https://www.ifixit.com/Guide/Lenovo+ThinkPad+T470S+Batteries+Replacement/140443

That looks like the T470s has a dual battery, and unlike mine, they look like they're the same size. Does your T480s have dual batteries?

EDIT: The T480 apparently does. Does the T480s?

https://www.reddit.com/r/thinkpad/comments/a4iben/t480_confused_on_how_to_charge_2nd_battery/

EDIT2: I don't see anything that looks like a second battery myself in this:

https://www.ifixit.com/Guide/Lenovo+ThinkPad+T480s+Battery+Replacement/144009

So I'm guessing not.

[–] Sleestak_Chaka@lemm.ee 1 points 1 year ago (1 children)

I use Fedora on my T470 with no issues. It might just be Arch. Have you tried other distros? I wish there was a ThinkPad community here.

I also use Fedora on a 2008 Mac Pro with no issues. I'm really surprised how good it is because I've been using Linux since the 90s and never had it just run smoothly on my older hardware.

[–] possiblylinux127@lemmy.zip 1 points 1 year ago

Fedora and arch should run the same kernel.

[–] moreeni@lemm.ee 1 points 1 year ago (3 children)

There are lots and lots of possible reasons for this to happen, so people will need some more information to help you find the issue.

Are you able to boot it at all after it shuts down? How often does it "randomly" get shut down? How do you determine your battery has 50% before it shuts down? Can you check if it happens on other operating systems? What does "it complains" mean, is it a warning in journalctl? Also, please post precise outputs of any errors you might see in journalctl at the time it shuts down.

[–] tal@lemmy.today 2 points 1 year ago* (last edited 1 year ago)

How do you determine your battery has 50% before it shuts down?

Debian has a program in the battery-stats package that logs battery at a (by default) 30 second interval. That has a pretty graphing program too. I dunno if Arch packages that, but if not, not hard to roll your own.

#!/bin/sh

while true; do
    echo $(date; cat /sys/class/power_supply/BAT0/energy_now) >> ~/battery-log
    sync
    sleep 10
done

That'll get you a capacity within ten seconds of the next shutdown. If you save that log, repeat it running until it dies a couple times, you can probably tell if it's consistently at the same capacity that it goes down.

[–] 257m@sh.itjust.works 1 points 1 year ago

I am using upower to determine the battery status. It happens once every day or so. It posts the messages in the tty as it shuts down. systemctl schedules the shutdown slightly ahead of time.

[–] 257m@sh.itjust.works 1 points 1 year ago

Here a picture of the screen I get before it shuts down.

[–] queue@lemmy.blahaj.zone 1 points 1 year ago

Yeah I think that's a battery issue. If you can run the computer fine without it, that might eliminate the probability. Maybe check if a firmware update is needed, but I think simply if the battery hasn't been swapped, it's probably due for one.

[–] rafaelrsanches@monero.town 0 points 1 year ago (1 children)
[–] panmeek@lemmy.sdf.org 0 points 1 year ago

yeah very helpful, the first community has 36 members, the other has 4

probably it's not even a thinkpad specific problem