You are not logged in.

#1 2021-03-23 19:54:57

ruffy
Member
Registered: 2017-06-10
Posts: 62

Laptop freezes randomly in battery mode

Hi all!

Since 2 weeks my laptop randomly freezes completely (I can't even switch to another tty).
I have no clue why this happens and can't find any evidence what causes this.

The only thing I notice is that sometimes during startup I get the following (apparently startup also takes longer when this appears):

[28.268049] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [migration/0:16]
[28.269053] watchdog: BUG: soft lockup - CPU#1 stuck for 23s! [migration/1:22]
[28.270057] watchdog: BUG: soft lockup - CPU#2 stuck for 23s! [migration/2:29]
[28.271064] watchdog: BUG: soft lockup - CPU#3 stuck for 23s! [migration/systemd-udev:269]

Noticeable is that the system only freezes when I am in battery mode.

Furthermore, if I am sometimes afk for around 5' to 10' I notice that my laptop turned itself off.
I don't know if these two problems are related, but I also have no clue why the second problem appears.

Does anyone have some hints what could cause these problems?

My specifications:

* Thinkpad T490
* 5.11.8-arch1-1
* xmonad 0.15

Thanks!

Offline

#2 2021-03-24 22:32:32

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: Laptop freezes randomly in battery mode

I noticed that the shut down happens after the laptop is frozen. So I assume that these two problems are connected...

Offline

#3 2021-03-27 08:42:05

rolling.robot
Member
Registered: 2013-02-14
Posts: 9

Re: Laptop freezes randomly in battery mode

Hi. I'm not sure that my problem is exactly the same as yours, but the generic description is the same: my laptop freezes when run on battery, and it does so for about two weeks now, so I decided not to open a separate thread.

Usually when I boot without plugged charger, I have about two minutes before the freeze, and if I unplug the power cable from the working system, the laptop freezes immediately.

 journalctl -k -b -1

shows no events before the freeze, so I think that they are not written to the log. In contrast to @ruffy, I don't see any watchdog bugs in dmesg.
I also tried to boot with acpi=off kernel option, which solves the freeze problem, but apparently I don't have a fancy power management in that case or battery info (which is still better than not being able to work on battery power), so it looks like that acpi module is the culprit in my case, but I'm not sure how to get more debug information.

I am running linux 5.11.10.arch1-1 on Dell Latitude 7390 with i5-8350U.

Does anyone know how can I get more debug information to solve the problem or at least write a more detailed description?

Offline

#4 2021-03-28 15:58:38

harunou
Member
Registered: 2016-08-30
Posts: 7

Re: Laptop freezes randomly in battery mode

Hi! Seems the same problem here with my Lenovo Thinkpad L590. Laptop unexpectedly freezes or turns off (not shuts down) after being idle for about 20 minutes. Setting up `xset s off` and `xset -dpms` or kernel flag `acpi=off` avoids the problem, but discards power management features.

Offline

#5 2021-03-29 06:43:27

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: Laptop freezes randomly in battery mode

rolling.robot wrote:

Hi. I'm not sure that my problem is exactly the same as yours, but the generic description is the same: my laptop freezes when run on battery, and it does so for about two weeks now, so I decided not to open a separate thread.

Usually when I boot without plugged charger, I have about two minutes before the freeze, and if I unplug the power cable from the working system, the laptop freezes immediately.

 journalctl -k -b -1

shows no events before the freeze, so I think that they are not written to the log. In contrast to @ruffy, I don't see any watchdog bugs in dmesg.
I also tried to boot with acpi=off kernel option, which solves the freeze problem, but apparently I don't have a fancy power management in that case or battery info (which is still better than not being able to work on battery power), so it looks like that acpi module is the culprit in my case, but I'm not sure how to get more debug information.

I am running linux 5.11.10.arch1-1 on Dell Latitude 7390 with i5-8350U.

Does anyone know how can I get more debug information to solve the problem or at least write a more detailed description?

Hmm strange, but it sounds similar to my issue.

I noticed now that I even get this problem in AC mode, so I fear that in combination with the watchdog bugs that this is due to some hardware defect...

The strange thing is that if I am in my docking station, I never experience any problem.

Last edited by ruffy (2021-03-29 06:46:32)

Offline

#6 2021-03-29 06:47:24

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: Laptop freezes randomly in battery mode

harunou wrote:

Hi! Seems the same problem here with my Lenovo Thinkpad L590. Laptop unexpectedly freezes or turns off (not shuts down) after being idle for about 20 minutes. Setting up `xset s off` and `xset -dpms` or kernel flag `acpi=off` avoids the problem, but discards power management features.

I never tried that, but as it happened also once in AC mode I think that the problem is not connected to a battery issue anymore.

Offline

#7 2021-03-30 06:59:03

harunou
Member
Registered: 2016-08-30
Posts: 7

Re: Laptop freezes randomly in battery mode

So far, setting all adjustable acpi settings to their good (?) position with `pawertop --auto-fix` helped me.

Offline

#8 2021-04-11 19:02:59

eolien
Member
Registered: 2015-05-19
Posts: 18

Re: Laptop freezes randomly in battery mode

Same issue here with a Dell Latitude 7490.
If I boot docked, then unplug the laptop, it doesn't freeze before a random time (~1 hour ?).
Then if I hard reboot, it can fail during the startup process, when i'm writing my zfs pool passphrase.

Nothing strange too with

journalctl -k -b -1
➜ uname -a
Linux osz 5.10.28-1-lts #1 SMP Wed, 07 Apr 2021 15:18:42 +0000 x86_64 GNU/Linux

Just upgraded my UEFI, wait and see. I will try to use acpi=off too.

Offline

#9 2021-04-11 19:47:02

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: Laptop freezes randomly in battery mode

I have the problem now independent from being in AC- or battery mode...
I couldn't figure out why and still can't find any evidence.

The interesting thing is that this problem does not occur when my Laptop is in the docking station...

I have now a replacement laptop from my company and the system administrator tries to find out if there is a hardware defect, as he suspect's that.
Due to him often a CPU core is defect after the "watchdog: BUG: soft lockup" problem appears.

Anyway I would be interested if the freeze problem is still some software problem.

Last edited by ruffy (2021-04-11 19:49:15)

Offline

#10 2021-04-16 17:54:57

eolien
Member
Registered: 2015-05-19
Posts: 18

Re: Laptop freezes randomly in battery mode

Just tried, and same problem : if laptop is docked, everythings ok, if AC or battery -> freeze after some min
I don't want to disable ACPI, I want to be sure that the problem comes from my system.

I noticed that, at startup, I doesn't freeze until I load my kernel+initiramfs.
Lets try to boot live to see if it freeze, and move to no LTS kernel.

Offline

#11 2021-04-16 18:12:55

eolien
Member
Registered: 2015-05-19
Posts: 18

Re: Laptop freezes randomly in battery mode

- Ok, just booted Archiso, and after 3min, it freezes.

- I also tried to use

powertop --calibrate

then

powertop --auto-tune

Without more success.

- I ran a Dell diag from UEFI : no problem
- acpi=off : still freeze

I'm compiling 4.4 kernel to exclude a kernel problem.

Last edited by eolien (2021-04-16 18:37:46)

Offline

#12 2021-04-16 19:18:47

eolien
Member
Registered: 2015-05-19
Posts: 18

Re: Laptop freezes randomly in battery mode

It seems that this solved my problem : https://wiki.archlinux.org/index.php/In … ete_freeze

Offline

Board footer

Powered by FluxBB