Laptop poweroff abruptly…ONLY ON LINUX
I bought a new SSD and a battery for my laptop (Thinkpad W520) recently and installed Linux.
Everything works fine when running on AC. However when I try to boot the system on battery the system shutsdown abruptly without warning anywhere between grub and the desktop. However, if I boot the system with AC power and run on the battery it's stable and works fine. Same system on a different hard drive boot and runs perfectly well with Windows. That confirms that the problem lies in the Linux OS (configuration?, kernel?) not in the hardware. What might be causing this problem? Any help much appreciated! |
AC = alternating current = the plug
DC = direct current = the battery. you state you got a "new" battery. How much did it cost? $50 ~ 100 US Dollars? if less then the big chance is you got a "new" battery Old stock. with the batteries today they start to deprecate as soon as they are made. So the life expectancy is already becoming shorter before they're even put inside of the box to be shipped to the store. So if you're saying I can boot up on AC but as soon as I unplug it Linux shuts off, it may be because you're battery is relatively old even though it may have came in original packaging. Therefore it is not holding a charge let alone actually being charged to the original 100 percent that is suppose to give you that 4 to 8 hours of battery life. Even though it maybe telling you it is charged 100 percent the "cells" do not actually hold a charge that will last as long as a "new" freshly made battery will. send it back would be your best best. also how long does Windows last on your battery? the power settings on when to shut down depending on percent of battery power might be looked into as well. |
If the laptop shuts down on battery power but not on AC power, it tells me the battery is delivering less power than the AC. Try running the battery down as far as it will go, charge it up again for a good 10 hours with the laptop off. Then try it again.
|
Quote:
Maybe dmesg might say something in /var/log. Just to show what is in my /var/log Code:
harry@biker:~ Code:
lshw Code:
upower -d Code:
acpi -b |
Also. Not all hardware is equal sometimes. I bought a charger that freezes the touch pad when plugged in. This stuff happens sometimes. My solution to this ? I run a external wireless usb mouse when on the charger. It is a hardware problem though. Not software. Freezes in Windows also. Freezes in Android.
|
@ rokytnji
Output of /var/log: Code:
alternatives.log faillog preload.log Code:
Device: /org/freedesktop/UPower/devices/line_power_AC |
I thought you might be able to poke around in dmesg file to see what it had to say. But I see no /var/log/dmesg file.
What does Code:
harry@biker:~ |
If the machine shuts down every time and at the same point in the boot process, and never actually finishes booting, then you'd be looking at some very obscure mis-configuration between Linux and your battery controller. There is a poweroff capability that is normally used when Linux finishes shutting-down on a laptop, and maybe that underlying facility is behaving wrongly. But, I must say, I think that the chances of this are very remote.
|
Quote:
|
The laptop might not be cleanly shut down from Windows, i.e. Windows suspends the laptop to ram, which most laptops do when you just press the power button. That leaves the machine in a sleep state. So, when you boot into Linux there can be problems.
Try holding down the power button until the machine shuts off in Windows. Then boot Linux. |
Quote:
|
If you're going that route and it works you can go into Windows power management, advance then select off for hybridization and such.
|
I really appreciate all your replies. I'm not dual booting. I have two hard drives. One with Linux installed and the other with Windows 8.1. I just connected the hard drive with Windows just to test the other hardware and the battery. Everything worked fine when I booted the system with Windows (booting, running and shutting-down and everything works as it should). I experience this problem only with Linux. That also only when I boot the system on battery
|
Quote:
Linux debian 4.14.0-0.bpo.3-amd64 #1 SMP Debian 4.14.13-1~bpo9+1 (2018-01-14) x86_64 GNU/Linux |
OK. If you can install this. It will give more info on your machine hardware and model of computer.
https://packages.debian.org/stretch/inxi Command to run after a install Code:
inxi -Fxxx Code:
sudo apt-get update Code:
apt search inxi Code:
[installed] Code:
sudo apt-get install inxi I find it weird there is no dmesg log in /var/log After you boot debian. What does Code:
dmesg | tail Also. Try finding old dmesg files with Code:
sudo updatedb Code:
locate dmesg Code:
which dmesg |
All times are GMT -5. The time now is 02:06 PM. |