Dear Maintainer,
my settings include:
- lid action on battery: suspend
- lid action on ac: nothing
my scenario is:
- close lid
- disconnect external power supply
expected behavior (this is systemd default behavior with similar conf):
- system should suspend
actual behavior:
- system does nothing
note: when switching the steps in the scenario - first disconnecting and
only then closing the lid - system suspends as expected.
attached a patch that solves the problem, though seems to be a little
bit hackish.