this post was submitted on 30 Sep 2024
80 points (98.8% liked)
Linux
48310 readers
645 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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
let's hope it's a software issue, in general it's much cheaper to fix software than hardware 🙂
you can also try using the "sudo halt --poweroff" command.
if it ks software related. that command will force an instant shutdown ignoring all normal shutdown run levels (use with caution if you have open files that need to be saved in advance).
if that command succeeds as well after the battery test, you can be sure the problem lies within the shutdown run level scripts, which should help you narrow it down even more.
okay, I think we have some news: if I kill the pc by holding the power button, after a night the battery loses 0%! so I guess the problem is that it's not shutting down properly. I tried to
sudo halt --poweroff
and it drained the battery as usual. I then triedsudo halt -f
and something strange happened: the screen immediately turned off, but the red LED on the volume key indicating that the volume is muted stayed on, so the pc wasn't completely off. what could be the problem? and why does this happen only when I force thehalt
? could it be a kernel issue?thanks for the help and for your time!!!
Hi, a bit busy today so I can investigate some more later, but the problem you are describing is in many cases related to the kernel version and has been resolved by up or downgrading the kernel version.
it might be worth looking into, at least it's a simple task, while I get some more time to investigate or offer more for you to look into.
great that it worked so far, at least now you know where the problem is :)
I'll try other kernels then, but I don't know how to check if the system is actually powered off or not without waiting 8 hours and checking the battery drain XD perhaps the
halt
could be the keythanks!! I'll update the thread if I'll discover something new
the halt command is like a handbrake for the kernel, so it basically shuts everything down hard and stops, but it does not power off the system without you telling it to, so that is why your LEDs stayed on after you used the other parameter.
you could just try to downgrade/ upgrade the kernel, do s shutdown for a few hours during daytime when the computer is not beeing used, then turn it back on and check the percentage.
you will see the drain if it's not a full night, but it might not be so drastic.
if it's completely shut down there should be no loss in percentage, even for a short period of time as there probably is now..
I'll try to think up another solution, but a bit busy today as I mentioned on the last post
probably related to this kernel bug though:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2059738
downgrading the kernel should fix it as a workaround it would seem.