On 07/21/18 11:09, Sudhir Khanger wrote:
I am on Fedora 28. I have tried every kernel update
from 4.17.4-200.fc28.x86_64to 4.17.7-200.fc28.x86_64 (from updates-testing). None
of them can suspend on battery. When connected to power suspend works just fine.
I've got an old Acer laptop that can survive on its ancient battery for about 45
minutes.
I just tested it with 4.17.7-200.fc28.x86_64 and it immediately went into suspend to
RAM when I unplugged power since I forgot to raise the lid. It also went into
suspend when I test by doing echo mem > /sys/power/state.
If you cat /sys/power/mem_sleep and state are the different from when they are mains
and battery?
When on battery, if you "echo mem > /sys/power/state" does it also fail to
suspend?
I use KDE and in its "Power Management" it has the ability to select what to do
if
the lid is closed. The choices can be different for Battery and Plugged In. Does
your Desktop Environment also allow for differences?
--
Conjecture is just a conclusion based on incomplete information. It isn't a fact.