Yes, you can. That's precisely what these settings in logind are for. But these only apply if some other process does not have an inhibitor lock on them. Hendry, is this in a graphical session? Which one? Can you test without any DM/DE running (just in a console)?
Sorry, I was thinking of something else.
]]>... you can't tell it to do one thing if you're on AC and a different thing if you're not.
Yes, you can. That's precisely what these settings in logind are for. But these only apply if some other process does not have an inhibitor lock on them. Hendry, is this in a graphical session? Which one? Can you test without any DM/DE running (just in a console)?
]]>HandleLidSwitchExternalPower=ignore
However my LENOVO_MT_21CF_BU_Think_FM_ThinkPad T14 Gen 3 now fails to suspend when off power. ?
Do you mean (1) that triggering suspend using some other means no longer works e.g. using the sleep button or telling systemd directly? or (2) that suspend is no longer triggered when you close the lid? (2) is expected - you just told systemd to ignore lid closing, so it will take no action when you close the lid. (1) would not be expected.
Am I missing something? I'm very confused by "Note: systemd cannot handle AC and Battery ACPI events, so if you use Laptop Mode Tools or other similar tools acpid is still required." upon https://wiki.archlinux.org/title/Power_management
Does that mean systemd is unaware of when I'm powered or not?
I don't know if systemd is unaware of this, but it offers only monolithic configuration. For each of the events, you can tell it what to do, but you can't tell it to do one thing if you're on AC and a different thing if you're not. At least, you cannot do so by any straightforward means. (You might be able to override one or more of the targets to use a custom script which responded differently in the two cases, but I don't know whether that would be a good idea.) If you want different responses to the same triggers you need to use a more specialised tool.
]]>However my LENOVO_MT_21CF_BU_Think_FM_ThinkPad T14 Gen 3 now fails to suspend when off power. ?
Am I missing something? I'm very confused by "Note: systemd cannot handle AC and Battery ACPI events, so if you use Laptop Mode Tools or other similar tools acpid is still required." upon https://wiki.archlinux.org/title/Power_management
Does that mean systemd is unaware of when I'm powered or not?
]]>