https://bugzilla.kernel.org/show_bug.cgi?id=215799 Manuel Ullmann (labre@xxxxxxxxx) changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |CODE_FIX --- Comment #4 from Manuel Ullmann (labre@xxxxxxxxx) --- (In reply to Oliver Neukum from comment #2) > Working theory: > > You are misinterpreting the system's reaction. The hibernation is not done > automatically by the kernel. Instead the kernel reports a charger as a > battery. That battery, being a charger, reports a charge of zero. User space > monitors this and does as it should if its only known power source is a > battery at zero charge: it hibernates the system. Your theory is correct. The laptop-mode-tools auto-hibernation facility causes the hibernation. This happens even with the patch, because laptop-mode-tools fails to check, whether a battery has battery-like nodes or whether there are just chargers in /sys/class/power_supply. [1] > Please test this patch Thank you for looking into this and for the patch. laptop-mode-tools is in Bash, so I can send the PR myself. It would be nice, if it could be backported, since it fixes a bug, but laptop-mode-tools could also use a better check for battery nodes. [1]: https://github.com/rickysarraf/laptop-mode-tools/blob/25496b668d597f947a7d65e7c2d4712e8f77692e/usr/sbin/laptop_mode#L486 -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.