On Sat, Jul 21, 2018 at 9:26 AM Ed Greshko ed.greshko@greshko.com wrote:
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.
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/...
I am also on KDE. Suspend to RAM doesn't work on battery. Until this problem is mitigated I am using hybrid sleep for now which done both Suspend to RAM and Suspend to Disk. The former is used to wake up the system if the device is connected to an AC adapter and the latter is used if it is on the battery.
When on battery, if you "echo mem > /sys/power/state" does it also fail to
suspend?
echo mem > /sys/power/state - this suspended and then didn't wake up.
If you cat /sys/power/mem_sleep and state are the different from when they
are mains and battery?
$ cat /sys/power/mem_sleep s2idle [deep]
mem_sleep has the above output irrespective of the power state.
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?
Lid is not an issue. You can suspend however you want but the end result is the same. It doesn't wake up. It starts as a fresh boot.